:root {
  --bg: #0a0f1c;
  --panel: #151f36;
  --panel2: #1c2945;
  --line: #2a3a5e;
  --text: #eaf0ff;
  --muted: #8d9cbc;
  --accent: #ffcc33;
  --accent2: #ff8a00;
  --ok: #33e6a0;
  --bad: #ff5470;
  --wire: #8fb6ff;
  --cyan: #4fd8ff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #1d2b55 0%, transparent 70%), var(--bg); min-height: 100vh; }
button { font: inherit; cursor: pointer; color: inherit; }
sub { font-size: 72%; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px;
  background: rgba(8, 12, 24, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { background: none; border: 0; font-weight: 800; font-size: 20px; letter-spacing: .5px; padding: 0; }
.logo { color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 15px; }
.stat b { color: var(--accent); }

main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 80px; }

/* Buttons */
.btn { background: var(--panel2); border: 1px solid var(--line); padding: 8px 16px; border-radius: 12px; transition: transform .08s, box-shadow .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--muted); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #1a1200; border: 0; font-weight: 800; box-shadow: 0 6px 20px rgba(255, 170, 0, .25); }
.btn.big { padding: 12px 22px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 4px 10px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .4; cursor: default; }

/* Karte */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #0b1330, #16224a 70%, #1e2b52); }
.skyline { display: block; width: 100%; height: auto; }
.skyline .star { fill: #cfe0ff; opacity: .7; }
.skyline .moon { fill: #fff3c4; filter: drop-shadow(0 0 12px #fff3c4); }
.skyline .bld { fill: #0f1730; stroke: #26355e; }
.skyline .bld.on { fill: #172447; }
.skyline .win { fill: #1d2a4d; }
.skyline .win.lit { fill: #ffd54a; filter: drop-shadow(0 0 4px #ffb300); }
.skyline .ground { fill: #070b16; }
.skyline .bldlbl { fill: #56679a; font-size: 12px; text-anchor: middle; }
.hero-txt { position: absolute; left: 24px; top: 18px; max-width: 470px; }
.hero-txt h1 { margin: 0 0 4px; font-size: 28px; text-shadow: 0 2px 12px #000; }
.hero-txt p { margin: 0 0 12px; color: #c4d2f5; text-shadow: 0 1px 6px #000; }
@media (max-width: 760px) { .hero-txt { position: static; padding: 14px; max-width: none; } }

.worlds { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.world { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.world.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 40px rgba(255, 190, 0, .08); }
.world.locked { opacity: .45; }
.world-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.world-head h2 { margin: 0; font-size: 20px; }
.wnum { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cyan); }
.wmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.exam { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; }
.wstars { color: var(--accent); font-weight: 700; }
.path { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.conn { width: 18px; height: 3px; background: var(--line); margin-top: 27px; border-radius: 2px; }
.node { display: flex; flex-direction: column; align-items: center; width: 92px; background: none; border: 0; padding: 0; }
.node .nicon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: var(--panel2); border: 3px solid var(--line); transition: transform .12s; }
.node:hover:not(:disabled) .nicon { transform: scale(1.08); }
.node.done .nicon { border-color: var(--ok); background: #123a33; }
.node.next .nicon { border-color: var(--accent); background: #3a2f0e; animation: pulse 1.6s infinite; }
.node.boss .nicon { border-radius: 18px; }
.node .nstars { color: var(--accent); font-size: 13px; letter-spacing: 1px; margin-top: 3px; }
.node .nname { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; margin-top: 2px; }
.lockednode { opacity: .5; cursor: default; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 51, .55); } 70% { box-shadow: 0 0 0 14px rgba(255, 204, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 204, 51, 0); } }

/* Spiel */
.play { display: flex; flex-direction: column; gap: 14px; }
.hud { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; }
.hud-title { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.hud-title .muted { font-size: 13px; }
.dots { display: flex; gap: 5px; }
.dot { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.dot.done { background: var(--ok); }
.dot.cur { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hearts { font-size: 22px; letter-spacing: 2px; }
.heart { color: var(--bad); text-shadow: 0 0 8px rgba(255, 84, 112, .6); display: inline-block; transition: all .3s; }
.heart.lost { color: #3a2533; text-shadow: none; transform: scale(.8); }
.combo-on { color: var(--accent2); font-weight: 800; display: inline-block; animation: pop .3s; }
.timer { font-family: ui-monospace, monospace; font-size: 18px; }
.timer.low { color: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .4; } }

.board { background: radial-gradient(circle at 1px 1px, #1d2a48 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(180deg, #0c1428, #0e1830);
  border: 1px solid var(--line); border-radius: 18px; padding: 10px; overflow-x: auto; min-height: 200px; display: flex; justify-content: center; align-items: center; }
.board svg { max-width: 100%; height: auto; }
.board.zap { animation: zap .5s; }
@keyframes zap { 0%, 100% { transform: none; filter: none; } 20% { transform: translateX(-6px); filter: brightness(1.8) hue-rotate(-30deg); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } }

.schematic .wire { stroke: var(--wire); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.schematic .sym { stroke: #dfe8ff; stroke-width: 2.4; fill: #0e1830; }
.schematic .lampbody { fill: #1a2440; }
.schematic .glow { fill: #ffd54a; filter: blur(9px); transition: opacity .4s; }
.schematic .glow.overload { fill: #ff4040; animation: flick .25s infinite; }
@keyframes flick { 50% { opacity: .3; } }
.schematic .arrowhead { fill: #dfe8ff; }
.schematic .dot { fill: var(--wire); }
.schematic .term { fill: #0e1830; stroke: #dfe8ff; stroke-width: 2; }
.schematic .lbl { fill: #dfe8ff; font-size: 15px; font-family: "Cambria", "Times New Roman", serif; font-style: italic; }
.schematic .plus { fill: var(--accent); font-size: 16px; font-weight: 700; }
.schematic .ref-arrow { fill: #ff6b8a; }
.schematic .ref-line { stroke: #ff6b8a; stroke-width: 2; }
.schematic .ref-lbl { fill: #ff8fa6; font-size: 15px; font-weight: 700; font-family: "Cambria", serif; font-style: italic; }
.schematic .mesh { stroke: var(--cyan); stroke-width: 2; fill: none; }
.schematic .mesh-head { fill: var(--cyan); }
.schematic .mesh-lbl { fill: var(--cyan); font-size: 12px; font-style: italic; }
.schematic .node-badge { fill: #1fa774; }
.schematic .node-lbl { fill: #fff; font-size: 12px; font-weight: 700; }
.schematic .hit { stroke: transparent; stroke-width: 16; }
.schematic .hl { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 5; }
.schematic .flow { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; animation: flow linear infinite; }
.schematic .flow.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -16; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.panel.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.prompt { font-size: 18px; margin-bottom: 14px; }
.tag-ex { display: inline-block; background: var(--cyan); color: #00202b; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 8px; margin-bottom: 8px; letter-spacing: .5px; }

/* Messgeräte */
.meters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.meter { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, #2b3550, #1a2238); border: 1px solid #3a4870; border-radius: 14px; padding: 8px 10px 6px; min-width: 170px; }
.mlabel { font-size: 15px; color: var(--muted); font-style: italic; font-family: "Cambria", serif; }
.mbody { display: flex; align-items: center; gap: 6px; background: #0b1a12; border-radius: 8px; padding: 4px 8px; box-shadow: inset 0 2px 6px #000; }
.mbody input, .lcd { width: 110px; background: transparent; border: 0; outline: 0; color: #7dffb5; font: 24px ui-monospace, "Consolas", monospace; text-shadow: 0 0 8px rgba(125, 255, 181, .55); }
.mbody input::placeholder { color: #2f5a42; }
.lcd { display: inline-block; min-width: 90px; }
.munit { color: #7dffb5; opacity: .7; font-family: ui-monospace, monospace; }
.meter:has(input.ok) { border-color: var(--ok); box-shadow: 0 0 14px rgba(51, 230, 160, .3); }
.meter:has(input.bad) { border-color: var(--bad); }
.mbody input.shown, .mcell.shown { color: var(--cyan); text-shadow: 0 0 8px rgba(79, 216, 255, .5); }
.mbody input.bad { color: #ff9aac; text-shadow: none; }
.mmsg { font-size: 13px; color: #ff9aac; max-width: 260px; }

.choices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.choice { background: linear-gradient(180deg, #273352, #1b2440); border: 2px solid #3a4870; border-radius: 14px; padding: 14px 22px; font-size: 20px; font-weight: 700; min-width: 110px; transition: transform .1s; }
.choice:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); }
.choice.ok { border-color: var(--ok); background: #123a33; }
.choice.bad { border-color: var(--bad); background: #3a1424; opacity: .7; }

.slider-box { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; flex-wrap: wrap; }
.slabel { font-style: italic; font-family: "Cambria", serif; font-size: 18px; min-width: 36px; }
.slider-box input[type=range] { flex: 1; min-width: 200px; accent-color: var(--accent); height: 28px; }
.sval { font: 24px ui-monospace, monospace; color: var(--accent); min-width: 90px; }

.matrix { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bracket { display: grid; gap: 6px; padding: 6px 10px; border-left: 3px solid var(--muted); border-right: 3px solid var(--muted); border-radius: 10px; }
.mxl { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.mcell { width: 72px; background: #0b1a12; border: 1px solid #2e4a3b; border-radius: 8px; color: #7dffb5; font: 18px ui-monospace, monospace; text-align: center; padding: 6px 4px; }
.mcell.ok { border-color: var(--ok); }
.mcell.bad { border-color: var(--bad); color: #ff9aac; }
.unk { padding: 6px 4px; color: var(--cyan); font-style: italic; text-align: center; }
.op { font-size: 22px; color: var(--muted); }
.mmsgs { font-size: 13px; color: #ff9aac; margin-bottom: 10px; }
table.mx { border-collapse: collapse; margin: 8px 0; font: 16px ui-monospace, monospace; }
table.mx td { padding: 2px 10px; text-align: right; }
table.mx td.mx-u { color: var(--cyan); font-style: italic; }

.measure { padding: 8px 12px; border-radius: 10px; margin: 8px 0; font-size: 15px; background: var(--panel2); }
.measure.ok { border-left: 4px solid var(--ok); }
.measure.bad { border-left: 4px solid var(--bad); }
.nudge { margin: 8px 0; color: #ffd98a; font-size: 15px; }
.solution { margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: #12301f; border: 1px solid #1f6b48; animation: pop .3s; }
.solution.bad { background: #2e1622; border-color: #7a2c48; }
.solution b { color: var(--ok); }
.solution.bad > b:first-child { color: #ff9aac; }
.capsule { margin: 10px 0; padding: 10px; background: #0e1830; border: 1px dashed var(--accent); border-radius: 14px; text-align: center; animation: pop .5s; }
.cap-title { color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.capsule svg { max-width: 360px; height: auto; }

.sandbox { display: flex; flex-direction: column; gap: 8px; }
.meter.live .lcd { width: auto; }
.goals { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.goals li { padding: 8px 12px 8px 38px; position: relative; background: var(--panel2); border-radius: 10px; }
.goals li::before { content: '○'; position: absolute; left: 14px; color: var(--muted); }
.goals li.done { color: var(--ok); }
.goals li.done::before { content: '✓'; color: var(--ok); }
.plot { width: 100%; max-width: 420px; background: #0c1428; border-radius: 12px; border: 1px solid var(--line); }
.plot .axis { stroke: var(--muted); }
.plot .pdot { fill: var(--cyan); }
.plot .pcur { fill: var(--accent); }
.plot .ptxt { fill: var(--muted); font-size: 11px; }

/* Effekte */
.spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 50; box-shadow: 0 0 8px var(--accent);
  animation: spark .75s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.floattxt { position: absolute; transform: translateX(-50%); color: var(--accent); font-weight: 900; font-size: 22px; pointer-events: none; z-index: 50; text-shadow: 0 0 10px rgba(255, 190, 0, .7);
  animation: floatup 1.2s ease-out forwards; }
@keyframes floatup { to { transform: translate(-50%, -60px); opacity: 0; } }
.pop { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fenster */
.overlay { position: fixed; inset: 0; background: rgba(3, 6, 14, .78); backdrop-filter: blur(4px); z-index: 40; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: linear-gradient(180deg, #1b2747, #121b33); border: 1px solid var(--accent); border-radius: 22px; padding: 22px; max-width: 780px; width: 100%; text-align: center; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.modal-title { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.world-intro h1 { margin: 6px 0 10px; font-size: 34px; }
.world-intro p { font-size: 18px; color: #c9d6f7; }
.skills-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; text-align: left; }
.skill { background: var(--panel2); border: 1px solid #3a4870; border-radius: 16px; padding: 16px; flex: 1 1 300px; max-width: 420px; }
.skill.locked { opacity: .5; }
.sicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #1a1200; font-weight: 900; font-size: 22px; margin-bottom: 8px; }
.skill h3 { margin: 0 0 6px; }
.skill p { margin: 6px 0; font-size: 15px; color: #d4def7; }
.sformula { background: #0b1324; border-radius: 10px; padding: 10px; font: 17px "Cambria", "Times New Roman", serif; font-style: italic; text-align: center; color: var(--accent); margin: 8px 0; }
.sformula.big { font-size: 24px; margin: 14px 0 18px; }
.skill .sex { color: #9fe8c6; }
.skill .strap { color: #ffc2cf; }
.skillgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.skillgrid .skill { max-width: none; }

/* Ergebnis */
.result { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px 20px; margin-top: 20px; }
.res-title { font-size: 30px; font-weight: 900; }
.bigstars { font-size: 64px; margin: 10px 0; }
.bstar { color: #2b3756; display: inline-block; }
.bstar.on { color: var(--accent); text-shadow: 0 0 20px rgba(255, 200, 0, .8); animation: starin .5s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes starin { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.res-xp { font-size: 26px; color: var(--accent); font-weight: 800; }
.unlock { color: var(--ok); font-weight: 700; font-size: 18px; }

/* Testmodus */
.btn.on { border-color: var(--cyan); color: var(--cyan); }
.testbanner { margin-top: 10px; background: rgba(79, 216, 255, .15); border: 1px solid var(--cyan); color: var(--cyan); border-radius: 10px; padding: 6px 10px; font-size: 14px; }

/* Bosse */
.bossbar { --npc: var(--accent); position: relative; display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--npc) 18%, var(--panel)), var(--panel));
  border: 1px solid var(--npc); border-radius: 16px; padding: 10px 14px; }
.bossbar.hidden { display: none; }
.npc-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--npc, #888) 30%, #0b1324); border: 3px solid var(--npc, #888); flex: none; }
.npc-av.big { width: 64px; height: 64px; font-size: 36px; }
.npc-av.huge { width: 110px; height: 110px; font-size: 64px; margin: 0 auto 10px; box-shadow: 0 0 40px color-mix(in srgb, var(--npc) 50%, transparent); animation: float 2.4s ease-in-out infinite; }
.npc-av.hit { animation: hitshake .45s; }
@keyframes hitshake { 20% { transform: translateX(-8px) rotate(-8deg); filter: brightness(2); } 50% { transform: translateX(8px) rotate(6deg); } 80% { transform: translateX(-3px); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.npc-info { flex: 1; min-width: 160px; }
.hpbar { height: 12px; background: #2a1420; border-radius: 6px; overflow: hidden; margin-top: 4px; border: 1px solid #4a2436; }
.hpfill { height: 100%; background: linear-gradient(90deg, #ff3d6b, #ff8a00); transition: width .5s cubic-bezier(.2, 1.4, .4, 1); }
.bubble { position: absolute; right: 14px; top: -14px; transform: translateY(-100%) scale(.8); opacity: 0; background: #fff; color: #1a1f33; padding: 8px 12px; border-radius: 12px; max-width: 360px;
  font-weight: 600; font-size: 14px; pointer-events: none; transition: all .25s; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); z-index: 5; }
.bubble.show { opacity: 1; transform: translateY(-100%) scale(1); }
.bubble.taunt { background: #ffe1e7; }
.bubble.hit { background: #e1fff0; }
.npc-line { --npc: var(--accent); display: flex; gap: 12px; align-items: center; text-align: left; margin: 0 auto 14px; max-width: 620px; }
.speech { background: var(--panel2); border: 1px solid var(--npc, var(--line)); border-radius: 14px; padding: 10px 14px; }
.speech.big { font-size: 20px; margin: 14px 0; font-style: italic; }
.boss-intro { border-color: var(--npc); }
.boss-intro h1 { margin: 0; font-size: 32px; }

/* Arena */
.arena-setup { text-align: center; max-width: 820px; margin: 0 auto; }
.arena-setup h1 { font-size: 36px; margin: 10px 0; }
.arena-modes, .rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.card-btn { background: linear-gradient(180deg, #23304f, #182238); border: 2px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; transition: transform .12s, border-color .2s; }
.card-btn:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--accent); }
.card-btn:disabled { opacity: .45; cursor: default; }
.card-btn h3 { margin: 6px 0; }
.am-icon { font-size: 42px; }
.am-best { margin-top: 8px; color: var(--accent); font-size: 14px; }
.reward-title { font-size: 20px; font-weight: 800; text-align: center; color: var(--accent); }
.floor { color: var(--accent); font-weight: 800; margin-right: 6px; }
.shield { margin-left: 6px; font-size: 18px; }
.arena-stats { display: flex; justify-content: center; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.arena-stats div { background: var(--panel2); border-radius: 14px; padding: 10px 20px; display: flex; flex-direction: column; }
.arena-stats span { color: var(--muted); font-size: 13px; }
.arena-stats b { font-size: 28px; color: var(--accent); }

/* Lernfragen: Methodenwahl, Schätzen, Regel-Check */
.learnq { margin: 12px 0; padding: 12px 14px; border: 2px dashed #3a4870; border-radius: 14px; background: rgba(79, 216, 255, .05); }
.lq-q { font-weight: 700; margin-bottom: 10px; }
.lq-icon { font-size: 20px; margin-right: 4px; }
.lq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-opt { background: linear-gradient(180deg, #273352, #1b2440); border: 2px solid #3a4870; border-radius: 12px; padding: 8px 14px; font-weight: 600; transition: transform .1s; }
.lq-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--cyan); }
.lq-opt.ok { border-color: var(--ok); background: #123a33; }
.lq-opt.bad { border-color: var(--bad); background: #3a1424; }
.lq-opt:disabled { cursor: default; }
.lq-fb { margin-top: 8px; color: var(--muted); }
.lq-fb:empty { display: none; }
.lq-done { margin: 8px 0; padding: 6px 12px; border-radius: 10px; background: var(--panel2); color: var(--muted); font-size: 14px; }
.lq-done.ok { border-left: 4px solid var(--ok); }
.lq-done.bad { border-left: 4px solid var(--accent2); }
.skill-link { margin-left: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--cyan); background: rgba(79, 216, 255, .1); color: var(--cyan); font-size: 13px; font-weight: 600; vertical-align: middle; }
.skill-link:hover { background: rgba(79, 216, 255, .25); }

/* Boss-Grafiken (SVG) und Stimmungen */
.npc-av { overflow: hidden; padding: 3px; }
.npc-av .boss-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.boss-svg .mt, .boss-svg .mh { display: none; }
.npc-av.taunt .mi, .npc-av.hit .mi { display: none; }
.npc-av.taunt .mt, .npc-av.hit .mh { display: inline; }
.npc-av.taunt { animation: laugh .5s 2; }
@keyframes laugh { 30% { transform: translateY(-5px) rotate(-6deg) scale(1.08); } 70% { transform: translateY(-2px) rotate(6deg) scale(1.08); } }
.bossbar .npc-av { width: 66px; height: 66px; animation: float 2.4s ease-in-out infinite; }
.bossbar .npc-av.taunt { animation: laugh .5s 2; }
.bossbar .npc-av.hit { animation: hitshake .45s; }
.npc-av.huge { width: 140px; height: 140px; }
.npc-av.mini { width: 56px; height: 56px; border-radius: 18px; }
.npc-av.silhouette { background: #0b1324; }
.npc-av.silhouette .boss-svg { filter: brightness(0) drop-shadow(0 0 4px var(--npc)); opacity: .9; }
.npc-av.silhouette { position: relative; }
.npc-av.silhouette::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--npc); font-weight: 900; font-size: 60%; text-shadow: 0 0 8px var(--npc); }
.npc-av.mini.silhouette::after { font-size: 26px; }
.npc-av.big.silhouette::after { font-size: 30px; }
.npc-av.huge.silhouette::after { font-size: 64px; }
.node { position: relative; }
.node .npc-av.mini { transition: transform .15s; }
.node:hover:not(:disabled) .npc-av.mini { transform: scale(1.08) rotate(-3deg); }
.node.next .npc-av.mini { animation: pulse 1.6s infinite; }
.node.lockednode .npc-av.mini { opacity: .55; }

/* Schwierigkeitsstufen */
.tier { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.tier.t1 { color: #9be08b; border-color: #3f7a3a; background: #12261a; }
.tier.t2 { color: #8fd3ff; border-color: #2f6a8f; background: #0f2233; }
.tier.t3 { color: #ffb36b; border-color: #a0521a; background: #2e1a0c; }
.tier.t4 { color: #ff7a93; border-color: #a01a3a; background: #2e0c16; animation: danger 1.2s ease-in-out infinite; }
@keyframes danger { 50% { box-shadow: 0 0 10px #ff3d6b; } }
.node .tier { position: absolute; top: -6px; right: 6px; padding: 0 4px; font-size: 11px; }
.tier-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; margin: 4px 0 16px; font-size: 13px; }
.tier-legend .muted { margin-right: 8px; }

/* Vorfreude: Gerüchte, Cliffhanger, Album */
.teaser { display: flex; gap: 10px; align-items: center; margin: 10px 0 4px; padding: 6px 12px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.teaser b { color: var(--text); }
.teaser.done { border-style: solid; }
.cliff { display: flex; gap: 14px; align-items: center; text-align: left; max-width: 620px; margin: 14px auto; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, #2a1830, #151f36); border: 2px solid #6a3a7a; font-size: 17px; }
.cliff-k { font-size: 13px; font-weight: 800; color: #ff9ad5; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.acard { background: var(--panel); border: 2px solid var(--npc); border-radius: 18px; padding: 16px; text-align: center; }
.acard.locked { border-style: dashed; border-color: var(--line); }
.acard h3 { margin: 4px 0 0; }
.atease { font-style: italic; color: var(--muted); font-size: 14px; }
.abar { height: 8px; border-radius: 4px; background: #0b1324; margin: 10px 0 2px; overflow: hidden; }
.abar div { height: 100%; background: var(--npc); }
.small { font-size: 12px; }
.quotes { text-align: left; padding-left: 16px; margin: 8px 0 0; font-size: 13px; max-height: 180px; overflow: auto; }
.quotes li { margin: 3px 0; }
.schematic .src-line { stroke: #b9c7e6; stroke-width: 1.6; }
.schematic .src-arrow { fill: #b9c7e6; }
.disclaimer { max-width: 900px; margin: 30px auto 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }

#testmode[hidden] { display: none !important; }
