:root {
  --ink: #141414;
  --paper: #fdf6e3;
  --sky: #8fd0e8;
  --sky2: #d8f0f8;
  --saffron: #f59e0b;
  --orange: #f97316;
  --marigold: #ffd66b;
  --teal: #0d9488;
  --pink: #e86aa4;
  --red: #e04b3a;
  --green: #3fa34d;
  --steel: #8d99a6;
  --steel-dark: #5b6672;
  --concrete: #b9bec5;
  --shadow: 6px 6px 0 rgba(20, 20, 20, 0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Baloo 2', 'Comic Sans MS', cursive;
  background:
    radial-gradient(rgba(255, 214, 107, 0.4) 1.5px, transparent 1.6px),
    linear-gradient(180deg, #f4d58d 0%, #eec07a 45%, #e5a86a 100%);
  background-size: 22px 22px, auto;
  background-attachment: fixed, fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---------- Passwort-Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(rgba(255, 214, 107, 0.06) 1.5px, transparent 1.6px),
    linear-gradient(180deg, #2b2118 0%, #171310 60%, #100d0a 100%);
  background-size: 22px 22px, auto;
  padding: 16px;
  transition: opacity 0.35s;
}
.gate.gone { opacity: 0; pointer-events: none; }
.gate-panel {
  width: min(440px, 94vw);
  text-align: center;
  padding: 28px 26px;
}
.gate-emoji { font-size: 56px; }
.gate-title {
  font-family: 'Bangers', cursive;
  font-size: 40px;
  letter-spacing: 2px;
  color: var(--orange);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--marigold);
  margin-top: 2px;
}
.gate-text { font-weight: 700; margin: 8px 0 16px; opacity: 0.9; }
.gate .inp {
  display: block;
  width: 100%;
  font-size: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.gate-error {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 800;
  color: var(--red);
}

.screen {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  position: relative;
}

/* ---------- Deko ---------- */
.deco {
  position: fixed;
  width: 320px;
  height: 320px;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}
.deco svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.deco-left { top: -90px; left: -90px; }
.deco-right { bottom: -90px; right: -90px; }
.deco-right svg { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Southpark-Szene (Hero) ---------- */
.hero { text-align: center; position: relative; padding: 14px 0 130px; }
.sp-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sp-sun {
  position: absolute;
  top: 8px;
  right: 4%;
  width: 96px;
  height: 96px;
  animation: sunspin 45s linear infinite;
}
@keyframes sunspin { to { transform: rotate(360deg); } }
.sp-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  display: block;
}
.sp-snow { position: absolute; inset: 0; }
.sp-snow i {
  position: absolute;
  top: -12px;
  color: var(--saffron);
  text-shadow: 0 0 1px rgba(20, 20, 20, 0.25);
  animation: snowfall linear infinite;
}
@keyframes snowfall { to { top: calc(100% + 14px); } }
.hero > *:not(.sp-scene) { position: relative; z-index: 1; }

.bunting {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding-top: 4px;
  max-width: 700px;
  margin: 0 auto;
}
.bunting::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
  border-radius: 2px;
}
.bunting i {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 26px solid #2f6db3;
  margin-top: 6px;
}
.bunting i:nth-child(4n + 1) { border-top-color: #2f6db3; }
.bunting i:nth-child(4n + 2) { border-top-color: #3fa34d; }
.bunting i:nth-child(4n + 3) { border-top-color: #e04b3a; }
.bunting i:nth-child(4n + 4) { border-top-color: #f2a03d; }

/* ---------- Hero / Landing ---------- */
.starburst {
  position: absolute;
  top: 0;
  right: 4%;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  font-family: 'Bangers', cursive;
  font-size: 30px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  clip-path: polygon(50% 0%, 59% 17%, 76% 6%, 76% 25%, 95% 22%, 85% 38%, 100% 50%, 85% 62%, 95% 78%, 76% 75%, 76% 94%, 59% 83%, 50% 100%, 41% 83%, 24% 94%, 24% 75%, 5% 78%, 15% 62%, 0% 50%, 15% 38%, 5% 22%, 24% 25%, 24% 6%, 41% 17%);
  animation: wob 1.6s ease-in-out infinite;
}
@keyframes wob { 50% { transform: rotate(9deg) scale(1.07); } }

.title {
  font-family: 'Bangers', cursive;
  font-size: clamp(64px, 11vw, 128px);
  line-height: 0.9;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--red), 10px 10px 0 var(--ink);
  transform: rotate(-2deg);
}
.title span {
  color: var(--marigold);
  text-shadow: 6px 6px 0 var(--red), 10px 10px 0 var(--ink);
}

.tagline {
  max-width: 640px;
  margin: 18px auto 22px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Panels & Buttons ---------- */
.panel {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  z-index: 1;
}

.btn {
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 1.5px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 10px 22px;
  background: var(--marigold);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
  user-select: none;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-orange { background: var(--orange); color: #fff; -webkit-text-stroke: 1px var(--ink); }
.btn-teal { background: var(--teal); color: #fff; -webkit-text-stroke: 1px var(--ink); }
.btn-big { font-size: 30px; padding: 14px 34px; }
.btn-small { font-size: 18px; padding: 6px 12px; }

/* ---------- How-to ---------- */
.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.how { text-align: center; transform: rotate(-0.5deg); }
.how:nth-child(2) { transform: rotate(0.6deg); }
.how h3 { font-family: 'Bangers', cursive; font-size: 24px; letter-spacing: 1px; margin: 8px 0 6px; }
.how p { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.how-num {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-family: 'Bangers', cursive;
  font-size: 28px;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Scoreboard ---------- */
.board-panel { margin-top: 8px; }
.board-title {
  font-family: 'Bangers', cursive;
  font-size: 30px;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 12px;
  background: var(--ink);
  color: var(--marigold);
  border-radius: 10px;
  padding: 4px 10px;
}
.score-list { list-style: none; counter-reset: score; }
.score-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 7px 10px;
  border-bottom: 2px dashed rgba(20, 20, 20, 0.25);
  font-weight: 700;
  counter-increment: score;
}
.score-list li:last-child { border-bottom: none; }
.score-list li::before {
  content: counter(score);
  font-family: 'Bangers', cursive;
  font-size: 22px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--marigold);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.score-list li:first-child::before { background: var(--orange); }
.score-list li.score-empty { justify-content: center; color: rgba(20, 20, 20, 0.55); }
.score-list li.score-empty::before { content: none; }
.score-name { font-size: 17px; }
.score-sub { font-size: 13px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px; }
.score-time { margin-left: auto; font-family: 'Bangers', cursive; font-size: 24px; letter-spacing: 1px; }

.foot { text-align: center; margin-top: 26px; font-weight: 700; opacity: 0.6; }

/* ---------- Topbar ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bar-title {
  font-family: 'Bangers', cursive;
  font-size: 34px;
  letter-spacing: 1.5px;
}
.bar-name {
  font-family: 'Bangers', cursive;
  font-size: 26px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 2px 14px;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-target {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  background: var(--pink);
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 2px 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.inp {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 7px 12px;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--ink);
  width: 250px;
  max-width: 100%;
}
.inp::placeholder { color: rgba(20, 20, 20, 0.55); opacity: 1; }
.inp:focus { outline: 3px solid var(--marigold); }

.timer {
  font-family: 'Bangers', cursive;
  font-size: 42px;
  letter-spacing: 2px;
  background: var(--ink);
  color: var(--marigold);
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 0 18px;
  box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.4);
}
.timer.low {
  background: var(--red);
  color: #fff;
  animation: blink 0.5s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.55; } }

/* ---------- Papierschneide-Figuren (Southpark) ---------- */
.sp-svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: spwobble 0.38s linear infinite;
  overflow: visible;
}
@keyframes spwobble {
  0%, 100% { transform: rotate(-1.4deg) translateY(0.5px); }
  30% { transform: rotate(1.1deg) translateY(-1px); }
  55% { transform: rotate(-0.6deg) translateY(0); }
  80% { transform: rotate(1.5deg) translateY(1px); }
}

/* ---------- Stations ---------- */
.stations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 840px) { .stations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stations { grid-template-columns: 1fr; } }

.station {
  background: linear-gradient(180deg, #e8edf2 0%, #d3dae2 100%);
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  position: relative;
  transition: transform 0.1s;
}
.station::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(45deg, var(--marigold) 0 12px, var(--ink) 12px 24px);
  border-bottom: 3px solid var(--ink);
  border-radius: 10px 10px 0 0;
}
.station .st-head { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.station .st-icon { font-size: 30px; }
.station .st-name { font-family: 'Bangers', cursive; font-size: 20px; letter-spacing: 1px; }
.station .st-kind {
  font-size: 12px;
  font-weight: 800;
  background: var(--marigold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 8px;
  display: inline-block;
  margin-top: 2px;
}

.station.empty {
  background: repeating-linear-gradient(45deg, #eef2f6, #eef2f6 12px, #dde5ec 12px, #dde5ec 24px);
  cursor: pointer;
  min-height: 110px;
}
.station.empty:hover { transform: scale(1.02); }
.st-empty-label {
  margin-top: 14px;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: normal;
  padding: 0 4px;
  opacity: 0.5;
}

.station.selectable { cursor: pointer; }
.station.selected { outline: 4px dashed var(--teal); outline-offset: 3px; }

/* ---------- Worker ---------- */
.worker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px;
  background: var(--paper);
}
.w-avatar { width: 42px; height: 62px; flex: none; }
.w-avatar svg { width: 100%; height: 100%; }
.w-info { flex: 1; min-width: 0; }
.w-name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.w-rate { font-family: 'Bangers', cursive; font-size: 17px; background: var(--teal); color: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px; }

.w-stats { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.stat .stat-label { width: 62px; }
.stat .bar {
  flex: 1;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.stat .bar i { display: block; height: 100%; }
.stat .stat-val { width: 26px; text-align: right; }

/* ---------- Progressbars ---------- */
.pbar {
  height: 16px;
  border: 3px solid var(--ink);
  border-radius: 9px;
  background: #262b31;
  overflow: hidden;
  margin-top: 10px;
}
.pbar i {
  display: block;
  height: 100%;
  width: 0%;
  transition: width 0.15s linear;
  background: repeating-linear-gradient(45deg, var(--marigold) 0 10px, var(--orange) 10px 20px);
  background-size: 28px 100%;
  animation: stripes 0.8s linear infinite;
}
@keyframes stripes { to { background-position: 28px 0; } }
.pbar.cond { height: 10px; }
.pbar.cond i { background: var(--teal); animation: none; transition: width 0.3s linear, background 0.3s; }

.st-prod-label { margin-top: 2px; font-size: 11px; font-weight: 800; opacity: 0.75; text-align: right; }

.st-status {
  margin-top: 3px;
  min-height: 13px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-status.good { color: #0f766e; }
.st-status.bad { color: #b91c1c; }

/* ---------- Sprechblasen ---------- */
.bubble {
  position: absolute;
  top: -16px;
  left: 6px;
  max-width: 172px;
  word-wrap: break-word;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.7);
  z-index: 5;
  animation: pop 0.18s ease;
}
.bubble::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 16px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--ink);
}
.bubble::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  z-index: 1;
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } }

/* ---------- Container ---------- */
.dock-label {
  font-family: 'Bangers', cursive;
  font-size: 16px;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin: 6px 0 6px 4px;
}
.containers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.container {
  position: relative;
  width: 92px;
  height: 66px;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(20, 20, 20, 0.14) 0 4px, transparent 4px 13px),
    linear-gradient(180deg, #f08c2e, #dd6a1a);
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.6);
}
.container::after {
  content: 'MASALA';
  position: absolute;
  bottom: 1px;
  right: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}
.container .c-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: repeating-linear-gradient(45deg, var(--teal) 0 8px, #0b7c72 8px 16px);
  transition: height 0.15s linear;
}
.container .c-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.container .c-label { position: absolute; top: 2px; left: 6px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.85); padding: 0 4px; border-radius: 6px; }
.container .stamp {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  background: rgba(224, 75, 58, 0.9);
  transform: rotate(-12deg);
}
.container.full .stamp { display: grid; }

/* ---------- Ticker ---------- */
.ticker-panel { margin-top: 16px; }
.ticker {
  font-family: 'Bangers', cursive;
  font-size: 23px;
  letter-spacing: 1px;
  background: #1e242b;
  color: var(--marigold);
  border: 4px solid var(--ink);
  border-radius: 10px;
  padding: 6px 14px;
}
.event-log { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.event-log div { font-size: 13px; font-weight: 700; }
.event-log .ev-bad { color: #b91c1c; }
.event-log .ev-good { color: #0f766e; }

/* ---------- Countdown ---------- */
.countdown {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.55);
  z-index: 700;
  font-family: 'Bangers', cursive;
  font-size: 180px;
  color: var(--marigold);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 8px 8px 0 var(--ink);
}
.countdown.go { color: #7ddf8a; }

/* ---------- Result ---------- */
.result { text-align: center; max-width: 640px; margin: 40px auto; }
.result-emoji { font-size: 80px; }
.result-title {
  font-family: 'Bangers', cursive;
  font-size: 56px;
  letter-spacing: 2px;
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--marigold);
}
.result-text { font-size: 19px; font-weight: 700; margin: 10px 0; }
.result-rank {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  background: var(--teal);
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  display: inline-block;
  padding: 4px 18px;
  margin-bottom: 12px;
}
.result-board { text-align: left; margin: 14px 0; max-height: 220px; overflow: auto; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Setup ---------- */
.crew-panel h3 { font-family: 'Bangers', cursive; font-size: 26px; letter-spacing: 1px; }
.hint { font-family: 'Baloo 2', cursive; font-size: 13px; font-weight: 700; opacity: 0.6; }
.crew-pool {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 90px;
}
.crew-pool .worker {
  margin-top: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
  cursor: pointer;
  transition: transform 0.1s;
}
.crew-pool .worker:hover { transform: translateY(-3px) rotate(-1deg); }
.crew-pool .worker.selected { outline: 4px dashed var(--teal); outline-offset: 3px; }
.crew-pool .w-avatar { width: 48px; height: 70px; }
.crew-pool .w-stats { width: 100%; }
.setup-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------- Werkshalle (Brett) ---------- */
.board-wrap { overflow-x: auto; padding: 10px 2px; }
.board {
  position: relative;
  width: 940px;
  height: 580px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(20, 20, 20, 0.22) 118px 122px),
    linear-gradient(180deg, #6b5a44 0%, #5c4d3a 40%, #4a3f30 100%);
  border: 6px solid var(--ink);
  border-radius: 14px;
  box-shadow: inset 0 0 90px rgba(20, 12, 4, 0.65), var(--shadow);
  overflow: hidden;
}
.board::before {
  content: '';
  position: absolute;
  left: -25%;
  top: 132px;
  width: 150%;
  height: 760px;
  border-top: 6px solid #3a2f22;
  background:
    radial-gradient(ellipse 220px 60px at 22% 30%, rgba(120, 20, 10, 0.28), transparent 70%),
    radial-gradient(ellipse 180px 50px at 70% 55%, rgba(120, 20, 10, 0.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(20, 12, 4, 0.28) 0 3px, transparent 3px 110px),
    repeating-linear-gradient(0deg, rgba(20, 12, 4, 0.2) 0 3px, transparent 3px 110px),
    linear-gradient(180deg, #8a7355, #6d5a42 45%, #574733);
  transform: perspective(680px) rotateX(55deg);
  transform-origin: 50% 0%;
  z-index: 0;
}

/* ---------- Wand-Deko ---------- */
.wall-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.window {
  position: absolute;
  top: 8px;
  width: 128px;
  height: 76px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  background: #bfe3f2;
}
.window svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.window::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), var(--ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(0deg, transparent calc(50% - 2px), var(--ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px));
}
.chimney {
  position: absolute;
  top: -2px;
  width: 34px;
  height: 54px;
  background: linear-gradient(90deg, #6b7280, #4b5563);
  border: 4px solid var(--ink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.chimney::after {
  content: '';
  position: absolute;
  top: 4px;
  left: -2px;
  right: -2px;
  height: 9px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 3px;
}
.chimney .puff {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: smoke 3s linear infinite;
}
@keyframes smoke {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translate(-28%, -44px) scale(1.7); opacity: 0; }
}
.wall-sign {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bangers', cursive;
  font-size: 15px;
  letter-spacing: 1px;
  background: var(--marigold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 0 12px;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  white-space: nowrap;
}
.floor-hazard {
  position: absolute;
  left: 0;
  right: 0;
  top: 122px;
  height: 13px;
  background: repeating-linear-gradient(45deg, var(--marigold) 0 16px, var(--ink) 16px 32px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  z-index: 1;
}
.conveyor {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 222px;
  height: 40px;
  z-index: 2;
}
.conveyor .belt {
  position: absolute;
  inset: 6px 12px;
  background: repeating-linear-gradient(90deg, #3a3f46 0 26px, #2c3036 26px 32px);
  background-size: 32px 100%;
  border: 4px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  animation: beltmove 0.9s linear infinite;
}
@keyframes beltmove { to { background-position: 32px 0; } }
.conveyor .crate {
  position: absolute;
  top: -8px;
  left: -30px;
  font-size: 26px;
  z-index: 1;
  filter: drop-shadow(2px 2px 0 rgba(20, 20, 20, 0.4));
  animation: crate 6s linear infinite;
}
@keyframes crate {
  from { left: -34px; }
  to { left: 940px; }
}

/* ---------- Arbeitsstationen ---------- */
.b-spot {
  position: absolute;
  width: 190px;
  height: 180px;
  background: linear-gradient(180deg, #e6ebf0 0%, #cdd5dd 100%);
  border: 4px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.65);
  padding: 6px 8px 7px;
  display: flex;
  flex-direction: column;
}
.b-spot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--marigold) 0 10px, var(--ink) 10px 20px);
  border-bottom: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
}
.b-stname {
  font-family: 'Bangers', cursive;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  white-space: normal;
  line-height: 1.1;
  background: var(--ink);
  color: var(--marigold);
  border-radius: 6px;
  padding: 1px 6px;
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  align-self: flex-start;
}
.b-scene {
  position: relative;
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 2px;
}
.b-worker {
  position: relative;
  width: 44px;
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}
.b-worker .w-avatar {
  display: block;
  width: 40px;
  height: 58px;
}
.b-worker::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 7px;
  background: rgba(20, 20, 20, 0.22);
  border-radius: 50%;
}
.b-machine {
  position: relative;
  flex: 1;
  height: 42px;
  background:
    radial-gradient(circle 2px at 8px 8px, rgba(20, 20, 20, 0.4) 98%, transparent),
    radial-gradient(circle 2px at calc(100% - 8px) 8px, rgba(20, 20, 20, 0.4) 98%, transparent),
    linear-gradient(180deg, #aeb8c2, #8d99a6);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: inset 0 -8px 0 rgba(20, 20, 20, 0.12);
}
.b-gauge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f4;
  border: 3px solid var(--ink);
}
.b-gauge i {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 9px;
  margin-left: -1.5px;
  background: #d33;
  transform-origin: 50% 100%;
  animation: needle 1.1s ease-in-out infinite alternate;
}
@keyframes needle { from { transform: rotate(-42deg); } to { transform: rotate(46deg); } }
.b-mach {
  position: absolute;
  top: 1px;
  left: 32px;
  font-size: 20px;
  z-index: 1;
  animation: machrun 0.5s steps(2) infinite;
}
@keyframes machrun { 50% { transform: translateY(1px); } }
.b-machine::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #2b2f36 0 10px, #3a4048 10px 20px);
  background-size: 20px 100%;
  border: 2px solid var(--ink);
  border-radius: 4px;
  animation: beltmove2 0.7s linear infinite;
}
@keyframes beltmove2 { to { background-position: 20px 0; } }
.b-scene .w-rate {
  position: absolute;
  top: -2px;
  right: 0;
  font-size: 12px;
  padding: 0 6px;
  z-index: 2;
}
.b-spot.boosted .sp-svg { animation-duration: 0.2s; }
.b-spot.slowed .sp-svg { animation-duration: 1.3s; filter: grayscale(0.55) brightness(0.92); }
.b-spot.slowed .b-mach { animation: none; opacity: 0.75; }
.b-spot.slowed .b-gauge i { animation-duration: 2.4s; }
.b-spot.boosted::after {
  content: '🔥';
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 24px;
  filter: drop-shadow(2px 2px 0 rgba(20, 20, 20, 0.45));
  animation: pulse 0.9s ease-in-out infinite;
}
.b-wrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.b-wrow .w-name { font-size: 13.5px; white-space: nowrap; }
.b-wrow .pbar.cond { margin-top: 0; height: 8px; flex: 1; }
.b-prod { margin-top: auto; }
.b-prod .pbar { margin-top: 0; height: 14px; border-width: 2px; }
.b-prod .st-prod-label { margin-top: 1px; }
.b-worker.in-range {
  outline: 3px dashed var(--marigold);
  outline-offset: 2px;
  border-radius: 8px;
  animation: rangepulse 0.7s ease-in-out infinite;
}
@keyframes rangepulse { 50% { outline-color: var(--orange); } }

/* ---------- Aufseher ---------- */
#warden {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 68px;
  font-size: 0;
  z-index: 10;
  will-change: transform;
}
#warden .warden-ico { position: relative; z-index: 2; display: block; width: 100%; height: 100%; transform-origin: 50% 70%; }
#warden .warden-ico .sp-svg { animation-duration: 0.5s; }
#warden .warden-shadow {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 40px;
  height: 13px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20, 12, 6, 0.45), transparent 70%);
  border-radius: 50%;
}
#warden.walking .warden-ico { animation: wwalk 0.32s ease-in-out infinite; }
@keyframes wwalk {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-3deg); }
}
#warden.swing .warden-ico { animation: swing 0.22s ease-out; }
@keyframes swing {
  0% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(26deg) scale(1.07); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Peitsche: eigene Animation – leichtes Wippen im Stand, Lash beim Schlag */
.whip-g {
  transform-box: view-box;
  transform-origin: 84px 101px;
  animation: whipsway 1.8s ease-in-out infinite;
}
@keyframes whipsway {
  0%, 100% { transform: rotate(7deg); }
  50% { transform: rotate(-8deg); }
}
#warden.swing .whip-g { animation: whiplash 0.26s ease-out; }
@keyframes whiplash {
  0% { transform: rotate(-8deg); }
  30% { transform: rotate(105deg); }
  55% { transform: rotate(50deg); }
  78% { transform: rotate(125deg); }
  100% { transform: rotate(0deg); }
}
#range-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  height: 128px;
  border: 3px dashed rgba(20, 20, 20, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(20, 20, 20, 0.08);
  pointer-events: none;
  will-change: transform;
}

.whip-crack {
  position: absolute;
  height: 5px;
  margin-top: -2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fca5a5, var(--red) 40%, #7f1d1d);
  box-shadow: 0 0 8px rgba(224, 75, 58, 0.8);
  transform-origin: 0 50%;
  z-index: 410;
  animation: crackfade 0.2s ease-out forwards;
}
@keyframes crackfade { to { opacity: 0; } }

.spark {
  position: absolute;
  font-size: 30px;
  z-index: 410;
  pointer-events: none;
  animation: sparkpop 0.45s ease-out forwards;
}
@keyframes sparkpop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30% { opacity: 1; transform: translate(-50%, -55%) scale(1.3); }
  100% { opacity: 0; transform: translate(-50%, -85%) scale(1.7); }
}

.b-worker.hit { animation: hitflash 0.35s; }
@keyframes hitflash {
  0% { background: rgba(224, 75, 58, 0.55); transform: translateX(-5px); }
  40% { background: rgba(224, 75, 58, 0.35); transform: translateX(5px); }
  100% { background: transparent; transform: none; }
}

.moan-bubble { background: #ffe4e6; border-color: var(--red); max-width: 170px; }

.bar-hint {
  font-family: 'Bangers', cursive;
  font-size: 16px;
  letter-spacing: 0.5px;
  white-space: normal;
  line-height: 1.25;
  max-width: 430px;
  text-align: left;
  background: var(--teal);
  color: #fff;
  -webkit-text-stroke: 0.5px var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 4px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.bar-hint b { color: var(--marigold); }

/* ---------- Name-Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: grid;
  place-items: center;
  z-index: 80;
}
.modal-panel {
  text-align: center;
  width: min(440px, 92vw);
  animation: pop 0.2s ease;
}
.modal-emoji { font-size: 64px; }
.modal-title {
  font-family: 'Bangers', cursive;
  font-size: 44px;
  letter-spacing: 2px;
  color: var(--orange);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--marigold);
  margin-top: 4px;
}
.modal-text { font-weight: 700; margin: 8px 0 14px; }
.modal-panel .inp { width: 100%; font-size: 20px; text-align: center; margin-bottom: 18px; }

/* ---------- Effekte ---------- */
@keyframes shake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-5px, -2px); }
  80% { transform: translate(5px, 3px); }
}
.shake { animation: shake 0.35s; }

@keyframes punch {
  0% { transform: scale(1); }
  40% { transform: scale(1.05) rotate(0.6deg); }
  100% { transform: scale(1); }
}
.punch { animation: punch 0.2s; }

@keyframes pulse { 50% { transform: scale(1.12); } }

#confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 99; }
.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  border: 1px solid rgba(20, 20, 20, 0.5);
  animation: confetti-fall 1.1s ease-out forwards;
}
@keyframes confetti-fall {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
    opacity: 0;
  }
}

/* ---------- Straße vor der Fabrik ---------- */
.street {
  position: absolute;
  left: 0;
  right: 0;
  top: 452px;
  height: 128px;
  background: linear-gradient(180deg, #5b6672 0%, #454e59 60%, #3c444e 100%);
  border-top: 5px solid var(--ink);
}
.street-asphalt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 2px at 20px 20px, rgba(255, 255, 255, 0.06) 98%, transparent),
    radial-gradient(circle 2px at 60px 40px, rgba(255, 255, 255, 0.05) 98%, transparent);
  background-size: 80px 60px;
}
.street-lane {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--marigold) 0 44px, transparent 44px 88px);
  opacity: 0.8;
}
.street-facade {
  position: absolute;
  top: 6px;
  right: 10px;
  font-family: 'Bangers', cursive;
  font-size: 15px;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--marigold);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 2px 12px;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  white-space: nowrap;
}

