@font-face {
  font-family: "Pixelify Sans";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/pixelify-sans-600.woff2") format("woff2");
}

:root {
  --night: #101a3a;
  --window: #1b2a66;
  --window-deep: #121d4c;
  --line: #e9e4d4;
  --text: #f4f1e6;
  --muted: #b7bddb;
  --gold: #f0c75e;
  --good: #7fe0a0;
  --bad: #ff8b7d;
  --hp: #58d68d;
  --mp: #5cb8ff;
  --enemy: #ef5350;
  --ink-on-gold: #2a2008;
  --field: #0a1234;
  --track: #060b24;
  --shade: #05091f;
  --rule: rgba(233, 228, 212, 0.25);
  --radius: 8px;
  --radius-small: 4px;
  --space: 8px;
  --icon: 24px;
  --display: "Pixelify Sans", var(--serif);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--night);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  -webkit-tap-highlight-color: transparent;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px calc(88px + env(safe-area-inset-bottom));
}
.playing main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; }
/* Die Pixelschrift bleibt lesbar nur in Vielfachen von 8 Pixeln und nicht für Zahlen. */
h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
h1 { font-size: 32px; letter-spacing: 0.02em; color: var(--gold); }
h2 { font-size: 24px; margin: 24px 0 8px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
p { margin: 8px 0; }
a { color: var(--gold); }
small { color: var(--muted); }
ul, ol { list-style: none; margin: 0; padding: 0; }

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

button {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--window-deep);
  cursor: pointer;
}
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

button.primary {
  width: 100%;
  margin-top: 12px;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-on-gold);
  font-weight: 700;
}

button.primary small { color: inherit; font-weight: 400; }

.window {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(180deg, var(--window), var(--window-deep));
  border: 3px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--shade);
}

.title { display: flex; justify-content: space-between; align-items: baseline; }
.gear { position: relative; display: flex; align-self: center; padding: 4px; color: var(--text); }
.gear .icon { --icon: 32px; margin: 0; }
.title-actions { display: flex; align-items: center; align-self: center; gap: 8px; }
.help-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--window-deep); color: var(--gold); font: 700 18px var(--sans); }
.help h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.help h2:not(:first-child) { margin-top: 16px; }
.help-points { margin: 4px 0 0; padding-left: 20px; }
.help-points li + li { margin-top: 4px; }
details.help { margin-top: var(--space); }
details.help > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.menu-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tile { position: relative; display: flex; align-items: center; gap: 12px; margin-top: var(--space); padding: 10px 12px; background: var(--window-deep); border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.tile .icon { --icon: 32px; margin: 0; }
.tile .menu-dot { top: 8px; right: 8px; }

.tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px max(8px, calc((100vw - 560px) / 2)) calc(4px + env(safe-area-inset-bottom));
  background: var(--window-deep);
  border-top: 2px solid var(--line);
}
.tabs a { display: flex; flex-direction: column; align-items: center; min-height: 52px; padding: 2px 0; font-size: 12px; color: var(--muted); text-decoration: none; }
.tabs .icon { margin: 0; --icon: 32px; opacity: 0.75; }
.tabs [aria-current] { color: var(--gold); font-weight: 700; }
.tabs [aria-current] .icon { opacity: 1; }
.playing .tabs { display: none; }

