:root {
  --bg: #0b0a12;
  --frame: #1b1727;
  --panel: #141120;
  --line: #2e2842;
  --verb: #7fd1c7;
  --verb-hover: #ffe08a;
  --verb-active: #ffb347;
  --text: #e8e3d3;
  --muted: #8a8499;
  --slot: #1f1a30;
  --slot-border: #3a3352;
  --font: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { display: flex; align-items: center; justify-content: center; overflow: hidden; }

#game {
  width: min(960px, 100vw, max(320px, calc((100vh - 236px) * 1.7778)));
  background: var(--frame);
  border: 2px solid #000;
  box-shadow: 0 0 0 2px #3a3352, 0 10px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

#scene-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
#scene {
  display: block; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
  cursor: crosshair;
}

#label {
  position: absolute; transform: translateX(-50%);
  padding: 1px 6px; background: rgba(0, 0, 0, 0.75); color: var(--verb-hover);
  font: bold 13px var(--font); white-space: nowrap; pointer-events: none;
  border: 1px solid #3a3352;
}

#overlay { z-index: 30; }
#game { position: relative; }
#fade { z-index: 4; }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.26s; }
#fade.on { opacity: 1; }

#toast {
  position: absolute; left: 50%; top: 10px; transform: translate(-50%, -60px);
  background: #1b1727; border: 2px solid var(--verb-active); color: var(--text);
  padding: 6px 14px; font: bold 13px var(--font); transition: transform 0.25s; pointer-events: none;
  max-width: 90%; text-align: center;
}
#toast.on { transform: translate(-50%, 0); }
.abgelegt { position: fixed; z-index: 60; pointer-events: none; background: rgba(27, 23, 39, .94); border: 1px solid #ffd166; color: var(--text, #eee);
  font: bold 12px var(--font); padding: 4px 9px; text-align: center; max-width: 220px; animation: abgelegt 2.2s ease-out forwards; }
.abgelegt small { display: block; font-size: 11px; color: #ffd166; font-weight: normal; }
@keyframes abgelegt { 0% { opacity: 0; transform: translateY(8px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

#overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(30, 22, 48, 0.96), rgba(5, 4, 10, 0.98));
  text-align: center; padding: 16px;
}
#overlay[hidden] { display: none; }

.title .logo { font: bold clamp(34px, 8vw, 72px) var(--font); letter-spacing: 6px; color: var(--verb); text-shadow: 3px 3px 0 #000, 0 0 18px rgba(127, 209, 199, 0.4); }
.title .logo span { display: block; color: var(--verb-active); font-size: 0.7em; letter-spacing: 14px; }
.title .sub { color: var(--muted); margin: 6px 0 18px; font-size: 14px; }
.title .help { color: var(--muted); font-size: 12px; max-width: 520px; margin: 16px auto 0; line-height: 1.4; }
.menu { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.menu button, #e-new {
  min-width: 260px; padding: 8px 18px; font: bold 16px var(--font);
  background: var(--panel); color: var(--verb); border: 2px solid var(--line); cursor: pointer;
}
.menu button:hover:not(:disabled), #e-new:hover { color: var(--verb-hover); border-color: var(--verb-active); }
.menu button:disabled { color: #4a4558; cursor: default; }

.card .kap { color: var(--verb-active); font: bold 18px var(--font); letter-spacing: 6px; text-transform: uppercase; }
.card h2 { color: var(--verb); font: bold clamp(22px, 4.5vw, 40px) var(--font); margin: 8px 0; text-shadow: 2px 2px 0 #000; }
.card p { color: var(--text); margin: 4px 0; }
.card .hint { color: var(--muted); font-size: 12px; margin-top: 18px; }

.ending { max-width: 640px; overflow-y: auto; max-height: 100%; }
.ending .studio { color: var(--text); font-size: 14px; line-height: 1.45; margin: 6px 0; }
.ending h2 { color: var(--verb-active); font: bold 40px var(--font); letter-spacing: 10px; margin: 14px 0 8px; }
.ending .credits p { color: var(--muted); font-size: 12px; margin: 3px 0; }
#e-new { margin-top: 14px; min-width: 200px; }

#action {
  height: 26px; line-height: 26px; padding: 0 10px; text-align: center;
  background: #000; color: var(--verb-hover); font: bold 15px var(--font);
  border-top: 2px solid #000; border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#dialog {
  min-height: 52px; padding: 6px 12px; background: #0f0d18;
  font: bold 15px/1.35 var(--font); border-bottom: 2px solid #000; cursor: pointer;
}
#who { opacity: 0.85; margin-right: 4px; }
#line { text-shadow: 1px 1px 0 #000; }

#panel { position: relative; display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 8px; background: var(--panel); min-height: 148px; }
#panel.talking #left, #panel.talking #inv { visibility: hidden; }

#verbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.verb {
  position: relative; padding: 9px 4px; font: bold 17px var(--font);
  background: transparent; color: var(--verb); border: 1px solid transparent; cursor: pointer; text-align: center;
}
.verb small { position: absolute; right: 5px; bottom: 2px; font-size: 11px; color: var(--muted); }
.verb:hover { color: var(--verb-hover); border-color: var(--line); }
.verb.active { color: var(--verb-active); border-color: var(--verb-active); background: rgba(255, 179, 71, 0.08); }

#sys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
#sys button {
  padding: 5px 2px; font: bold 11px var(--font); background: #1f1a30; color: var(--muted);
  border: 1px solid var(--line); cursor: pointer;
}
#sys button:hover { color: var(--verb-hover); }
#sys button.off { color: #b05050; }
#sys button.im-menue { display: none; }
#sys #btn-menu { color: var(--verb); }
.xfenster .menueliste { display: grid; gap: 6px; }
.xfenster .menueliste button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 7px 12px; text-align: left; background: #241e36; color: var(--verb); border: 1px solid #4a4268; cursor: pointer; font: 14px var(--font); }
.xfenster .menueliste button:hover, .xfenster .menueliste button:focus-visible { border-color: var(--verb-active); color: var(--verb-hover); }
.xfenster .menueliste b { font-size: 15px; }
.xfenster .menueliste span { color: var(--muted); font-size: 12px; }

#inv { display: grid; grid-template-columns: 1fr 26px; gap: 4px; }
#slots { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--slot); border: 1px solid var(--slot-border); cursor: pointer; padding: 3px 2px; min-height: 62px; overflow: hidden;
}
.slot.empty { cursor: default; opacity: 0.55; }
.slot:not(.empty):hover { border-color: var(--verb-hover); }
.slot.sel { border-color: var(--verb-active); background: #2c2240; box-shadow: inset 0 0 0 1px var(--verb-active); }
.slot canvas { width: 34px; height: 34px; image-rendering: pixelated; image-rendering: crisp-edges; }
.slot span {
  font: bold 11px/1.1 var(--font); color: var(--text); text-align: center;
  max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#inv-nav { display: flex; flex-direction: column; gap: 4px; }
#inv-nav button { flex: 1; background: var(--slot); color: var(--verb); border: 1px solid var(--slot-border); cursor: pointer; font-size: 12px; }
#inv-nav button:disabled { color: #3a3352; cursor: default; }

#choices {
  position: absolute; inset: 8px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
#choices[hidden] { display: none; }
.choice {
  text-align: left; padding: 5px 8px; font: bold 14px var(--font);
  background: transparent; color: var(--verb); border: none; cursor: pointer;
}
.choice:hover { color: var(--verb-hover); background: rgba(255, 224, 138, 0.06); }
.choice.bye { color: var(--muted); }

#tip {
  position: fixed; transform: translateY(-100%); z-index: 10; max-width: 220px;
  background: #000; border: 1px solid var(--verb-active); color: var(--text);
  padding: 4px 8px; font: 12px/1.3 var(--font); pointer-events: none;
}
#tip[hidden] { display: none; }
#tip b { color: var(--verb-hover); }


#progress {
  position: absolute; right: 8px; top: 8px; display: flex; align-items: center; gap: 6px;
  padding: 3px 8px; background: rgba(10, 8, 18, 0.82); border: 1px solid #3a3352;
  font: bold 11px var(--font); color: var(--text); pointer-events: none; z-index: 2;
}
#progress[hidden] { display: none; }
#progress b { color: var(--verb-active); font-weight: bold; }
#progress .bar { width: 70px; height: 6px; background: #241e36; border: 1px solid #3a3352; position: relative; overflow: hidden; }
#progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #36c9b2, #ffe08a); transition: width 0.8s cubic-bezier(.3, 1.4, .5, 1); }
#progress em { font-style: normal; color: var(--verb-hover); }
#progress.bump { animation: bump 0.7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.25); box-shadow: 0 0 18px rgba(255, 224, 138, 0.7); } 100% { transform: scale(1); } }

.roomtitle {
  position: absolute; left: 10px; top: 10px; padding: 4px 12px 5px; z-index: 2; pointer-events: none;
  background: rgba(10, 8, 18, 0.82); border-left: 3px solid var(--verb-active);
  font: bold 18px var(--font); color: var(--verb); text-shadow: 2px 2px 0 #000;
  animation: slidein 3.2s ease forwards;
}
.roomtitle small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
@keyframes slidein { 0% { transform: translateX(-120%); opacity: 0; } 12% { transform: translateX(0); opacity: 1; } 80% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-20px); opacity: 0; } }