/* ---------- Blut (Partikel) ---------- */
#blood-layer {
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}
.blood-drop {
  position: absolute;
  background: radial-gradient(circle at 35% 30%, #ff5a4d, #b3160c 70%, #7f0d05);
  border-radius: 50% 45% 55% 48%;
  animation: bloodfly 0.45s ease-out forwards;
}
@keyframes bloodfly {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  25% { opacity: 0.95; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(0.9); opacity: 0; }
}

/* ---------- Frei laufende Arbeiter ---------- */
.g-worker {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 62px;
  font-size: 0;
  will-change: transform;
  transform-origin: 50% 50%;
}
.g-worker .w-avatar { display: block; width: 44px; height: 62px; }
.g-worker .gw-tag {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 5px;
  box-shadow: 2px 2px 0 rgba(20, 20, 20, 0.5);
}
.g-worker .gw-name {
  font-family: 'Bangers', cursive;
  font-size: 12px;
  letter-spacing: 0.5px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-worker .gw-cond {
  width: 26px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #262b31;
  overflow: hidden;
  display: inline-block;
}
.g-worker .gw-cond i { display: block; height: 100%; background: var(--teal); transition: width 0.2s linear; }
.g-worker .gw-state {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  animation: pulse 0.8s ease-in-out infinite;
}
.g-worker .bubble { top: -40px; left: -10px; }

.g-worker.boosted .sp-svg { animation-duration: 0.2s; }
.g-worker.boosted::after {
  content: '🔥';
  position: absolute;
  top: -6px;
  right: -12px;
  font-size: 20px;
  animation: pulse 0.9s ease-in-out infinite;
}
.g-worker.low .sp-svg { filter: grayscale(0.5) brightness(0.9); animation-duration: 1.2s; }
.g-worker.low .gw-tag { border-color: var(--red); background: #ffe4e6; }
.g-worker.fleeing .sp-svg { animation-duration: 0.16s; }
.g-worker.fleeing::after {
  content: '❗';
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 22px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  animation: pulse 0.5s ease-in-out infinite;
}
.g-worker.in-range { outline: 3px dashed var(--marigold); outline-offset: 3px; border-radius: 10px; animation: rangepulse 0.7s ease-in-out infinite; }
.g-worker.hit .w-avatar { animation: hitflash 0.35s; }
.g-worker.dead .w-avatar {
  transform: rotate(88deg) translateY(6px);
  transform-origin: 50% 90%;
  filter: grayscale(0.7) brightness(0.8);
  transition: transform 0.5s ease-in;
}
.g-worker.dead .gw-tag, .g-worker.dead .gw-state { display: none; }
.g-worker.dead::after {
  content: '✝️';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  filter: drop-shadow(1px 1px 0 rgba(20, 20, 20, 0.5));
}
.g-worker.gone { display: none; }

/* ---------- Gefängnistransporter ---------- */
#transport {
  position: absolute;
  left: 0;
  top: 0;
  width: 210px;
  height: 92px;
  font-size: 0;
  will-change: transform;
  filter: drop-shadow(4px 4px 0 rgba(20, 20, 20, 0.35));
}
#transport .tr-svg { width: 100%; height: 100%; }

/* ---------- Demo ---------- */
#demo-group {
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 90px;
  font-size: 0;
  will-change: transform;
}
.demo-banner {
  position: absolute;
  top: -26px;
  left: 0;
  white-space: nowrap;
  font-family: 'Bangers', cursive;
  font-size: 14px;
  letter-spacing: 0.5px;
  background: var(--marigold);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 1px 8px;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  transform: rotate(-2deg);
}
.demo-protester {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 60px;
  transition: transform 0.4s ease-in, opacity 0.4s;
}
.demo-protester .w-avatar { display: block; width: 40px; height: 60px; }
.demo-protester .demo-sign {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}
.demo-protester.down { transform: rotate(84deg) translateY(10px); transform-origin: 50% 95%; opacity: 0.85; }
.demo-protester.down .demo-sign { opacity: 0; }
.demo-group.in-range { outline: 3px dashed var(--marigold); outline-offset: 4px; border-radius: 12px; animation: rangepulse 0.7s ease-in-out infinite; }

/* ---------- Flucht-Bubble ---------- */
.flee-bubble { background: #fff7e6; border-color: var(--orange); }

/* ---------- LEER-Indikator an Station ---------- */
.b-empty {
  display: none;
  margin-top: 3px;
  font-family: 'Bangers', cursive;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--red);
  text-align: center;
  background: #ffe4e6;
  border: 2px dashed var(--red);
  border-radius: 8px;
  padding: 0 4px;
  line-height: 1.2;
  animation: blink 0.8s steps(2) infinite;
}

/* ---------- Hero-Buttons ---------- */
.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------- Tutorial-Modal ---------- */
.tutorial-panel { width: min(640px, 94vw); padding: 28px 30px 22px; }
.tutorial-panel .modal-title { font-size: 34px; letter-spacing: 1px; }
.tutorial-text {
  font-size: 16px;
  line-height: 1.65;
  min-height: 150px;
  display: block;
  text-align: center;
  padding: 16px 2px 0;
}
.tutorial-text strong { color: var(--orange); }
.tut-step {
  font-family: 'Bangers', cursive;
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.6);
  margin: 10px 0 14px;
}
.tutorial-nav { display: flex; gap: 12px; justify-content: center; }
.tut-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* ---------- Fabrik-Backdrop (3D-Tiefe) ---------- */
.factory-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 124px;
  background:
    repeating-linear-gradient(90deg, rgba(20, 12, 4, 0.12) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #4a3f30 0%, #5c4d3a 60%, #6b5a44 100%);
  z-index: 0;
}