.bar {
  flex: 1;
  display: inline-block;
  height: 10px;
  min-width: 60px;
  background: var(--track);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.bar > span { display: block; height: 100%; transition: width 0.35s ease; }
.bar-hp > span { background: var(--hp); }
.bar-mp > span { background: var(--mp); }
.bar-xp > span { background: var(--gold); }
.bar-enemy > span { background: var(--enemy); }
.num { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Startseite ohne Anmeldung, landing.js. Auf breiten Bildschirmen zweispaltig. */
.landing main { max-width: 960px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.landing main > section + section { margin-top: 40px; }
.landing-hero { display: grid; gap: 24px; align-items: center; padding-top: 16px; }
.landing-hero h1 { font-size: 40px; }
.landing-lead { font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--text); }
.landing-battle .bar-enemy { width: 100%; }
.landing .primary-link { max-width: 320px; text-align: center; }
.landing-battle { max-width: 360px; width: 100%; justify-self: center; text-align: center; }
.landing-enemy { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; }
.landing-enemy b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.landing-sprite .sprite { width: 128px; height: 128px; margin-top: 8px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.landing-prompt b { font-size: 24px; }
.landing-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.landing-choices span { padding: 6px 12px; border: 2px solid var(--muted); border-radius: var(--radius); color: var(--muted); }
.landing-choices .right { border-color: var(--good); color: var(--text); font-weight: 700; }
.landing-result { color: var(--good); }
.landing-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.landing-stats > span { display: flex; align-items: center; gap: 4px; }
.landing-stats .bar { flex: 1; }
.landing-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.landing-steps li { display: flex; align-items: flex-start; gap: 12px; }
.landing-steps .icon { --icon: 40px; margin: 0; }
.landing-features { display: grid; gap: var(--space); }
.landing-features .tile { align-items: flex-start; margin-top: 0; }
.landing-village { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space); }
.landing-village figure { margin: 0; text-align: center; }
.landing-village .sprite { width: 96px; height: 96px; }
.landing-village figcaption { font-size: 14px; color: var(--muted); }
.landing-android { max-width: 320px; margin-top: 24px; }
.landing-android .secondary-link small { display: block; font-weight: 400; color: var(--muted); }
.landing-parents { margin-top: 8px; }
.landing-parents summary { cursor: pointer; color: var(--muted); }
.landing-parents ol { margin: 8px 0 0; padding-left: 22px; list-style: decimal; }
.landing-parents li { display: list-item; margin-top: 6px; }
.landing-end { text-align: center; }
.landing-end .primary-link { margin-inline: auto; }
.landing-promises { justify-content: center; color: var(--gold); font-weight: 700; }
@media (min-width: 760px) {
  .landing-hero { grid-template-columns: 1.1fr 0.9fr; }
  .landing-steps { grid-template-columns: repeat(3, 1fr); }
  .landing-features { grid-template-columns: repeat(3, 1fr); }
}
.secondary-link {
  display: block;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--window-deep);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary-link {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink-on-gold);
  font-weight: 700;
  text-decoration: none;
}

.unlocked { margin: 8px 0 0; color: var(--gold); }
.goal.done b { color: var(--gold); }
.goal-progress { display: flex; align-items: center; gap: 6px; min-width: 96px; flex: none; }

.row-actions { display: flex; gap: 6px; flex: none; }
.ward-list li { display: block; }
.ward-lesson small { display: block; }
.fold { margin-top: 8px; }
.fold > summary { color: var(--gold); cursor: pointer; }
.fold form { margin-top: 8px; }
.companion-list { margin: 0; padding: 0; list-style: none; }
.companion-card { margin-top: var(--space); }
.companion-card small, .companion-card > a { display: block; }
.companion-card small { color: var(--muted); }

.hero-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--window-deep);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.level { display: inline-flex; align-items: center; font-weight: 700; white-space: nowrap; }
.hero-bar .num, .badge { white-space: nowrap; }
.badge { padding: 0 6px; border-radius: var(--radius-small); background: var(--gold); color: var(--ink-on-gold); font-size: 13px; font-weight: 700; }

.hint { font-size: 14px; color: var(--muted); }
.lesson { margin-top: 16px; }
.lesson summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  background: var(--window-deep);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.lesson summary h3 { margin: 0; font-size: 18px; }
.path-title { color: var(--gold); }
.lesson-group { margin-top: 16px; }
.lesson-group > summary { color: var(--muted); cursor: pointer; }
.path { margin-top: 20px; }
.path > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.path > summary::-webkit-details-marker { display: none; }
.path > summary .path-title { margin: 0; }
.path-title a { color: inherit; text-decoration: none; }
.path > summary .path-title::before { content: "▸ "; }
.path[open] > summary .path-title::before { content: "▾ "; }
.path > summary small { color: var(--muted); white-space: nowrap; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: 1; }
.toggle input { width: 22px; height: 22px; accent-color: var(--gold); }
.book-link { display: inline-block; margin-top: 10px; }

.tree { position: relative; height: calc(var(--rows) * 92px); margin-top: 8px; }
.paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.paths line {
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}
.paths line.walked { stroke: var(--gold); stroke-dasharray: none; opacity: 1; }
.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc((var(--row) + 0.5) / var(--rows) * 100%);
  transform: translate(-50%, -50%);
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: var(--window);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.node small { font-size: 11px; }
.sprite, .icon { image-rendering: pixelated; }
.icon { flex: none; width: var(--icon); height: var(--icon); vertical-align: -6px; margin-right: 4px; }
.stat .icon { margin-right: 0; }
.stat-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space) 16px; }
.stat-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 18px; }
.with-icon { display: flex; gap: var(--space); align-items: flex-start; }
.with-icon > .icon { --icon: 32px; margin: 2px 0 0; }
.price { display: inline-block; }
.price .icon { --icon: 16px; vertical-align: -3px; margin-right: 2px; }
.loot { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.action .icon { --icon: 20px; vertical-align: -5px; margin-right: 3px; }
.node .sprite { width: 32px; height: 32px; }
.node.next { z-index: 1; animation: next-glow 1.8s ease-in-out infinite; }
@keyframes next-glow { 50% { box-shadow: 0 0 0 4px rgba(240, 199, 94, 0.7); } }
.node.done { background: var(--window-deep); border-color: var(--good); }
.node.open { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240, 199, 94, 0.35); }
.node.locked { background: var(--window-deep); border-style: dashed; border-color: var(--muted); color: var(--muted); }
.node.locked .sprite { filter: brightness(0) opacity(0.6); }
.node-boss .sprite { width: 48px; height: 48px; }