.banner {
  position: absolute; left: 50%; top: 28%; z-index: 3; pointer-events: none; text-align: center;
  transform: translate(-50%, -50%); animation: stamp 1.9s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.banner b {
  display: block; font: bold clamp(22px, 5vw, 44px) var(--font); letter-spacing: 4px; color: var(--verb-hover);
  text-shadow: 3px 3px 0 #000, 0 0 20px rgba(255, 224, 138, 0.6); transform: rotate(-4deg);
}
.banner span { display: inline-block; margin-top: 4px; padding: 2px 8px; background: rgba(0, 0, 0, 0.7); font: bold 12px var(--font); color: var(--verb); }
.banner.gold b { color: #ffb347; text-shadow: 3px 3px 0 #000, 0 0 28px rgba(255, 179, 71, 0.9); }
@keyframes stamp {
  0% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
  14% { transform: translate(-50%, -50%) scale(0.92); opacity: 1; }
  22% { transform: translate(-50%, -50%) scale(1.04); }
  78% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(0.96); opacity: 0; }
}

.fly, .dragghost {
  position: fixed; left: 0; top: 0; width: 36px; height: 36px; z-index: 50; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 0 6px rgba(255, 224, 138, 0.8)) drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.6));
}
.dragghost { width: 44px; height: 44px; opacity: 0.9; }
.dragghost.target { filter: drop-shadow(0 0 10px #7ff0dc) drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.6)); transform-origin: center; }
.flashpt {
  position: fixed; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; z-index: 49; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, #ffe08a 40%, rgba(255, 224, 138, 0) 70%); animation: flashpt 0.7s ease-out forwards;
}
@keyframes flashpt { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(14); opacity: 0; } }

.slot { transition: transform 0.15s, border-color 0.15s; }
.slot:not(.empty):hover { transform: translateY(-2px); }
.slot.arriving canvas, .slot.arriving span { opacity: 0; }
.slot.new { animation: slotnew 1.4s ease-out; }
.slot.new canvas { animation: iconpop 0.6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes slotnew { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 138, 0.9), inset 0 0 14px rgba(255, 224, 138, 0.6); border-color: #ffe08a; } 100% { box-shadow: 0 0 0 10px rgba(255, 224, 138, 0), inset 0 0 0 rgba(255, 224, 138, 0); } }
@keyframes iconpop { 0% { transform: scale(0.3) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
.slot.sel canvas { animation: selwobble 1s ease-in-out infinite; }
@keyframes selwobble { 0%, 100% { transform: rotate(-6deg) scale(1.05); } 50% { transform: rotate(6deg) scale(1.05); } }
.slot.dragging { opacity: 0.35; }
.slot { touch-action: none; }

.verb { transition: transform 0.12s, color 0.12s; }
.verb:active { transform: scale(0.94); }
.verb.active { animation: verbon 0.3s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes verbon { 0% { transform: scale(0.85); } 100% { transform: scale(1); } }

.choice { animation: choicein 0.35s ease backwards; }
.choice:nth-child(2) { animation-delay: 0.05s; } .choice:nth-child(3) { animation-delay: 0.1s; } .choice:nth-child(4) { animation-delay: 0.15s; }
.choice:nth-child(5) { animation-delay: 0.2s; } .choice:nth-child(6) { animation-delay: 0.25s; }
@keyframes choicein { 0% { transform: translateX(-18px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.choice:hover { padding-left: 14px; transition: padding 0.12s; }

.card h2 span { display: inline-block; animation: letter 0.5s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes letter { 0% { transform: translateY(-30px) scale(1.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.card .wave { display: flex; gap: 3px; justify-content: center; height: 36px; align-items: center; margin: 6px 0 10px; }
.card .wave i { display: block; width: 4px; height: 6px; background: var(--verb); animation: bar 0.9s ease-in-out infinite alternate; }
@keyframes bar { 0% { height: 4px; opacity: 0.5; } 100% { height: 34px; opacity: 1; } }
.card .done { display: inline-block; margin-bottom: 14px; padding: 4px 12px; background: rgba(255, 179, 71, 0.12); border: 1px solid #ffb347; color: #ffb347; font: bold 13px var(--font); animation: stamp2 0.8s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp2 { 0% { transform: scale(2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.card .kap { animation: fadeup 0.6s ease backwards; }
.card p { animation: fadeup 0.8s 0.9s ease backwards; }
@keyframes fadeup { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.title .logo { animation: logo 3.2s ease-in-out infinite; }
@keyframes logo { 0%, 100% { text-shadow: 3px 3px 0 #000, 0 0 12px rgba(127, 209, 199, 0.3); } 50% { text-shadow: 3px 3px 0 #000, 0 0 30px rgba(127, 209, 199, 0.8); } }
.menu button { transition: transform 0.12s; }
.menu button:hover:not(:disabled) { transform: scale(1.04); }
.linkbtn { margin-top: 10px; background: none; border: none; color: var(--verb); font: bold 13px var(--font); text-decoration: underline; cursor: pointer; }

#help, #notizen, #karte { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); padding: 12px; }
#help[hidden], #notizen[hidden], #karte[hidden] { display: none; }
#help .win, #notizen .win, #karte .win {
  position: relative; max-width: 640px; max-height: 90vh; overflow-y: auto; padding: 14px 20px 18px;
  background: #15121f; border: 2px solid #3a3352; color: var(--text); font: 14px/1.45 var(--font);
  scrollbar-width: thin; scrollbar-color: #3a3352 transparent; animation: stamp2 0.3s ease;
}
#help h2, #notizen h2, #karte h2 { margin: 0 30px 6px 0; color: var(--verb-active); }
#help h3, #notizen h3 { margin: 14px 0 4px; color: var(--verb); font-size: 15px; }
#help p, #help li { margin: 4px 0; }
#help ul, #notizen ul { padding-left: 18px; margin: 4px 0; }
#help .x, #notizen .x, #karte .x {
  position: sticky; top: 0; float: right; margin: -4px -10px 0 0; width: 34px; height: 34px;
  background: #241e36; color: var(--verb-hover); border: 1px solid #3a3352; font-size: 18px; cursor: pointer; z-index: 1;
}
#help .x:hover, #notizen .x:hover, #karte .x:hover { background: #3a3352; }

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

body.sgz-buehne { position: fixed; inset: 0; overflow: hidden; }
body.sgz-buehne #game { flex: none; position: relative; z-index: 1; overflow: hidden; display: flex; flex-direction: column; transform-origin: center center; }
body.sgz-buehne #side { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.sgz-buehne #panel { flex: 1; min-height: 0; align-content: start; }
body.sgz-buehne #randbild { transition: background-image .6s; }
:root { --rb-na-farbe: rgba(6, 4, 14, 0.18); }

body.sgz-buehne #game.breit { flex-direction: row; }
#game.breit #scene-wrap { flex: none; width: 1120px; height: 630px; aspect-ratio: auto; align-self: center; }
body.sgz-buehne #game.breit #side { width: 360px; flex: none; border-left: 2px solid #000; }
#game.breit #dialog { flex: 0 0 auto; min-height: 84px; max-height: 200px; overflow-y: auto; }
#game.breit #panel { grid-template-columns: 1fr; overflow-y: auto; gap: 10px; }
#game.breit .verb small, #game.hoch .verb small { display: none; }
#game.breit #slots { grid-template-columns: repeat(4, 1fr); }

#game.breit.quer-handy #scene-wrap { width: auto; height: auto; flex: 1; aspect-ratio: 16 / 9; max-height: 100%; }
body.sgz-buehne #game.breit.quer-handy #side { width: 300px; }
#game.quer-handy #action { font-size: 12px; height: 22px; line-height: 22px; }
#game.quer-handy #dialog { font-size: 12px; min-height: 0; max-height: 34%; padding: 4px 8px; }
#game.quer-handy #panel { padding: 6px; gap: 6px; }
#game.quer-handy .verb { font-size: 12px; padding: 5px 2px; min-height: 42px; }
#game.quer-handy .verb svg { width: 20px; height: 20px; }
#game.quer-handy #slots { grid-template-columns: repeat(5, 1fr); }
#game.quer-handy .slot { min-height: 46px; }
#game.quer-handy .slot canvas { width: 24px; height: 24px; }

#game.hoch #panel { grid-template-columns: 1fr; }
#game.hoch .verb { font-size: 13px; padding: 6px 2px; min-height: 48px; }
#game.hoch #dialog { font-size: 14px; min-height: 60px; }
#game.hoch #action { font-size: 13px; }
#game.hoch .slot { min-height: 58px; }
#game.hoch .slot canvas { width: 28px; height: 28px; }
#game.hoch { --mo-fs-klein: 13px; }

#game {
  --mo-bg1: #2c2244; --mo-bg2: #17122a; --mo-bg3: #0b0914; --mo-rand: #7fd1c7; --mo-rand-weich: rgba(127, 209, 199, .28);
  --mo-akzent: #ffe08a; --mo-akzent2: #7fd1c7; --mo-hell: #f4f0e4; --mo-text: #e8e3d3; --mo-leise: #b8b2c8; --mo-leiser: #9a94ab;
  --mo-band1: #ffe08a; --mo-band2: #ffb347; --mo-band-t: #24140a;
}
.ending.mo-tafel { position: relative; width: min(620px, 94%); max-height: 96%; overflow: auto; padding: 14px 18px 12px; border-radius: 12px; text-align: center; }
.ending.mo-tafel .studio { font-size: 13px; line-height: 1.45; margin: 8px 0 4px; color: var(--mo-text); }
.ending.mo-tafel .knoepfe { display: flex; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.ending.mo-tafel .knoepfe button { min-height: 40px; padding: 8px 18px; font: bold 15px var(--font); background: #241e36; color: var(--verb); border: 2px solid var(--mo-rand); border-radius: 8px; cursor: pointer; }
.ending.mo-tafel .knoepfe button.haupt { background: var(--mo-band2); color: #1a1208; font-size: 17px; }
.ending.mo-tafel .x, .frage .x { position: sticky; top: 0; float: right; width: 40px; height: 40px; margin: -6px -8px 0 0; background: #241e36; color: var(--verb-hover); border: 1px solid #3a3352; border-radius: 6px; font-size: 22px; cursor: pointer; z-index: 2; }
.card .kaptafel { width: min(480px, 92vw); margin: 0 auto 14px; padding: 10px 12px; border-radius: 10px; animation: stamp2 .6s cubic-bezier(.2, 1.4, .4, 1); }
#sys button { min-height: 30px; }
@media (pointer: coarse) { #sys button, .verb, #inv-nav button, .choice { min-height: 40px; } .slot { min-height: 56px; } }

.verb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 5px 2px 4px; font-size: 13px; min-height: 52px;
  background: linear-gradient(#211b33, #17132a); border: 1px solid #2e2842; border-radius: 6px; }
.verb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.verb span { line-height: 1; }
.verb:hover svg { transform: scale(1.12); }
.verb.active { background: linear-gradient(#3a2a1a, #251a10); }
.verb.active svg { filter: drop-shadow(0 0 4px rgba(255, 179, 71, .7)); }
.verb small { right: 4px; bottom: 2px; top: auto; }

.slot canvas.bild, .dragghost.bild { image-rendering: auto; }
.fly { image-rendering: auto; }
.slot canvas.bild { filter: drop-shadow(0 0 2px rgba(255, 240, 200, .45)); }
.slot.sel canvas.bild { filter: drop-shadow(0 0 4px rgba(255, 179, 71, .9)); }

#notizen .liste { list-style: none; padding: 0; margin: 8px 0 0; }
#notizen .liste li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; margin: 4px 0; background: #1d1830; border-left: 3px solid var(--verb-active); }
#notizen .liste li svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--verb-active); }
#notizen .liste li.ok { border-left-color: #3fdc7a; color: var(--muted); }
#notizen .liste li.ok span { text-decoration: line-through; text-decoration-color: rgba(63, 220, 122, 0.7); }
#notizen .liste li.ok svg { color: #3fdc7a; }
#btn-notiz { position: relative; }
#btn-notiz[hidden] { display: none; }
#btn-notiz:not([data-n=""])::after { content: attr(data-n); position: absolute; top: -6px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--verb-active); color: #1a1208; font: bold 11px/16px var(--font); }
#btn-notiz.neu { animation: notizneu 0.9s cubic-bezier(.3, 1.8, .5, 1); color: var(--verb-active); border-color: var(--verb-active); }
@keyframes notizneu { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-4deg); box-shadow: 0 0 16px rgba(255, 179, 71, 0.7); } 100% { transform: scale(1); } }
.notizflug { position: fixed; z-index: 70; pointer-events: none; padding: 8px 12px 10px; background: #f3ead2; color: #2a2238; border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.08); font: bold 14px/1.35 var(--font);
  background-image: repeating-linear-gradient(transparent 0 18px, rgba(80, 110, 180, 0.18) 18px 19px); }
.notizflug b { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #b0402a; margin-bottom: 2px; }
#pegel { display: inline-block; width: 36px; height: 14px; margin-right: 6px; vertical-align: -1px; image-rendering: pixelated; opacity: 0; transition: opacity 0.2s; }
#pegel.an { opacity: 1; }

@media (pointer: coarse) { .verb small { display: none; } }
#scene-wrap { container-type: inline-size; }
@container (max-width: 560px) {
  #progress { top: auto; bottom: 6px; }
  .mo-start { top: auto; bottom: 30px; width: 94%; padding: 6px 10px 8px; }
  .mo-start h3 { font-size: 20px; }
  .mo-start > p { font-size: 13px; line-height: 1.3; margin: 0 0 2px; }
}
#notizen .win { width: min(520px, 94vw); }
#game.hoch .mo-kacheln.mo-n4 { grid-template-columns: repeat(2, 1fr) !important; }
#game.hoch .mo-kachel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#karte .win { width: min(560px, 96vw); }
#karte .kopf { color: var(--verb); margin: 0 0 6px; }
#karte .plan svg { display: block; width: 100%; height: auto; }
#karte .legende { color: var(--muted); font-size: 12px; margin-top: 8px; }
#karte .kante { stroke: #7fd1c7; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: kantezieh .6s ease forwards; }
#karte .kante.fremd { stroke: #3a3352; stroke-dasharray: 4 6; stroke-dashoffset: 0; animation: none; }
@keyframes kantezieh { to { stroke-dashoffset: 0; } }
#karte .knoten { opacity: 0; animation: knotenauf .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes knotenauf { from { opacity: 0; transform-box: fill-box; } to { opacity: 1; } }
#karte .grund { fill: #1d1830; stroke: #3a3352; stroke-width: 2; stroke-dasharray: 4 4; }
#karte .war .grund { stroke: #2e2842; stroke-dasharray: none; }
#karte .ring { fill: none; stroke: #ffe08a; stroke-width: 4; stroke-linecap: round; }
#karte .fertig .grund { fill: #173326; }
#karte .fertig .ring { stroke: #3fdc7a; }
#karte .haken { fill: none; stroke: #3fdc7a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
#karte .nr { fill: var(--verb); font: bold 16px var(--font); text-anchor: middle; }
#karte .name { fill: var(--text); font: bold 11px var(--font); text-anchor: middle; }
#karte .knoten:not(.war) .nr, #karte .knoten:not(.war) .name { fill: #6a6480; }
#karte .puls { fill: none; stroke: #ffb347; stroke-width: 3; animation: kartepuls 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kartepuls { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
#karte .hier .grund { stroke: #ffb347; stroke-dasharray: none; }
#karte .neu circle { fill: #f6a6ff; }
#karte .neu text { fill: #1a1208; font: bold 12px var(--font); text-anchor: middle; }

.fortschritt-stern { position: fixed; z-index: 65; width: 28px; height: 28px; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255, 224, 138, .9)); }
.fortschritt-stern svg { width: 100%; height: 100%; fill: #ffe08a; stroke: #fff6c8; stroke-width: 1; }
#serie { position: absolute; left: 10px; bottom: 10px; z-index: 3; pointer-events: none; display: flex; align-items: baseline; gap: 6px;
  padding: 4px 12px 5px; background: rgba(10, 8, 18, .88); border: 2px solid #7fd1c7; color: #7fd1c7; font: bold 13px var(--font); }
#serie[hidden] { display: none; }
#serie small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
#serie b { font-size: 20px; color: #ffe08a; }
#serie.flow { border-color: #ffb347; color: #ffb347; box-shadow: 0 0 18px rgba(255, 179, 71, .55); }
#serie.pop { animation: seriepop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes seriepop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.18) rotate(2deg); opacity: 1; } 100% { transform: scale(1); } }
.slot.idee { animation: ideeslot 1.2s ease-in-out 3; }
.slot.hier { animation: hierslot 1.2s ease-in-out 2; }
@keyframes hierslot { 0%, 100% { box-shadow: inset 0 0 0 1px transparent; } 50% { box-shadow: inset 0 0 0 2px #ffd166, 0 0 14px rgba(255, 209, 102, .55); } }
@keyframes ideeslot { 0%, 100% { box-shadow: inset 0 0 0 1px transparent; } 50% { box-shadow: inset 0 0 0 2px #7ff0dc, 0 0 14px rgba(127, 240, 220, .6); } }
#label svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.slot.allein { position: relative; }
.slot.allein::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #7ff0dc; box-shadow: 0 0 0 0 rgba(127, 240, 220, .7); animation: alleinpuls 1.6s ease-out infinite; }
@keyframes alleinpuls { 0% { box-shadow: 0 0 0 0 rgba(127, 240, 220, .7); } 100% { box-shadow: 0 0 0 8px rgba(127, 240, 220, 0); } }

#game.flach #scene-wrap { width: 100%; height: 720px; aspect-ratio: auto; flex: none; }
#game.flach #dialog { min-height: 50px; }
#game.flach #panel { grid-template-columns: 560px 1fr; min-height: 0; height: 150px; padding: 8px; gap: 10px; }
#game.flach #verbs { grid-template-columns: repeat(6, 1fr); }
#game.flach .verb { min-height: 54px; font-size: 13px; }
#game.flach #sys { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 6px; gap: 3px; }
#game.flach #sys button { min-height: 28px; font-size: 11px; padding: 3px 1px; }
#game.flach #slots { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); }
#game.flach .slot { min-height: 0; padding: 2px; flex-direction: row; gap: 4px; justify-content: flex-start; }
#game.flach .slot canvas { width: 30px; height: 30px; flex: none; }
#game.flach .slot span { text-align: left; }
#game.flach #choices { inset: 6px; }
#game.flach .verb small { display: none; }
#game.flach #sys button { font-size: 13px; }
#game.flach .slot span { font-size: 12px; }
#game.flach #sys button { white-space: nowrap; font-size: 12px; }
#game.flach #choices:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 2px 12px; align-content: start; }
#game.flach .choice { padding: 4px 8px; }
#label.mit-bild { padding: 3px 3px 2px; text-align: center; }
#label .vorschau { display: block; width: 112px; height: 63px; image-rendering: pixelated; border: 1px solid #3a3352; margin-bottom: 2px; }
#label .zu { color: #ff9a8a; }

#progress .funde { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding-left: 7px; border-left: 1px solid #3a3352; color: #7ff0dc; }
#progress .funde svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#progress .funde u { text-decoration: none; }
#progress .funde.pop { animation: fundpop .7s cubic-bezier(.3, 1.8, .5, 1); transform-origin: right center; }
@keyframes fundpop { 0% { transform: scale(1); } 35% { transform: scale(1.5); color: #ffe08a; text-shadow: 0 0 10px rgba(127, 240, 220, .9); } 100% { transform: scale(1); } }

#karte .neben h3 { margin: 10px 0 4px; color: var(--verb); font-size: 15px; }
#karte .neben h3 small { color: var(--muted); font-weight: normal; font-size: 12px; }
#karte .neben ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
#karte .neben li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.25; }
#karte .neben li svg { flex: 0 0 14px; width: 14px; height: 14px; color: #6a6480; }
#karte .neben li.ok svg { color: #3fdc7a; }
#karte .neben li.ok span { color: #3fdc7a; }
#karte .neben li b { color: var(--verb-active); }
#karte .neben li em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 11px; white-space: nowrap; }
.ending .befreit { color: var(--verb); }
#inv-nav button { color: var(--verb); border-color: #4a4268; }
#inv-nav button:disabled { color: #8a8499; opacity: .45; border-style: dashed; cursor: default; }
@media (pointer: coarse) { #inv { grid-template-columns: 1fr 40px; } }
#game.quer-handy #action { height: 26px; line-height: 21px; padding-top: 1px; }
#game.quer-handy #sys button { min-height: 44px; }
#game.quer-handy #dialog { min-height: 44px; }

#game.quer-handy .ending.mo-tafel { max-height: 100%; overflow-y: auto; transform: none !important; }
#game.quer-handy .ending.mo-tafel .x, #game.hoch .ending.mo-tafel .x { width: 44px; height: 44px; }
#game.quer-handy .choice { min-height: 46px; }
#game.quer-handy .ending.mo-tafel .knoepfe button { min-height: 46px; }

.xfenster { position: fixed; inset: 0; z-index: 62; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .7); padding: 12px; }
.xfenster[hidden] { display: none; }
#rueck .rb-kap { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
#rueck h3 { margin: 12px 0 4px; color: var(--verb); font-size: 15px; }
#rueck .rb-liste { list-style: none; padding: 0; margin: 4px 0; }
#rueck .rb-liste li { padding: 6px 8px; margin: 4px 0; background: #1d1830; border-left: 3px solid #ffd166; }
#rueck .rb-liste.offen li { border-left-color: var(--verb-active); }
#rueck .rb-liste small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
#rueck .rb-knopf { margin: 14px 0 0; text-align: right; }
#rueck .rb-weiter { min-height: 44px; padding: 8px 18px; background: #241e36; color: var(--verb-hover); border: 2px solid var(--verb-active); font: bold 14px var(--font); cursor: pointer; }
#rueck .rb-weiter:hover, #rueck .rb-weiter:focus-visible { background: #3a3352; }
.xfenster .win { position: relative; max-height: 90vh; overflow-y: auto; padding: 14px 20px 18px; background: #15121f; border: 2px solid #3a3352; color: var(--text); font: 14px/1.45 var(--font); animation: stamp2 .3s ease; scrollbar-width: thin; scrollbar-color: #3a3352 transparent; }
.xfenster h2 { margin: 0 44px 8px 0; color: var(--verb-active); }
.xfenster .x { position: sticky; top: 0; float: right; margin: -4px -10px 0 0; width: 40px; height: 40px; background: #241e36; color: var(--verb-hover); border: 1px solid #3a3352; font-size: 20px; cursor: pointer; z-index: 1; }
.xfenster .help { color: var(--muted); font-size: 13px; }
.xfenster button.haupt, .xfenster .kn button, .xfenster .tasten button { min-height: 40px; padding: 6px 14px; font: bold 14px var(--font); background: #241e36; color: var(--verb); border: 1px solid #4a4268; cursor: pointer; }
.xfenster button.haupt { background: var(--verb-active); color: #1a1208; border-color: var(--verb-active); }
.regler { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; margin: 10px 0; }
.regler input[type=range] { width: 100%; accent-color: var(--verb-active); height: 28px; }
.regler select { min-height: 36px; background: #241e36; color: var(--verb); border: 1px solid #4a4268; font: 14px var(--font); }
.regler b { text-align: right; color: var(--verb-hover); }
.haken { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; min-height: 36px; }
.haken input { width: 20px; height: 20px; accent-color: var(--verb-active); }
.platz { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; padding: 8px; margin: 6px 0; background: #1d1830; border: 1px solid #2e2842; }
.platz img, .platz .leer { width: 112px; height: 63px; image-rendering: pixelated; border: 1px solid #3a3352; }
.platz .leer { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.platz .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.platz .info span { color: var(--verb); }
.platz .info small { color: var(--muted); }
.platz .kn { display: flex; flex-direction: column; gap: 4px; }
#game.hoch ~ .xfenster .platz, .xfenster .platz { grid-template-columns: 88px 1fr; }
.xfenster .platz .kn { grid-column: 1 / -1; flex-direction: row; }
.xfenster .platz img, .xfenster .platz .leer { width: 88px; height: 50px; }
.tippstufen { display: flex; gap: 6px; margin: 2px 0 8px; }
.tippstufen i { width: 34px; height: 6px; background: #2e2842; }
.tippstufen i.an { background: var(--verb-active); box-shadow: 0 0 8px rgba(255, 179, 71, .6); }
.tipptext { font-size: 16px; line-height: 1.5; color: var(--verb-hover); animation: tippauf .4s ease; }
@keyframes tippauf { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
#intro { position: absolute; inset: 0; z-index: 4; overflow: hidden; background: #000; cursor: pointer; }
#intro .bild { position: absolute; inset: 0; animation: introfahrt 40s linear forwards; }
#intro img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
#intro .bild > i { position: absolute; pointer-events: none; }
#intro .pegel { left: 14.5%; top: 50.5%; width: 20%; height: 4.2%; display: flex; gap: 3%; align-items: flex-end; opacity: .9; mix-blend-mode: screen; }
#intro .pegel b { flex: 1; height: 30%; background: linear-gradient(#ff5a5a, #ffd23a 35%, #48e07a 60%); border-radius: 1px; animation: introPegel .5s ease-in-out infinite alternate; transition: filter .6s; }
@keyframes introPegel { from { height: 15%; } to { height: 100%; } }
#intro[data-phase="4"] .pegel b, #intro[data-phase="5"] .pegel b { background: linear-gradient(#ff4bff, #a35cff 50%, #5a2bd8); filter: drop-shadow(0 0 3px #b55cff); }
#intro .blatt { left: 39%; top: 70%; width: 9%; height: 1.6%; background: rgba(255, 140, 30, .5); mix-blend-mode: multiply; border-radius: 2px; opacity: 0; transform: rotate(-4deg); }
#intro[data-phase="1"] .blatt, #intro[data-phase="3"] .blatt { opacity: 1; animation: introZeile 7s steps(6) infinite; }
@keyframes introZeile { from { top: 70%; } to { top: 86%; } }
#intro .mikro { left: 56.5%; top: 45%; width: 0; height: 0; }
#intro .mikro u { position: absolute; left: -2.5vmin; top: -2.5vmin; width: 5vmin; height: 5vmin; border: 2px solid rgba(127, 240, 220, .75); border-radius: 50%; opacity: 0; }
#intro[data-phase="1"] .mikro u, #intro[data-phase="3"] .mikro u { animation: introRing 1.5s ease-out infinite; }
#intro .mikro u:nth-child(2) { animation-delay: .5s !important; } #intro .mikro u:nth-child(3) { animation-delay: 1s !important; }
@keyframes introRing { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
#intro .gesicht { left: 33%; top: 37.5%; width: 10%; height: 15%; border-radius: 30%; background: radial-gradient(closest-side, rgba(190, 90, 255, .75), rgba(140, 40, 255, .25) 60%, transparent); mix-blend-mode: screen; opacity: .25; animation: introPuls 2.4s ease-in-out infinite; }
#intro[data-phase="2"] .gesicht, #intro[data-phase="4"] .gesicht { animation-duration: .45s; opacity: .9; }
#intro[data-phase="5"] .gesicht { opacity: 1; animation-duration: .2s; }
@keyframes introPuls { 50% { transform: scale(1.25); filter: brightness(1.6); } }
#intro .welle { left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
#intro[data-phase="4"] .welle, #intro[data-phase="5"] .welle { opacity: 1; }
#intro .welle b { position: absolute; left: 56%; top: 46%; width: .9%; height: 3.2%; border-radius: 3px; background: #7ff0dc; box-shadow: 0 0 6px #7ff0dc; animation: introSaug 1.76s cubic-bezier(.5, 0, .8, .6) infinite; }
@keyframes introSaug {
  0% { transform: translate(0, 0) scaleY(.6); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(-90%, var(--hub)) scaleY(1.6); background: #b98cff; }
  100% { transform: translate(-2000%, -12%) scale(.3); background: #c15cff; opacity: 0; }
}
@keyframes introfahrt { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1) translate(0, 0); } }
#intro .rotlicht { position: absolute; inset: 0; background: radial-gradient(circle at 72% 9%, rgba(255, 40, 40, .35), transparent 30%); animation: rotlicht 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes rotlicht { 50% { opacity: .35; } }
#intro::before, #intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
#intro::before { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
#intro::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: cover; mix-blend-mode: screen; }
#intro.glitch::before { opacity: 1; animation: zeilen .12s steps(2) infinite; }
#intro.glitch::after { animation: rauschen 2.4s ease-in forwards; }
#intro.glitch img { animation: farbversatz .18s steps(3) infinite; }
@keyframes farbversatz {
  0% { filter: drop-shadow(-4px 0 0 rgba(255, 0, 80, .7)) drop-shadow(4px 0 0 rgba(0, 220, 255, .7)) contrast(1.2); transform: translateX(0) skewX(0); }
  50% { filter: drop-shadow(5px 0 0 rgba(255, 0, 80, .7)) drop-shadow(-5px 0 0 rgba(0, 220, 255, .7)) contrast(1.5) hue-rotate(25deg); transform: translateX(-3px) skewX(-1.5deg); }
  100% { filter: drop-shadow(-2px 0 0 rgba(255, 0, 80, .7)) drop-shadow(2px 0 0 rgba(0, 220, 255, .7)) contrast(1.3); transform: translateX(2px) skewX(1deg); }
}
@keyframes zeilen { 50% { transform: translateY(2px); } }
@keyframes rauschen { 0% { opacity: 0; } 70% { opacity: .35; } 100% { opacity: .9; } }
#intro.weg .bild, #intro.weg::before, #intro.weg::after { animation: bildaus .9s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes bildaus { 40% { transform: scale(1, .02); filter: brightness(4); opacity: 1; } 100% { transform: scale(0, .01); filter: brightness(6); opacity: 0; } }
#intro .ueberspringen { position: absolute; right: 10px; bottom: 10px; min-height: 40px; padding: 6px 14px; background: rgba(10, 8, 18, .85); color: var(--verb); border: 1px solid #4a4268; font: bold 13px var(--font); cursor: pointer; }
.xfenster .feld { margin: 8px 0; }
.xfenster .status { min-height: 22px; color: var(--verb-hover); font-weight: bold; }
.xfenster.geschafft .win { border-color: #3fdc7a; box-shadow: 0 0 30px rgba(63, 220, 122, .4); }
.eq { display: flex; justify-content: space-between; gap: 6px; height: 190px; padding: 10px; background: #0b0914; border: 1px solid #2e2842; background-image: linear-gradient(transparent calc(50% - 1px), rgba(255, 209, 102, .5) calc(50% - 1px), rgba(255, 209, 102, .5) calc(50% + 1px), transparent calc(50% + 1px)); }
.eq label { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.eq input { writing-mode: vertical-lr; direction: rtl; width: 32px; height: 150px; accent-color: #ff8fc8; }
.eq input.mitte { accent-color: #3fdc7a; }
.eq input.gewicht { accent-color: #ffd166; }
.eq span { font-size: 11px; color: var(--muted); }
.code .anzeige { font: bold 34px var(--font); letter-spacing: 10px; text-align: center; padding: 8px; margin-bottom: 8px; background: #0b0914; color: #3fdc7a; border: 1px solid #2e2842; }
.code .anzeige.falsch { animation: falsch .4s; color: #ff7b7b; }
@keyframes falsch { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.code .tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.code .tasten button { min-height: 52px; font-size: 20px; }
.spiel-ton canvas, .spiel-takt canvas { width: 100%; height: auto; display: block; background: #0b0914; border: 1px solid #2e2842; }
.spiel-ton input.breit { width: 100%; height: 40px; accent-color: #ff8fc8; }
.spiel-takt .tick { width: 100%; min-height: 52px; margin-top: 8px; font-size: 18px; }

#abrechnung .beleg { position: relative; background: #f3ecd8; color: #2a2238; padding: 12px 14px 16px; font: 13px/1.4 var(--font); box-shadow: inset 0 0 0 1px #c9bd9c, 0 4px 14px rgba(0, 0, 0, .5); transform: rotate(-.6deg); animation: belegauf .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes belegauf { from { transform: translateY(30px) rotate(-6deg) scale(.8); opacity: 0; } to { transform: rotate(-.6deg); opacity: 1; } }
#abrechnung .beleg .kopf { display: flex; justify-content: space-between; border-bottom: 2px dashed #b9ad8c; padding-bottom: 6px; margin-bottom: 8px; }
#abrechnung .beleg table { width: 100%; border-collapse: collapse; }
#abrechnung .beleg th { text-align: left; width: 34%; font-weight: normal; color: #6a5f48; padding: 3px 0; vertical-align: top; }
#abrechnung .beleg td { padding: 3px 0; }
#abrechnung .beleg tr.summe td { font-weight: bold; font-size: 18px; color: #b0302a; border-top: 1px solid #c9bd9c; }
#abrechnung .beleg tr.sprecher td { color: #b0302a; font-weight: bold; }
#abrechnung .beleg.vertrag .stempel { font-size: 15px; }
#abrechnung .beleg .vermerk { font-style: italic; color: #6a5f48; margin: 8px 0 0; }
#abrechnung .beleg .stempel { display: table; margin: 10px 6px 0 auto; padding: 2px 8px; border: 3px solid rgba(176, 48, 42, .75); color: rgba(176, 48, 42, .8); font: bold 18px var(--font); transform: rotate(-14deg); animation: stempel .4s .5s both cubic-bezier(.3, 1.8, .5, 1); }
@keyframes stempel { from { transform: rotate(-14deg) scale(2.4); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }

#karte .kante.unter { stroke-dasharray: 3 4; stroke-dashoffset: 0; animation: none; }
#karte .knoten.unter .name { font-size: 15px; }
.ending.mo-tafel .studio.nachwort { font-style: italic; opacity: .92; margin-top: 2px; }
.spiel-prompt .frage { margin: 0 0 8px; color: var(--mo-text, #e8e4f0); }
.spiel-prompt .pzeile { min-height: 44px; padding: 10px 12px; border: 1px dashed #7ff0dc; border-radius: 8px; background: rgba(10, 20, 26, .85); color: #7ff0dc; font-size: 15px; margin-bottom: 10px; }
.spiel-prompt .pworte { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.spiel-prompt .pworte button { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.spiel-prompt .pworte button.an { background: #2a5a52; border-color: #7ff0dc; color: #fff; }
.spiel-prompt .pab { width: 100%; min-height: 46px; }
.spiel-prompt .pantwort { min-height: 2.6em; margin: 10px 0 0; color: #ffd166; font-style: italic; }

.slot span { -webkit-line-clamp: 3; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
#game.hoch #slots { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
#game.hoch .slot { min-height: var(--fach-h, 74px); }
#game.quer-handy #slots { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
#game.quer-handy .slot { min-height: 52px; }
#game.hoch #dialog { min-height: 96px; }
#karte .neben ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
#karte .neben li { min-width: 0; flex-wrap: wrap; }
#karte .neben li span { min-width: 0; overflow-wrap: anywhere; }
#karte .neben li em { white-space: normal; text-align: right; }
#game.hoch #karte .neben ul { grid-template-columns: 1fr; }
#orte { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s; }
#orte.an { opacity: 1; transition: none; }
#orte svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#orte line { stroke-width: .6; stroke-dasharray: 1.5 1; opacity: 0; animation: orteein .25s ease-out forwards; }
#orte circle { opacity: 0; animation: orteein .25s ease-out forwards; }
#orte span { position: absolute; font: bold 12px/15px var(--font); padding: 2px 5px; border-radius: 4px; background: rgba(8, 6, 16, .9); border: 1px solid currentColor;
  color: #ffe08a; opacity: 0; transform: translateY(4px) scale(.8); transform-origin: center bottom; animation: orteplopp .32s cubic-bezier(.3, 1.6, .5, 1) forwards; overflow-wrap: anywhere; hyphens: auto; }
#orte .aus { color: #7ff0dc; stroke: #7ff0dc; fill: #7ff0dc; }
#orte .alt { color: #b8b2c8; stroke: #9a94ab; fill: #9a94ab; }
#orte .ding { color: #ffffff; stroke: #ffffff; fill: #ffffff; }
#orte .neu { stroke: #ffe08a; fill: #ffe08a; }
#game.hoch #orte span { font-size: 12px; line-height: 14px; padding: 1px 4px; }
@keyframes orteplopp { to { opacity: 1; transform: none; } }
@keyframes orteein { to { opacity: 1; } }
.slot span { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
#game.quer-handy .slot { min-height: 44px; padding: 2px 4px; flex-direction: row; gap: 4px; justify-content: flex-start; }
#game.quer-handy .slot canvas { width: 26px; height: 26px; flex: none; }
#game.quer-handy .slot span { text-align: left; -webkit-line-clamp: 2; line-height: 13px; }
#game.quer-handy #slots { grid-template-columns: repeat(2, 1fr); }
#unterdessen { position: absolute; right: 2%; top: 14%; width: 30%; z-index: 5; pointer-events: none; background: rgba(10, 8, 18, .92); border: 2px solid #f6a6ff; border-radius: 6px; padding: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, .6), 0 0 12px rgba(246, 166, 255, .35); animation: unterdessenEin .45s cubic-bezier(.3, 1.5, .5, 1); transform-origin: top right; }
#unterdessen b, #unterdessen span { display: block; font: bold 12px/15px var(--font); color: #f6a6ff; padding: 0 2px 3px; overflow-wrap: anywhere; }
#unterdessen span { color: #e8e2f4; padding: 3px 2px 0; font-weight: normal; }
#unterdessen canvas { display: block; width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; border-radius: 3px; }
#unterdessen.weg { animation: unterdessenAus .45s ease-in forwards; }
@keyframes unterdessenEin { from { transform: scale(.2) rotate(6deg); opacity: 0; } }
@keyframes unterdessenAus { to { transform: scale(.2) translate(40%, -40%); opacity: 0; } }
#game.hoch #unterdessen { width: 44%; }
#bandschnipsel { position: absolute; left: 50%; top: 38%; width: min(78%, 520px); transform: translate(-50%, -50%); z-index: 6; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; padding: 10px 12px 8px; background: rgba(14, 10, 22, .94); border: 2px solid #ffb347; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); animation: bandEin .35s cubic-bezier(.3, 1.5, .5, 1); cursor: pointer; }
#bandschnipsel .spule { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #1a1424 0 18%, #c9ccd1 19% 24%, #5a4a3a 25% 62%, #2a2030 63% 66%, #8d8f96 67%); position: relative; animation: spule 0.9s linear infinite; }
#bandschnipsel .spule::after { content: ""; position: absolute; inset: 40% 8%; background: linear-gradient(90deg, transparent 0 30%, #1a1424 30% 70%, transparent 70%); }
#bandschnipsel .band { position: relative; height: 28px; margin: 0 -2px; background: linear-gradient(#4a3520, #6b4c2b 50%, #4a3520); overflow: hidden; }
#bandschnipsel svg { position: absolute; left: 0; top: 2px; width: 200%; height: 24px; animation: bandLauf 1.9s linear forwards; }
#bandschnipsel path { fill: none; stroke: #ffd98a; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
#bandschnipsel u { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 3px; background: #7ff0dc; box-shadow: 0 0 6px #7ff0dc; }
#bandschnipsel b { grid-column: 1 / -1; text-align: center; font: bold 13px/17px var(--font); color: #ffd98a; padding-top: 6px; overflow-wrap: anywhere; }
#bandschnipsel.weg { animation: bandAus .35s ease-in forwards; }
@keyframes spule { to { transform: rotate(360deg); } }
@keyframes bandLauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bandEin { from { transform: translate(-50%, -50%) scaleX(.1); opacity: 0; } }
@keyframes bandAus { to { transform: translate(-50%, 30%) scale(.3); opacity: 0; } }
#game.hoch #bandschnipsel .spule, #game.quer-handy #bandschnipsel .spule { width: 30px; height: 30px; }
#progress .stimme { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 1px solid #4a4268; }
#progress .stimme small { font-size: 11px; color: #7ff0dc; }
#progress .stimme .pg { width: 42px; height: 6px; background: #241d33; border-radius: 3px; overflow: hidden; }
#progress .stimme .pg i { display: block; height: 100%; background: linear-gradient(90deg, #3ac7b0, #7ff0dc); transition: width .6s; }
#progress .stimme u { text-decoration: none; font-size: 11px; color: #e8e2f4; min-width: 34px; }
#game.hoch #progress .stimme .pg, #game.quer-handy #progress .stimme .pg { width: 26px; }
#klappe { position: absolute; left: 50%; top: 30%; width: min(46%, 300px); transform: translate(-50%, -50%); z-index: 6; pointer-events: none; animation: klappeEin .3s cubic-bezier(.3, 1.5, .5, 1); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
#klappe .oben { height: 18px; background: repeating-linear-gradient(-55deg, #f2efe6 0 14px, #1b1b1f 14px 28px); border: 2px solid #1b1b1f; border-radius: 3px 3px 0 0; transform-origin: 2px 100%; transform: rotate(-24deg); animation: klappeZu .32s .3s cubic-bezier(.6, 0, .9, .5) forwards; }
#klappe .unten { background: #1b1b1f; border: 2px solid #f2efe6; border-top: 0; padding: 8px 10px; display: grid; gap: 2px; text-align: center; }
#klappe .unten::before { content: ""; height: 6px; margin: -8px -10px 6px; background: repeating-linear-gradient(-55deg, #f2efe6 0 14px, #1b1b1f 14px 28px); }
#klappe b { font: bold 20px/24px var(--font); color: #f2efe6; letter-spacing: 2px; }
#klappe span { font: bold 15px/19px var(--font); color: #7ff0dc; }
#klappe small { font-size: 12px; color: #c8c2d8; }
#klappe.gold .unten { border-color: #ffd166; } #klappe.gold span { color: #ffd166; }
#klappe.weg { animation: klappeAus .4s ease-in forwards; }
@keyframes klappeEin { from { transform: translate(-50%, -30%) scale(.6); opacity: 0; } }
@keyframes klappeZu { to { transform: rotate(0); } }
@keyframes klappeAus { to { transform: translate(-50%, -80%) scale(.8); opacity: 0; } }
#game.hoch #klappe b { font-size: 16px; } #game.hoch #klappe { width: 62%; }
#serie b { white-space: nowrap; }
#schallplatte { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: rgba(14, 10, 22, .94); border: 2px solid #ffd166; border-radius: 10px; box-shadow: 0 0 24px rgba(255, 209, 102, .35); animation: bandEin .4s cubic-bezier(.3, 1.5, .5, 1); max-width: 88%; }
#schallplatte .platte { flex: none; width: 64px; height: 64px; border-radius: 50%; background: repeating-radial-gradient(circle, #e9b93a 0 1px, #c8941f 1px 3px), #d9a530; box-shadow: inset 0 0 0 2px #fff1b0; position: relative; animation: spule 1.2s linear infinite; }
#schallplatte .platte u { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle, #1b1b1f 0 18%, #b0324a 20%); }
#schallplatte .platte::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); }
#schallplatte div { display: grid; gap: 2px; min-width: 0; }
#schallplatte small { font-size: 12px; color: #ffd166; text-transform: uppercase; letter-spacing: 1px; }
#schallplatte b { font: bold 15px/19px var(--font); color: #fff4d0; overflow-wrap: anywhere; }
#schallplatte span { font-size: 12px; color: #c8c2d8; }
#schallplatte.weg > div, #schallplatte.weg { animation: bandAus .5s .45s ease-in forwards; }
#btn-karte.neu { animation: kartePlopp .6s ease; }
@keyframes kartePlopp { 40% { transform: scale(1.15); box-shadow: 0 0 12px #ffd166; } }
#karte .regal { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 8px; margin: 0 0 8px; background: linear-gradient(transparent calc(100% - 6px), #6b4c2b calc(100% - 6px)); }
#karte .regal i { width: 22px; height: 22px; border-radius: 50%; background: #2a2236; border: 1px dashed #4a4268; }
#karte .regal i.gold { border: 0; background: repeating-radial-gradient(circle, #e9b93a 0 1px, #c8941f 1px 2px); box-shadow: inset 0 0 0 5px transparent, 0 0 6px rgba(255, 209, 102, .4); position: relative; }
#karte .regal i.gold::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: #b0324a; }
.mischpult { display: flex; gap: 10px; justify-content: center; align-items: flex-end; margin: 10px 0 4px; padding: 10px 12px 8px; background: linear-gradient(#2a2236, #1b1624); border: 1px solid #4a4268; border-radius: 6px; }
.mischpult .kanal { display: grid; justify-items: center; gap: 3px; min-width: 46px; }
.mischpult .schiene { position: relative; width: 6px; height: 64px; background: #0e0b14; border-radius: 3px; box-shadow: inset 0 0 0 1px #3a3348; }
.mischpult .schiene i { position: absolute; left: 50%; bottom: 0; width: 26px; height: 10px; margin-left: -13px; background: linear-gradient(#e8e2f4, #9a94ab); border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); animation: fader 1s cubic-bezier(.3, 1.3, .5, 1) forwards; }
@keyframes fader { to { bottom: calc(var(--w) * .85); } }
.mischpult small { font-size: 11px; color: #c8c2d8; }
.mischpult u { text-decoration: none; font: bold 12px var(--font); color: #7ff0dc; }
.mischpult .led { display: flex; flex-direction: column-reverse; gap: 2px; height: 64px; justify-content: flex-start; }
.mischpult .led i { width: 16px; height: 4.5px; background: #241d33; border-radius: 1px; }
.mischpult .led i.an, .mischpult .led i.gelb, .mischpult .led i.rot { animation: ledAn .2s forwards; }
.mischpult .led i.an { --c: #48e07a; } .mischpult .led i.gelb { --c: #ffd23a; } .mischpult .led i.rot { --c: #ff5a5a; }
@keyframes ledAn { to { background: var(--c); box-shadow: 0 0 4px var(--c); } }
#dialog .piep, .piep { display: inline-block; padding: 0 4px; margin: 0 1px; background: #d11f2e; color: #ffe1e1; font-weight: bold; letter-spacing: 1px; border-radius: 2px; transform: skewX(-8deg); animation: piepRein .25s ease-out; }
@keyframes piepRein { from { transform: scaleX(0) skewX(-8deg); } }
#angebot { position: absolute; top: 18%; width: 30%; min-width: 150px; z-index: 5; pointer-events: none; background: #f4ecd6; color: #2a1e14; border: 2px solid #ffb86b; border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); padding: 0 0 6px; overflow: hidden; animation: angebotFall .7s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 0; }
#angebot .lauf { display: flex; width: max-content; background: #1b1208; color: #ffb86b; font: bold 11px/16px var(--font); white-space: nowrap; animation: laufschrift 6s linear infinite; }
#angebot p { margin: 6px 8px 2px; font: bold 12px/16px var(--font); overflow-wrap: anywhere; }
#angebot small { display: block; margin: 0 8px; font-size: 11px; color: #54473a; }
#angebot.knuell { animation: knuell .7s cubic-bezier(.5, 0, .8, .4) forwards; }
@keyframes laufschrift { to { transform: translateX(-50%); } }
@keyframes angebotFall { from { transform: translateY(-40%) rotate(-6deg) scaleY(.2); opacity: 0; } 60% { transform: translateY(6%) rotate(2deg); opacity: 1; } }
@keyframes knuell { 40% { transform: scale(.35) rotate(40deg); border-radius: 40%; filter: brightness(.9); } 100% { transform: translate(160%, 260%) scale(.15) rotate(400deg); opacity: 0; } }
#game.hoch #angebot { width: 46%; top: 8%; }
.roomtitle.neu { animation: slidein 3.8s ease forwards; }
.roomtitle.neu span::after { content: "▌"; color: #7ff0dc; animation: blinkCursor .5s steps(1) infinite; }
.roomtitle.neu::before { content: ""; position: absolute; right: -22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #7ff0dc; animation: entdeckt 1.2s ease-out 3; }
@keyframes blinkCursor { 50% { opacity: 0; } }
@keyframes entdeckt { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
#zeiger-verb { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; padding: 3px; pointer-events: none; background: rgba(10, 8, 18, .85); border: 1px solid var(--verb-active); border-radius: 50%; color: var(--verb-active); }
#zeiger-verb svg { width: 100%; height: 100%; display: block; }
.spiel-echo canvas { width: 100%; height: auto; display: block; background: #120d1c; border: 1px solid #2e2842; touch-action: none; cursor: crosshair; }
.spiel-echo input.breit { width: 100%; height: 40px; accent-color: #7ff0dc; }
.spiel-echo .rufen { width: 100%; min-height: 48px; margin-top: 6px; font-size: 17px; }
.spiel-schnitt .zeitleiste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px; margin-bottom: 10px; background: repeating-linear-gradient(90deg, #2a1e14 0 2px, #4a3520 2px 12px); border: 1px solid #6b4c2b; border-radius: 4px; }
.spiel-schnitt .platz { min-height: 52px; padding: 4px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 15px; color: #2a1e14; background: rgba(0, 0, 0, .35); border: 1px dashed #8a6a48; border-radius: 3px; overflow-wrap: anywhere; cursor: pointer; }
.spiel-schnitt .platz.voll { background: #e9d9b4; border: 1px solid #ffd98a; animation: piepRein .2s ease-out; }
.spiel-schnitt .platz.falsch { box-shadow: inset 0 0 0 2px #d11f2e; }
.spiel-schnitt .schnipsel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 48px; }
.spiel-schnitt .schnipsel button { min-height: 44px; padding: 6px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; touch-action: none; }
.spiel-schnitt .schnipsel button i { width: 22px; height: 12px; flex: none; background: repeating-linear-gradient(90deg, #ffd98a 0 1px, transparent 1px 3px); opacity: .8; }
.spiel-schnitt .schnipsel button.zieht { position: relative; z-index: 3; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.spiel-schnitt .abspielen { width: 100%; min-height: 48px; }
.spiel-schnitt .pantwort { min-height: 2.6em; margin: 10px 0 0; color: #ffd166; font-style: italic; }
#game.hoch .spiel-schnitt .zeitleiste, .spiel-schnitt .zeitleiste { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.spiel-schnitt .schnipsel button[hidden] { display: none; }
@media (max-height: 560px) {
  .mischpult { margin: 4px 0 0; padding: 4px 8px; gap: 8px; }
  .mischpult .schiene, .mischpult .led { height: 30px; }
  .mischpult .schiene i { height: 8px; }
  .mischpult .led i { height: 2px; }
  #overlay .card .wave { display: none; }
  #overlay .card .kap { margin-top: 2px; }
}
.xfenster .luefter3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.xfenster .luefter3 label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.xfenster .luefter3 input { width: 100%; height: 28px; accent-color: var(--verb-active); }
.xfenster .luefter3 b { color: var(--verb-hover); }
.spiel-stapler canvas, .spiel-luft canvas, .spiel-rolle canvas { width: 100%; height: auto; display: block; border: 1px solid #2e2842; touch-action: none; }
.spiel-stapler .regler, .spiel-rolle .regler { grid-template-columns: 90px 1fr 34px; margin: 8px 0 4px; }
.spiel-stapler .haupt, .spiel-luft .werfen, .spiel-rolle .los { min-height: 48px; font-size: 17px; }
.spiel-stapler .los, .spiel-luft .werfen, .spiel-rolle .los { width: 100%; }
.spiel-stapler .heben:not([hidden]) { width: 100%; margin-top: 6px; }
@media (max-height: 520px) {
  .xfenster[class*="spiel-"] .win { width: min(820px, 96vw) !important; padding: 8px 14px 10px; }
  .xfenster[class*="spiel-"] h2 { font-size: 17px; margin-bottom: 4px; }
  .xfenster[class*="spiel-"] .help { font-size: 12px; line-height: 1.35; margin: 0 44px 4px 0; }
  .xfenster[class*="spiel-"] .feld:has(> canvas) { display: grid; grid-template-columns: auto minmax(180px, 1fr); column-gap: 14px; align-items: center; margin: 4px 0; }
  .xfenster[class*="spiel-"] .feld:has(> canvas) > canvas { grid-row: 1 / span 6; width: auto; height: min(56vh, 230px); }
  .xfenster[class*="spiel-"] .feld:has(> canvas) > :not(canvas) { grid-column: 2; }
  .xfenster[class*="spiel-"] .luefter3 { grid-template-columns: 1fr; gap: 2px; }
  .xfenster[class*="spiel-"] .luefter3 label { flex-direction: row; gap: 8px; }
  .xfenster[class*="spiel-"] .status { margin: 2px 0 0; font-size: 13px; }
}
.xfenster .luefter3 label { white-space: nowrap; }
#game.hoch #side > #progress, #game.quer-handy #side > #progress { position: static; justify-content: center; margin: 4px 6px 0; flex-wrap: nowrap; white-space: nowrap; }
#game.quer-handy #side > #progress { padding: 2px 6px; font-size: 10px; gap: 4px; }
#game.quer-handy #side > #progress .bar { width: 46px; }
#game.hoch #dialog[data-ort]:has(#line:empty)::before, #game.quer-handy #dialog[data-ort]:has(#line:empty)::before {
  content: attr(data-ort); display: block; color: var(--verb-hover); font-weight: bold; font-size: 15px; line-height: 1.4; }
#game.hoch #dialog[data-ort]:has(#line:empty)::after, #game.quer-handy #dialog[data-ort]:has(#line:empty)::after {
  content: attr(data-ort2); display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
#game.quer-handy #dialog[data-ort]:has(#line:empty)::before { font-size: 13px; }
#game.quer-handy #dialog[data-ort]:has(#line:empty)::after { content: none; }
#game.quer-handy #dialog[data-ort]:has(#line:empty)::before { display: inline; font-size: 12px; }
#game.quer-handy #side > #progress { margin: 2px 4px 0; }
#game.quer-handy #dialog:has(#line:empty) { min-height: 26px; }
#overlay:has(> .title) { background: radial-gradient(ellipse at center, rgba(12, 10, 22, 0.55), rgba(5, 4, 10, 0.82)), url(img/kulisse/intro.webp) center / cover no-repeat; }
#overlay > .title { background: rgba(14, 11, 24, 0.88); border: 1px solid #3a3352; padding: 22px 28px 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); max-width: min(680px, 94%); }
#game.hoch #side > #progress ~ #dialog { min-height: 66px; }
#game.quer-handy #side > #progress { font-size: 11px; }
#game.hoch #inv.eine-reihe { grid-template-columns: 1fr 88px; }
#game.hoch #inv.eine-reihe #inv-nav { flex-direction: row; }
#game.hoch #inv.eine-reihe #inv-nav button { min-height: 0; }
.verb .vk { display: none; font: inherit; }
#game.hoch #verbs { grid-template-columns: repeat(6, 1fr); gap: 3px; }
#game.hoch .verb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; padding: 4px 0; min-height: 50px; letter-spacing: 0; white-space: nowrap; }
#game.hoch .verb > span { display: none; }
#game.hoch .verb .vk { display: block; }
#game.hoch .verb svg { width: 22px; height: 22px; }
#game.hoch #sys { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 6px; gap: 3px; }
#game.hoch #sys button { white-space: nowrap; padding: 4px 1px; }