/* ---------- Hängelampen ---------- */
.lamp {
  position: absolute;
  top: 0;
  width: 46px;
  z-index: 2;
  transform: translateX(-50%);
  pointer-events: none;
}
.lamp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 14px;
  background: var(--ink);
}
.lamp::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: linear-gradient(180deg, #4b5563, #2b2f36);
  border: 3px solid var(--ink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.lamp-bulb {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 40% 35%, #fff7c2, #ffd66b 60%, #f59e0b);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 20px 7px rgba(255, 214, 107, 0.5);
  z-index: 1;
}
.lamp-cone {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 220, 140, 0.32), rgba(255, 220, 140, 0));
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Hintergrund-Maschinen ---------- */
.bg-machine {
  position: absolute;
  top: 92px;
  width: 118px;
  height: 58px;
  background: linear-gradient(180deg, #3a3f46, #2b2f36);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.35);
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0.92;
}
.bg-machine span { font-size: 30px; filter: grayscale(0.45) brightness(0.85); }

/* ---------- Stacheldraht ---------- */
.barbed-wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 446px;
  height: 16px;
  z-index: 3;
  background:
    repeating-linear-gradient(65deg, transparent 0 12px, #6b7683 12px 15px, transparent 15px 24px),
    repeating-linear-gradient(-65deg, transparent 0 12px, #6b7683 12px 15px, transparent 15px 24px);
  border-top: 2px solid #6b7683;
  border-bottom: 2px solid #6b7683;
  opacity: 0.85;
  filter: drop-shadow(1px 1px 0 rgba(20, 20, 20, 0.4));
  pointer-events: none;
}

/* ---------- Garlande (Marigold) ---------- */
.garland { font-size: 14px; }

/* ---------- Zweites Schild (Knechtschaft) ---------- */
.wall-sign2 {
  position: absolute;
  top: 46px;
  left: 18px;
  font-family: 'Bangers', cursive;
  font-size: 12px;
  letter-spacing: 1px;
  background: #7f1d1d;
  color: #ffd66b;
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 1px 9px;
  box-shadow: 3px 3px 0 rgba(20, 20, 20, 0.5);
  white-space: nowrap;
  transform: rotate(-1.5deg);
}

/* ---------- Kettenschicht (Knechtschaft) ---------- */
#chain-layer {
  position: absolute;
  inset: 0;
  z-index: 101;
  pointer-events: none;
}
.chain-svg { display: block; width: 100%; height: 100%; }
.chain-line {
  stroke: #6b7683;
  stroke-width: 5;
  stroke-dasharray: 7 4;
  stroke-linecap: round;
  opacity: 0.95;
}