.battle { position: relative; }
.flee {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-height: 32px;
  padding: 2px 10px;
  font-size: 13px;
  border-width: 1px;
  background: rgba(5, 9, 31, 0.6);
}

.scene {
  position: relative;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(233, 228, 212, 0.13) 56px 72px, transparent 72px 128px),
    linear-gradient(180deg, #2c2a6e 0%, #4b3a7c 58%, #6c4b52 58%, #3d2b35 100%);
  overflow: hidden;
}
.scene-hit { animation: flash 0.4s ease; }
.enemy-status { display: flex; align-items: center; gap: 8px; padding-right: 72px; flex-wrap: wrap; }
.enemy-status .bar { flex-basis: 100%; }
.guard { flex-basis: 100%; color: var(--gold); }
.enemy-name { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; }
.rank { padding: 0 6px; border-radius: var(--radius-small); font-size: 12px; font-weight: 700; color: #111; background: var(--muted); }
.rank-eliteMinion { background: #b9c6e4; }
.rank-champion { background: var(--gold); }
.rank-eliteChampion { background: #f09a5a; }
.rank-boss { background: var(--enemy); color: #fff; }
.enemy { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.enemy .sprite { width: min(44vw, 176px); height: min(44vw, 176px); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.enemy-hit .sprite { animation: recoil 0.4s ease; }
.enemy-strike .sprite { animation: lunge 0.4s ease; }
.enemy-defeated .sprite { animation: vanish 0.7s ease forwards; }
.damage {
  position: absolute;
  top: 30%;
  font: 700 30px var(--serif);
  color: var(--gold);
  text-shadow: 0 2px 0 #000;
  animation: rise 0.9s ease forwards;
}

.player-status { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 10px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.buffs { grid-column: 1 / -1; font-size: 13px; color: var(--gold); }

.options { display: grid; gap: 8px; margin-top: 10px; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
.timer { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.timer .bar { flex: 1; }
.bar-time > span { background: var(--mp); transition: width 0.2s linear; }
.timer-low { color: var(--bad); }
.timer-low .bar-time > span { background: var(--bad); }
.attack-label { margin: 0; font-size: 13px; color: var(--muted); }
.lemma { margin: 0; font: 600 34px/1.2 var(--serif); color: var(--gold); overflow-wrap: break-word; }
.lemma.small { font-size: 24px; }
.note { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

fieldset { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: 1 1 auto; min-width: 44px; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); font-weight: 700; }
.chip:disabled { text-decoration: line-through; }

.extra-parts { margin-top: 12px; padding: 8px 10px 10px; background: var(--field); border: 2px solid var(--gold); border-radius: var(--radius); }
.extra-parts fieldset { margin-top: 6px; }
.extra-parts .forms { margin-top: 6px; }
.extra-head { display: flex; justify-content: space-between; gap: var(--space); margin: 0; font-size: 14px; color: var(--gold); }
.extra-head .done { color: var(--good); }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.field { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.forms .field { margin-top: 0; }
.course-form { margin-top: var(--space); }
.course-form fieldset { margin: 12px 0 0; padding: 0; border: 0; }
.course-form legend, .course-form summary { color: var(--muted); font-size: 14px; }
.course-form details { margin-top: 12px; }
.course-form summary { cursor: pointer; }
.course-form .row-actions { margin-top: 12px; }
.grammar-pick { margin-top: 12px; }
.grammar-pick summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.grammar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 2px 0; }
.grammar-pick .grammar-row select { flex: 0 0 8rem; width: 8rem; margin-top: 0; }
.course-form .row-actions button { flex: 1; margin-top: 0; }
.course-grades { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); }
.list li.course-edit { display: block; padding-top: 0; }
/* Auf dem Handy rutschen die Knöpfe unter den Kurstitel oder Namen, statt ihn zusammenzudrücken. */
.list li.admin-course, .list li.mentor-row { flex-wrap: wrap; }
.admin-course > :first-child, .mentor-row > :first-child { flex: 1 1 14rem; }
.admin-course .row-actions, .mentor-row .row-actions { margin-left: auto; }
.mentor-row .row-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.new-course { margin-top: 16px; }
.new-course > summary { color: var(--gold); font-weight: 700; cursor: pointer; }
.school-fields { display: grid; gap: var(--space); }
.school-fields .field { margin-top: 0; }
#school button { margin-top: var(--space); }
@media (min-width: 560px) { .school-fields { grid-template-columns: 7rem 1fr 1fr; } }
.field input, .field select, .field textarea, .grammar-row select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 16px;
  background: var(--window-deep);
  border: 2px solid var(--line);
  border-radius: 6px;
}
.field input::placeholder { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.action { min-height: 38px; padding: 4px 10px; font-size: 14px; border-width: 1px; }
.message { font-size: 14px; color: var(--gold); }

.outcome { margin: 0; font: 600 32px var(--display); }
.outcome-good { color: var(--good); }
.outcome-bad { color: var(--bad); }
.outcome-neutral { color: var(--mp); }
.outcome-detail { margin-top: 2px; color: var(--muted); }
.solution li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); }
.solution span { color: var(--muted); font-size: 14px; }
.solution b { text-align: right; }
.solution-value { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.given { color: var(--muted); font-size: 13px; }
.solution .ok b { color: var(--good); }
.solution .ok b::before { content: "✓ "; }
.solution .miss b { color: var(--bad); }
.solution .miss b::before { content: "✗ "; }

.review li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.review span { color: var(--muted); text-align: right; }
.end-buttons { display: grid; gap: 8px; margin-top: 12px; }
.end-buttons .primary { margin-top: 0; }

.stats { color: var(--muted); }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.book-right { text-align: right; }
.pips { display: block; font-size: 11px; color: var(--gold); letter-spacing: 1px; }

.word-card {
  margin-top: 12px;
  padding: 12px;
  background: var(--window-deep);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.word-card.uncertain { border-color: var(--gold); }
.flag { margin: 0; font-size: 14px; color: var(--gold); }
.word-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 8px; }
.word-grid .wide { grid-column: 1 / -1; }
.remove { margin-top: 10px; min-height: 36px; padding: 2px 10px; font-size: 14px; border-width: 1px; }
.lesson-admin li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 8px 0; }
/* Der Titel bekommt Platz, die Aktionen rutschen am Handy in eine eigene Zeile darunter. */
.lesson-admin li > span:first-child { flex: 1 1 14rem; min-width: 0; }
.lesson-admin .row-actions { flex-wrap: wrap; margin-left: auto; }

.battle-compact .scene { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.battle-compact .enemy { order: -1; flex: none; padding-top: 0; }
.battle-compact .enemy .sprite { width: 56px; height: 56px; }
.battle-compact .enemy-status { flex: 1; min-width: 0; padding-right: 64px; }
.battle-compact .player-status { margin-top: 6px; }
.battle-compact .window { margin-top: 8px; padding: 10px 12px; }
.battle-compact .lemma { font-size: 28px; }
.battle-compact .chips { gap: 6px; }
.battle-compact fieldset { margin-top: 8px; }
.battle-compact .actions { gap: 4px; margin-top: 8px; }
.battle-compact .submit { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 3; margin-top: 8px; box-shadow: 0 0 0 3px var(--window-deep); }

.unlock-line { display: block; margin-top: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.unlock-line b { color: var(--gold); }

.continue { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; background: var(--gold); border-radius: var(--radius); color: var(--ink-on-gold); text-decoration: none; box-shadow: 0 0 0 2px var(--shade); }
.continue .icon { --icon: 48px; margin: 0; }
.continue .sprite { flex: none; width: 64px; height: 64px; background: var(--window-deep); border-radius: var(--radius); }
.continue b { font: 600 24px var(--display); }
.continue small { color: inherit; }
.course-card { display: flex; align-items: center; gap: 12px; margin-top: var(--space); padding: 10px 12px; background: var(--window-deep); border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.course-card > .sprite, .course-card > .icon { flex: none; --icon: 48px; width: 48px; height: 48px; margin: 0; }
.course-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.course-body .bar { display: block; }

.cheer { animation: cheer 0.5s ease; }
.xp-gain { display: flex; align-items: center; gap: var(--space); }
.xp-fill { animation: xp-fill 0.9s ease-out; }
.loot span { animation: pop 0.35s ease backwards; }
.loot span:nth-child(2) { animation-delay: 0.15s; }
.loot span:nth-child(3) { animation-delay: 0.3s; }
.level-up { text-align: center; }
.level-up h2 { margin-top: var(--space); font: 700 30px var(--sans); color: var(--gold); }
.level-up .icon { --icon: 64px; margin: 0 auto; animation: cheer 0.6s ease; }
.level-up .stat-row { justify-content: center; }
.unlocked .icon { --icon: 20px; vertical-align: -4px; }
@keyframes cheer { 40% { transform: scale(1.15); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes xp-fill { from { width: var(--from); } }

.avatar { position: relative; display: block; width: 96px; height: 96px; }
.avatar .sprite { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage { position: relative; display: flex; justify-content: center; margin-top: var(--space); padding: 8px; background: var(--window-deep); border: 2px solid var(--line); border-radius: var(--radius); }
.hero-stage .avatar { width: 128px; height: 128px; }
.wardrobe-link { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); text-decoration: none; }
.wardrobe-link .icon { --icon: 32px; margin: 0; }
.new-cosmetic { border-color: var(--gold); animation: pop 0.35s ease 0.45s backwards; }
.new-cosmetic .sprite { flex: none; width: 48px; height: 48px; }
.avatar.set-active { filter: drop-shadow(0 0 4px var(--gold)); }
.set-title { margin: 4px 0 0; color: var(--gold); text-align: center; font-weight: 700; }
.set-row .avatar { flex: none; width: 64px; height: 64px; }
.quest h2 { margin: 0; }
.quest p { margin: 6px 0; }
.quest .primary { width: 100%; }
.tier-pick { margin-top: 10px; }
.tier-pick .note { margin: 6px 0 0; }
.tier-meister { background: var(--gold); }
.tier-legende { background: var(--enemy); color: #fff; }
.tablet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.tablet-pieces { display: grid; grid-template-columns: repeat(6, 12px); gap: 2px; }
.tablet-pieces span { height: 12px; border: 1px solid var(--line); border-radius: 2px; }
.tablet-pieces .on { background: var(--gold); border-color: var(--gold); }
.wardrobe-slots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space); }
.wardrobe-slots button { flex: 1 1 22%; min-height: 40px; padding: 4px; font-size: 14px; border-width: 1px; }
.wardrobe-slots [aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); font-weight: 700; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: var(--space); }
.wardrobe-option { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 2px; }
.wardrobe-option .avatar { width: 64px; height: 64px; }
.wardrobe-option[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.wardrobe-option small { font-size: 12px; line-height: 1.2; }

@keyframes recoil { 25% { transform: translateX(10px); filter: brightness(2.5); } 60% { transform: translateX(-6px); } }
@keyframes lunge { 40% { transform: translateY(14px) scale(1.14); } }
@keyframes flash { 30% { box-shadow: inset 0 0 0 200px rgba(255, 70, 60, 0.4); } }
@keyframes vanish { to { opacity: 0; transform: scale(0.6) translateY(16px); } }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-48px); opacity: 0; } }

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

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.stock input { width: 56px; min-height: 36px; padding: 2px 6px; background: var(--field); border: 2px solid var(--line); border-radius: 6px; }
.reward-admin li { flex-wrap: wrap; }
.reward-admin .row-actions { align-items: center; }

.check { display: block; padding: 6px 0; font-size: 15px; }
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; }
#test-clock { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }
#test-clock.timer-low { color: var(--bad); }
.test-enemy { display: flex; flex-direction: column; align-items: center; margin: 8px 0; }
.test-enemy .sprite { width: 96px; height: 96px; }
.test-enemy small { color: var(--muted); }
.grade { margin: 0; color: var(--muted); font-family: inherit; font-size: 72px; font-weight: 700; line-height: 1.1; text-align: center; }
.grade-S { color: var(--gold); }
.grade-A, .grade-B { color: var(--good); }
.grade-E, .grade-F { color: var(--bad); }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 4px; margin: 12px 0; padding: 0; list-style: none; }
.badges-mini { grid-template-columns: repeat(5, 1fr); }
.badges-mini a { display: flex; justify-content: center; }
.goal-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-height: 0; padding: 0; background: none; border: 0; font-size: 12px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
h2 a { color: inherit; text-decoration: none; }
.subnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: var(--space); }
.subnav a { padding: 8px 4px; border: 2px solid var(--muted); border-radius: var(--radius); color: var(--muted); font-size: 14px; text-align: center; text-decoration: none; }
.subnav [aria-current] { border-color: var(--gold); background: var(--gold); color: var(--ink-on-gold); font-weight: 700; }
.skill-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-top: var(--space); padding: 10px 12px; background: var(--window-deep); border: 2px solid var(--line); border-radius: var(--radius); }
.skill-card.unlearned { border-color: var(--muted); border-style: dashed; }
.skill-card.unlearned > .icon { filter: grayscale(1); opacity: 0.7; }
.skill-card > .icon { --icon: 32px; margin: 2px 0 0; }
.skill-card p { margin: 0; }
.skill-card > button, .skill-card > small { grid-column: 2; justify-self: start; min-height: 40px; }
.skill-text { font-size: 13px; color: var(--muted); }
.pips-rank { display: flex; gap: 3px; margin: 2px 0; }
.pips-rank span { width: 12px; height: 12px; border: 2px solid var(--gold); transform: rotate(45deg) scale(0.75); }
.pips-rank .on { background: var(--gold); }
.badge-icon { position: relative; display: block; width: 56px; height: 56px; margin: 0 auto 4px; background: var(--window-deep); border: 3px solid var(--muted); border-radius: 50%; }
.badge-icon .sprite { position: absolute; inset: 7px; width: 36px; height: 36px; }
.badge-ring-0 { border-color: #c98a53; }
.badge-ring-1 { border-color: #d6dbe4; }
.badge-ring-2, .badge-ring-single { border-color: var(--gold); }
.badge-ring-3 { border-color: #9fe9ff; }
.badge-ring-4 { border-color: #d59bff; }
.badge-ring-5 { border-color: #ff8fa3; }
.tier-none { filter: grayscale(1) brightness(0.45); }
.tier-0 { filter: grayscale(1) sepia(1) saturate(2.4) hue-rotate(-12deg) brightness(0.95); }
.tier-1 { filter: grayscale(1) brightness(1.35) contrast(1.05); }
.tier-2, .tier-single { filter: grayscale(1) sepia(1) saturate(5) hue-rotate(5deg) brightness(1.15); }
.tier-3 { filter: grayscale(1) sepia(1) saturate(2.5) hue-rotate(150deg) brightness(1.35); }
.tier-4 { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(225deg) brightness(1.3); }
.tier-5 { filter: grayscale(1) sepia(1) saturate(4) hue-rotate(310deg) brightness(1.25); }
.badge-fill { clip-path: inset(calc(100% - var(--fill)) 0 0 0); }
.badge-top { animation: badge-glow 2.4s ease-in-out infinite; }
.badge-top .sprite { animation: badge-shimmer 2.4s ease-in-out infinite; }
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 4px 1px rgba(159, 233, 255, 0.5); }
  50% { box-shadow: 0 0 16px 5px rgba(159, 233, 255, 0.9); }
}
@keyframes badge-shimmer {
  0%, 100% { filter: grayscale(1) sepia(1) saturate(2.5) hue-rotate(150deg) brightness(1.2); }
  50% { filter: grayscale(1) sepia(1) saturate(2.5) hue-rotate(195deg) brightness(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-top, .badge-top .sprite { animation: none; }
}

.challenge { display: block; margin-top: 8px; padding: 8px 12px; background: var(--window); border: 2px solid var(--gold); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.challenge small { display: block; color: var(--muted); }

.profile { margin-top: 12px; }
.profile h3 { margin: 0 0 4px; }
.profile-list { margin: 8px 0; padding: 0; list-style: none; }
.profile-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; }
.profile-row small { color: var(--muted); text-align: right; }

dialog.window { max-width: min(420px, calc(100vw - 32px)); margin: auto; color: inherit; }
dialog::backdrop { background: rgb(0 0 0 / 60%); }

.gear-buttons { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.hero-gear { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 8px; margin-top: var(--space); }
.hero-gear .hero-stage { flex: 1; margin-top: 0; align-items: center; }
.hero-center { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gear-hands { display: flex; justify-content: center; gap: 8px; }
.gear-column { display: flex; flex-direction: column; gap: 8px; }
.gear-slot { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; background: var(--window-deep); border: 2px solid var(--line); border-radius: var(--radius); }
.gear-slot .icon { --icon: 40px; margin: 0; }
.gear-slot.empty .icon { opacity: 0.15; filter: grayscale(1); }
.gear-slot.broken { border-color: var(--bad); }
.gear-slot.broken .icon { filter: grayscale(1); }
.gear-slot[aria-pressed="true"] { border-color: var(--gold); }
.gear-wear { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 4px; background: var(--rule); }
.gear-wear span { display: block; height: 100%; background: var(--gold); }
.gear-repair { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; }
.gear-cost { display: inline-flex; align-items: center; gap: 2px; }
.gear-cost .icon { --icon: 16px; margin: 0; }
.avatar.avatar-small { flex: none; width: 40px; height: 40px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hero-bar .avatar-small { width: 32px; height: 32px; margin: -2px -2px -2px -4px; }
.hero-bar:has(.avatar-small) { gap: 6px; padding-right: 8px; }
.hero-bar:has(.avatar-small) .bar { min-width: 32px; }
.avatar .sprite.mirrored { transform: scaleX(-1); }
.home-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); margin-top: var(--space); }
.home-tile { min-width: 0; gap: 8px; margin-top: 0; padding: 6px 10px; }
.home-tile span { min-width: 0; line-height: 1.2; }
.home-tile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tile br { display: none; }
#gold-bar b { color: var(--gold); }
.village-map { position: relative; margin-top: var(--space); aspect-ratio: 1 / 1; overflow: hidden; background: #3f6b3c; border: 2px solid var(--line); border-radius: var(--radius); }
.village-map[style] { background-size: cover; image-rendering: pixelated; }
.village-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.village-map path { fill: none; stroke: #a98f5f; stroke-width: 4; }
.map-building { position: absolute; display: flex; flex-direction: column; align-items: center; width: 30%; padding: 0; color: var(--text); background: none; border: 0; text-decoration: none; }
.map-building .sprite { width: 100%; height: auto; aspect-ratio: 1; }
.map-name { padding: 0 4px; font-size: 12px; line-height: 1.3; white-space: nowrap; background: var(--window-deep); border-radius: var(--radius-small); }
.map-name b { color: var(--gold); }
.map-building.unbuilt .sprite { filter: grayscale(1) brightness(0.6); }
.map-building[aria-pressed="true"] .map-name { color: var(--ink-on-gold); background: var(--gold); }
.map-building[aria-pressed="true"] .map-name b { color: inherit; }

/* Übungszeit je Tag, practice.js. Ein Balken je Tag, Höhe in Prozent, Wert im Titel. */
.practice-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; align-items: end; height: 120px; margin: 8px 0 0; }
.practice-chart li { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.practice-slot { display: flex; flex: 1; justify-content: center; align-items: flex-end; width: 100%; border-bottom: 1px solid var(--line); }
.practice-bar { display: block; width: 60%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--gold); }
.practice-chart small { color: var(--muted); font-size: 12px; }

/* Gruppe eines Worts im Vokabelheft, etwa a-Konj. */
.word-group { padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); white-space: nowrap; }

/* Übung Formen, forms.js */
.form-task { margin: 12px 0 0; font-size: 20px; font-weight: 700; }
.paradigm { border-collapse: collapse; margin: 8px 0 12px; }
.paradigm th { padding: 2px 16px 2px 0; text-align: left; font-weight: 400; color: var(--muted); }
.paradigm td { padding: 2px 0; font-family: var(--serif); }
.paradigm .asked td, .paradigm .asked th { color: var(--gold); font-weight: 700; }
.form-mastery .list li { padding: 4px 0; }
.pick-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pick-title { flex: 0 0 100%; font-size: 13px; color: var(--muted); }
.pick-group .pick { min-height: 40px; padding: 6px 12px; }
.pick-group .pick.picked { border-color: var(--gold); background: var(--gold); color: var(--ink-on-gold); font-weight: 700; }
.accent-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.accent-keys .pick { min-width: 44px; min-height: 44px; padding: 4px; font-size: 18px; }

/* Schatzkisten im Gegnerbaum, schmal, damit sie neben den Gegnern Platz haben. */
.node.node-chest { width: 48px; padding: 4px 0; }
.node-chest .icon { --icon: 28px; margin: 0; }
.node-chest.locked .icon { filter: brightness(0) opacity(0.6); }

/* Lückentexte (cloze.js): Felder im Fließtext, die Grundform klein dahinter. */
.cloze-pick { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.cloze-text p { line-height: 2.2; }
.gap { white-space: nowrap; }
.gap-input { width: auto; min-width: 5ch; max-width: 100%; padding: 2px 6px; font: inherit; border: 2px solid var(--line); border-radius: 6px; background: var(--window-deep); color: var(--text); }
.gap-input.gap-right { border-color: var(--good); }
.gap-input.gap-wrong { border-color: var(--bad); text-decoration: line-through; }
.gap-solution { color: var(--gold); }
.gap-base { color: var(--muted); }
.cloze-findings .good { color: var(--good); }
.cloze-findings .bad { color: var(--bad); text-align: right; }
.field textarea { font: 15px/1.5 monospace; resize: vertical; }

/* Überschrift je Unit in langen Lektionslisten (Karte, Test, Bibliothek). */
.unit-head { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lesson-admin li.unit-head { display: block; padding: 10px 0 0; border: 0; }
.form-mastery > summary { cursor: pointer; }
.form-mastery > summary b { font: 600 18px/1.4 var(--serif); }
.form-mastery > summary small { color: var(--muted); white-space: nowrap; }
.form-mastery > summary .pips { display: inline; }
.lesson-admin li.moving { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Lektionseditor: eingeklappte Vokabeln, Suche und Speichern-Leiste über der unteren Leiste. */
.word-card { padding: 0; }
.word-card > details { padding: 10px 12px; }
.word-summary { cursor: pointer; overflow-wrap: anywhere; }
.word-summary span { color: var(--muted); }
.word-summary small { color: var(--muted); white-space: nowrap; }
.word-card details[open] > .word-summary { margin-bottom: 4px; }
.word-search { margin-top: var(--space); }
.sticky-actions {
  position: sticky;
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  gap: 8px;
  margin-top: var(--space);
  padding: 8px;
  background: var(--window);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.35);
}
.sticky-actions button { flex: 1; margin: 0; }

/* Übungen an der Lektionskarte: Knöpfe mit Symbol statt kleiner Textlinks, sie brechen in Reihen um. */
.lesson-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.lesson-action { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 6px; border: 2px solid var(--line); border-radius: 6px; background: var(--window-deep); color: var(--text); font-size: 13px; text-decoration: none; }
.lesson-action .icon { --icon: 20px; margin: 0; flex: none; }
.lesson-action span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.lesson-action small { display: block; font-size: 12px; color: var(--muted); }
.quick-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick-pick .pick { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; }
.quick-pick .pick.picked { border-color: var(--gold); background: var(--gold); color: var(--ink-on-gold); font-weight: 700; }

/* Spracheingabe (voice.js): Mikrofon-Knopf rechts am Feld der freien Eingabe. */
.voice-row { display: flex; align-items: stretch; gap: 6px; margin-top: 4px; }
.voice-row input { flex: 1; min-width: 0; margin-top: 0; }
.mic { flex: none; width: 48px; min-height: 44px; padding: 0; display: grid; place-items: center; }
.mic.listening { border-color: var(--bad); background: var(--bad); color: var(--ink-on-gold); animation: pulse 1s ease-in-out infinite; }
.voice-status { display: block; min-height: 1em; margin-top: 4px; color: var(--gold); }
@keyframes pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .mic.listening { animation: none; } }

/* Testumgebung: Band oben, siehe main.js. */
.test-env body::before {
  content: "Testumgebung";
  position: fixed;
  top: env(safe-area-inset-top);
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
  background: var(--bad);
  color: var(--ink-on-gold);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
/* Vorrat an Rohstoffen und Kräutern: Ein Tipp erklärt, woher sie kommen und wofür man sie braucht. */
.resource-chip { min-height: 40px; padding: 2px 10px 2px 6px; color: inherit; font: inherit; font-size: 18px; }
.resource-chip:hover { border-color: var(--gold); }
.resource-uses { padding-left: 20px; }
.resource-uses li + li { margin-top: 4px; }
.loot-chip { min-height: 36px; padding: 2px 10px 2px 4px; font-size: inherit; }
/* Ein Preis, für den der Vorrat nicht reicht: blass, aber antippbar, die fehlende Sorte in Rot. */
.gear-repair.short { opacity: 0.6; }
.gear-cost.missing { color: var(--bad); }
.resource-missing { display: grid; gap: var(--space); padding: 0; list-style: none; }
.resource-missing li { display: flex; align-items: center; gap: var(--space); }
.upgrade-later { align-self: center; color: var(--muted); font-size: 13px; }
.node.node-door { width: 56px; padding: 4px 0; }
.node-door .icon { --icon: 32px; margin: 0; }
.node-door.locked .icon { filter: grayscale(1) opacity(0.6); }

/* Lektionspfad auf der Startseite und der Kursseite: ein Ausschnitt der Lektionen, verbunden durch eine Linie. */
.path-title { margin-bottom: 0; }
.path-title a { color: inherit; text-decoration: none; }
.lesson-path { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.lesson-path ol { display: flex; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lesson-path li { position: relative; flex: 1 1 0; min-width: 0; }
.lesson-path li + li::before { content: ""; position: absolute; top: 21px; right: 50%; width: 100%; height: 4px; background: var(--rule); }
.lesson-path li.walked + li::before { background: var(--good); }
.path-lesson { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 0; padding: 0; color: var(--text); background: none; border: 0; text-decoration: none; cursor: pointer; }
.path-lesson small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.path-dot { display: grid; place-items: center; width: 44px; height: 44px; font: 700 16px var(--sans); background: var(--window-deep); border: 3px solid var(--line); border-radius: 50%; }
.path-lesson.done .path-dot { color: var(--night); background: var(--good); border-color: var(--good); font-size: 20px; }
.path-lesson.current .path-dot { color: var(--ink-on-gold); background: var(--gold); border-color: var(--gold); animation: next-glow 1.8s ease-in-out infinite; }
.path-lesson.selected .path-dot { outline: 3px solid var(--text); outline-offset: 3px; }
.path-lesson.selected small, .path-lesson.current small { color: var(--text); font-weight: 700; }
.path-arrow { flex: none; width: 36px; min-height: 44px; padding: 0; font-size: 24px; line-height: 1; }
.path-count { margin-top: 4px; text-align: center; }

/* Eigenheiten der Gegner (TRAITS): im Baum vor dem Rang, im Kampf als Marke mit kurzer Erklärung. */
.node .trait { color: var(--bad); font-weight: 700; }
.rank.trait { color: #fff; background: #a13a2d; }
.trait-note { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.gold-flag { display: block; margin-top: 4px; color: var(--bad); }
