.kpi-panel { position: relative; overflow: hidden; }
.meter span { width: 24%; }
.meter.negative { display: flex; justify-content: flex-end; }

.score-float {
  position: absolute;
  z-index: 3;
  font: 700 17px "DM Mono", monospace;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  animation: score-rise .9s cubic-bezier(.1, .75, .35, 1) forwards;
}

.score-float.positive { color: #a8f3cd; }
.score-float.negative { color: #ff937a; }

@keyframes score-rise {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -70px) scale(1.12); }
}

/* Das Spiel bleibt, aber ohne die große Pflichtunterweisung. */
.game-strip { min-height: 126px; padding: 0 0 72px; }
.game-controls {
  position: static;
  height: 54px;
  padding: 0 32px;
  display: flex;
  justify-content: flex-end;
}
.start-button { padding: 10px 15px; }

/* Keine freundlichen Trainings-Balken: Die ganze Oberfläche ist das Spielfeld. */
.game-strip { display: none; }
.event-layer { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
.interrupt-card {
  position: absolute;
  width: min(300px, calc(100vw - 32px));
  padding: 17px;
  border: 2px solid #1e2825;
  background: #ff937a;
  box-shadow: 7px 7px 0 #1e2825;
  color: #1e2825;
  text-align: left;
  pointer-events: auto;
  animation: interrupt-in .22s cubic-bezier(.2, .9, .3, 1);
}
.interrupt-card > span, .interrupt-card > b { display: block; font: 10px "DM Mono", monospace; letter-spacing: .07em; }
.interrupt-card > span { margin-bottom: 11px; }
.interrupt-card strong { display: block; font-size: 18px; line-height: 1.05; }
.interrupt-card p { margin: 9px 0 15px; font-size: 13px; line-height: 1.35; }
.interrupt-card > b { border-top: 1px solid rgba(30,40,37,.35); padding-top: 10px; }
.interrupt-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 #1e2825; }
@keyframes interrupt-in { from { opacity: 0; transform: scale(.75) rotate(-2deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.decision-card { left: 50%; top: 50%; width: min(520px, calc(100vw - 32px)); transform: translate(-50%, -50%); background: #f5d54d; border-width: 8px; }
.decision-card:hover { transform: translate(-50%, -50%); box-shadow: 7px 7px 0 #1e2825; }
.decision-card { animation: decision-border .8s steps(2, end) infinite; }
.panic-mode .interrupt-card.decision-card { animation: decision-border .8s steps(2, end) infinite; }
.decision-feedback { background: #bde7d3; animation: decision-border .8s steps(2, end) infinite; }
.answer-list { display: grid; gap: 8px; }
.answer-button { border: 1px solid #1e2825; background: #f6f3ee; color: #1e2825; padding: 11px 12px; text-align: left; font: 12px "DM Sans", sans-serif; cursor: pointer; }
.answer-button:hover { background: #bde7d3; transform: translateX(3px); }
.answer-button:disabled { cursor: wait; opacity: .65; }
.confirm-button { width: 100%; border: 0; background: #1e2825; color: #fff; padding: 12px; font-weight: 700; cursor: pointer; }
.confirm-button:hover { background: #ff5d50; }
@keyframes decision-border { 0%, 100% { border-color: #ff3b30; } 50% { border-color: #f5d54d; } }
.card.overdue { border: 2px solid #ff5d50; animation: overdue-blink .85s steps(2, end) infinite; }
.card.priority-critical { box-shadow: 5px 5px 0 #1e2825, 0 0 0 3px #f5d54d; }
.card.priority-critical .tag { color: #a52b20; font-weight: 700; }
@keyframes overdue-blink { 0%, 100% { border-color: #ff5d50; } 50% { border-color: #1e2825; } }
body.panic-mode .topbar { box-shadow: inset 0 -3px 0 #ff5d50; animation: topbar-alert .9s steps(2, end) infinite; }
body.panic-mode .section-header h2::after { content: "  ● LIVE PRIORITY PRESSURE"; color: #ff5d50; font: 10px "DM Mono", monospace; letter-spacing: .06em; vertical-align: middle; animation: indicator-blink .7s steps(2, end) infinite; }
body.panic-mode .column[data-column="done"] { border-top-color: #bde7d3; }
@keyframes topbar-alert { 50% { border-color: #ff5d50; } }
@keyframes indicator-blink { 50% { opacity: .15; } }
.card, .card:hover, .card.priority-critical { box-shadow: none; border-width: 2px; }
.card.neon-pink { background: #ff4fa3; }
.card.neon-lime { background: #d7ff38; }
.card.neon-orange { background: #ff6b35; }
.card.neon-cyan { background: #20f0d0; }
.card.neon-purple { background: #b86cff; }
.card.neon-yellow { background: #ffe600; }
.card.neon-pink, .card.neon-lime, .card.neon-orange, .card.neon-cyan, .card.neon-purple, .card.neon-yellow { color: #17201d; }
.card.neon-pink p, .card.neon-lime p, .card.neon-orange p, .card.neon-cyan p, .card.neon-purple p, .card.neon-yellow p { color: #26352f; }
.card { position: relative; overflow: hidden; }
.face-tile { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #142019; border-radius: 50%; background: #fff; font-size: 19px; line-height: 1; transform: rotate(var(--face-rotation)); animation: face-panic .7s steps(2, end) infinite; }
.evasive-card { transform: translate(calc(var(--evade-x, 0px) + var(--bug-x, 0px)), calc(var(--evade-y, 0px) + var(--bug-y, 0px))); transition: transform .05s steps(2, end); }
.evasive-card:hover { transform: translate(calc(var(--evade-x, 0px) + var(--bug-x, 0px)), calc(var(--evade-y, 0px) + var(--bug-y, 0px))); }
@keyframes face-panic { 50% { transform: rotate(var(--face-rotation)) scale(1.15); } }
.card .panic-emoji { display: inline-block; margin-right: 5px; animation: emoji-panic .45s steps(2, end) infinite; }
.card.deadline-hot { border-color: #ff2d20; animation: deadline-alarm .55s steps(2, end) infinite; }
.card.deadline-hot footer span:last-child { color: #ff2d20; font-weight: 700; }
.card .tag { font-weight: 700; }
.card .tag { display: inline-block; padding: 4px 6px; background: #142019; color: #fff; }
.card h4 { display: inline-block; padding: 4px 6px; background: rgba(255,255,255,.72); color: #111b17; }
.card p { padding: 5px 6px; background: rgba(255,255,255,.58); color: #15221d; font-weight: 600; }
.card footer { padding: 7px 6px 0; background: rgba(255,255,255,.48); color: #111b17; }
.card footer span:last-child { padding: 3px 5px; background: #142019; color: #fff; animation: timer-pulse .42s steps(2, end) infinite; }
.lane-kpi { white-space: nowrap; border: 1px solid currentColor; }
.panic-mode .column::before { content: "● TIMER LIVE"; display: block; margin: 5px 0; color: #ff3b30; font: 9px "DM Mono", monospace; letter-spacing: .08em; animation: indicator-blink .45s steps(2, end) infinite; }
@keyframes timer-pulse { 50% { background: #ff3b30; color: #111; } }
.card.locked-done { cursor: not-allowed; opacity: .82; border-style: double; border-width: 4px; }
.lane-kpi { display: block; margin-left: 10px; padding: 4px 6px; color: #ff3b30; background: #1e2825; font: 8px "DM Mono", monospace; letter-spacing: .04em; animation: indicator-blink .8s steps(2, end) infinite; }
.column:nth-child(2) .lane-kpi { color: #f5d54d; }
.column:nth-child(3) .lane-kpi { color: #20f0d0; }
.column:nth-child(4) .lane-kpi { color: #bde7d3; }
.panic-mode .column-header { border-bottom: 2px solid #ff3b30; animation: lane-pressure .7s steps(2, end) infinite; }
.panic-mode .column:nth-child(2) .column-header { border-bottom-color: #f5d54d; }
.panic-mode .column:nth-child(3) .column-header { border-bottom-color: #20f0d0; }
@keyframes lane-pressure { 50% { transform: translateX(2px); } }
.toast { bottom: 28px; z-index: 30; max-width: min(680px, calc(100vw - 32px)); line-height: 1.4; }
@keyframes emoji-panic { 50% { transform: rotate(-14deg) scale(1.25); } }
@keyframes deadline-alarm { 50% { border-color: #ffe600; } }

.management-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #b9bcb9;
  transition: opacity .35s ease, visibility .35s ease;
}
.management-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.management-box {
  width: min(470px, 100%);
  padding: 34px 36px 29px;
  background: #f6f3ee;
  border: 1px solid #1e2825;
  box-shadow: 10px 10px 0 #1e2825;
}
.management-box h1 {
  margin: 0 0 22px;
  color: #1e2825;
  font-size: clamp(43px, 7vw, 62px);
  line-height: .94;
  letter-spacing: -.065em;
}
.management-box h1 i { font-family: "Playfair Display", serif; }
.management-box p:not(.eyebrow):not(.screen-foot) { color: #52605a; font-size: 15px; line-height: 1.55; }
.management-box p + p { margin-top: 12px; }
.modal-button {
  width: 100%;
  margin-top: 22px;
  padding: 14px 17px;
  border: 0;
  background: #1e2825;
  color: #fff;
  font-weight: 700;
  text-align: left;
}
.modal-button span { float: right; font-size: 20px; line-height: 14px; }
.modal-button:hover { background: #425048; }
.screen-foot { margin: 14px 0 0; color: #78827d; font: 10px "DM Mono", monospace; text-transform: uppercase; }
.screen-result { border-top: 1px solid #d2d1ca; padding-top: 4px; }
.screen-result strong { color: #1e2825; }

@media (max-width: 850px) {
  .game-strip { padding: 0 0 72px; }
  .game-controls { position: static; padding: 0 22px; }
}

@media (max-width: 520px) {
  .management-box { padding: 28px 25px 23px; box-shadow: 7px 7px 0 #1e2825; }
}

/* Während des Audits darf alles ein wenig zu wichtig aussehen. */
.panic-mode .kpi-panel { animation: kpi-alarm .48s steps(2, end) infinite; }
.panic-mode .panel-top span:last-child { animation: warning-blink .34s steps(2, end) infinite; }
.panic-mode .brand-mark { animation: warning-blink .5s steps(2, end) infinite; }
.panic-mode .interrupt-card { animation: interrupt-in .22s cubic-bezier(.2, .9, .3, 1), warning-blink .58s steps(2, end) infinite; }

.toast {
  z-index: 30;
  min-width: min(670px, calc(100vw - 32px));
  padding: 20px 25px;
  border: 2px solid #f6f3ee;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .35);
  font: 700 16px/1.35 "DM Mono", monospace;
  text-align: center;
}
.toast.negative { background: #ff4d42; color: #260807; border-color: #260807; animation: toast-shake .18s linear 4; }

/* Die Zahlen schreien, die Texte bleiben lesbar. */
.pressure-console { display: grid; grid-template-columns: 190px 1fr; gap: 14px; margin: 28px 0 44px; padding: 14px; background: #142019; border: 3px solid #142019; color: #fff; }
.clock-module { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 12px; border: 2px solid #ff3b30; background: #251b18; }
.clock-module .live-dot { grid-row: span 3; width: 13px; height: 13px; border-radius: 50%; background: #ff3b30; animation: signal-blink .45s steps(2, end) infinite; }
.console-label, .metric-card > span, .management-ticker > span { font: 700 10px "DM Mono", monospace; letter-spacing: .08em; }
.clock-module strong { grid-column: 2; font: 700 37px/1 "DM Mono", monospace; letter-spacing: -.08em; color: #ffe600; }
.clock-module small { grid-column: 2; color: #fff; font: 700 11px "DM Sans", sans-serif; }
.kpi-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-card { min-width: 0; padding: 12px 14px; border: 2px solid #7df5d0; background: #f6f3ee; color: #142019; }
.metric-card:nth-child(2) { border-color: #ffe600; }
.metric-card:nth-child(3) { border-color: #ff4fa3; }
.metric-card > span, .metric-card small { display: block; }
.metric-card > span { color: #45534d; font-size: 9px; }
.metric-card strong { display: block; margin: 5px 0 3px; font: 800 clamp(21px, 2.6vw, 35px)/1 "DM Mono", monospace; letter-spacing: -.07em; }
.metric-card small { color: #24332d; font-size: 12px; font-weight: 700; }
.management-ticker { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; min-height: 32px; padding: 7px 10px; border: 1px solid #5c7469; background: #0c1411; }
.management-ticker > span { flex: 0 0 auto; color: #ffe600; animation: signal-blink .7s steps(2, end) infinite; }
.management-ticker p { margin: 0; color: #fff; font-size: 14px; font-weight: 700; }
.panic-mode .pressure-console { border-color: #ff3b30; animation: console-alert .55s steps(2, end) infinite; }
.panic-mode .metric-card { animation: metric-border .9s steps(2, end) infinite; }
.panic-mode .metric-card:nth-child(2) { animation-delay: .2s; }
.panic-mode .metric-card:nth-child(3) { animation-delay: .4s; }
@keyframes signal-blink { 50% { opacity: .2; } }
@keyframes console-alert { 50% { border-color: #ffe600; } }
@keyframes metric-border { 50% { border-color: #ff3b30; } }

.column-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 13px 2px 9px; }
.column-header h3 { font-size: 17px; }
.column-header > span:first-of-type { font-size: 12px; font-weight: 700; }
.lane-kpi { grid-column: 1 / -1; margin: 0; font-size: 10px; line-height: 1.35; }
.card { padding: 16px; }
.card .tag { font-size: 11px; line-height: 1.25; }
.card h4 { margin: 11px 0 8px; font-size: 20px; line-height: 1.13; }
.card p { margin: 0; font-size: 14px; line-height: 1.45; }
.card footer { margin-top: 12px; font-size: 11px; }
.card footer span:last-child { white-space: nowrap; }
.card.deadline-hot { border-width: 3px; }
.priority-critical { animation: priority-signal .6s steps(2, end) infinite; }
.panic-mode .cards.drag-over { animation: drop-alarm .5s steps(2, end) infinite; }
@keyframes priority-signal { 50% { outline: 3px solid #ffe600; outline-offset: 2px; } }
@keyframes drop-alarm { 50% { background: #ffe600; outline-color: #ff3b30; } }

@media (max-width: 850px) {
  .pressure-console { grid-template-columns: 1fr; }
  .kpi-metrics { grid-template-columns: 1fr; }
  .clock-module strong { font-size: 42px; }
}

@keyframes kpi-alarm { 0%, 100% { box-shadow: 9px 9px 0 var(--mint); } 50% { box-shadow: 9px 9px 0 #ff5d50; } }
@keyframes warning-blink { 50% { opacity: .18; } }
@keyframes toast-shake { 25% { transform: translate(calc(-50% - 7px), 0) rotate(-.4deg); } 75% { transform: translate(calc(-50% + 7px), 0) rotate(.4deg); } }
