@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111d30;
  --surface-hover: #172942;
  --line: #2b3c55;
  --text: #f3f6fa;
  --muted: #a9b7c9;
  --accent: #d7f36a;
  --accent-ink: #15200b;
  --warm: #ffb987;
  --radius: 6px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe6;
  --surface: #fffaf1;
  --surface-hover: #f3e6d3;
  --line: #d8c7af;
  --text: #15202e;
  --muted: #6f7b89;
  --accent: #496b12;
  --accent-ink: #f7ffd8;
  --button-hover-ink: #15202e;
  --warm: #b95719;
}

:root[data-theme="light"] button:hover,
:root[data-theme="light"] button:focus-visible {
  color: var(--button-hover-ink);
}

:root[data-theme="light"] .primary-button:hover,
:root[data-theme="light"] .mini-button:hover,
:root[data-theme="light"] .toggle-button[aria-pressed="true"]:hover {
  color: var(--button-hover-ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.presentation {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg);
}

html:fullscreen,
html:fullscreen body,
html:fullscreen .presentation {
  min-height: 100%;
}

.deck-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px) 14px;
}

.brand,
.slide-label,
.text-button,
.overline,
.card-meta,
.briefing-row > span,
.briefing-callout > span,
.card-facts > span:first-child {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand {
  margin: 0;
  color: var(--muted);
}

.brand span {
  color: var(--warm);
  padding: 0 0.35em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.slide-label {
  color: var(--accent);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

.start-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.toggle-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.toggle-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.toggle-button:hover {
  border-color: var(--warm);
  color: var(--text);
}

.deck-progress {
  height: 2px;
  margin: 0 clamp(20px, 5vw, 72px);
  background: var(--line);
}

.deck-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.slides {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.slide {
  display: none;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(28px, 6vw, 82px) clamp(20px, 7vw, 96px) 48px;
}

.slide.is-active {
  display: flex;
}

.slide-content {
  width: min(100%, 980px);
  margin: auto;
}

.start-logo {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 0 clamp(22px, 4vw, 38px);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
}

.overline {
  margin: 0 0 28px;
  color: var(--warm);
}

h1,
h2 {
  max-width: 1050px;
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 10vw, 8.2rem);
}

h2 {
  font-size: clamp(2.6rem, 8vw, 6.6rem);
}

h1 span,
h2 span {
  color: var(--accent);
}

.question {
  max-width: 790px;
  margin: clamp(26px, 4vw, 42px) 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.28;
  text-wrap: balance;
}

.body-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 54px);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover {
  background: #e5ff8d;
}

.secondary-button {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--text);
}

.slide-count {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
}

.briefing-list {
  max-width: 900px;
  margin-top: clamp(28px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

.briefing-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.briefing-row > span,
.briefing-callout > span {
  color: var(--accent);
}

.briefing-row p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  line-height: 1.5;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin-top: clamp(28px, 4vw, 46px);
}

.scenario-card {
  display: grid;
  grid-template-columns: minmax(110px, 0.25fr) minmax(180px, 0.55fr) minmax(160px, 1fr) minmax(150px, 0.65fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.scenario-card:hover,
.scenario-card:focus-visible {
  border-color: var(--accent);
}

.scenario-card-static {
  cursor: default;
}

.card-meta {
  color: var(--warm);
}

.card-title {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.card-description,
.card-facts {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.card-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-facts strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scenario-card-static:hover,
.scenario-card-static:focus-visible {
  border-color: var(--line);
}
.campaign-continue-card {
  grid-template-columns: minmax(120px, .32fr) minmax(180px, .62fr) minmax(190px, 1fr);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  border-left: 6px solid var(--accent);
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 82%, var(--accent)), var(--surface) 70%);
  cursor: default;
}
.campaign-continue-card:hover,
.campaign-continue-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}
.continue-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}
.continue-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.continue-money {
  border-color: color-mix(in srgb, #facc15 42%, var(--line));
  background: color-mix(in srgb, var(--surface) 80%, #facc15);
}
.continue-money strong,
.continue-money strong .money-symbol {
  color: #facc15;
}
.continue-reputation strong { color: #fb923c; }
.continue-events strong { color: #86efac; }
.continue-facts strong {
  color: var(--text);
  font-size: clamp(.88rem, 1.7vw, 1.08rem);
  line-height: 1.05;
  white-space: nowrap;
}
.continue-facts em {
  color: var(--muted);
  font-size: .58rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hint {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  max-width: 900px;
  margin-top: clamp(30px, 5vw, 52px);
  border-top: 1px solid var(--line);
}

.fact {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.fact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.3;
}

.briefing-callout {
  max-width: 900px;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.briefing-callout p {
  max-width: 750px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  line-height: 1.5;
}

.status-message {
  min-height: 1.5em;
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .deck-header {
    padding: 17px 20px 12px;
  }

  .slide {
    padding: 30px 20px 52px;
  }

  .scenario-card {
    grid-template-columns: 1fr 1fr;
    gap: 11px 16px;
    padding: 16px;
  }

  .card-description,
  .card-facts {
    grid-column: 1 / -1;
  }
  .campaign-continue-card {
    grid-template-columns: 1fr;
  }
  .continue-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: 170px;
  }

  .slide-label {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 4.2rem);
  }

  .briefing-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

@media (max-height: 520px) {
  .deck-header {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .slide {
    padding-top: 22px;
    padding-bottom: 42px;
  }

  .overline {
    margin-bottom: 18px;
  }

  .question {
    margin-top: 20px;
  }

  .action-row {
    margin-top: 26px;
  }

  .briefing-list,
  .scenario-list,
  .facts-grid {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-progress span {
    transition: none;
  }
}

[hidden] { display: none !important; }

.scenario-card.is-locked {
  opacity: .58;
  cursor: not-allowed;
}
.scenario-card.is-locked:hover,
.scenario-card.is-locked:focus-visible {
  border-color: var(--line);
  background: var(--surface);
}
.scenario-card.is-locked .card-description {
  color: var(--warm);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 16, .86);
}
.modal-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
}
.modal-card h2 { margin: 0; }
.modal-card .body-copy { margin-bottom: 24px; }
.easy-game-root {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
}
.easy-game-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 clamp(18px, 5vw, 72px);
}
.phase-intro-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0;
}
.phase-intro-copy {
  width: min(100%, 1180px);
  margin: 0 auto;
}
.phase-intro-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 8rem);
}
.phase-intro-copy .body-copy { max-width: 720px; }
.mood-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: clamp(22px, 4vw, 42px) 0 clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.6);
  background: #070a10;
  box-shadow: 0 30px 90px rgba(0,0,0,.44);
}
.mood-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mood-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,9,16,.35), transparent 45%, rgba(5,9,16,.18));
  pointer-events: none;
}
.concert-gig-screen .phase-intro-copy {
  display: grid;
  gap: clamp(18px, 4vw, 32px);
  justify-items: center;
  text-align: center;
}
.concert-gig-screen .mood-art { margin: 0; }
.concert-gig-screen h1 {
  max-width: 980px;
  font-size: clamp(1.15rem, 3.8vw, 2.7rem);
  line-height: 1.08;
}
.concert-gig-screen h1 .gig-band-name {
  display: block;
  margin-bottom: .16em;
  color: var(--warm);
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: .9;
  letter-spacing: .02em;
}
.concert-gig-screen h1 small {
  display: block;
  color: var(--text);
  font-size: .72em;
  font-weight: 800;
}

@media (max-width: 820px) {
  .phase-intro-screen { align-items: flex-start; }
}
.game-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-bottom: 18px;
  background: var(--bg);
}
.game-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--line);
}
.game-head-main { min-width: 0; flex: 1 1 auto; }
.game-logo {
  flex: 0 0 auto;
  width: clamp(46px, 6vw, 76px);
  max-height: 54px;
  object-fit: contain;
  align-self: flex-start;
}
.game-brand,
.game-tag,
.game-overline,
.game-footer,
.game-metric span,
.choice-cost,
.band-box span,
.recap-note span,
.game-kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.game-brand { margin: 0 0 10px; color: var(--muted); }
.game-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin: 0 0 8px;
  color: var(--muted);
}
.game-kicker strong { color: var(--accent); }
.game-mobile-hud { display: none; }
.game-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  color: var(--warm);
}
.game-header h1 { margin-top: 8px; font-size: clamp(1.7rem, 4.4vw, 4.2rem); }
.game-header-actions { display: flex; gap: 16px; align-items: flex-start; }
.top-progress {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.top-progress i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--warm);
  border-radius: 50%;
  opacity: .55;
}
.top-progress i.done,
.top-progress i.current {
  background: var(--warm);
  opacity: 1;
}
.top-progress i.current { box-shadow: 0 0 0 4px rgba(255,185,135,.16); }
.game-link,
.mini-button {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  cursor: pointer;
  text-align: center;
}
.mini-button {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
}
.game-link:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-hover); }
.mini-button:hover { background: #e5ff8d; color: var(--accent-ink); }
.game-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.game-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  padding: 13px 14px;
  background: var(--surface);
}
.game-metric span { color: var(--muted); }
.game-metric strong { font-size: clamp(1rem, 2vw, 1.35rem); }
.game-metric.warn strong { color: var(--warm); }
.game-metric.bad strong { color: #ff8585; }
.game-main {
  width: min(100%, 980px);
  flex: 1 1 auto;
  margin: auto;
  padding: clamp(38px, 7vw, 86px) 0 46px;
}
.game-overline { margin: 0 0 22px; color: var(--accent); }
.game-main h2 {
  max-width: 900px;
  font-size: clamp(2rem, 5.8vw, 5.6rem);
}
.game-detail {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}
.trade-spotlight {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 760px);
  max-width: 760px;
  margin: -4px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.trade-spotlight:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.trade-spotlight > div {
  min-width: 0;
}
.trade-spotlight span,
.trade-roster span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trade-spotlight strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.trade-spotlight p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}
.sic-thumb {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 82px;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px rgba(215,243,106,.08);
}
.sic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.trade-spotlight .sic-thumb {
  width: 82px;
  height: 124px;
}
.trade-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.trade-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.trade-chip:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.trade-chip .sic-thumb {
  width: 42px;
  height: 62px;
}
.trade-chip .sic-thumb img {
  width: 100%;
  height: 100%;
}
.trade-chip span {
  color: var(--text);
  font-size: .58rem;
  line-height: 1.2;
}
.trade-chip.is-unused {
  opacity: .38;
  filter: grayscale(1);
  cursor: not-allowed;
}
.trade-chip.is-unused .sic-thumb img {
  filter: grayscale(1);
}
.trade-chip.is-used {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
}
.trade-info-page {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 46px);
  background: rgba(0,0,0,.72);
}
.trade-info-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.trade-info-frame-card {
  height: min(82vh, 780px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trade-info-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 1px solid var(--line);
  background: #101827;
}
.trade-close {
  float: right;
  margin-left: 18px;
}
.trade-info-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}
.trade-info-hero .sic-thumb {
  width: 92px;
  height: 138px;
}
.trade-info-hero .sic-thumb img {
  width: 100%;
  height: 100%;
}
.trade-info-hero span,
.trade-info-card h3 {
  color: var(--warm);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.trade-info-card h2 {
  margin-top: 6px;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
}
.trade-info-card section {
  clear: both;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.trade-info-card p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.6;
}
.band-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  max-width: 900px;
  margin: 32px 0 20px;
  padding: 17px 18px;
  border-left: 3px solid var(--warm);
  background: var(--surface);
}
.band-box div { display: flex; flex-direction: column; gap: 7px; }
.band-box span { color: var(--warm); }
.band-box strong { font-size: clamp(1rem, 2vw, 1.35rem); }
.band-box small { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.choice-list,
.upgrade-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-top: 28px;
}
.game-choice,
.upgrade-card {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(150px, 1fr) minmax(80px, .3fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.game-choice:hover:not(:disabled),
.game-choice.selected,
.upgrade-card:hover:not(:disabled),
.upgrade-card.selected { border-color: var(--accent); background: var(--surface-hover); }
.game-choice:disabled,
.upgrade-card:disabled { opacity: .48; cursor: not-allowed; }
.choice-label { font-weight: 800; }
.choice-label-trade {
  display: flex;
  gap: 10px;
  align-items: center;
}
.choice-label-trade .sic-thumb {
  flex: 0 0 auto;
  width: 38px;
  height: 54px;
}
.choice-label-trade span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.choice-label-trade em {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.choice-detail { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.choice-cost { color: var(--accent); text-align: right; }
.choice-cost i { color: var(--warm); font-style: normal; }
.game-feedback {
  max-width: 900px;
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.game-feedback > span { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.game-feedback p { margin: 9px 0 22px; color: var(--muted); line-height: 1.5; }
.upgrade-card { grid-template-columns: minmax(170px,.6fr) minmax(160px,1fr) minmax(90px,.3fr); }
.upgrade-card.locked { border-style: dashed; }
.scheduler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  max-width: 980px;
  margin-top: 28px;
}
.scheduler-card {
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.scheduler-card:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-hover); }
.scheduler-card:disabled { opacity: .52; cursor: not-allowed; }
.scheduler-card .choice-cost { text-align: left; }
.scheduler-card.timing-late .choice-cost { color: var(--warm); }
.scheduler-card.timing-critical,
.timing-callout.timing-critical { border-color: var(--warm); }
.scheduler-card.timing-toolate,
.timing-callout.timing-toolate { border-color: #ff8585; }
.scheduler-card.timing-toolate .choice-cost { color: #ff8585; }
.scheduler-card.timing-blocked { border-style: dashed; }
.timing-callout {
  max-width: 900px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.timing-callout span { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.timing-callout p { margin: 8px 0 0; color: var(--muted); }
.schedule-back { margin: 0 0 20px; }
.game-footer {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0 22px; color: var(--muted); border-top: 1px solid var(--line);
}
.recap-main h2 { color: var(--accent); }
.result-grid { max-width: 900px; margin-top: 30px; border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-row span { color: var(--muted); }
.result-row strong { text-align: right; }
.recap-note { max-width: 900px; margin-top: 22px; padding: 18px; background: var(--surface); }
.recap-note span { color: var(--warm); }
.recap-note p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.recap-note h3 { margin: 16px 0 7px; color: var(--text); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.recap-note ul { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.45; }
.recap-note li + li { margin-top: 5px; }
.gate-note { border-left: 3px solid var(--warm); }
@media (max-width: 760px) {
  .easy-game-shell { padding: 0 20px; }
  .game-header { gap: 16px; }
  .game-header-actions { flex-direction: column; gap: 8px; }
  .game-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-metric:last-child { grid-column: 1 / -1; }
  .band-box { grid-template-columns: 1fr 1fr; }
  .band-box .mini-button { grid-column: 1 / -1; justify-self: start; }
  .game-choice,
  .upgrade-card { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .choice-detail { grid-column: 1 / -1; }
  .choice-cost { text-align: left; }
  .game-main { padding-top: 42px; }
}
@media (max-width: 480px) {
  .game-header { flex-direction: column; }
  .game-header-actions { flex-direction: row; }
  .game-main h2 { font-size: clamp(2rem, 10vw, 3.4rem); }
  .band-box { grid-template-columns: 1fr; }
  .band-box .mini-button { grid-column: auto; }
  .game-choice,
  .upgrade-card { grid-template-columns: 1fr; }
  .choice-detail,
  .choice-cost { grid-column: auto; }
  .game-footer { flex-direction: column; gap: 6px; }
}
.world-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 900px;
  margin-top: 30px;
}
.world-step {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
button.world-step { cursor: pointer; font-weight: inherit; }
.world-step span,
.world-step em {
  color: var(--warm);
  font-size: .64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .1em;
}
.world-step strong { font-size: clamp(.9rem, 1.7vw, 1.1rem); }
.world-step.is-current { border-color: var(--accent); }
.world-step.is-locked { opacity: .54; cursor: not-allowed; }
button.world-step.is-locked:hover { border-color: var(--line); }
.game-dashboard,
.game-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .95fr);
  gap: 10px;
  max-width: none;
  margin-top: 10px;
}
.chart-block {
  min-width: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chart-block-head,
.chart-line-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}
.chart-block-head span,
.chart-line-head span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-block-head .metric-label,
.chart-line-head .metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-block-head strong,
.chart-line-head strong {
  color: var(--text);
  font-size: .8rem;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}
.budget-stack {
  display: flex;
  height: 18px;
  margin-top: 13px;
  background: var(--line);
  overflow: hidden;
}
.budget-part { display: block; height: 100%; min-width: 0; }
.budget-stack.status-good .budget-part { background: var(--accent); }
.budget-stack.status-warn .budget-part { background: var(--warm); }
.budget-stack.status-bad .budget-part { background: #ff8585; }
.budget-part.event { filter: brightness(.9); }
.budget-part.cleanup { filter: brightness(.75); }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .74rem;
}
.bad-text { color: #ff8585; }
.health-graph {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.chart-line { min-width: 0; }
.chart-line-head { margin-bottom: 6px; }
.chart-track {
  height: 8px;
  background: var(--line);
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}
.chart-fill.status-good { background: var(--accent); }
.chart-fill.status-warn,
.chart-fill.warn { background: var(--warm); }
.chart-fill.status-bad,
.chart-fill.bad { background: #ff8585; }
.phase-graph { grid-column: 1 / -1; }
.phase-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 16px;
}
.phase-track::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: var(--line);
}
.phase-point {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  text-align: center;
}
.phase-point i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.phase-point b {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.phase-point.done,
.phase-point.current { color: var(--accent); }
.phase-point.done i,
.phase-point.current i {
  border-color: var(--accent);
  background: var(--accent);
}
.phase-point.current i {
  box-shadow: 0 0 0 4px rgba(215,243,106,.16);
}
@media (max-width: 760px) {
  .world-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-dashboard,
  .game-visuals { grid-template-columns: 1fr; }
  .phase-graph { grid-column: auto; }
}
@media (max-width: 480px) {
  .world-progress { margin-top: 24px; }
  .world-step { min-height: 68px; padding: 11px; }
  .chart-block { padding: 13px; }
  .chart-legend { gap: 5px 10px; font-size: .7rem; }
  .phase-track { gap: 0; }
  .phase-point b { font-size: .62rem; line-height: 1.2; }
}
.finance-graph {
  grid-column: 1 / -1;
  max-width: 900px;
  margin-top: 28px;
}
.finance-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.finance-row > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.finance-row strong {
  font-size: .82rem;
  text-align: right;
}
.finance-track {
  height: 12px;
  background: var(--line);
  overflow: hidden;
}
.finance-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.finance-track i.costs { background: var(--warm); }
.finance-track i.result { background: #b28cff; }
.finance-track i.loss { background: #ff8585; }
.break-even-graph {
  margin-top: 25px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.break-even-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
  align-items: baseline;
}
.break-even-head span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.break-even-head strong { color: var(--text); font-size: .88rem; }
.break-even-line {
  position: relative;
  height: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,133,133,.18), rgba(255,185,135,.16) 65%, rgba(215,243,106,.14));
}
.break-even-fill {
  display: block;
  height: 100%;
  min-width: 4px;
}
.break-even-fill.status-bad { background: #ff8585; }
.break-even-fill.status-warn { background: var(--warm); }
.break-even-fill.status-good { background: var(--accent); }
.break-even-line i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.break-even-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.break-even-labels span:nth-child(2) { color: var(--warm); }
@media (max-width: 560px) {
  .finance-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
  }
  .finance-row strong {
    grid-column: 2;
    text-align: left;
    margin-top: -5px;
  }
  .break-even-head strong { font-size: .78rem; }
  .break-even-labels {
    font-size: .6rem;
    letter-spacing: .04em;
  }
}
.world-step.is-unlocked {
  border-color: var(--warm);
  color: var(--text);
}

@media (max-width: 760px) {
  .game-topbar {
    padding-bottom: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .game-header {
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 5px 0;
    border-bottom: 0;
  }
  .game-header > div:first-child { min-width: 0; }
  .game-logo {
    width: 34px;
    max-height: 30px;
    align-self: center;
  }
  .game-kicker {
    margin: 0;
    font-size: .58rem;
    letter-spacing: .08em;
  }
  .game-kicker-path,
  .game-kicker-cash,
  .game-tag > span,
  .game-header h1 {
    display: none;
  }
  .game-mobile-hud {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .game-tag {
    margin: 3px 0 0;
    font-size: .55rem;
  }
  .top-progress { gap: 4px; }
  .top-progress i { width: 6px; height: 6px; }
  .top-progress i.current { box-shadow: 0 0 0 3px rgba(255,185,135,.13); }
  .game-header-actions {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
  }
  .game-link {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .58rem;
    letter-spacing: .1em;
    white-space: nowrap;
  }
  .game-dashboard { margin-top: 8px; }
  .game-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }
  .game-metric {
    min-height: 0;
    padding: 8px 9px;
    gap: 4px;
  }
  .game-metric span {
    font-size: .55rem;
    letter-spacing: .08em;
  }
  .game-metric strong {
    font-size: .78rem;
    line-height: 1.1;
  }
  .game-metric:last-child { grid-column: auto; }
}
@media (max-width: 480px) {
  .game-header { flex-direction: row; }
  .game-header-actions { flex-direction: row; }
}

@media (max-width: 560px) {
  .easy-game-shell { padding: 0 16px; }
  .game-dashboard { gap: 8px; }
  .chart-block { padding: 10px 11px; }
  .chart-block-head,
  .chart-line-head {
    gap: 8px;
    align-items: baseline;
  }
  .chart-block-head span,
  .chart-line-head span {
    font-size: .54rem;
    letter-spacing: .09em;
    line-height: 1.15;
  }
  .chart-block-head strong,
  .chart-line-head strong {
    font-size: .7rem;
    line-height: 1.15;
  }
  .chart-legend { font-size: .66rem; }
  .health-graph {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .chart-track { height: 7px; }
  .game-main {
    padding-top: 30px;
    padding-bottom: 34px;
  }
  .game-overline {
    margin-bottom: 16px;
    font-size: .58rem;
    letter-spacing: .11em;
    line-height: 1.25;
  }
  .game-main h2 {
    font-size: clamp(1.8rem, 8.2vw, 2.75rem);
    line-height: .98;
  }
  .game-detail {
    margin-top: 18px;
    font-size: .95rem;
    line-height: 1.45;
  }
  .scheduler-grid,
  .choice-list,
  .upgrade-list { margin-top: 22px; }
  .scheduler-card { min-height: 118px; padding: 14px; }
}

@media (max-width: 380px) {
  .easy-game-shell { padding: 0 14px; }
  .game-main h2 { font-size: clamp(1.65rem, 7.6vw, 2.35rem); }
  .game-detail { font-size: .9rem; }
  .game-mobile-hud { font-size: .52rem; letter-spacing: .07em; }
  .game-link { padding: 7px 9px; }
}

/* 0.6.2 replay coaching */
.mara-card{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;margin:14px 0;padding:14px 16px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.055)}
.mara-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:20px;background:#fbbf24;color:#101827}
.mara-card span{display:block;font-size:11px;font-weight:800;letter-spacing:.09em;color:#fbbf24}.mara-card p{margin:5px 0 0;line-height:1.45}.mara-card ul{margin:8px 0 0;padding-left:18px}.mara-card li{margin:5px 0}
.world-goal .goal-row{display:grid;grid-template-columns:44px minmax(80px,1fr) auto;gap:10px;align-items:center;margin:9px 0}.goal-track{height:8px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}.goal-track i{display:block;height:100%;background:currentColor;border-radius:999px}.world-goal strong{font-size:12px;white-space:nowrap}.world-goal.is-compact{max-width:720px;margin-top:16px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--surface) 92%,var(--warm))}.world-goal.is-compact p{margin-top:6px;font-size:.88rem;line-height:1.35}

/* 0.6.3 local text UX pass: Fast Decision UI + active trade color path */
.trade-path {
  --trade-color: var(--accent);
  --trade-ink: #071018;
  --trade-wash: color-mix(in srgb, var(--trade-color) 13%, transparent);
  --trade-card: color-mix(in srgb, var(--surface) 86%, var(--trade-color));
  --trade-line: color-mix(in srgb, var(--line) 58%, var(--trade-color));
}
/* Gewerk-Farbpfad: an die 16 SIC-Kartentöne angelehnt, nicht als gut/schlecht-Wertung.
   Kreativ = Blau/Purple, Kommunikation = Rot, Vielseitig = Grün, Innovativ = Gelb/Orange. */
.trade-werbeagentur,
.trade-grafikdesign,
.trade-verlag,
.trade-radio-tv {
  --trade-color: #7c3aed;
  --trade-ink: #ffffff;
  --trade-wash: color-mix(in srgb, #7c3aed 16%, transparent);
  --trade-card: color-mix(in srgb, var(--surface) 83%, #7c3aed);
  --trade-line: color-mix(in srgb, var(--line) 44%, #7c3aed);
}
.trade-pr-agentur,
.trade-unternehmensberatung,
.trade-immobilien,
.trade-versicherung {
  --trade-color: #ef4444;
  --trade-ink: #ffffff;
  --trade-wash: color-mix(in srgb, #ef4444 18%, transparent);
  --trade-card: color-mix(in srgb, var(--surface) 82%, #ef4444);
  --trade-line: color-mix(in srgb, var(--line) 42%, #ef4444);
}
.trade-buchhaltung,
.trade-druck,
.trade-buchhandel,
.trade-vermoegen {
  --trade-color: #22c55e;
  --trade-ink: #04140a;
  --trade-wash: color-mix(in srgb, #22c55e 16%, transparent);
  --trade-card: color-mix(in srgb, var(--surface) 84%, #22c55e);
  --trade-line: color-mix(in srgb, var(--line) 44%, #22c55e);
}
.trade-bautraeger,
.trade-entsorgung,
.trade-it,
.trade-ingenieurbuero {
  --trade-color: #f59e0b;
  --trade-ink: #1f1300;
  --trade-wash: color-mix(in srgb, #f59e0b 18%, transparent);
  --trade-card: color-mix(in srgb, var(--surface) 82%, #f59e0b);
  --trade-line: color-mix(in srgb, var(--line) 42%, #f59e0b);
}
.trade-neutral {
  --trade-color: var(--accent);
  --trade-wash: color-mix(in srgb, var(--accent) 6%, transparent);
  --trade-card: var(--surface);
  --trade-line: var(--line);
}
.trade-path .game-header h1 {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.65rem);
  letter-spacing: -.025em;
}
.trade-path .game-main {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 68px) clamp(16px, 2.4vw, 28px) 44px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 30%, var(--line));
  border-top: 5px solid var(--trade-color);
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, var(--trade-wash), transparent 260px), color-mix(in srgb, var(--bg) 92%, var(--trade-color));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--trade-color) 18%, transparent);
}
.trade-path .game-overline {
  margin-bottom: 12px;
  color: var(--trade-color);
  font-size: .62rem;
  letter-spacing: .16em;
}
.trade-path .game-main h2 {
  max-width: 980px;
  color: var(--text);
  font-size: clamp(2.45rem, 6.5vw, 6.25rem);
  line-height: .94;
  letter-spacing: -.06em;
}
.trade-path .game-detail {
  max-width: 760px;
  margin-top: 14px;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: clamp(.98rem, 1.45vw, 1.08rem);
  line-height: 1.42;
}
.trade-path .trade-spotlight {
  width: min(100%, 680px);
  margin: 18px 0 0;
  padding: 10px 12px;
  border-color: var(--trade-line);
  border-left: 5px solid var(--trade-color);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--trade-color));
}
.trade-path .trade-spotlight:hover {
  border-color: var(--trade-color);
  background: color-mix(in srgb, var(--surface-hover) 84%, var(--trade-color));
}
.trade-path .trade-spotlight .sic-thumb {
  width: 48px;
  height: 70px;
  border-color: var(--trade-color);
  box-shadow: none;
}
.trade-path .trade-spotlight span { font-size: .56rem; letter-spacing: .11em; }
.trade-path .trade-spotlight strong { font-size: clamp(.96rem, 1.5vw, 1.16rem); }
.trade-path .trade-spotlight p { font-size: .78rem; line-height: 1.25; }
.trade-path .choice-list,
.trade-path .upgrade-list {
  gap: 12px;
  margin-top: 24px;
}
.trade-path .game-choice,
.trade-path .upgrade-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 104px;
  padding: clamp(16px, 2.6vw, 22px);
  border-color: var(--trade-line);
  border-left: 7px solid var(--trade-color);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--trade-card), var(--surface) 68%);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.trade-path .game-choice:hover:not(:disabled),
.trade-path .game-choice.selected,
.trade-path .upgrade-card:hover:not(:disabled),
.trade-path .upgrade-card.selected {
  border-color: var(--trade-color);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-hover) 76%, var(--trade-color)), var(--surface-hover) 70%);
  transform: translateY(-1px);
}
.trade-path .game-choice.selected,
.trade-path .upgrade-card.selected {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--trade-color) 24%, transparent), 0 18px 40px rgba(0,0,0,.22);
}
.trade-path .choice-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.trade-path .choice-label {
  color: var(--text);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.05;
}
.trade-path .game-choice .choice-cost,
.trade-path .upgrade-card .choice-cost {
  color: var(--trade-color);
  font-size: clamp(1.18rem, 2.5vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-align: right;
  white-space: nowrap;
}
.trade-path .choice-detail {
  max-width: 780px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.33;
}
.trade-path .choice-facts,
.trade-path .effect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.trade-path .choice-facts i,
.trade-path .effect-chips i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-hover) 78%, var(--trade-color));
  color: var(--text);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.money-symbol {
  color: #facc15;
  font-weight: 950;
}
.visual-decision-popover .visual-option .money-symbol {
  color: currentColor;
}
.fact-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 1.85em;
  height: 1.55em;
  padding: 0 .32em;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--trade-color);
  font-size: .72em;
  font-weight: 950;
  line-height: 1;
}
.fact-warning .fact-icon {
  background: #facc15;
  color: #271300;
  clip-path: polygon(50% 3%, 98% 92%, 2% 92%);
  border-radius: 0;
  padding-top: .18em;
}
.fact-people,
.fact-capacity { color: #93c5fd; }
.fact-reputation { color: #fb923c; }
.fact-money { color: #facc15; }
.fact-locked { color: #fca5a5; }
.fact-unlock,
.fact-ready { color: #86efac; }
.fact-mood { color: #f9a8d4; }
.chart-line.metric-people .metric-label,
.chart-line.metric-people strong { color: #93c5fd; }
.chart-line.metric-reputation .metric-label,
.chart-line.metric-reputation strong { color: #fb923c; }
.chart-line.metric-warning .metric-label,
.chart-line.metric-warning strong { color: #facc15; }
.chart-line.metric-ready .metric-label,
.chart-line.metric-ready strong { color: #86efac; }
.chart-line.metric-mood .metric-label,
.chart-line.metric-mood strong { color: #f9a8d4; }
.budget-graph.metric-money .metric-label { color: #facc15; }
.chart-line.metric-people .chart-fill { background: #93c5fd; }
.chart-line.metric-reputation .chart-fill { background: #fb923c; }
.chart-line.metric-warning .chart-fill { background: #facc15; }
.chart-line.metric-ready .chart-fill { background: #86efac; }
.chart-line.metric-mood .chart-fill { background: #f9a8d4; }
.trade-path .choice-tap {
  justify-self: start;
  margin-top: 2px;
  color: var(--trade-color);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.trade-path .game-choice.selected .choice-tap {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--trade-color);
  color: #071018;
}
.trade-path .game-choice.locked,
.trade-path .upgrade-card.locked {
  border-left-style: dashed;
  box-shadow: none;
}
.trade-path .game-feedback,
.trade-path .timing-callout,
.trade-path .recap-note.gate-note {
  border-left-color: var(--trade-color);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, var(--trade-color));
}
.trade-path .game-feedback > span,
.trade-path .timing-callout span { color: var(--trade-color); }
.trade-path .game-feedback p {
  margin: 10px 0 14px;
  font-size: .98rem;
  line-height: 1.38;
}
.trade-path .game-feedback .primary-button { margin-top: 12px; }
.trade-path .scheduler-card {
  border-left: 5px solid var(--trade-color);
  border-color: var(--trade-line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--trade-card), var(--surface) 70%);
}
.trade-path .scheduler-card:hover:not(:disabled) {
  border-color: var(--trade-color);
  background: color-mix(in srgb, var(--surface-hover) 84%, var(--trade-color));
}
@media (max-width: 760px) {
  .trade-path .game-main {
    padding: 26px 14px 34px;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, var(--trade-wash), transparent 190px), color-mix(in srgb, var(--bg) 92%, var(--trade-color));
  }
  .trade-path .game-main h2 {
    font-size: clamp(2.05rem, 10.4vw, 3.55rem);
    line-height: .96;
  }
  .trade-path .trade-spotlight {
    gap: 10px;
    margin-top: 14px;
  }
  .trade-path .trade-spotlight .sic-thumb {
    width: 38px;
    height: 56px;
  }
  .trade-path .game-choice,
  .trade-path .upgrade-card {
    min-height: 116px;
    padding: 16px;
    border-left-width: 6px;
  }
  .trade-path .choice-top {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .trade-path .game-choice .choice-cost,
  .trade-path .upgrade-card .choice-cost {
    justify-self: start;
    text-align: left;
  }
  .trade-path .choice-detail { font-size: .9rem; }
  .trade-path .choice-facts i,
  .trade-path .effect-chips i {
    min-height: 26px;
    font-size: .66rem;
  }
}
@media (max-width: 420px) {
  .trade-path .game-main h2 { font-size: clamp(1.86rem, 9.6vw, 2.7rem); }
  .trade-path .game-detail { font-size: .9rem; }
  .trade-path .trade-spotlight p { display: none; }
}
.partner-trust-note p { margin-bottom: 10px; }
.partner-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.partner-trust-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--trade-color, var(--accent)) 34%, var(--line));
  border-left: 3px solid var(--trade-color, var(--accent));
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 91%, var(--trade-color, var(--accent)));
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.partner-trust-card:hover {
  border-color: var(--trade-color, var(--accent));
  background: color-mix(in srgb, var(--surface-hover) 80%, var(--trade-color, var(--accent)));
}
.partner-trust-card .partner-label {
  overflow: hidden;
  color: var(--text);
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.partner-trust-card strong {
  position: relative;
  z-index: 1;
  color: var(--trade-color, var(--accent));
  font-size: .76rem;
  font-weight: 950;
}
.partner-trust-card i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 3px;
  background: var(--trade-color, var(--accent));
  opacity: .78;
}
@media (max-width: 560px) {
  .partner-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .partner-trust-card { grid-template-columns: minmax(0, 1fr) auto; min-height: 38px; padding: 6px 7px; }
  .partner-trust-card .partner-label { font-size: .49rem; letter-spacing: .025em; }
  .partner-trust-card strong { font-size: .68rem; }
}

.schedule-pressure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 760px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--trade-color));
}
.schedule-pressure span,
.schedule-pressure strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.schedule-pressure strong {
  color: var(--warm);
}
.schedule-pressure.is-tight strong {
  background: rgba(250,204,21,.15);
  color: #facc15;
}
@media (max-width: 560px) {
  .schedule-pressure { gap: 6px; padding: 8px; }
  .schedule-pressure span,
  .schedule-pressure strong { font-size: .62rem; }
}

/* Presentation and phase-intro button polish */
.presentation .primary-button,
.phase-intro-screen .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 15px 34px color-mix(in srgb, var(--accent) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.26);
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.presentation .primary-button:hover,
.phase-intro-screen .primary-button:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 76%, #fff), color-mix(in srgb, var(--accent) 88%, #000));
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 19px 42px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
}
.presentation .secondary-button,
.phase-intro-screen .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 17px;
  border-color: color-mix(in srgb, var(--muted) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--text);
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.presentation .secondary-button:hover,
.phase-intro-screen .secondary-button:hover {
  border-color: var(--warm);
  background: color-mix(in srgb, var(--surface-hover) 78%, var(--warm));
  color: var(--text);
}
.presentation .toggle-button {
  border-radius: 999px;
}
@media (max-width: 560px) {
  .presentation .primary-button,
  .presentation .secondary-button,
  .phase-intro-screen .primary-button,
  .phase-intro-screen .secondary-button { width: 100%; }
}

/* Trade-mode button language */
.trade-path .primary-button,
.trade-path .game-feedback .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--trade-color) 92%, #fff), var(--trade-color));
  color: var(--trade-ink);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--trade-color) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.trade-path .primary-button:hover,
.trade-path .game-feedback .primary-button:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--trade-color) 78%, #fff), color-mix(in srgb, var(--trade-color) 90%, #000));
  color: var(--trade-ink);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--trade-color) 34%, transparent), inset 0 1px 0 rgba(255,255,255,.26);
}
.trade-path .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border-color: color-mix(in srgb, var(--trade-color) 32%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: color-mix(in srgb, var(--text) 86%, var(--trade-color));
  font-weight: 850;
}
.trade-path .secondary-button:hover {
  border-color: var(--trade-color);
  background: color-mix(in srgb, var(--surface-hover) 82%, var(--trade-color));
  color: var(--text);
}
.trade-path .secondary-button[data-game-action="reset-arc"] {
  border-color: color-mix(in srgb, #ef4444 55%, var(--line));
  color: #fca5a5;
}
.trade-path .schedule-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-color: color-mix(in srgb, var(--trade-color) 28%, var(--line));
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.trade-path .schedule-back:hover {
  border-color: var(--trade-color);
  background: color-mix(in srgb, var(--surface) 78%, var(--trade-color));
  color: var(--text);
}
@media (max-width: 560px) {
  .trade-path .primary-button,
  .trade-path .game-feedback .primary-button {
    width: 100%;
    min-height: 56px;
  }
  .trade-path .secondary-button { width: 100%; }
  .trade-path .schedule-back { width: auto; }
}

/* 0.6.6-local visual renderer shell */
.visual-game-shell {
  --trade-color: var(--accent);
  --trade-ink: #071018;
  --trade-wash: color-mix(in srgb, var(--trade-color) 13%, transparent);
  min-height: 100svh;
  padding: 14px clamp(14px, 2vw, 24px) 18px;
  background: radial-gradient(circle at 30% 0%, var(--trade-wash), transparent 34%), var(--bg);
  color: var(--text);
}
.visual-hud {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
  padding: 8px 0 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}
.visual-hud > div,
.visual-hud .game-link {
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--trade-color));
}
.visual-hud span,
.visual-overline {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.15;
  text-transform: uppercase;
}
.visual-hud strong { display:block; margin-top:5px; font-size:clamp(.95rem,1.6vw,1.2rem); line-height:1; }
.visual-hud .game-link { color: var(--text); }
.visual-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, .85fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: calc(100svh - 90px);
}
.visual-scene {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--trade-color) 28%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--trade-color) 20%, transparent), transparent 28%),
    linear-gradient(160deg, #111827, #070b12 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.28);
}
.iso-room {
  position: absolute;
  inset: 9% 6% 8%;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-39deg);
}
.iso-floor {
  position: absolute;
  inset: 16% 6% 10%;
  border: 2px solid color-mix(in srgb, var(--trade-color) 45%, #fff);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px),
    color-mix(in srgb, #1f2937 78%, var(--trade-color));
  background-size: 42px 42px;
  box-shadow: 0 42px 80px rgba(0,0,0,.45);
}
.iso-stage,
.iso-desk,
.iso-crowd,
.iso-warning { position: absolute; display: block; transform: translateZ(28px); }
.iso-stage {
  left: 48%; top: 22%; width: 30%; height: 18%;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--trade-color) 70%, #fff), var(--trade-color));
  box-shadow: 0 18px 0 color-mix(in srgb, var(--trade-color) 58%, #000), 0 28px 32px rgba(0,0,0,.42);
}
.iso-desk {
  left: 18%; top: 35%; width: 18%; height: 12%;
  border-radius: 10px;
  background: #b45309;
  box-shadow: 0 12px 0 #78350f, 0 22px 24px rgba(0,0,0,.35);
}
.iso-crowd {
  width: 9%; height: 9%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, #93c5fd 24% 44%, transparent 46%);
  filter: drop-shadow(0 10px 8px rgba(0,0,0,.35));
}
.iso-crowd-a { left: 42%; top: 52%; }
.iso-crowd-b { left: 59%; top: 55%; transform: translateZ(28px) scale(1.18); }
.iso-warning {
  right: 20%; top: 25%;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
  background: #facc15; color: #271300;
  font-weight: 950;
  transform: translateZ(72px) rotateZ(39deg) rotateX(-58deg);
}
.visual-scene-before .iso-crowd,
.visual-scene-recap .iso-crowd,
.visual-scene-recap .iso-stage { opacity: .22; }
.visual-scene-cleanup .iso-warning { background: #fb7185; }
.visual-scene-caption {
  position: absolute;
  right: 18px; bottom: 18px; left: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7,11,18,.72);
  backdrop-filter: blur(12px);
}
.visual-scene-caption span { color: var(--trade-color); font-size:.62rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.visual-scene-caption strong { display:block; margin-top:5px; max-width:820px; font-size:clamp(1.2rem,2.6vw,2.4rem); line-height:1.05; }
.visual-panel {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid color-mix(in srgb, var(--trade-color) 30%, var(--line));
  border-top: 5px solid var(--trade-color);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--trade-wash), transparent 240px), color-mix(in srgb, var(--surface) 90%, var(--trade-color));
}
.visual-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .94;
  letter-spacing: -.06em;
}
.visual-panel p { color: var(--muted); line-height:1.42; }
.visual-helper { padding:10px 12px; border-left:4px solid var(--trade-color); border-radius:12px; background:rgba(255,255,255,.055); }
.visual-options,
.visual-schedule { display:grid; gap:10px; margin-top:18px; }
.visual-option,
.visual-task {
  display:grid;
  gap:8px;
  width:100%;
  padding:14px 15px;
  border:1px solid color-mix(in srgb, var(--trade-color) 34%, var(--line));
  border-left:6px solid var(--trade-color);
  border-radius:18px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--surface) 84%, var(--trade-color)), var(--surface) 72%);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.visual-option:hover:not(:disabled),
.visual-option.selected,
.visual-task:hover:not(:disabled) { border-color:var(--trade-color); background:color-mix(in srgb, var(--surface-hover) 82%, var(--trade-color)); }
.visual-option:disabled,
.visual-task:disabled { opacity:.5; cursor:not-allowed; }
.visual-option > span { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.visual-option strong,
.visual-task strong { font-size:clamp(1rem,1.8vw,1.25rem); line-height:1.08; }
.visual-option b { color:var(--trade-color); font-size:clamp(1.05rem,2vw,1.45rem); white-space:nowrap; }
.visual-option small,
.visual-task small { color:var(--muted); line-height:1.3; }
.visual-option em { display:flex; flex-wrap:wrap; gap:6px; font-style:normal; }
.visual-option em i { padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.08); font-style:normal; font-size:.68rem; font-weight:900; }
.visual-feedback { margin-top:14px; padding:14px; border-radius:18px; border-left:5px solid var(--trade-color); background:rgba(255,255,255,.055); }
.visual-feedback span { color:var(--trade-color); font-size:.62rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.visual-game-shell .primary-button {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:50px; padding:13px 20px; border:0; border-radius:999px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--trade-color) 90%, #fff), var(--trade-color));
  color:var(--trade-ink); font-weight:950; letter-spacing:.1em; text-transform:uppercase;
  box-shadow:0 12px 26px color-mix(in srgb, var(--trade-color) 28%, transparent);
}
.visual-game-shell .secondary-button { min-height:44px; padding:11px 15px; border-radius:999px; background:transparent; color:var(--text); }
.visual-partner-rail {
  grid-column: 1 / -1;
  display:flex; flex-wrap:wrap; gap:7px;
}
.visual-partner {
  display:inline-grid; grid-template-columns:26px auto; gap:5px; align-items:center;
  min-height:34px; padding:5px 8px; border:1px solid color-mix(in srgb, var(--trade-color) 32%, var(--line));
  border-radius:999px; background:color-mix(in srgb, var(--surface) 88%, var(--trade-color)); color:var(--text); cursor:pointer;
}
.visual-partner b { color:var(--trade-color); }
.visual-partner i { font-style:normal; font-size:.72rem; font-weight:950; }
.visual-recap .primary-button,
.visual-recap .secondary-button { margin:6px 6px 0 0; }
.visual-overlay { position:fixed; inset:0; z-index:90; display:grid; place-items:center; padding:22px; background:rgba(0,0,0,.72); }
.visual-info-card { width:min(100%,620px); padding:22px; border:1px solid var(--line); border-radius:24px; background:var(--bg); }
.visual-info-card img { width:110px; border-radius:14px; float:left; margin:0 16px 12px 0; }
.visual-info-card h2 { font-size:clamp(1.8rem,4vw,3.4rem); }
@media (max-width: 900px) {
  .visual-layout { grid-template-columns: 1fr; }
  .visual-scene { min-height: 360px; }
}
@media (max-width: 640px) {
  .visual-hud { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .visual-hud .game-link { grid-column: 1 / -1; }
  .visual-scene { min-height: 300px; }
  .visual-panel h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
}

/* 0.6.10-local ISO scene-manifest shell polish */
.visual-game-shell {
  --iso-shadow: rgba(0,0,0,.42);
}
.visual-scene {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--trade-color) 24%, transparent), transparent 29%),
    radial-gradient(circle at 78% 6%, rgba(96,165,250,.16), transparent 30%),
    linear-gradient(160deg, #111827, #070b12 70%);
}
.visual-scene-glow {
  position: absolute;
  inset: -20% -12% auto;
  height: 48%;
  background: radial-gradient(circle, color-mix(in srgb, var(--trade-color) 26%, transparent), transparent 62%);
  filter: blur(8px);
  opacity: .9;
  pointer-events: none;
}
.visual-event-second-night { background: radial-gradient(circle at 24% 18%, rgba(124,58,237,.23), transparent 30%), linear-gradient(160deg, #111827, #080716 74%); }
.visual-event-big-test { background: radial-gradient(circle at 22% 20%, rgba(245,158,11,.22), transparent 32%), linear-gradient(160deg, #172033, #070b12 72%); }
.iso-room { z-index: 1; }
.iso-floor { overflow: hidden; }
.iso-floor::after {
  content: "";
  position: absolute;
  inset: 7% 8%;
  border: 1px dashed color-mix(in srgb, var(--trade-color) 32%, transparent);
  border-radius: 22px;
}
.iso-gate,
.iso-bar,
.iso-cable,
.iso-trash,
.iso-light { position: absolute; display: block; transform: translateZ(32px); }
.iso-gate {
  left: 11%; top: 60%; width: 14%; height: 9%;
  border-radius: 9px;
  background: linear-gradient(135deg, #334155, #111827);
  box-shadow: 0 12px 0 #020617, 0 20px 22px var(--iso-shadow);
}
.iso-bar {
  left: 17%; top: 24%; width: 20%; height: 8%;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #075985);
  box-shadow: 0 11px 0 #0c4a6e, 0 19px 20px var(--iso-shadow);
}
.iso-cable {
  left: 38%; top: 40%; width: 28%; height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--trade-color) 72%, #111827);
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
  transform: translateZ(36px) rotateZ(18deg);
}
.iso-trash {
  width: 6%; height: 6%;
  border-radius: 50% 40% 55% 45%;
  background: #94a3b8;
  box-shadow: 0 7px 0 #475569, 0 14px 16px var(--iso-shadow);
  opacity: .08;
}
.iso-trash-a { left: 31%; top: 68%; }
.iso-trash-b { left: 71%; top: 61%; transform: translateZ(32px) scale(.78); }
.iso-light {
  width: 8%; height: 24%;
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--trade-color) 42%, #fff), transparent);
  opacity: .13;
}
.iso-light-a { left: 49%; top: 24%; transform: translateZ(66px) rotateZ(14deg); }
.iso-light-b { left: 68%; top: 25%; transform: translateZ(66px) rotateZ(-12deg); }
.iso-crowd-c { left: 49%; top: 62%; transform: translateZ(28px) scale(.94); }
.visual-scene-before .iso-crowd,
.visual-scene-before .iso-light,
.visual-scene-recap .iso-crowd,
.visual-scene-recap .iso-light { opacity: .12; }
.visual-scene-live .iso-crowd { opacity: .95; }
.visual-scene-live .iso-light { opacity: .28; }
.visual-scene-cleanup .iso-trash { opacity: .95; }
.visual-scene-cleanup .iso-crowd { opacity: .08; }
.visual-scene-recap .iso-stage,
.visual-scene-recap .iso-bar,
.visual-venue-desk .iso-stage,
.visual-venue-desk .iso-bar,
.visual-venue-desk .iso-gate { opacity: .18; }
.visual-venue-desk .iso-desk {
  left: 38%; top: 38%; width: 30%; height: 18%;
  background: linear-gradient(135deg, #92400e, #451a03);
}
.visual-venue-club .iso-floor { inset: 11% 4% 8%; }
.visual-venue-club .iso-stage { left: 51%; top: 18%; width: 34%; }
.visual-venue-venue .iso-floor { inset: 7% 2% 5%; }
.visual-venue-venue .iso-stage { left: 47%; top: 15%; width: 38%; height: 20%; }
.visual-risk-low .iso-warning { opacity: .15; }
.visual-risk-mid .iso-warning { opacity: .62; }
.visual-risk-high .iso-warning { opacity: 1; animation: visualPulse 1.2s ease-in-out infinite; }
@keyframes visualPulse { 0%,100% { transform: translateZ(72px) rotateZ(39deg) rotateX(-58deg) scale(1); } 50% { transform: translateZ(72px) rotateZ(39deg) rotateX(-58deg) scale(1.14); } }
.visual-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.visual-hotspot {
  position: absolute;
  max-width: 150px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 42%, rgba(255,255,255,.18));
  border-radius: 999px;
  background: rgba(7,11,18,.72);
  color: var(--text);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
}
.visual-hotspot-1 { left: 12%; top: 18%; }
.visual-hotspot-2 { right: 12%; top: 25%; }
.visual-hotspot-3 { left: 45%; bottom: 30%; }
.visual-scene-metrics {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  width: min(520px, calc(100% - 36px));
}
.visual-meter {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(7,11,18,.72);
  backdrop-filter: blur(12px);
}
.visual-meter span { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.visual-meter b,
.visual-meter strong { font-size: .62rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.visual-meter b { color: var(--muted); }
.visual-meter strong { color: var(--text); }
.visual-meter > i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.visual-meter > i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--meter-color, var(--trade-color));
}
.visual-meter-cash { --meter-color: #facc15; }
.visual-meter-risk { --meter-color: #fb7185; }
.visual-meter-ready { --meter-color: #22c55e; }
.visual-meter-pax { --meter-color: #38bdf8; }
.visual-scene-caption { z-index: 4; }
.visual-scene-caption p {
  margin: 7px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(.84rem, 1.2vw, 1rem);
  line-height: 1.35;
}
.visual-schedule > p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
}
.visual-schedule > p b { color: var(--trade-color); }
@media (prefers-reduced-motion: reduce) {
  .visual-risk-high .iso-warning { animation: none; }
}
@media (max-width: 900px) {
  .visual-scene-metrics { grid-template-columns: 1fr; width: min(330px, calc(100% - 36px)); }
  .visual-hotspot { font-size: .58rem; }
}
@media (max-width: 640px) {
  .visual-scene-metrics { position: relative; left: auto; top: auto; width: auto; margin: 12px; }
  .visual-scene-caption { position: relative; right: auto; bottom: auto; left: auto; margin: 12px; }
  .visual-hotspots { display: none; }
  .iso-room { inset: 3% 2% 28%; }
}

/* 0.6.10-local mockup-inspired full-screen ISO layout */
.visual-mockup-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
  background: #071421;
  color: #eef7ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.visual-mockup-shell .visual-scene {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 42% 30%, rgba(250,204,21,.12), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(45,212,191,.16), transparent 24%),
    linear-gradient(135deg, #335329 0 14%, #263f25 14% 28%, #576233 28% 33%, #1f3626 33% 50%, #3e5b2f 50% 70%, #24352b 70% 100%);
}
.visual-world-bg,
.visual-world-water,
.visual-world-road,
.visual-paths,
.visual-mockup-shell .iso-room,
.visual-mockup-shell .visual-scene-glow { position: absolute; pointer-events: none; }
.visual-world-bg {
  inset: 0;
  background:
    radial-gradient(circle at 7% 18%, #5d7b43 0 3%, transparent 3.2%),
    radial-gradient(circle at 91% 22%, #698c4c 0 3.8%, transparent 4%),
    radial-gradient(circle at 80% 85%, #56753e 0 3.2%, transparent 3.4%),
    radial-gradient(circle at 22% 83%, #628845 0 3.8%, transparent 4%),
    linear-gradient(28deg, transparent 0 31%, rgba(250,250,210,.22) 31.4% 34%, transparent 34.4%),
    linear-gradient(112deg, transparent 0 58%, rgba(250,250,210,.16) 58.3% 61%, transparent 61.4%);
  opacity: .95;
}
.visual-world-water {
  right: -8%; top: -4%; width: 42%; height: 44%;
  border-radius: 0 0 0 54%;
  background: linear-gradient(145deg, #5ba7b6, #1f667a 65%, #164b61);
  opacity: .6;
  filter: saturate(1.1);
}
.visual-world-road {
  right: -6%; bottom: 2%; width: 42%; height: 32%;
  transform: rotate(-24deg);
  border-top: 42px solid rgba(60,54,50,.72);
  border-bottom: 30px solid rgba(60,54,50,.55);
  opacity: .95;
}
.visual-mockup-shell .visual-scene-glow {
  inset: auto 8% 9% 8%;
  height: 28%;
  background: radial-gradient(ellipse, rgba(255,200,80,.26), transparent 65%);
  z-index: 1;
}
.visual-mockup-shell .iso-room {
  z-index: 2;
  inset: 7% 6% 5% 6%;
  transform: rotateX(58deg) rotateZ(-38deg) scale(1.06);
  transform-origin: 50% 52%;
}
.visual-mockup-shell .iso-floor {
  inset: 14% 8% 8% 9%;
  border: 3px solid rgba(226,232,240,.72);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(70,95,55,.92), rgba(42,74,47,.94));
  background-size: 46px 46px;
  box-shadow: 0 48px 90px rgba(0,0,0,.34);
}
.visual-mockup-shell .iso-stage {
  left: 27%; top: 18%; width: 31%; height: 22%;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(135deg, #111827, #050816);
  box-shadow: 0 16px 0 #020617, 0 23px 0 #334155, 0 34px 40px rgba(0,0,0,.48);
}
.visual-mockup-shell .iso-stage::before,
.visual-mockup-shell .iso-stage::after {
  content: "";
  position: absolute;
  top: 15%; width: 24%; height: 64%;
  border: 2px solid rgba(255,255,255,.38);
  background: radial-gradient(circle, rgba(45,212,191,.42), transparent 58%), #1e293b;
}
.visual-mockup-shell .iso-stage::before { left: 7%; }
.visual-mockup-shell .iso-stage::after { right: 7%; }
.visual-mockup-shell .iso-gate {
  left: 8%; top: 67%; width: 22%; height: 10%;
  border-radius: 8px;
  background: linear-gradient(135deg, #64748b, #1f2937);
  box-shadow: 0 12px 0 #0f172a, 0 22px 24px rgba(0,0,0,.36);
}
.visual-mockup-shell .iso-gate::after {
  content: "WILLKOMMEN";
  position: absolute;
  inset: -25% 5% auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: #334155;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
}
.visual-mockup-shell .iso-bar {
  left: 57%; top: 48%; width: 18%; height: 10%;
  background: linear-gradient(135deg, #d97706, #78350f);
  box-shadow: 0 10px 0 #451a03, 0 18px 22px rgba(0,0,0,.34);
}
.iso-tent {
  position: absolute;
  display: block;
  transform: translateZ(34px);
  width: 12%; height: 10%;
  clip-path: polygon(50% 0, 100% 58%, 86% 100%, 14% 100%, 0 58%);
  background: linear-gradient(135deg, #fff7ed, #cbd5e1);
  box-shadow: 0 10px 0 #94a3b8, 0 18px 20px rgba(0,0,0,.28);
}
.iso-tent-a { left: 66%; top: 22%; }
.iso-tent-b { left: 25%; top: 60%; transform: translateZ(34px) scale(.86); }
.visual-mockup-shell .iso-desk {
  left: 70%; top: 35%; width: 12%; height: 8%;
  background: linear-gradient(135deg, #fbbf24, #b45309);
}
.visual-mockup-shell .iso-crowd {
  width: 18%; height: 16%;
  border-radius: 46%;
  background:
    radial-gradient(circle at 12% 18%, #f8fafc 0 2px, transparent 3px),
    radial-gradient(circle at 28% 58%, #fb923c 0 2px, transparent 3px),
    radial-gradient(circle at 46% 36%, #60a5fa 0 2px, transparent 3px),
    radial-gradient(circle at 62% 69%, #f87171 0 2px, transparent 3px),
    radial-gradient(circle at 80% 28%, #facc15 0 2px, transparent 3px),
    radial-gradient(circle at 58% 48%, rgba(255,255,255,.22), transparent 58%);
  background-size: 18px 18px, 21px 21px, 19px 19px, 23px 23px, 17px 17px, 100% 100%;
  filter: drop-shadow(0 12px 8px rgba(0,0,0,.32));
}
.visual-mockup-shell .iso-crowd-a { left: 35%; top: 42%; }
.visual-mockup-shell .iso-crowd-b { left: 46%; top: 48%; transform: translateZ(28px) scale(1.12); }
.visual-mockup-shell .iso-crowd-c { left: 21%; top: 72%; transform: translateZ(28px) scale(.76); }
.visual-mockup-shell .iso-light { opacity: .42; background: linear-gradient(180deg, rgba(250,204,21,.5), transparent); }
.visual-mockup-shell .iso-light-a { left: 31%; top: 27%; }
.visual-mockup-shell .iso-light-b { left: 51%; top: 27%; }
.visual-mockup-shell .iso-warning { z-index: 4; right: 22%; top: 20%; }
.visual-mockup-shell .iso-trash { opacity: .45; }
.visual-mockup-shell .visual-paths {
  z-index: 5;
  inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 8px rgba(45,212,191,.7));
}
.visual-paths .path {
  fill: none;
  stroke-width: .8;
  stroke-linecap: round;
  stroke-dasharray: 1.6 1.2;
  opacity: .9;
}
.visual-paths .path-main { stroke: #2dd4bf; }
.visual-paths .path-risk { stroke: #fb6056; }
.visual-paths .path-work { stroke: #facc15; }
.visual-mockup-shell .visual-hotspots { z-index: 8; }
.visual-mockup-shell .visual-hotspot {
  border-color: rgba(45,212,191,.74);
  background: rgba(8,47,73,.72);
  color: #dffcff;
}
.visual-mockup-shell .visual-hotspot-1 { left: 24%; top: 18%; }
.visual-mockup-shell .visual-hotspot-2 { right: 27%; top: 29%; }
.visual-mockup-shell .visual-hotspot-3 { left: 62%; bottom: 35%; }
.visual-topbar {
  position: absolute;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 7px 16px;
  background: linear-gradient(180deg, rgba(10,31,54,.96), rgba(9,28,49,.82));
  border-bottom: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.visual-menu,
.visual-settings {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2px solid rgba(96,165,250,.34);
  border-radius: 8px;
  background: rgba(15,45,77,.72);
  color: #cfeaff;
  cursor: pointer;
}
.visual-menu span { display: block; width: 24px; height: 3px; margin: 2px 0; border-radius: 999px; background: #cfeaff; }
.visual-brand { display: flex; align-items: baseline; gap: 22px; min-width: 0; }
.visual-brand strong {
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .02em;
  color: #f8fbff;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  white-space: nowrap;
}
.visual-brand em { color: #2dd4bf; font-style: normal; }
.visual-brand span { color: #9fb4cc; font-size: .94rem; font-style: italic; white-space: nowrap; }
.visual-hud-metrics { display: flex; align-items: center; gap: 20px; }
.visual-hud-item {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  min-width: 122px;
  padding-left: 16px;
  border-left: 1px solid rgba(148,163,184,.28);
}
.visual-hud-item span { color: #9fb4cc; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.visual-hud-item strong { color: #eef7ff; font-size: 1.28rem; line-height: 1; }
.visual-hud-item .money-symbol,
.visual-hud-item:nth-child(3) strong { color: #2dd4bf; }
.visual-hud-icon {
  grid-row: 1 / span 2;
  display: block;
  width: 34px; height: 34px;
  position: relative;
  color: #2dd4bf;
}
.visual-hud-budget::before { content: ""; position: absolute; inset: 4px 7px; border-radius: 50%; background: repeating-linear-gradient(180deg, #2dd4bf 0 5px, #082f49 5px 8px); box-shadow: 0 0 14px rgba(45,212,191,.5); }
.visual-hud-time::before { content: ""; position: absolute; inset: 2px; border: 4px solid #94a3b8; border-radius: 50%; }
.visual-hud-time::after { content: ""; position: absolute; left: 16px; top: 7px; width: 4px; height: 14px; background: #94a3b8; transform-origin: bottom; transform: rotate(-42deg); border-radius: 999px; }
.visual-hud-mood::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #a3e635; box-shadow: 0 0 18px rgba(163,230,53,.35); }
.visual-hud-mood::after { content: ""; position: absolute; left: 10px; top: 12px; width: 14px; height: 7px; border-bottom: 3px solid #0f3b1e; border-radius: 0 0 999px 999px; }
.visual-module-rail {
  position: absolute;
  z-index: 18;
  left: 14px; top: 84px;
  display: grid;
  width: 102px;
  border: 2px solid rgba(96,165,250,.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7,31,55,.84);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}
.visual-module {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 94px;
  padding: 10px 6px;
  border: 0;
  border-bottom: 1px solid rgba(148,163,184,.22);
  background: linear-gradient(180deg, rgba(14,45,77,.86), rgba(8,31,55,.86));
  color: #e9f7ff;
  font-weight: 950;
  cursor: pointer;
}
.visual-module:hover,
.visual-module.is-active { background: linear-gradient(180deg, rgba(16,80,110,.96), rgba(9,45,76,.94)); box-shadow: inset 4px 0 0 var(--trade-color); }
.visual-module span { font-size: .76rem; letter-spacing: .02em; }
.visual-module small {
  position: absolute;
  right: 5px; top: 5px;
  display: grid; place-items: center;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(45,212,191,.18);
  color: #9ffaf0;
  font-size: .64rem;
}
.visual-module-icon {
  width: 38px; height: 34px;
  position: relative;
  color: #d8ebff;
}
.visual-module-icon::before,
.visual-module-icon::after { content: ""; position: absolute; background: currentColor; }
.visual-module-stage::before { left: 3px; right: 3px; top: 6px; height: 8px; box-shadow: inset 0 0 0 2px #0b2948; }
.visual-module-stage::after { left: 7px; right: 7px; bottom: 5px; height: 16px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; background: transparent; }
.visual-module-toilets::before { left: 9px; top: 4px; width: 20px; height: 14px; border-radius: 3px 3px 9px 9px; }
.visual-module-toilets::after { left: 14px; top: 19px; width: 10px; height: 10px; border-radius: 0 0 8px 8px; }
.visual-module-catering::before { left: 6px; top: 13px; width: 28px; height: 16px; border-radius: 999px 999px 7px 7px; }
.visual-module-catering::after { left: 8px; top: 7px; width: 24px; height: 6px; border-radius: 999px; }
.visual-module-security::before { left: 10px; top: 4px; width: 18px; height: 28px; clip-path: polygon(50% 0, 90% 16%, 82% 75%, 50% 100%, 18% 75%, 10% 16%); }
.visual-module-power::before { left: 12px; top: 2px; width: 16px; height: 32px; clip-path: polygon(52% 0, 15% 54%, 45% 54%, 31% 100%, 86% 37%, 55% 37%); }
.visual-module-decor::before { left: 6px; top: 5px; width: 26px; height: 24px; clip-path: polygon(50% 0, 60% 34%, 96% 34%, 67% 54%, 80% 92%, 50% 68%, 20% 92%, 33% 54%, 4% 34%, 40% 34%); }
.visual-decision-card,
.visual-chart-card {
  position: absolute;
  z-index: 19;
  border: 2px solid rgba(45,212,191,.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11,38,68,.96), rgba(7,31,55,.94));
  box-shadow: 0 16px 50px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
}
.visual-decision-card {
  right: 18px; top: 88px;
  width: min(390px, calc(100vw - 148px));
  max-height: calc(100svh - 330px);
  overflow: auto;
  padding: 18px;
}
.visual-alert-head { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.visual-alert-head > i {
  display: grid; place-items: center;
  width: 38px; height: 44px;
  clip-path: polygon(52% 0, 12% 54%, 45% 54%, 28% 100%, 88% 36%, 55% 36%);
  background: #ff5d56;
  color: transparent;
}
.visual-alert-head span { color: #ff716b; font-size: .82rem; font-weight: 950; letter-spacing: .08em; }
.visual-alert-head h1,
.visual-decision-card h1 {
  margin: 2px 0 8px;
  color: #ff716b;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.visual-decision-card p { color: #dbeafe; line-height: 1.35; }
.visual-decision-card .visual-helper { margin: 12px 0; color: #bfdbfe; }
.visual-decision-card .visual-options { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.visual-decision-card .visual-option,
.visual-decision-card .visual-task {
  min-height: 58px;
  padding: 12px;
  border-left: 0;
  border-color: rgba(45,212,191,.28);
  border-radius: 7px;
  background: linear-gradient(180deg, #37e0d4, #20bfb4);
  color: #06212b;
  text-align: center;
}
.visual-decision-card .visual-option:hover:not(:disabled) { background: linear-gradient(180deg, #5eeae0, #28d0c4); }
.visual-decision-card .visual-option.selected { outline: 3px solid #facc15; }
.visual-decision-card .visual-option.locked,
.visual-decision-card .visual-option:disabled { filter: grayscale(.45); opacity: .66; }
.visual-decision-card .visual-option > span { display: block; }
.visual-decision-card .visual-option strong,
.visual-decision-card .visual-task strong { display: block; font-size: .92rem; color: inherit; }
.visual-decision-card .visual-option b { display: block; margin-top: 4px; color: inherit; font-size: .9rem; }
.visual-decision-card .visual-option small { display: block; margin-top: 8px; color: rgba(6,33,43,.82); }
.visual-decision-card .visual-option em { justify-content: center; margin-top: 8px; }
.visual-decision-card .visual-option em i { background: rgba(6,33,43,.12); color: inherit; }
.visual-decision-card .visual-feedback { background: rgba(15,45,77,.7); border-left-color: #2dd4bf; }
.visual-decision-card .primary-button { width: 100%; margin-top: 8px; }
.visual-chart-card {
  right: 18px; bottom: 18px;
  width: min(360px, calc(100vw - 148px));
  padding: 16px;
}
.visual-chart-title { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; color: #dffcff; }
.visual-chart-title strong { font-size: .92rem; letter-spacing: .06em; }
.visual-chart-title b { color: #2dd4bf; font-size: 1.25rem; }
.visual-chart-card svg { display: block; width: 100%; height: 128px; margin-top: 8px; }
.visual-chart-card .grid path { fill: none; stroke: rgba(148,163,184,.18); stroke-width: .8; }
.chart-fill { fill: rgba(45,212,191,.13); }
.chart-line { fill: none; stroke: #2dd4bf; stroke-width: 2.5; stroke-linejoin: round; }
.chart-dot { fill: #2dd4bf; filter: drop-shadow(0 0 6px #2dd4bf); }
.visual-mini-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.visual-mini-bars span {
  display: grid;
  gap: 5px;
  color: #9fb4cc;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.visual-mini-bars span::after { content: ""; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #2dd4bf var(--value), rgba(255,255,255,.1) 0); }
.visual-chart-card p { margin: 12px 0 0; color: #2dd4bf; font-size: .88rem; font-style: italic; }
.visual-sustainability {
  position: absolute;
  left: 0; right: auto; bottom: 0;
  z-index: 17;
  display: flex; gap: 12px; align-items: center;
  min-width: 330px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(10,31,54,.9), rgba(10,31,54,.45), transparent);
  color: #9fb4cc;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.visual-sustainability b {
  width: 34px; height: 28px;
  background: #8bd450;
  clip-path: polygon(47% 100%, 47% 65%, 8% 22%, 33% 17%, 50% 58%, 66% 17%, 92% 22%, 53% 65%, 53% 100%);
}
.visual-overlay { z-index: 80; }
.visual-mockup-shell .visual-info-card { background: linear-gradient(180deg, rgba(11,38,68,.98), rgba(7,31,55,.98)); color: #eef7ff; }
@media (max-width: 1100px) {
  .visual-brand span { display: none; }
  .visual-decision-card { width: min(360px, calc(100vw - 136px)); }
  .visual-chart-card { width: min(330px, calc(100vw - 136px)); }
}
@media (max-width: 820px) {
  .visual-topbar { grid-template-columns: auto 1fr auto; height: auto; min-height: 62px; }
  .visual-hud-metrics { grid-column: 1 / -1; justify-content: space-between; gap: 8px; }
  .visual-hud-item { min-width: 0; padding-left: 8px; }
  .visual-module-rail { top: 126px; width: 82px; }
  .visual-module { min-height: 76px; }
  .visual-module span { font-size: .62rem; }
  .visual-decision-card { top: 126px; width: calc(100vw - 118px); max-height: 42svh; }
  .visual-chart-card { display: none; }
}
@media (max-width: 640px) {
  .visual-mockup-shell { overflow: auto; min-height: 100svh; }
  .visual-mockup-shell .visual-scene { position: relative; min-height: 58svh; padding-top: 132px; }
  .visual-topbar { position: sticky; }
  .visual-module-rail { position: relative; left: auto; top: auto; width: auto; display: flex; margin: 10px; overflow-x: auto; }
  .visual-module { min-width: 78px; }
  .visual-decision-card { position: relative; right: auto; top: auto; width: auto; max-height: none; margin: 10px; }
  .visual-decision-card .visual-options { grid-template-columns: 1fr; }
  .visual-sustainability { position: relative; min-width: 0; }
}


/* 0.6.10-local anchored visual decisions: desk/map hotspots */
.visual-anchored-shell .visual-scene {
  overflow: hidden;
}
.visual-anchored-shell .visual-scene-desk {
  background:
    radial-gradient(circle at 18% 16%, rgba(45,212,191,.18), transparent 25%),
    radial-gradient(circle at 72% 28%, rgba(250,204,21,.12), transparent 22%),
    linear-gradient(145deg, #172033, #091827 72%);
}
.visual-anchored-shell .visual-scene-map {
  background:
    radial-gradient(circle at 42% 30%, rgba(250,204,21,.12), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(45,212,191,.16), transparent 24%),
    linear-gradient(135deg, #335329 0 14%, #263f25 14% 28%, #576233 28% 33%, #1f3626 33% 50%, #3e5b2f 50% 70%, #24352b 70% 100%);
}
.visual-desk-surface {
  position:absolute;
  z-index:1;
  left:11%; right:22%; top:15%; bottom:10%;
  border-radius:42px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, #8b5a2b, #4a2d16 72%);
  background-size:44px 44px, 44px 44px, auto;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 34px 80px rgba(0,0,0,.42);
  transform: skewY(-2deg);
}
.visual-map-surface {
  position:absolute;
  z-index:1;
  left:12%; right:18%; top:13%; bottom:8%;
  border:2px solid rgba(226,232,240,.55);
  border-radius:28px;
  background:
    radial-gradient(circle at 34% 28%, rgba(250,204,21,.18), transparent 14%),
    radial-gradient(circle at 45% 50%, rgba(255,255,255,.12), transparent 16%),
    linear-gradient(28deg, transparent 0 31%, rgba(250,250,210,.22) 31.4% 34%, transparent 34.4%),
    linear-gradient(112deg, transparent 0 58%, rgba(250,250,210,.16) 58.3% 61%, transparent 61.4%),
    rgba(42,74,47,.9);
  box-shadow:0 34px 80px rgba(0,0,0,.36);
}
.visual-scene-desk .visual-map-surface,
.visual-scene-map .visual-desk-surface { display:none; }
.visual-scene-desk .visual-world-bg,
.visual-scene-desk .visual-world-water,
.visual-scene-desk .visual-world-road { display:none; }
.visual-desk-objects,
.visual-event-objects {
  position:absolute;
  inset:0;
  z-index:8;
}
.visual-hotspot-object {
  position:absolute;
  display:grid;
  place-items:center;
  gap:6px;
  min-width:86px;
  min-height:62px;
  padding:8px 10px;
  border:2px solid rgba(226,232,240,.20);
  border-radius:16px;
  background:rgba(8,31,55,.54);
  color:#e9f7ff;
  box-shadow:0 16px 32px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(7px);
  text-align:center;
  font-weight:950;
  font-size:.68rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
button.visual-hotspot-object { cursor:pointer; }
.visual-hotspot-object i {
  display:block;
  width:38px;
  height:28px;
  border-radius:8px;
  background:linear-gradient(135deg, var(--trade-color), color-mix(in srgb, var(--trade-color) 45%, #fff));
  box-shadow:0 0 18px color-mix(in srgb, var(--trade-color) 40%, transparent);
}
.visual-hotspot-object.is-available,
.visual-hotspot-object.is-active {
  border-color:color-mix(in srgb, var(--trade-color) 75%, #fff);
  background:color-mix(in srgb, rgba(8,31,55,.82) 76%, var(--trade-color));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--trade-color) 18%, transparent), 0 18px 42px rgba(0,0,0,.3);
}
.visual-hotspot-object.is-active::after,
.visual-hotspot-object.is-available::after {
  content:"";
  position:absolute;
  inset:-8px;
  border:2px dashed color-mix(in srgb, var(--trade-color) 72%, #fff);
  border-radius:22px;
  animation: visualHotspotPulse 1.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes visualHotspotPulse { 0%,100% { opacity:.35; transform:scale(.98); } 50% { opacity:.9; transform:scale(1.03); } }
.visual-hotspot-object.is-disabled,
.visual-hotspot-object:disabled {
  opacity:.42;
  filter:grayscale(.8);
  cursor:not-allowed;
}
.visual-hotspot-object.is-done { opacity:.55; border-color:rgba(34,197,94,.42); }
.visual-hotspot-object.phone i { border-radius:14px 14px 8px 8px; }
.visual-hotspot-object.map i { clip-path:polygon(0 8%, 32% 0, 66% 8%, 100% 0, 100% 92%, 68% 100%, 34% 92%, 0 100%); }
.visual-hotspot-object.laptop i { height:24px; border-bottom:7px solid rgba(15,23,42,.9); }
.visual-hotspot-object.blueprint i { background:linear-gradient(135deg,#38bdf8,#1d4ed8); }
.visual-hotspot-object.folder i { background:linear-gradient(135deg,#fb7185,#ef4444); }
.visual-hotspot-object.waste i { background:linear-gradient(135deg,#86efac,#16a34a); }
.visual-hotspot-object.stage i { background:linear-gradient(135deg,#fbbf24,#7c2d12); }
.visual-hotspot-object.gate i { background:linear-gradient(135deg,#94a3b8,#334155); }
.visual-hotspot-object.crowd i { border-radius:50%; background:radial-gradient(circle,#f8fafc 0 18%,#60a5fa 20% 36%,#fb923c 38% 54%,transparent 56%); }
.visual-hotspot-object.outside i { background:linear-gradient(90deg,#38bdf8 0 45%,#fb7185 55%); }
.visual-hotspot-object.desk-folder { left:41%; top:36%; }
.visual-hotspot-object.desk-map { left:19%; top:25%; width:190px; height:118px; }
.visual-hotspot-object.desk-phone { left:17%; top:57%; }
.visual-hotspot-object.desk-budget { left:41%; top:58%; }
.visual-hotspot-object.desk-laptop { left:58%; top:26%; width:170px; height:105px; }
.visual-hotspot-object.desk-blueprint { left:36%; top:22%; }
.visual-hotspot-object.desk-insurance { left:62%; top:56%; }
.visual-hotspot-object.desk-poster { left:72%; top:34%; }
.visual-hotspot-object.desk-booklet { left:69%; top:66%; }
.visual-hotspot-object.desk-print { left:51%; top:69%; }
.visual-hotspot-object.desk-network { left:55%; top:46%; }
.visual-hotspot-object.desk-waste { left:30%; top:69%; }
.visual-hotspot-object.desk-offers { left:46%; top:39%; width:160px; }
.visual-hotspot-object.event-stage { left:28%; top:18%; width:210px; height:118px; }
.visual-hotspot-object.event-gate { left:12%; bottom:19%; width:150px; }
.visual-hotspot-object.event-crowd { left:36%; top:46%; width:190px; height:116px; }
.visual-hotspot-object.event-food { left:60%; top:52%; }
.visual-hotspot-object.event-toilets { left:73%; top:47%; }
.visual-hotspot-object.event-power { left:77%; top:25%; }
.visual-hotspot-object.event-tech { left:66%; top:27%; }
.visual-hotspot-object.event-outside { right:8%; bottom:21%; }
.visual-hotspot-object.event-waste { left:62%; bottom:12%; }
.visual-decision-popover {
  position:absolute;
  z-index:19;
  width:min(390px, calc(100vw - 150px));
  max-height:52svh;
  overflow:auto;
  padding:16px;
  border:2px solid rgba(45,212,191,.30);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(11,38,68,.97), rgba(7,31,55,.95));
  box-shadow:0 18px 58px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
}
.visual-confirm-scrim {
  position:absolute;
  inset:0;
  z-index:18;
  background:rgba(3,10,20,.32);
  cursor:default;
}
.visual-decision-popover .band-name-locked {
  grid-column:1 / -1;
  color:#a8bacd;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.035em;
  line-height:1.25;
}
.visual-decision-popover::before {
  content:"";
  position:absolute;
  width:24px; height:24px;
  border-left:2px solid rgba(45,212,191,.34);
  border-top:2px solid rgba(45,212,191,.34);
  background:linear-gradient(135deg, rgba(11,38,68,.97), rgba(7,31,55,.95));
  transform:rotate(45deg);
  left:28px; top:-14px;
}
.visual-decision-popover .visual-alert-head { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start; }
.visual-decision-popover .visual-alert-head > i {
  display:grid; place-items:center;
  width:31px; height:36px;
  clip-path:polygon(52% 0,12% 54%,45% 54%,28% 100%,88% 36%,55% 36%);
  background:#ff5d56;
  color:transparent;
}
.visual-decision-popover .visual-alert-head span { color:#2dd4bf; font-size:.72rem; font-weight:950; letter-spacing:.1em; }
.visual-decision-popover h1 { margin:2px 0 8px; color:#eef7ff; font-size:clamp(1.06rem,1.8vw,1.45rem); line-height:1.08; }
.visual-decision-popover p { color:#dbeafe; line-height:1.35; }
.visual-decision-popover .visual-options { grid-template-columns:1fr; gap:9px; }
.visual-decision-popover .visual-option,
.visual-decision-popover .visual-task {
  min-height:54px;
  padding:11px 12px;
  border-left:0;
  border-color:rgba(45,212,191,.32);
  border-radius:9px;
  background:linear-gradient(180deg,#37e0d4,#20bfb4);
  color:#06212b;
  text-align:left;
}
.visual-decision-popover .visual-option:hover:not(:disabled) { background:linear-gradient(180deg,#5eeae0,#28d0c4); }
.visual-decision-popover .visual-option.selected { outline:3px solid #facc15; }
.visual-decision-popover .visual-option.locked,
.visual-decision-popover .visual-option:disabled { filter:grayscale(.45); opacity:.66; }
.visual-decision-popover .visual-option strong { color:inherit; }
.visual-decision-popover .visual-option b { color:inherit; }
.visual-decision-popover .visual-option small { color:rgba(6,33,43,.82); }
.visual-decision-popover .visual-option em i { background:rgba(6,33,43,.12); color:inherit; }
.visual-decision-popover .visual-feedback { background:rgba(15,45,77,.72); border-left-color:#2dd4bf; }
.visual-decision-popover .primary-button { width:100%; margin-top:8px; }
.anchor-desk-map { left:31%; top:19%; }
.anchor-desk-phone { left:27%; top:48%; }
.anchor-desk-budget { left:50%; top:50%; }
.anchor-desk-laptop { left:56%; top:23%; }
.anchor-desk-blueprint { left:44%; top:18%; }
.anchor-desk-insurance { left:56%; top:47%; }
.anchor-desk-poster { right:6%; top:27%; }
.anchor-desk-booklet { right:9%; top:50%; }
.anchor-desk-print { left:53%; top:56%; }
.anchor-desk-network { left:60%; top:36%; }
.anchor-desk-waste { left:36%; top:54%; }
.anchor-desk-offers { left:51%; top:31%; }
.anchor-desk-folder { left:43%; top:28%; }
.anchor-event-stage { left:40%; top:18%; }
.anchor-event-gate { left:21%; bottom:22%; top:auto; }
.anchor-event-crowd { left:45%; top:42%; }
.anchor-event-food { left:56%; top:42%; }
.anchor-event-toilets { right:10%; top:41%; }
.anchor-event-power { right:8%; top:22%; }
.anchor-event-tech { right:14%; top:24%; }
.anchor-event-outside { right:8%; bottom:24%; top:auto; }
.anchor-event-waste { right:18%; bottom:15%; top:auto; }
.visual-scene-desk .visual-world-water,
.visual-scene-desk .visual-world-road { display:none; }
.visual-phase-cleanup .visual-map-surface { filter:brightness(.62) saturate(.8); }
.visual-phase-incident .visual-map-surface { box-shadow:0 0 0 5px rgba(248,113,113,.18), 0 34px 80px rgba(0,0,0,.36); }
@media (max-width: 900px) {
  .visual-decision-popover { width:calc(100vw - 122px); max-height:44svh; }
  .anchor-desk-poster,.anchor-desk-booklet,.anchor-event-toilets,.anchor-event-power,.anchor-event-tech,.anchor-event-outside { right:18px; left:auto; }
  .visual-hotspot-object { min-width:74px; min-height:54px; font-size:.58rem; }
}
@media (max-width: 640px) {
  .visual-anchored-shell .visual-scene { position:relative; min-height:62svh; padding-top:132px; }
  .visual-decision-popover { position:relative; left:auto!important; right:auto!important; top:auto!important; bottom:auto!important; width:auto; max-height:none; margin:10px; }
  .visual-decision-popover::before { display:none; }
  .visual-hotspot-object { transform:scale(.82); transform-origin:center; }
  .visual-desk-surface,.visual-map-surface { left:4%; right:4%; top:20%; bottom:5%; }
}

/* 0.6.10-local visual refinements: Berufswelten rail + compact confirmation */
.visual-group-rail .visual-module {
  min-height: 118px;
}
.visual-group-rail .visual-module span {
  font-size: .68rem;
  letter-spacing: .08em;
}
.visual-group-kreativ { --trade-color:#7c3aed; }
.visual-group-kommunikation { --trade-color:#ef4444; }
.visual-group-vielseitig { --trade-color:#22c55e; }
.visual-group-innovativ { --trade-color:#f59e0b; }
.visual-module-kreativ::before,
.visual-module-kommunikation::before,
.visual-module-vielseitig::before,
.visual-module-innovativ::before {
  content:"";
  position:absolute;
  inset:4px;
  border-radius:10px;
  background:color-mix(in srgb, var(--trade-color) 16%, transparent);
  opacity:.5;
}
.visual-module-kreativ::after {
  content:"";
  position:absolute;
  left:7px; top:7px;
  width:24px; height:20px;
  background:currentColor;
  clip-path:polygon(12% 18%, 58% 18%, 58% 0, 100% 36%, 58% 72%, 58% 54%, 12% 54%);
  transform:rotate(-16deg);
}
.visual-module-kommunikation::after {
  content:"";
  position:absolute;
  left:5px; top:8px;
  width:28px; height:18px;
  border:4px solid currentColor;
  border-radius:50%;
  border-left-color:transparent;
  transform:rotate(-18deg);
}
.visual-module-vielseitig::after {
  content:"";
  position:absolute;
  left:8px; top:6px;
  width:23px; height:23px;
  border-radius:6px;
  background:currentColor;
  box-shadow:10px 10px 0 color-mix(in srgb, currentColor 72%, transparent);
  transform:rotate(45deg) scale(.72);
}
.visual-module-innovativ::after {
  content:"";
  position:absolute;
  left:12px; top:3px;
  width:15px; height:30px;
  background:currentColor;
  clip-path:polygon(52% 0, 14% 52%, 45% 52%, 31% 100%, 88% 38%, 58% 38%);
}
.visual-band-box {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  margin:10px 0 12px;
  padding:12px;
  border:1px solid rgba(45,212,191,.28);
  border-radius:14px;
  background:rgba(15,45,77,.68);
}
.visual-band-box div { min-width:0; }
.visual-band-box span,
.visual-confirm-choice > span {
  display:block;
  color:#2dd4bf;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.visual-band-box strong {
  display:block;
  margin-top:3px;
  color:#eef7ff;
  font-size:1rem;
  line-height:1.05;
}
.visual-band-box .secondary-button {
  grid-column:1 / -1;
  justify-self:start;
}
.visual-confirm-choice {
  display:grid;
  gap:10px;
  margin-top:12px;
  padding:14px;
  border:2px solid color-mix(in srgb, var(--trade-color) 56%, rgba(255,255,255,.14));
  border-radius:16px;
  background:linear-gradient(180deg, rgba(15,45,77,.88), rgba(7,31,55,.88));
}
.visual-confirm-choice strong {
  color:#eef7ff;
  font-size:clamp(1.1rem, 2vw, 1.55rem);
  line-height:1.05;
}
.visual-confirm-choice > b {
  justify-self:start;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(250,204,21,.14);
  color:#facc15;
  font-size:1.05rem;
}
.visual-confirm-choice p {
  margin:0;
  color:#cfe7ff;
}
.visual-confirm-choice em {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-style:normal;
}
.visual-confirm-choice em i {
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#e0f2fe;
  font-style:normal;
  font-size:.72rem;
  font-weight:900;
}
.visual-confirm-actions {
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:8px;
  align-items:center;
}
.visual-confirm-actions .primary-button,
.visual-confirm-actions .secondary-button { width:100%; margin:0; }
@media (max-width:640px) {
  .visual-confirm-actions { grid-template-columns:1fr; }
  .visual-group-rail .visual-module { min-height:82px; }
}

/* 0.6.10-local collapsible metric cards from top HUD */
.visual-hud-toggle {
  cursor:pointer;
  font:inherit;
  color:inherit;
  text-align:left;
}
.visual-hud-toggle.is-open {
  border-color:#2dd4bf;
  background:linear-gradient(180deg, rgba(20,184,166,.28), rgba(15,45,77,.88));
  box-shadow:0 0 0 3px rgba(45,212,191,.12), inset 0 1px 0 rgba(255,255,255,.12);
}
.visual-hud-toggle:hover {
  border-color:rgba(45,212,191,.55);
}
.visual-chart-budget .visual-chart-title b { color:#facc15; }
.visual-budget-bars {
  display:grid;
  gap:12px;
  margin:16px 0 10px;
}
.visual-budget-bars span {
  display:grid;
  gap:6px;
  color:#9fb4cc;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.visual-budget-bars span::after {
  content:"";
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, #facc15 var(--value), rgba(255,255,255,.1) 0);
  box-shadow:0 0 12px rgba(250,204,21,.18);
}
.visual-budget-bars span + span::after {
  background:linear-gradient(90deg, #38bdf8 var(--value), rgba(255,255,255,.1) 0);
}
.visual-budget-bars b,
.visual-budget-bars strong {
  display:inline;
  color:#dffcff;
}
.visual-budget-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}
.visual-budget-list p {
  margin:0;
  padding:8px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.055);
  color:#cfe7ff;
  font-size:.78rem;
}
@media (max-width:640px) {
  .visual-budget-list { grid-template-columns:1fr; }
}

/* 0.6.10-local image underlays + rectangular touch frames */
.visual-has-underlay {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.visual-has-underlay .visual-world-bg,
.visual-has-underlay .visual-world-water,
.visual-has-underlay .visual-world-road,
.visual-has-underlay .visual-desk-surface,
.visual-has-underlay .visual-map-surface {
  display:none !important;
}
.visual-has-underlay .visual-hotspot-object {
  right:auto !important;
  bottom:auto !important;
  min-width:0;
  min-height:0;
  padding:0;
  display:block;
  border:3px solid rgba(250,204,21,.88);
  border-radius:7px;
  background:rgba(250,204,21,.045);
  box-shadow:0 0 0 2px rgba(15,23,42,.26), 0 0 22px rgba(250,204,21,.28), inset 0 0 34px rgba(250,204,21,.06);
  backdrop-filter:none;
  color:#fff7cc;
  overflow:visible;
}
.visual-has-underlay .visual-hotspot-object i {
  position:absolute;
  left:50%;
  top:-28px;
  width:42px;
  height:42px;
  transform:translateX(-50%);
  border:3px solid rgba(250,204,21,.95);
  border-radius:50% 50% 50% 10px;
  background:rgba(12,18,28,.88);
  box-shadow:0 0 18px rgba(250,204,21,.45);
}
.visual-has-underlay .visual-hotspot-object i::after {
  content:"";
  position:absolute;
  inset:10px;
  border-radius:8px;
  background:currentColor;
  opacity:.9;
}
.visual-has-underlay .visual-hotspot-object span {
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
  max-width:180px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(8,31,55,.82);
  color:#fff7cc;
  font-size:.62rem;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.visual-has-underlay .visual-hotspot-object.is-active,
.visual-has-underlay .visual-hotspot-object.is-available:hover:not(:disabled),
.visual-has-underlay button.visual-hotspot-object:focus-visible {
  border-color:#2dd4bf;
  background:rgba(45,212,191,.08);
  box-shadow:0 0 0 3px rgba(45,212,191,.18), 0 0 26px rgba(45,212,191,.45), inset 0 0 42px rgba(45,212,191,.08);
  color:#dffcff;
}
.visual-has-underlay .visual-hotspot-object.is-active i,
.visual-has-underlay .visual-hotspot-object.is-available:hover:not(:disabled) i,
.visual-has-underlay button.visual-hotspot-object:focus-visible i {
  border-color:#2dd4bf;
  box-shadow:0 0 22px rgba(45,212,191,.6);
}
.visual-has-underlay .visual-hotspot-object.is-active::after,
.visual-has-underlay .visual-hotspot-object.is-available::after {
  inset:-7px;
  border-color:currentColor;
  border-radius:10px;
}
.visual-has-underlay .visual-hotspot-object.is-disabled,
.visual-has-underlay .visual-hotspot-object:disabled {
  opacity:.33;
  filter:grayscale(.9) saturate(.45);
}
.visual-has-underlay .visual-hotspot-object.is-done {
  border-color:rgba(34,197,94,.72);
  color:#bbf7d0;
  opacity:.7;
}
.visual-has-underlay .visual-hotspot-object.phone i::after { clip-path:polygon(25% 0,75% 0,100% 70%,84% 100%,16% 100%,0 70%); }
.visual-has-underlay .visual-hotspot-object.map i::after { clip-path:polygon(0 8%,32% 0,66% 8%,100% 0,100% 92%,68% 100%,34% 92%,0 100%); }
.visual-has-underlay .visual-hotspot-object.laptop i::after { clip-path:polygon(7% 0,93% 0,93% 70%,100% 100%,0 100%,7% 70%); }
.visual-has-underlay .visual-hotspot-object.stage i::after { clip-path:polygon(0 30%,100% 30%,100% 48%,85% 48%,85% 100%,70% 100%,70% 48%,30% 48%,30% 100%,15% 100%,15% 48%,0 48%); }
.visual-has-underlay .visual-hotspot-object.gate i::after { clip-path:polygon(12% 8%,88% 8%,88% 100%,70% 100%,70% 28%,30% 28%,30% 100%,12% 100%); }
.visual-has-underlay .visual-hotspot-object.crowd i::after { border-radius:50%; box-shadow:-8px 5px 0 currentColor, 8px 5px 0 currentColor; }
.visual-has-underlay .visual-hotspot-object.waste i::after { clip-path:polygon(20% 25%,80% 25%,70% 100%,30% 100%); }
.visual-has-underlay .visual-scene-caption {
  background:rgba(7,11,18,.48);
}
@media (max-width: 900px) {
  .visual-has-underlay .visual-hotspot-object i { width:34px; height:34px; top:-23px; }
  .visual-has-underlay .visual-hotspot-object span { display:none; }
}

/* 0.6.10-local visual flow: committed choice shows only effect */
.visual-effect-only {
  display:grid;
  gap:12px;
  padding:18px;
  border-left-color:#22c55e;
  background:linear-gradient(180deg, rgba(22,101,52,.24), rgba(15,45,77,.72));
}
.visual-effect-only span { color:#86efac; }
.visual-effect-only p {
  margin:0;
  color:#e8fff2;
  font-size:1rem;
}
.visual-effect-only .primary-button { width:100%; }

/* 0.6.10-local hotspot state pass: Gewerk colors, hide done, critical pulse */
.visual-has-underlay .visual-hotspot-object {
  border-color: color-mix(in srgb, var(--trade-color) 78%, #fff);
  background: color-mix(in srgb, var(--trade-color) 10%, transparent);
  box-shadow: 0 0 0 2px rgba(15,23,42,.26), 0 0 22px color-mix(in srgb, var(--trade-color) 28%, transparent), inset 0 0 34px color-mix(in srgb, var(--trade-color) 8%, transparent);
  color: color-mix(in srgb, var(--trade-color) 72%, #fff);
}
.visual-has-underlay .visual-hotspot-object i {
  border-color: color-mix(in srgb, var(--trade-color) 78%, #fff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--trade-color) 40%, transparent);
}
.visual-has-underlay .visual-hotspot-object span {
  color: color-mix(in srgb, var(--trade-color) 60%, #fff);
}
.visual-has-underlay .visual-hotspot-object.is-done {
  display: none;
}
.visual-has-underlay .visual-hotspot-object.timing-late {
  border-color:#fb923c;
  color:#fed7aa;
  background:rgba(251,146,60,.08);
  box-shadow:0 0 0 2px rgba(15,23,42,.26), 0 0 24px rgba(251,146,60,.42), inset 0 0 34px rgba(251,146,60,.08);
}
.visual-has-underlay .visual-hotspot-object.timing-critical,
.visual-has-underlay .visual-hotspot-object.timing-toolate {
  border-color:#fb3f4a;
  color:#fecdd3;
  background:rgba(251,63,74,.10);
  box-shadow:0 0 0 2px rgba(15,23,42,.28), 0 0 30px rgba(251,63,74,.55), inset 0 0 40px rgba(251,63,74,.10);
}
.visual-has-underlay .visual-hotspot-object.timing-critical::before,
.visual-has-underlay .visual-hotspot-object.timing-toolate::before {
  content:"";
  position:absolute;
  inset:-10px;
  border:3px solid #fb3f4a;
  border-radius:12px;
  pointer-events:none;
  animation: visualCriticalPulse .85s ease-in-out infinite;
}
@keyframes visualCriticalPulse {
  0%,100% { opacity:.35; transform:scale(.98); box-shadow:0 0 0 rgba(251,63,74,0); }
  50% { opacity:1; transform:scale(1.04); box-shadow:0 0 28px rgba(251,63,74,.8); }
}
.visual-has-underlay .visual-hotspot-object.timing-late i { border-color:#fb923c; box-shadow:0 0 18px rgba(251,146,60,.55); }
.visual-has-underlay .visual-hotspot-object.timing-critical i,
.visual-has-underlay .visual-hotspot-object.timing-toolate i { border-color:#fb3f4a; box-shadow:0 0 22px rgba(251,63,74,.7); }
@media (prefers-reduced-motion: reduce) {
  .visual-has-underlay .visual-hotspot-object.timing-critical::before,
  .visual-has-underlay .visual-hotspot-object.timing-toolate::before { animation:none; opacity:.85; }
}

/* 0.6.10-local visual band call split: name first, performance second */
.visual-band-box.visual-band-name-step {
  grid-template-columns: 1fr auto auto;
}
.visual-band-box.visual-band-performance {
  grid-template-columns: 1fr;
  border-color: rgba(250,204,21,.34);
  background: linear-gradient(180deg, rgba(120,75,12,.22), rgba(15,45,77,.68));
}
.visual-band-box small {
  display:block;
  margin-top:5px;
  color:#cfe7ff;
  font-size:.78rem;
  line-height:1.25;
}
.visual-band-box.visual-band-performance .secondary-button {
  grid-column:auto;
}
@media (max-width: 900px) {
  .visual-band-box.visual-band-name-step { grid-template-columns:1fr; }
}

/* 0.6.10-local: no selection frames, closeable fitted popovers, card rail visuals */
.visual-popover-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -6px -6px 4px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(7,11,18,.72);
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.visual-popover-close:hover,
.visual-popover-close:focus-visible {
  border-color: #2dd4bf;
  color: #2dd4bf;
}
.visual-decision-popover {
  max-width: min(430px, calc(100vw - 132px));
  max-height: calc(100svh - 96px);
  overflow: auto;
  overscroll-behavior: contain;
}
.visual-group-rail .visual-module {
  min-height: 126px;
  padding: 6px;
  gap: 5px;
}
.visual-module-card {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 46%, rgba(255,255,255,.18));
  box-shadow: 0 10px 20px rgba(0,0,0,.28);
}
.visual-group-rail .visual-module.is-active .visual-module-card {
  border-color: color-mix(in srgb, var(--trade-color) 76%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--trade-color) 22%, transparent), 0 14px 28px rgba(0,0,0,.34);
}
.visual-group-rail .visual-module .visual-module-icon,
.visual-group-rail .visual-module::after {
  display: none !important;
}
.visual-has-underlay .visual-hotspot-object,
.visual-has-underlay .visual-hotspot-object.is-active,
.visual-has-underlay .visual-hotspot-object.is-available,
.visual-has-underlay .visual-hotspot-object.timing-late,
.visual-has-underlay .visual-hotspot-object.timing-critical,
.visual-has-underlay .visual-hotspot-object.timing-toolate {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.visual-has-underlay .visual-hotspot-object::before,
.visual-has-underlay .visual-hotspot-object::after {
  display: none !important;
}
.visual-has-underlay .visual-hotspot-object i {
  opacity: .88;
  top: -22px;
  width: 34px;
  height: 34px;
  border-width: 2px;
  background: rgba(7,11,18,.62);
}
.visual-has-underlay .visual-hotspot-object span {
  opacity: 0;
  pointer-events: none;
}
.visual-has-underlay .visual-hotspot-object:hover i,
.visual-has-underlay .visual-hotspot-object:focus-visible i,
.visual-has-underlay .visual-hotspot-object.is-active i,
.visual-has-underlay .visual-hotspot-object.is-reopen i {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}
.visual-has-underlay .visual-hotspot-object.timing-critical i,
.visual-has-underlay .visual-hotspot-object.timing-toolate i {
  animation: visualIconCriticalPulse .9s ease-in-out infinite;
}
@keyframes visualIconCriticalPulse {
  0%,100% { box-shadow: 0 0 12px rgba(251,63,74,.45); }
  50% { box-shadow: 0 0 30px rgba(251,63,74,.95); }
}
@media (max-width: 900px) {
  .visual-decision-popover {
    width: calc(100vw - 112px);
    max-width: calc(100vw - 112px);
    max-height: calc(100svh - 138px);
  }
  .visual-module-card { width: 46px; height: 62px; }
  .visual-group-rail .visual-module { min-height: 96px; }
}
@media (max-width: 640px) {
  .visual-decision-popover {
    width: auto;
    max-width: none;
    max-height: none;
  }
}

/* 0.6.10-local draggable visual action popover */
.visual-decision-popover {
  cursor: grab;
  touch-action: none;
}
.visual-decision-popover.is-dragging {
  cursor: grabbing;
  opacity: .96;
  z-index: 60;
  user-select: none;
}
.visual-decision-popover button,
.visual-decision-popover a,
.visual-decision-popover input,
.visual-decision-popover select,
.visual-decision-popover textarea,
.visual-decision-popover .visual-option {
  cursor: pointer;
  touch-action: manipulation;
}
.visual-decision-popover.is-dragging::before {
  display: none;
}

/* 0.6.10-local: no phase intro popup, critical hints only */
.visual-phase-continue {
  position: absolute;
  z-index: 24;
  right: 24px;
  bottom: 24px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #06212b;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(45,212,191,.34);
  cursor: pointer;
}
.visual-phase-continue:hover,
.visual-phase-continue:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(45,212,191,.48);
}
.visual-critical-hint {
  border-left-color: #fb3f4a !important;
  animation: visualHintPulse 1.1s ease-in-out infinite;
}
@keyframes visualHintPulse {
  0%,100% { box-shadow: 0 0 0 rgba(251,63,74,0); }
  50% { box-shadow: 0 0 24px rgba(251,63,74,.34); }
}
@media (prefers-reduced-motion: reduce) {
  .visual-critical-hint { animation: none; }
}
@media (max-width:640px) {
  .visual-phase-continue { right: 14px; bottom: 14px; }
}

/* 0.6.10-local simplified hotspot states: grey / green / yellow / red */
.visual-has-underlay .visual-hotspot-object.is-theoretical i,
.visual-has-underlay .visual-hotspot-object.is-disabled i {
  border-color: rgba(148,163,184,.55) !important;
  color: #94a3b8 !important;
  opacity: .38;
  box-shadow: 0 0 8px rgba(15,23,42,.25) !important;
}
.visual-has-underlay .visual-hotspot-object.is-current-available i,
.visual-has-underlay .visual-hotspot-object.is-reopen i,
.visual-has-underlay .visual-hotspot-object.is-open i {
  border-color: #22c55e !important;
  color: color-mix(in srgb, var(--trade-color) 60%, #22c55e) !important;
  opacity: 1;
  box-shadow: 0 0 22px rgba(34,197,94,.65), 0 0 0 3px color-mix(in srgb, var(--trade-color) 18%, transparent) !important;
}
.visual-has-underlay .visual-hotspot-object.is-multi-available i {
  border-color: #facc15 !important;
  color: color-mix(in srgb, var(--trade-color) 56%, #facc15) !important;
  opacity: 1;
  box-shadow: 0 0 20px rgba(250,204,21,.58), 0 0 0 3px color-mix(in srgb, var(--trade-color) 16%, transparent) !important;
}
.visual-has-underlay .visual-hotspot-object.timing-late i {
  border-color: #fb923c !important;
  color: color-mix(in srgb, var(--trade-color) 50%, #fb923c) !important;
  box-shadow: 0 0 22px rgba(251,146,60,.7) !important;
}
.visual-has-underlay .visual-hotspot-object.timing-critical i,
.visual-has-underlay .visual-hotspot-object.timing-toolate i {
  border-color: #fb3f4a !important;
  color: color-mix(in srgb, var(--trade-color) 44%, #fb3f4a) !important;
  opacity: 1;
}
.visual-has-underlay .visual-hotspot-object.is-done { display: none !important; }

/* 0.6.12-dev-scale: fit the complete ISO renderer into the visible viewport */
html[data-ui-renderer="visual"],
html[data-ui-renderer="visual"] body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
html[data-ui-renderer="visual"] .easy-game-root:not([hidden]) {
  position: fixed;
  inset: 0;
  width: var(--app-vw, 100vw);
  height: var(--app-vh, 100svh);
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #06101d;
  touch-action: manipulation;
}
html[data-ui-renderer="visual"] .visual-game-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--iso-design-width, 1280px);
  height: var(--iso-design-height, 720px);
  min-width: var(--iso-design-width, 1280px);
  min-height: var(--iso-design-height, 720px);
  padding: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--iso-scale, 1));
  transform-origin: center center;
  border-radius: max(0px, calc(18px / max(var(--iso-scale, 1), .001)));
  box-shadow: 0 0 0 1px rgba(148,163,184,.18), 0 24px 80px rgba(0,0,0,.48);
}
html[data-ui-renderer="visual"] .visual-anchored-shell .visual-scene,
html[data-ui-renderer="visual"] .visual-mockup-shell .visual-scene,
html[data-ui-renderer="visual"] .visual-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
}
html[data-ui-renderer="visual"] .visual-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  min-height: 64px;
  grid-template-columns: auto minmax(320px, 1fr) auto;
}
html[data-ui-renderer="visual"] .visual-hud-metrics {
  grid-column: auto;
  justify-content: flex-end;
}
html[data-ui-renderer="visual"] .visual-module-rail,
html[data-ui-renderer="visual"] .visual-group-rail {
  position: absolute;
  left: 14px;
  top: 84px;
  width: 102px;
  display: grid;
  margin: 0;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module {
  min-width: 0;
  min-height: 126px;
}
html[data-ui-renderer="visual"] .visual-module-card {
  width: 58px;
  height: 78px;
}
html[data-ui-renderer="visual"] .visual-decision-popover {
  position: absolute;
  width: 390px;
  max-width: 430px;
  max-height: 610px;
  margin: 0;
}
html[data-ui-renderer="visual"] .visual-chart-card {
  width: 360px;
  display: block;
}
html[data-ui-renderer="visual"] .visual-phase-continue {
  right: 24px;
  bottom: 24px;
}
html[data-ui-renderer="visual"] .visual-band-box.visual-band-name-step {
  grid-template-columns: 1fr auto auto;
}
html[data-ui-renderer="visual"] .visual-confirm-actions {
  grid-template-columns: 1fr 1.25fr;
}
html[data-ui-renderer="visual"] .visual-brand span {
  display: inline;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i {
  width: 34px;
  height: 34px;
  top: -22px;
}
html[data-ui-renderer="visual"] .visual-hotspot-object {
  transform: none;
}

/* 0.6.13-dev-iso-content: fuller status window, clearer active trade, larger touch targets */
html[data-ui-renderer="visual"] .visual-hud-metrics {
  gap: 10px;
}
html[data-ui-renderer="visual"] .visual-hud-item {
  min-width: 108px;
  padding-left: 10px;
}
html[data-ui-renderer="visual"] .visual-stat-toggle {
  border-left-color: rgba(45,212,191,.65);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20,184,166,.20), rgba(15,45,77,.82));
}
html[data-ui-renderer="visual"] .visual-stat-toggle strong {
  color: #2dd4bf;
}
.visual-chart-stats {
  width: 390px;
  max-height: 610px;
  overflow: auto;
}
.visual-stat-list,
.visual-stat-bars,
.visual-budget-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.visual-stat-list p,
.visual-budget-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  color: #cfe7ff;
}
.visual-stat-list span,
.visual-budget-list p {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.visual-stat-list strong {
  color: #eef7ff;
  white-space: nowrap;
}
.visual-stat-bars span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  color: #cfe7ff;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.visual-stat-bars span::after {
  content: "";
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf var(--value), rgba(255,255,255,.11) 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.visual-stat-bars strong {
  color: #eef7ff;
  font-size: .82rem;
  text-transform: none;
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module.is-current-trade {
  box-shadow: inset 8px 0 0 var(--trade-color), 0 0 0 3px color-mix(in srgb, var(--trade-color) 28%, transparent), 0 16px 40px rgba(0,0,0,.34);
  background: linear-gradient(180deg, color-mix(in srgb, var(--trade-color) 36%, rgba(14,45,77,.96)), rgba(8,31,55,.94));
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module.is-current-trade b {
  display: block;
  max-width: 88px;
  color: #fff7ed;
  font-size: .56rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module.is-current-trade .visual-module-card {
  border-color: color-mix(in srgb, var(--trade-color) 82%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--trade-color) 28%, transparent), 0 16px 30px rgba(0,0,0,.38);
}
html[data-ui-renderer="visual"] .visual-hotspot-object {
  min-width: 160px;
  min-height: 130px;
  padding: 0;
  touch-action: manipulation;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i {
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  border-width: 5px;
  background: rgba(7,11,18,.72);
  transform: translate(-50%, -50%);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object:hover i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object:focus-visible i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-active i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen i {
  transform: translate(-50%, -50%) scale(1.08);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i::after {
  inset: 22px;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object span {
  opacity: 1;
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  max-width: 140px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7,11,18,.66);
  color: #e9f7ff;
  font-size: .62rem;
  line-height: 1.05;
  text-align: center;
}

/* 0.6.14-dev-iso-popup: mandatory choice windows open and centered */
html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered {
  left: 50% !important;
  top: 52% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: min(520px, calc(var(--iso-design-width, 1280px) - 220px));
  max-width: 520px;
  max-height: 560px;
}
html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered::before {
  display: none;
}

/* 0.6.15-dev-stat-bars: ISO statistic popup mirrors text status colors */
.visual-chart-bars-only .visual-stat-bars {
  margin-top: 14px;
}
.visual-stat-bars .metric-reputation { --bar-color: #fb923c; }
.visual-stat-bars .metric-mood { --bar-color: #f9a8d4; }
.visual-stat-bars .metric-warning { --bar-color: #facc15; }
.visual-stat-bars .metric-ready { --bar-color: #86efac; }
.visual-stat-bars .metric-people { --bar-color: #93c5fd; }
.visual-stat-bars .metric-reputation b,
.visual-stat-bars .metric-reputation strong { color: #fb923c; }
.visual-stat-bars .metric-mood b,
.visual-stat-bars .metric-mood strong { color: #f9a8d4; }
.visual-stat-bars .metric-warning b,
.visual-stat-bars .metric-warning strong { color: #facc15; }
.visual-stat-bars .metric-ready b,
.visual-stat-bars .metric-ready strong { color: #86efac; }
.visual-stat-bars .metric-people b,
.visual-stat-bars .metric-people strong { color: #93c5fd; }
.visual-stat-bars span::after {
  background: linear-gradient(90deg, var(--bar-color, #2dd4bf) var(--value), rgba(255,255,255,.11) 0);
}

/* 0.6.16-dev-choice-colors: trade-colored decision blocks, no touch-drag scaling */
.visual-decision-popover {
  cursor: default;
  touch-action: auto;
}
.visual-decision-popover .visual-alert-head > i {
  background: var(--trade-color);
}
.visual-decision-popover h1,
.visual-decision-popover .visual-alert-head span,
.visual-decision-popover .visual-helper,
.visual-decision-popover .visual-feedback span,
.visual-confirm-choice > span,
.visual-band-box span {
  color: color-mix(in srgb, var(--trade-color) 72%, #fff);
}
.visual-decision-popover .visual-option,
.visual-decision-popover .visual-task {
  border-color: color-mix(in srgb, var(--trade-color) 56%, rgba(255,255,255,.2));
  background: linear-gradient(180deg, color-mix(in srgb, var(--trade-color) 88%, #fff), color-mix(in srgb, var(--trade-color) 76%, #0f172a));
  color: #06121e;
}
.visual-decision-popover .visual-option:hover:not(:disabled) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--trade-color) 72%, #fff), color-mix(in srgb, var(--trade-color) 86%, #fff));
}
.visual-decision-popover .visual-option.selected {
  outline-color: color-mix(in srgb, var(--trade-color) 45%, #facc15);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--trade-color) 22%, transparent);
}
.visual-confirm-choice {
  border-color: color-mix(in srgb, var(--trade-color) 66%, rgba(255,255,255,.16));
  background: linear-gradient(180deg, color-mix(in srgb, var(--trade-color) 20%, rgba(15,45,77,.9)), rgba(7,31,55,.9));
}
.visual-confirm-choice > b {
  background: color-mix(in srgb, var(--trade-color) 20%, rgba(250,204,21,.12));
  color: color-mix(in srgb, var(--trade-color) 55%, #facc15);
}
.visual-decision-popover .primary-button {
  background: linear-gradient(135deg, color-mix(in srgb, var(--trade-color) 82%, #fff), var(--trade-color));
}
.visual-decision-popover .secondary-button {
  border-color: color-mix(in srgb, var(--trade-color) 46%, rgba(255,255,255,.22));
  color: color-mix(in srgb, var(--trade-color) 70%, #fff);
}

/* 0.6.17-dev-popover-handle: scroll content by default, drag only via handle, no close X */
html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered {
  left: 50% !important;
  top: 52% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: min(540px, calc(var(--iso-design-width, 1280px) - 220px));
  max-width: 540px;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  cursor: default;
}
.visual-popover-close {
  display: none !important;
}
.visual-popover-drag {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -6px -6px 6px 10px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 54%, rgba(255,255,255,.24));
  border-radius: 999px;
  background: color-mix(in srgb, var(--trade-color) 18%, rgba(7,11,18,.86));
  color: color-mix(in srgb, var(--trade-color) 72%, #fff);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.visual-popover-drag::before {
  content: "↔";
  position: absolute;
  transform: rotate(45deg);
}
.visual-popover-drag {
  color: transparent;
}
.visual-popover-drag:active,
.visual-decision-popover.is-dragging .visual-popover-drag {
  cursor: grabbing;
  background: color-mix(in srgb, var(--trade-color) 34%, rgba(7,11,18,.9));
}
.visual-decision-popover.is-dragging {
  cursor: default;
  opacity: .98;
  transform: none !important;
}
.visual-decision-popover.is-dragging::before {
  display: none;
}

/* 0.6.18-dev-iphone-popups: explicit trade colors, recap stats popup, touch drag handle */
.visual-chart-card.visual-chart-bars-only {
  z-index: 22;
}
.visual-game-shell.trade-werbeagentur .visual-decision-popover,
.visual-game-shell.trade-grafikdesign .visual-decision-popover,
.visual-game-shell.trade-verlag .visual-decision-popover,
.visual-game-shell.trade-radio-tv .visual-decision-popover { --trade-color:#7c3aed; }
.visual-game-shell.trade-pr-agentur .visual-decision-popover,
.visual-game-shell.trade-unternehmensberatung .visual-decision-popover,
.visual-game-shell.trade-immobilien .visual-decision-popover,
.visual-game-shell.trade-versicherung .visual-decision-popover { --trade-color:#ef4444; }
.visual-game-shell.trade-buchhaltung .visual-decision-popover,
.visual-game-shell.trade-druck .visual-decision-popover,
.visual-game-shell.trade-buchhandel .visual-decision-popover,
.visual-game-shell.trade-vermoegen .visual-decision-popover { --trade-color:#22c55e; }
.visual-game-shell.trade-bautraeger .visual-decision-popover,
.visual-game-shell.trade-entsorgung .visual-decision-popover,
.visual-game-shell.trade-it .visual-decision-popover,
.visual-game-shell.trade-ingenieurbuero .visual-decision-popover { --trade-color:#f59e0b; }
.visual-game-shell.trade-werbeagentur .visual-decision-popover .visual-option,
.visual-game-shell.trade-grafikdesign .visual-decision-popover .visual-option,
.visual-game-shell.trade-verlag .visual-decision-popover .visual-option,
.visual-game-shell.trade-radio-tv .visual-decision-popover .visual-option { background:linear-gradient(180deg,#a78bfa,#8b5cf6); color:#100720; }
.visual-game-shell.trade-pr-agentur .visual-decision-popover .visual-option,
.visual-game-shell.trade-unternehmensberatung .visual-decision-popover .visual-option,
.visual-game-shell.trade-immobilien .visual-decision-popover .visual-option,
.visual-game-shell.trade-versicherung .visual-decision-popover .visual-option { background:linear-gradient(180deg,#f87171,#ef4444); color:#260909; }
.visual-game-shell.trade-buchhaltung .visual-decision-popover .visual-option,
.visual-game-shell.trade-druck .visual-decision-popover .visual-option,
.visual-game-shell.trade-buchhandel .visual-decision-popover .visual-option,
.visual-game-shell.trade-vermoegen .visual-decision-popover .visual-option { background:linear-gradient(180deg,#86efac,#22c55e); color:#04140a; }
.visual-game-shell.trade-bautraeger .visual-decision-popover .visual-option,
.visual-game-shell.trade-entsorgung .visual-decision-popover .visual-option,
.visual-game-shell.trade-it .visual-decision-popover .visual-option,
.visual-game-shell.trade-ingenieurbuero .visual-decision-popover .visual-option { background:linear-gradient(180deg,#fbbf24,#f59e0b); color:#1f1300; }
.visual-decision-popover .visual-option small,
.visual-decision-popover .visual-option em i { color: inherit; }
.visual-popover-drag { -webkit-user-select:none; -webkit-touch-callout:none; }

/* 0.6.19-dev-scheduler-back: ISO can return to free Gewerke/slot selection */
.visual-schedule-back {
  width: 100%;
  margin-top: 12px !important;
}
.visual-confirm-choice .visual-schedule-back {
  margin-top: 2px !important;
}

/* 0.6.20-dev-iso-footer: text-mode context/progress mirrored in ISO footer */
.visual-info-footer {
  position: absolute;
  z-index: 21;
  left: 132px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 13px 18px;
  border: 1px solid color-mix(in srgb, var(--trade-color) 36%, rgba(255,255,255,.2));
  border-left: 7px solid var(--trade-color);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11,38,68,.92), rgba(7,31,55,.90));
  box-shadow: 0 18px 50px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  color: #eef7ff;
}
.visual-info-footer span {
  display: block;
  color: color-mix(in srgb, var(--trade-color) 68%, #fff);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-info-footer strong {
  display: block;
  margin-top: 3px;
  font-size: 1.32rem;
  line-height: 1.02;
  text-transform: uppercase;
}
.visual-info-footer p {
  margin: 5px 0 0;
  color: #cfe7ff;
  font-size: .9rem;
  line-height: 1.2;
}
.visual-info-footer > b {
  justify-self: end;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--trade-color) 18%, rgba(255,255,255,.08));
  color: color-mix(in srgb, var(--trade-color) 62%, #fff);
  font-size: .86rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
html[data-ui-renderer="visual"] .visual-chart-card {
  bottom: 108px;
}
html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered {
  top: 47% !important;
  max-height: 470px;
}

/* 0.6.22-dev-caption-info: ISO context lives in existing grey caption, no footer/drag */
.visual-info-footer,
.visual-popover-drag {
  display: none !important;
}
.visual-info-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: end;
}
.visual-info-caption span,
.visual-info-caption strong,
.visual-info-caption p {
  grid-column: 1 / 2;
}
.visual-info-caption b {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  align-self: center;
  min-width: 132px;
  padding: 9px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--trade-color) 18%, rgba(255,255,255,.08));
  color: color-mix(in srgb, var(--trade-color) 62%, #fff);
  font-size: .78rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
html[data-ui-renderer="visual"] .visual-chart-card {
  bottom: 18px;
}
html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered {
  top: 50% !important;
  max-height: 560px;
}

/* 0.6.24-dev-recap-popup: one band hotspot, full visual recap report */
.visual-recap-popup {
  position: absolute;
  z-index: 25;
  left: 50%;
  top: 50%;
  width: 620px;
  max-width: calc(var(--iso-design-width, 1280px) - 220px);
  max-height: 610px;
  overflow: auto;
  padding: 18px;
  border: 2px solid rgba(45,212,191,.30);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11,38,68,.97), rgba(7,31,55,.96));
  box-shadow: 0 24px 72px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translate(-50%, -50%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: #eef7ff;
}
.visual-recap-popup h2 {
  margin: 8px 0 12px;
  color: #cfe7ff;
  font-size: 1.05rem;
}
.visual-recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.visual-recap-grid p,
.visual-recap-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.visual-recap-grid span,
.visual-recap-note span {
  display: block;
  color: #2dd4bf;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.visual-recap-grid strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: .98rem;
}
.visual-recap-note {
  margin-top: 10px;
}
.visual-recap-note p {
  margin: 5px 0 0;
  color: #dbeafe;
  line-height: 1.25;
}
.visual-recap-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.visual-recap-actions .primary-button,
.visual-recap-actions .secondary-button {
  width: 100%;
}

/* 0.6.25-dev-second-night-fix: colored hotspot buttons and scheduler caption fix */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-werbeagentur i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-grafikdesign i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-verlag i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-radio-tv i {
  --spot-color: #7c3aed;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-pr-agentur i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-unternehmensberatung i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-immobilien i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-versicherung i {
  --spot-color: #ef4444;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-buchhaltung i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-druck i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-buchhandel i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-vermoegen i {
  --spot-color: #22c55e;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-bautraeger i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-entsorgung i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-it i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.trade-ingenieurbuero i {
  --spot-color: #f59e0b;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object[class*="trade-"] i {
  border-color: var(--spot-color, var(--trade-color)) !important;
  color: var(--spot-color, var(--trade-color)) !important;
  background: color-mix(in srgb, var(--spot-color, var(--trade-color)) 16%, rgba(7,11,18,.78)) !important;
  box-shadow: 0 0 26px color-mix(in srgb, var(--spot-color, var(--trade-color)) 62%, transparent), 0 0 0 4px rgba(7,11,18,.38) !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object[class*="trade-"] span {
  border: 1px solid color-mix(in srgb, var(--spot-color, var(--trade-color)) 52%, transparent);
  background: color-mix(in srgb, var(--spot-color, var(--trade-color)) 24%, rgba(7,11,18,.76));
}

/* 0.6.27-dev-visible-locked-tasks: show blocked-but-open scheduler Gewerk clearly */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] i {
  opacity: .82 !important;
  border-style: dashed;
  filter: grayscale(.25);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] span {
  opacity: 1 !important;
  filter: grayscale(.15);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] span::after {
  content: " · gesperrt";
  color: #cbd5e1;
}

/* 0.6.28-dev-group-careers: ISO Berufswelt groups show 4 careers and trust totals */
.visual-group-info {
  width: min(900px, 94vw);
  max-height: 88svh;
  overflow: auto;
  float: none;
}
.visual-group-info .overline {
  margin: 0 0 6px;
  color: #2dd4bf;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-group-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}
.visual-group-trust span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #cfe7ff;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.visual-group-careers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.visual-group-career {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 190px;
  padding: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--trade-color, #2dd4bf) 46%, rgba(255,255,255,.2));
  border-radius: 14px;
  background: color-mix(in srgb, var(--trade-color, #2dd4bf) 18%, rgba(15,45,77,.86));
  color: #eef7ff;
  text-align: center;
  cursor: pointer;
}
.visual-group-career img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--trade-color, #2dd4bf) 58%, rgba(255,255,255,.2));
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
}
.visual-group-career strong {
  font-size: .86rem;
  line-height: 1.05;
}
.visual-group-career small {
  color: color-mix(in srgb, var(--trade-color, #2dd4bf) 60%, #fff);
  font-weight: 950;
  text-transform: uppercase;
}
.visual-group-career.is-locked {
  filter: grayscale(1);
  opacity: .38;
  cursor: not-allowed;
}
.visual-group-career.is-active:hover,
.visual-group-career.is-active:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--trade-color, #2dd4bf) 28%, transparent), 0 18px 38px rgba(0,0,0,.34);
}
@media (max-width: 760px) {
  .visual-group-careers { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* 0.6.29-dev-lock-icons: locked ISO items stay colorful with a lock instead of grey/gesperrt text */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-theoretical[class*="trade-"] i {
  opacity: .96 !important;
  filter: none !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] span,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-theoretical[class*="trade-"] span {
  opacity: .92 !important;
  filter: none !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] span::after {
  content: "" !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-theoretical[class*="trade-"] i::before {
  content: "🔒";
  position: absolute;
  right: -10px;
  top: -12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(7,11,18,.84);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.38);
  z-index: 3;
}
.visual-group-career {
  position: relative;
}
.visual-group-career.is-locked {
  filter: none !important;
  opacity: .88 !important;
  cursor: not-allowed;
}
.visual-group-career.is-locked::after {
  content: "🔒";
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(7,11,18,.84);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.38);
}
.visual-group-career.is-locked img {
  filter: none !important;
  opacity: 1 !important;
}

/* 0.6.30-dev-upgrade-active: proper active badge for selected ISO upgrades */
.visual-upgrade-option {
  position: relative;
}
.visual-upgrade-guidance {
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(250,204,21,.45);
  border-radius: 12px;
  background: rgba(15,23,42,.88);
  color: #fff;
  font-size: .9rem;
  line-height: 1.45;
}
.visual-upgrade-guidance strong { color: #fde68a; }
.visual-upgrade-total {
  display: block;
  margin-top: 3px;
  color: #d1fae5;
  font-weight: 850;
}
.visual-upgrade-unlock {
  display: inline-block;
  margin: 5px 0 6px;
  padding: 4px 8px;
  border: 1px solid rgba(6,78,59,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #064e3b;
  font-size: .8rem;
  font-style: normal;
  font-weight: 900;
}
.visual-upgrade-options .visual-option:not(.selected):not(.locked) { opacity: 1; filter: none; }
.visual-upgrade-option em { display: block; margin-top: 6px; font-style: normal; }
.visual-upgrade-option.is-active-upgrade small::after { content: none; }
.visual-upgrade-option.is-active-upgrade {
  outline: 0 !important;
  border-width: 2px;
  border-color: #22c55e !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,.22), 0 14px 34px rgba(0,0,0,.28);
}
.visual-upgrade-badge {
  display: inline-flex;
  max-width: 100%;
  margin: 5px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #22c55e;
  color: #04140a;
  font-size: .68rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.visual-upgrade-option.is-active-upgrade > span {
  padding-right: 0;
}
.visual-upgrade-option.is-active-upgrade small::after { content: none; }

/* 0.6.32-dev-mara-white: Mara hints readable on dark/colored UI */
.mara-card,
.mara-card p,
.mara-card li,
.visual-decision-popover .visual-helper,
.visual-helper {
  color: #ffffff !important;
}
.mara-card span,
.visual-decision-popover .visual-helper::first-line {
  color: #ffffff !important;
}

/* 0.6.35-local-eye-candy: ISO-only hotspot beacons and ambient scene life */
html[data-ui-renderer="visual"] .visual-scene-fx {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
html[data-ui-renderer="visual"] .visual-scene-fx > span {
  position: absolute;
  display: block;
  pointer-events: none;
}
html[data-ui-renderer="visual"] .visual-fx-ambient {
  inset: 0;
  background: linear-gradient(112deg, transparent 20%, rgba(189,242,255,.11) 44%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .42;
  transform: translateX(-54%);
  animation: visualAmbientSweep 9s linear infinite;
}
html[data-ui-renderer="visual"] .visual-fx-particles {
  left: 13%;
  top: 16%;
  width: 76%;
  height: 70%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.82) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(45,212,191,.72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(250,204,21,.68) 0 1px, transparent 2px);
  background-size: 68px 74px, 97px 88px, 121px 106px;
  background-position: 0 0, 19px 32px, 47px 14px;
  opacity: .34;
  animation: visualParticleDrift 8s linear infinite;
}
html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-particles {
  opacity: .18;
  filter: blur(.2px);
}
html[data-ui-renderer="visual"] .visual-fx-desk-glow {
  left: 8%;
  bottom: 11%;
  width: 28%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(250,204,21,.17), transparent 68%);
  opacity: .72;
  animation: visualDeskGlow 3.2s steps(6, end) infinite;
}
html[data-ui-renderer="visual"] .visual-scene-fx-event .visual-fx-desk-glow,
html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-stage-beam,
html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-crowd,
html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-gate-flow,
html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-tech-flow {
  display: none;
}
html[data-ui-renderer="visual"] .visual-fx-stage-beam {
  top: 9%;
  width: 19%;
  height: 56%;
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(250,204,21,.20), rgba(45,212,191,.07) 54%, transparent 100%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: .58;
}
html[data-ui-renderer="visual"] .visual-fx-stage-beam-a {
  left: 52%;
  transform: rotate(13deg);
  animation: visualStageSweepA 4.8s linear infinite;
}
html[data-ui-renderer="visual"] .visual-fx-stage-beam-b {
  left: 62%;
  transform: rotate(-14deg);
  animation: visualStageSweepB 5.6s linear infinite;
}
html[data-ui-renderer="visual"] .visual-fx-crowd {
  left: 31%;
  top: 43%;
  width: 31%;
  height: 23%;
  opacity: .42;
  background:
    radial-gradient(ellipse at 8% 72%, rgba(5,16,31,.8) 0 7px, transparent 8px),
    radial-gradient(ellipse at 23% 42%, rgba(5,16,31,.8) 0 9px, transparent 10px),
    radial-gradient(ellipse at 40% 67%, rgba(5,16,31,.82) 0 8px, transparent 9px),
    radial-gradient(ellipse at 58% 31%, rgba(5,16,31,.86) 0 10px, transparent 11px),
    radial-gradient(ellipse at 76% 64%, rgba(5,16,31,.8) 0 8px, transparent 9px),
    radial-gradient(ellipse at 92% 38%, rgba(5,16,31,.84) 0 9px, transparent 10px);
  filter: drop-shadow(0 -5px 6px rgba(45,212,191,.16));
  animation: visualCrowdLoop 1.9s steps(6, end) infinite;
}
html[data-ui-renderer="visual"] .visual-fx-gate-flow {
  left: 8%;
  top: 48%;
  width: 17%;
  height: 20%;
  border-top: 3px dotted rgba(45,212,191,.72);
  border-bottom: 3px dotted rgba(45,212,191,.34);
  border-radius: 50%;
  opacity: .52;
  transform: rotate(-9deg);
  animation: visualGateFlow 2.7s steps(6, end) infinite;
}
html[data-ui-renderer="visual"] .visual-fx-tech-flow {
  right: 11%;
  bottom: 20%;
  width: 17%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,.95), transparent);
  box-shadow: 0 0 14px rgba(45,212,191,.68);
  opacity: .45;
  animation: visualTechFlow 2.4s steps(6, end) infinite;
}
html[data-ui-renderer="visual"] .visual-phase-briefing .visual-fx-stage-beam,
html[data-ui-renderer="visual"] .visual-phase-planning .visual-fx-stage-beam,
html[data-ui-renderer="visual"] .visual-phase-upgrade .visual-fx-stage-beam,
html[data-ui-renderer="visual"] .visual-phase-recap .visual-fx-stage-beam,
html[data-ui-renderer="visual"] .visual-phase-cleanup .visual-fx-stage-beam {
  opacity: .22;
}
html[data-ui-renderer="visual"] .visual-phase-cleanup .visual-fx-crowd,
html[data-ui-renderer="visual"] .visual-phase-cleanup .visual-fx-gate-flow {
  opacity: .12;
}
html[data-ui-renderer="visual"] .visual-phase-incident .visual-fx-particles {
  opacity: .52;
  filter: hue-rotate(320deg);
}

/* Current actions stay easy to find; green = one action, yellow = several choices. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-multi-available::after {
  content: "";
  position: absolute;
  inset: -10px;
  display: block !important;
  border: 2px solid currentColor;
  border-radius: 14px;
  pointer-events: none;
  opacity: .75;
  animation: visualHotspotBeacon 1.55s steps(8, end) infinite;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-multi-available::after {
  animation-duration: 2.05s;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available.desk-phone i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open.desk-phone i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen.desk-phone i {
  animation: visualPhoneRing 2.8s steps(6, end) infinite;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available.desk-laptop i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open.desk-laptop i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen.desk-laptop i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #dffcff;
  box-shadow: 0 0 8px #2dd4bf;
  transform: translateX(-50%);
  animation: visualLaptopCursor .9s steps(2, end) infinite;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available.event-tech i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open.event-tech i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen.event-tech i::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #2dd4bf;
  border-radius: 50%;
  opacity: .8;
  animation: visualTechPing 1.7s steps(6, end) infinite;
}

@keyframes visualAmbientSweep {
  0% { transform: translateX(-54%); }
  100% { transform: translateX(96%); }
}
@keyframes visualParticleDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(28px, -20px); }
}
@keyframes visualDeskGlow {
  0%,100% { opacity: .38; transform: scale(.92); }
  50% { opacity: .8; transform: scale(1.08); }
}
@keyframes visualStageSweepA {
  0%,100% { transform: rotate(13deg) translateX(-10px); opacity: .28; }
  50% { transform: rotate(-5deg) translateX(12px); opacity: .72; }
}
@keyframes visualStageSweepB {
  0%,100% { transform: rotate(-14deg) translateX(8px); opacity: .25; }
  50% { transform: rotate(4deg) translateX(-10px); opacity: .68; }
}
@keyframes visualCrowdLoop {
  0%,100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-4px) scaleY(1.05); }
}
@keyframes visualGateFlow {
  0% { transform: rotate(-9deg) translateX(-10px); opacity: .2; }
  100% { transform: rotate(-9deg) translateX(24px); opacity: .72; }
}
@keyframes visualTechFlow {
  0% { transform: translateX(-22px) scaleX(.4); opacity: .15; }
  100% { transform: translateX(24px) scaleX(1); opacity: .76; }
}
@keyframes visualHotspotBeacon {
  0%,100% { transform: scale(.88); opacity: .12; }
  50% { transform: scale(1.09); opacity: .9; }
}
@keyframes visualPhoneRing {
  0%,72%,100% { transform: translateX(-50%) rotate(0); }
  78% { transform: translateX(-50%) rotate(-10deg); }
  86% { transform: translateX(-50%) rotate(10deg); }
  94% { transform: translateX(-50%) rotate(-6deg); }
}
@keyframes visualLaptopCursor {
  0%,48% { opacity: 0; }
  49%,100% { opacity: 1; }
}
@keyframes visualTechPing {
  0% { transform: scale(.35); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-renderer="visual"] .visual-scene-fx *,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object::after,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i::before {
    animation: none !important;
  }
}

/* A lock means only: this known task is still blocked by timing or a dependency. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-disabled[class*="trade-"] i::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-theoretical[class*="trade-"] i::before {
  content: none !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-locked-task[class*="trade-"] i::before {
  content: "🔒" !important;
  position: absolute;
  right: -10px;
  top: -12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(7,11,18,.84);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.38);
  z-index: 3;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-unavailable {
  opacity: .36;
  filter: grayscale(.72);
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-locked-task i::before {
    animation: none !important;
  }
}

/* 0.6.40-local-hotspot-fit: the visual marker and pulse always stay inside its real click area. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object i {
  top: 50%;
  left: 50%;
  width: min(72px, calc(100% - 34px));
  height: min(72px, calc(100% - 34px));
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  transform: translate(-50%, -50%);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object:hover i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object:focus-visible i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-active i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen i {
  transform: translate(-50%, -50%) scale(1.06);
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object span {
  box-sizing: border-box;
  bottom: 5px;
  width: calc(100% - 12px);
  max-width: none;
  padding: 3px 5px;
  white-space: normal;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen::after,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-multi-available::after {
  inset: 4px;
  box-sizing: border-box;
  border-radius: 10px;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-locked-task[class*="trade-"] i::before {
  right: -2px;
  top: -2px;
  width: 28px;
  height: 28px;
  font-size: 15px;
}

/* 0.6.44 · ISO presentation continuity: after ISO selection, welcome + scenario selection already live on the production desk. */
html[data-ui-preference="visual"] .slide.iso-presentation-bg { position:relative; isolation:isolate; overflow:hidden; }
html[data-ui-preference="visual"] .slide.iso-presentation-bg::before { content:""; position:absolute; inset:0; z-index:-2; background-image:url("../gfx_FestivalManager_World01_Images/event01_phaseA_briefing_desk.webp?v=0.6.89-webp-scenes"); background-size:cover; background-position:center; filter:brightness(.32) saturate(.82); transform:scale(1.015); }
html[data-ui-preference="visual"] .slide.iso-presentation-bg::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(4,8,15,.88) 0%,rgba(4,8,15,.72) 52%,rgba(4,8,15,.58) 100%); }
html[data-ui-preference="visual"] .slide.iso-presentation-bg .slide-content { position:relative; z-index:1; }
html[data-ui-preference="text"] .slide.iso-presentation-bg::before, html[data-ui-preference="text"] .slide.iso-presentation-bg::after { content:none; }
.visual-briefing-title { margin:0 0 8px; font-size:clamp(1.45rem,2.8vw,2.4rem); line-height:1.05; }


/* 0.6.46 · Keep native hotspot geometry; improve reroll affordance without changing layout. */
html[data-ui-renderer="visual"] .visual-band-box.visual-band-name-step .secondary-button[data-game-action="reroll-bands"] {
  border-color:color-mix(in srgb,var(--trade-color) 72%,#fff);
  background:color-mix(in srgb,var(--trade-color) 20%,rgba(7,31,55,.9));
  color:#fff; font-weight:900;
}

/* 0.6.47 · ISO progressive disclosure: play first, background on demand. */
.visual-alert-head { position:relative; }
.visual-context-help {
  align-self:start; justify-self:end; width:34px; height:34px; padding:0; border:2px solid color-mix(in srgb,var(--trade-color) 70%,#fff);
  border-radius:50%; background:rgba(7,31,55,.86); color:#fff; font-size:1rem; font-weight:950; cursor:pointer;
}
.visual-context-help:hover,.visual-context-help:focus-visible { background:var(--trade-color); color:var(--trade-ink); }
.visual-context-overlay { z-index:96; }
.visual-context-card { width:min(92vw,500px); }
.visual-context-symbol { float:right; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--trade-color); color:var(--trade-ink); font-weight:950; font-size:1.15rem; }
.visual-context-card h2 { margin-top:14px; font-size:clamp(1.45rem,3vw,2.25rem); }
.visual-context-card p { margin:10px 0 18px; font-size:1rem; line-height:1.4; }
/* Main ISO choice cards show decision data, not background prose. */
html[data-ui-renderer="visual"] .visual-decision-popover .visual-option > small:empty { display:none; }

/* 0.6.48 · compact tycoon-demo signals: success burst, growth moment, roadmap. */
.visual-success-burst { position:absolute; inset:0; z-index:24; overflow:hidden; pointer-events:none; }
.visual-success-burst i { position:absolute; left:calc(8% + (var(--n) * 5%)); top:-5%; width:7px; height:14px; border-radius:2px; background:hsl(calc(var(--n) * 37deg) 82% 62%); animation:fmConfetti 1.8s cubic-bezier(.2,.7,.3,1) calc(var(--n) * 28ms) both; }
@keyframes fmConfetti { 0%{transform:translateY(-20px) rotate(0);opacity:0} 12%{opacity:1} 100%{transform:translate(calc((var(--n) - 9) * 5px),105vh) rotate(540deg);opacity:0} }
.visual-growth-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:8px 0 10px; }
.visual-growth-strip span { display:grid; gap:2px; padding:10px; border-radius:12px; background:rgba(255,255,255,.07); text-align:center; }
.visual-growth-strip b { font-size:1.12rem; color:#fff; } .visual-growth-strip em { font-size:.6rem; font-style:normal; font-weight:950; letter-spacing:.1em; color:#9fb8cf; }
.visual-growth-strip .is-up b { color:#86efac; } .visual-growth-strip .is-down b { color:#fca5a5; }
.visual-tycoon-roadmap { display:flex; align-items:center; justify-content:center; gap:5px; margin:4px 0 12px; padding:9px; border-radius:12px; background:rgba(3,10,20,.35); }
.visual-tycoon-roadmap > span { display:grid; justify-items:center; gap:3px; min-width:68px; }
.visual-tycoon-roadmap span b { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#334155; color:#fff; font-size:.72rem; }
.visual-tycoon-roadmap span em { font-size:.52rem; font-style:normal; font-weight:900; color:#9fb8cf; white-space:nowrap; }
.visual-tycoon-roadmap span.is-done b { background:#22c55e; } .visual-tycoon-roadmap span.is-current b { background:#facc15; color:#271300; } .visual-tycoon-roadmap span.is-future { opacity:.5; }
.visual-tycoon-roadmap > i { color:#64748b; font-style:normal; font-weight:900; }
@media (prefers-reduced-motion:reduce){.visual-success-burst{display:none}}

/* 0.6.49 · ISO recap keeps failure causality visible despite progressive disclosure. */
.visual-recap-advice { margin:0 0 10px; padding:10px 12px; border-radius:12px; border-left:4px solid #facc15; background:rgba(250,204,21,.09); }
.visual-recap-advice > span { display:block; margin-bottom:5px; color:#fde68a; font-size:.62rem; font-weight:950; letter-spacing:.1em; }
.visual-recap-advice p { display:grid; grid-template-columns:20px 1fr; gap:6px; margin:4px 0; color:#f8fafc; font-size:.8rem; line-height:1.25; }
.visual-recap-advice p b { color:#facc15; }

/* 0.6.55 · ISO parity with cleaned text information hierarchy. */
.visual-growth-strip { grid-template-columns:repeat(4,1fr); }
.visual-recap-learning-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:8px 0 12px; }
.visual-recap-learning { padding:10px 11px; border-radius:12px; background:rgba(255,255,255,.065); border-top:3px solid rgba(255,255,255,.25); }
.visual-recap-learning > span { display:block; margin-bottom:6px; font-size:.62rem; font-weight:950; letter-spacing:.08em; }
.visual-recap-learning p { margin:4px 0; font-size:.75rem; line-height:1.25; color:#e5edf6; }
.visual-recap-learning.is-good { border-color:#22c55e; } .visual-recap-learning.is-good > span { color:#86efac; }
.visual-recap-learning.is-bad { border-color:#f59e0b; } .visual-recap-learning.is-bad > span { color:#fde68a; }
.visual-recap-learning.is-next { border-color:#60a5fa; } .visual-recap-learning.is-next > span { color:#bfdbfe; }
.visual-recap-finance-detail { opacity:.9; }
.metric-risk-direct .visual-stat-bars, .metric-risk-direct { --risk-direction:1; }
@media(max-width:760px){.visual-recap-learning-grid{grid-template-columns:1fr}.visual-growth-strip{grid-template-columns:repeat(2,1fr)}}


/* 0.6.60 · TEXT money bar represents remaining money, not accumulated spending. */
.budget-stack.budget-remaining { display:block; position:relative; background:var(--line); }
.budget-stack.budget-remaining .budget-available { display:block; height:100%; background:var(--accent); transition:width 180ms ease; }
.budget-stack.budget-remaining.status-warn .budget-available { background:var(--warm); }
.budget-stack.budget-remaining.status-bad .budget-available { background:#ff8585; }

/* 0.6.61 · ISO hotspot geometry/priority pass. */
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-1{z-index:11}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-2{z-index:12}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-4{z-index:14}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-5{z-index:15}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-6{z-index:16}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-7{z-index:17}
html[data-ui-renderer="visual"] .visual-hotspot-object.hotspot-priority-8{z-index:18}
/* Phone marker needs extra inner breathing room; never let its pulse touch the hit-box edge. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone i{width:min(64px,calc(100% - 44px));height:min(64px,calc(100% - 44px));max-width:calc(100% - 24px);max-height:calc(100% - 24px)}

/* 0.6.62 · Demo finale / World 02 outlook. */
.world-outlook-lead,.world-outlook-future{display:block;line-height:1.5}
.world-outlook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.world-outlook-grid b{padding:9px 10px;border-radius:10px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));font-size:.9rem}
.demo-unlock-note{border-left:5px solid var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
.demo-unlock-note h3{margin:6px 0}.demo-unlock-note>strong{display:block;margin-top:8px;color:var(--accent)}
.visual-world-unlock{border-color:color-mix(in srgb,var(--trade-color) 65%,#fff)!important;background:color-mix(in srgb,var(--trade-color) 14%,rgba(7,31,55,.92))!important}
@media(max-width:620px){.world-outlook-grid{grid-template-columns:1fr}}

/* 0.6.63-dev-iso-type-scale: compact ISO typography and overlap guards */
html[data-ui-renderer="visual"] .visual-topbar {
  grid-template-columns: auto minmax(210px, 1fr) auto;
  gap: 10px;
  height: 56px;
  min-height: 56px;
  padding: 6px 12px;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-menu,
html[data-ui-renderer="visual"] .visual-settings {
  width: 38px;
  height: 38px;
}
html[data-ui-renderer="visual"] .visual-menu span {
  width: 20px;
  height: 2px;
}
html[data-ui-renderer="visual"] .visual-brand {
  min-width: 0;
  gap: 8px;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-brand strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(.92rem, 1.28vw, 1.14rem);
  line-height: 1.05;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ui-renderer="visual"] .visual-brand span {
  display: none;
}
html[data-ui-renderer="visual"] .visual-hud-metrics {
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-hud-item {
  grid-template-columns: 24px minmax(0, auto);
  column-gap: 6px;
  min-width: 76px;
  max-width: 106px;
  padding-left: 6px;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-hud-icon {
  width: 24px;
  height: 24px;
}
html[data-ui-renderer="visual"] .visual-hud-time::before { border-width: 3px; }
html[data-ui-renderer="visual"] .visual-hud-time::after { left: 11px; top: 5px; width: 3px; height: 10px; }
html[data-ui-renderer="visual"] .visual-hud-mood::after { left: 7px; top: 9px; width: 10px; height: 5px; border-bottom-width: 2px; }
html[data-ui-renderer="visual"] .visual-hud-item span {
  overflow: hidden;
  font-size: .56rem;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ui-renderer="visual"] .visual-hud-item strong {
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ui-renderer="visual"] .visual-stat-toggle strong {
  font-size: .78rem;
  letter-spacing: .02em;
}
html[data-ui-renderer="visual"] .visual-scene-caption {
  padding: 10px 12px;
  border-radius: 14px;
}
html[data-ui-renderer="visual"] .visual-info-caption {
  gap: 3px 10px;
}
html[data-ui-renderer="visual"] .visual-scene-caption span {
  font-size: .52rem;
  letter-spacing: .09em;
}
html[data-ui-renderer="visual"] .visual-scene-caption strong {
  max-width: 760px;
  overflow-wrap: anywhere;
  font-size: clamp(.9rem, 1.35vw, 1.18rem);
  line-height: 1.08;
}
html[data-ui-renderer="visual"] .visual-scene-caption p {
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.2;
}
html[data-ui-renderer="visual"] .visual-info-caption b {
  min-width: 104px;
  max-width: 168px;
  padding: 7px 9px;
  font-size: .62rem;
  line-height: 1.08;
}
html[data-ui-renderer="visual"] .visual-chart-card.visual-chart-stats {
  top: 70px;
  right: 14px;
  bottom: auto;
  width: 320px;
  max-height: 360px;
  padding: 12px;
}
html[data-ui-renderer="visual"] .visual-chart-title {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
}
html[data-ui-renderer="visual"] .visual-chart-title strong {
  font-size: .72rem;
  letter-spacing: .05em;
}
html[data-ui-renderer="visual"] .visual-chart-title b {
  grid-column: 2;
  overflow: hidden;
  color: #9fb4cc;
  font-size: .72rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ui-renderer="visual"] .visual-stat-bars {
  gap: 7px;
  margin-top: 10px;
}
html[data-ui-renderer="visual"] .visual-stat-bars span {
  font-size: .64rem;
  letter-spacing: .035em;
}
html[data-ui-renderer="visual"] .visual-stat-bars strong {
  font-size: .72rem;
}
html[data-ui-renderer="visual"] .visual-decision-popover .visual-alert-head span,
html[data-ui-renderer="visual"] .visual-alert-head span {
  font-size: .62rem;
  letter-spacing: .075em;
}
html[data-ui-renderer="visual"] .visual-decision-popover h1,
html[data-ui-renderer="visual"] .visual-alert-head h1,
html[data-ui-renderer="visual"] .visual-decision-card h1 {
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  line-height: 1.12;
}
html[data-ui-renderer="visual"] .visual-recap-popup {
  max-height: 590px;
}
html[data-ui-renderer="visual"] .visual-recap-popup .visual-alert-head h1 {
  font-size: clamp(1rem, 1.35vw, 1.28rem);
}
html[data-ui-renderer="visual"] .visual-growth-strip b {
  font-size: .9rem;
}
html[data-ui-renderer="visual"] .visual-growth-strip em,
html[data-ui-renderer="visual"] .visual-tycoon-roadmap span em {
  font-size: .5rem;
  letter-spacing: .06em;
}
@media (max-width: 1100px) {
  html[data-ui-renderer="visual"] .visual-topbar { grid-template-columns: auto minmax(170px, 1fr) auto; gap: 8px; }
  html[data-ui-renderer="visual"] .visual-brand strong { font-size: .9rem; }
  html[data-ui-renderer="visual"] .visual-hud-item { min-width: 66px; max-width: 92px; }
  html[data-ui-renderer="visual"] .visual-hud-item strong { font-size: .78rem; }
  html[data-ui-renderer="visual"] .visual-hud-item span { font-size: .5rem; }
}

/* 0.6.64-dev-iso-rail-labels: cards already contain Berufswelt names; hide duplicate text to keep the rail aligned */
html[data-ui-renderer="visual"] .visual-group-rail .visual-module {
  justify-items: center;
  min-height: 104px;
  gap: 3px;
  padding: 7px 5px;
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module span {
  display: none !important;
}
html[data-ui-renderer="visual"] .visual-group-rail .visual-module small {
  position: static;
  min-width: 18px;
  height: 18px;
  margin-top: -2px;
  font-size: .58rem;
}
html[data-ui-renderer="visual"] .visual-module-card {
  width: 62px;
  height: 82px;
}

/* 0.6.65-dev-career-headings: clarify job task vs. training in ISO career cards */
.visual-info-card h3 {
  margin: 16px 0 5px;
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.visual-info-card h2 + h3 {
  margin-top: 10px;
}

/* 0.6.66-dev-phone-hotspot-icon: keep phone symbol centered inside the existing pulse frame */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone i {
  top: 42% !important;
  transform: translate(-50%, -50%) !important;
}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone:hover i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone:focus-visible i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone.is-active i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone.is-reopen i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone.is-open i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone.is-current-available i,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.desk-phone.is-multi-available i {
  transform: translate(-50%, -50%) scale(1.08) !important;
}

/* 0.6.67-dev-band-reroll-button: make cosmetic band-name reroll visually distinct */
.band-reroll-button,
.visual-band-box .band-reroll-button {
  border-color: rgba(250,204,21,.86) !important;
  background: linear-gradient(135deg, #fde68a, #facc15) !important;
  color: #2b1700 !important;
  box-shadow: 0 8px 22px rgba(250,204,21,.24) !important;
}
.band-reroll-button:hover,
.band-reroll-button:focus-visible {
  background: linear-gradient(135deg, #fff3b0, #fbbf24) !important;
  color: #1f1300 !important;
}

/* 0.6.73-dev-mara-projectassistenz: use cropped Mara portrait in coaching hints */
.mara-card,
.visual-mara-card {
  grid-template-columns: 58px 1fr;
  align-items: start;
}
.mara-avatar,
.mara-card .mara-avatar,
.visual-mara-card .mara-avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(250,204,21,.9);
  border-radius: 50%;
  background: #101827;
  object-fit: cover;
  object-position: center 42%;
  box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 0 0 3px rgba(250,204,21,.14);
}
.visual-mara-card {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border-left: 4px solid #facc15;
  border-radius: 14px;
  background: rgba(15,45,77,.72);
}
.visual-mara-card span,
.mara-card span {
  color: #facc15 !important;
}
.mara-intro {
  margin: 3px 0 6px !important;
  color: #fde68a !important;
  font-weight: 700;
}

/* 0.6.74-dev-status-target-markers: live status bars with Ruf/Break-even targets */
.visual-stat-bars span {
  position: relative;
}
.visual-stat-bars .stat-target {
  position: absolute;
  left: var(--target, 50%);
  bottom: 0;
  z-index: 2;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15,23,42,.75), 0 0 8px rgba(255,255,255,.38);
  transform: translateX(-50%);
  pointer-events: auto;
}
.visual-stat-bars .metric-reputation .stat-target {
  background: #facc15;
}
.visual-stat-bars .metric-people .stat-target {
  background: #ffffff;
}
.visual-stat-bars .has-target strong {
  font-size: .68rem;
}

/* 0.6.75-dev-mara-dark-iso: refined Mara crop and ISO-only dark mode */
.mara-avatar,
.mara-card .mara-avatar,
.visual-mara-card .mara-avatar {
  object-position: center 36%;
}
.toggle-button:disabled,
.toggle-button[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
}

/* 0.6.76-dev-text-readability: text-mode wrapping + Mara contrast in light mode */
html[data-ui-renderer="text"] .demo-unlock-note,
html[data-ui-renderer="text"] .recap-note,
html[data-ui-renderer="text"] .game-main,
html[data-ui-renderer="text"] .game-feedback,
html[data-ui-renderer="text"] .band-box {
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-ui-renderer="text"] .demo-unlock-note > span {
  display: block;
  max-width: 100%;
  font-size: clamp(.58rem, 1.7vw, .72rem);
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-ui-renderer="text"] .demo-unlock-note h3 {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  line-height: 1.18;
}
html[data-ui-renderer="text"] .demo-unlock-note strong {
  overflow-wrap: anywhere;
}
html[data-ui-renderer="text"][data-theme="light"] .mara-card,
html[data-ui-renderer="text"][data-theme="light"] .mara-card p,
html[data-ui-renderer="text"][data-theme="light"] .mara-card li {
  color: #172033 !important;
}
html[data-ui-renderer="text"][data-theme="light"] .mara-card span {
  color: #7c2d12 !important;
}
html[data-ui-renderer="text"][data-theme="light"] .mara-intro {
  color: #92400e !important;
}
html[data-ui-renderer="text"] .band-box small {
  display: none !important;
}

/* 0.6.77-dev-iso-world-unlock-wrap: prevent World-02 unlock text from breaking recap popup */
html[data-ui-renderer="visual"] .visual-recap-popup {
  box-sizing: border-box;
  width: min(620px, calc(var(--iso-design-width, 1280px) - 260px));
  max-height: 590px;
}
html[data-ui-renderer="visual"] .visual-recap-note,
html[data-ui-renderer="visual"] .visual-recap-note * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
html[data-ui-renderer="visual"] .visual-world-unlock span {
  display: block;
  font-size: .56rem;
  line-height: 1.22;
  letter-spacing: .055em;
  white-space: normal;
}
html[data-ui-renderer="visual"] .visual-world-unlock p {
  font-size: .78rem;
  line-height: 1.24;
}
html[data-ui-renderer="visual"] .visual-world-unlock p strong {
  display: block;
  margin-bottom: 2px;
  font-size: .82rem;
  line-height: 1.18;
}
html[data-ui-renderer="visual"] .visual-tycoon-roadmap {
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-tycoon-roadmap > span {
  min-width: 54px;
  max-width: 82px;
}
html[data-ui-renderer="visual"] .visual-tycoon-roadmap span em {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 0.6.79 · Messe Berufsorientierung: lightweight challenge framing + causal locks. */
.career-challenge-head,.career-challenge-progress,.visual-career-challenge-head,.visual-challenge-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--accent) 38%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));}
.career-challenge-head span,.career-challenge-progress span,.visual-career-challenge-head span,.visual-challenge-progress span{font-size:.68rem;font-weight:950;letter-spacing:.1em;color:var(--accent)}
.career-challenge-head b,.career-challenge-progress strong,.visual-career-challenge-head b,.visual-challenge-progress strong{font-size:.78rem;white-space:nowrap}
.career-challenge-learned,.visual-career-challenge-learned{margin:12px 0;padding:12px 14px;border-left:5px solid #22c55e;border-radius:12px;background:rgba(34,197,94,.10)}
.career-challenge-learned>span,.visual-career-challenge-learned>span{display:block;color:#22c55e;font-size:.68rem;font-weight:950;letter-spacing:.1em}.career-challenge-learned p,.visual-career-challenge-learned p{margin:6px 0 8px;line-height:1.35}
.visual-career-challenge-head{display:grid;grid-template-columns:auto 1fr auto;background:rgba(255,255,255,.06)}.visual-career-challenge-head strong{font-size:.95rem}.visual-career-challenge-learned .secondary-button{width:100%;margin-top:4px}
.choice-lock-reason{display:grid;gap:3px;margin:8px 0 2px;padding:8px 10px;border-radius:9px;text-align:left;background:rgba(148,163,184,.12);border-left:4px solid #94a3b8}.choice-lock-reason b{font-size:.72rem;letter-spacing:.05em}.choice-lock-reason em{font-size:.76rem;font-style:normal;line-height:1.3;opacity:.9}.choice-lock-reason.lock-late{border-left-color:#f59e0b;background:rgba(245,158,11,.10)}.choice-lock-reason.lock-prep,.choice-lock-reason.lock-partner{border-left-color:#60a5fa;background:rgba(96,165,250,.10)}
.visual-lock-reason{display:grid!important;gap:3px;margin:7px 0!important;padding:7px 9px!important;border-radius:8px;border-left:4px solid #94a3b8;background:rgba(148,163,184,.12);font-style:normal!important;text-align:left}.visual-lock-reason b{font-size:.68rem;letter-spacing:.05em}.visual-lock-reason span{font-size:.72rem;line-height:1.25;opacity:.9}.visual-lock-reason.lock-late{border-left-color:#f59e0b;background:rgba(245,158,11,.11)}.visual-lock-reason.lock-prep,.visual-lock-reason.lock-partner{border-left-color:#60a5fa;background:rgba(96,165,250,.11)}
@media(max-width:680px){.career-challenge-head,.career-challenge-progress{align-items:flex-start;flex-direction:column}.visual-career-challenge-head{grid-template-columns:1fr}.career-challenge-head b,.career-challenge-progress strong,.visual-career-challenge-head b{white-space:normal}}

/* 0.6.81 · ISO recap stat cards: keep values at the top inside their own cards. */
html[data-ui-renderer="visual"] .visual-recap-popup .visual-growth-strip {
  align-items: stretch;
}
html[data-ui-renderer="visual"] .visual-recap-popup .visual-growth-strip > span {
  box-sizing: border-box;
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}
html[data-ui-renderer="visual"] .visual-recap-popup .visual-growth-strip > span > b {
  display: block;
  position: static;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-ui-renderer="visual"] .visual-recap-popup .visual-growth-strip > span > em {
  display: block;
  position: static;
  margin: 0;
  line-height: 1.1;
  text-align: center;
}

/* 0.6.82 · decision semantics cleanup */
.choice-timing-impact,.visual-timing-impact{display:grid;gap:3px;margin:7px 0;padding:7px 9px;border-radius:8px;border-left:4px solid #f59e0b;background:rgba(245,158,11,.10);font-style:normal;text-align:left}
.choice-timing-impact b,.visual-timing-impact b{font-size:.68rem;letter-spacing:.05em}.choice-timing-impact em,.visual-timing-impact span{font-size:.72rem;line-height:1.3;font-style:normal}

/* 0.6.82 · decision semantics cleanup */
.choice-timing-impact,.visual-timing-impact{display:grid;gap:3px;margin:7px 0;padding:7px 9px;border-radius:8px;border-left:4px solid #f59e0b;background:rgba(245,158,11,.10);font-style:normal;text-align:left}
.choice-timing-impact b,.visual-timing-impact b{font-size:.68rem;letter-spacing:.05em}.choice-timing-impact em,.visual-timing-impact span{font-size:.72rem;line-height:1.3;font-style:normal}

/* 0.6.82 · decision semantics cleanup */
.choice-timing-impact,.visual-timing-impact{display:grid;gap:3px;margin:7px 0;padding:7px 9px;border-radius:8px;border-left:4px solid #f59e0b;background:rgba(245,158,11,.10);font-style:normal;text-align:left}
.choice-timing-impact b,.visual-timing-impact b{font-size:.68rem;letter-spacing:.05em}.choice-timing-impact em,.visual-timing-impact span{font-size:.72rem;line-height:1.3;font-style:normal}

/* 0.6.83 · status panel uses human-readable states while retaining bars. */
html[data-ui-renderer="visual"] .visual-chart-stats .visual-stat-bars span small{display:block;margin-top:3px;font-size:.55rem;line-height:1.2;opacity:.72;font-weight:600;text-transform:none;letter-spacing:0}
html[data-ui-renderer="visual"] .visual-chart-stats .visual-stat-bars span strong{font-size:.82rem}

/* 0.6.84 · ISO World-02 unlock must stay inside recap card. */
html[data-ui-renderer="visual"] .visual-world-unlock span{font-size:.52rem!important;line-height:1.18!important;overflow-wrap:normal!important;word-break:normal!important}
html[data-ui-renderer="visual"] .visual-world-unlock .world-unlock-name{display:block;margin-top:2px;font-size:.72rem;line-height:1.05;letter-spacing:.035em;color:#fff;white-space:normal;overflow-wrap:anywhere}

/* 0.6.84 · ISO World-02 unlock must stay inside recap card. */
html[data-ui-renderer="visual"] .visual-world-unlock span{font-size:.52rem!important;line-height:1.18!important;overflow-wrap:normal!important;word-break:normal!important}
html[data-ui-renderer="visual"] .visual-world-unlock .world-unlock-name{display:block;margin-top:2px;font-size:.72rem;line-height:1.05;letter-spacing:.035em;color:#fff;white-space:normal;overflow-wrap:anywhere}

/* 0.6.85 · World outlook modal: Stadtflimmern is context, not a giant headline. */
#coming-soon-modal .modal-card{box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);overflow:auto}
#coming-soon-modal #coming-soon-title{font-size:clamp(1rem,3.5vw,1.35rem);line-height:1.15;overflow-wrap:anywhere}
#coming-soon-modal .question{overflow-wrap:anywhere}
#coming-soon-modal .world-outlook-name{display:block;margin:0 0 5px;font-size:.72rem;line-height:1.1;font-weight:700;letter-spacing:.07em;color:var(--accent);text-transform:uppercase}
#coming-soon-modal .world-outlook-grid{min-width:0}
#coming-soon-modal .world-outlook-grid b{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){#coming-soon-modal .modal-card{padding:22px 18px}}

/* 0.6.87 · selected choice must be unmistakable in TEXT and ISO. */
.game-choice.selected{position:relative;border-width:3px!important;border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent),0 12px 30px rgba(0,0,0,.18);transform:translateY(-1px)}
.choice-list:has(.game-choice.selected) .game-choice:not(.selected):not(.locked){opacity:.55;filter:saturate(.65)}
.choice-selected-badge{display:inline-flex;width:max-content;margin-top:7px;padding:5px 9px;border-radius:999px;background:var(--accent);color:#08111b;font-size:.68rem;font-weight:950;letter-spacing:.055em}
.pending-choice{border:2px solid var(--accent)!important}.pending-choice>span{font-weight:950}.committed-choice>span{color:#22c55e;font-weight:950}
.visual-option.selected{position:relative;border-width:3px!important;outline:3px solid color-mix(in srgb,var(--trade-color) 55%,#facc15)!important;box-shadow:0 0 0 4px rgba(250,204,21,.15),0 12px 28px rgba(0,0,0,.24);transform:translateY(-1px)}
.visual-options:not(.visual-upgrade-options):has(.visual-option.selected) .visual-option:not(.selected):not(.locked){opacity:.5;filter:saturate(.6)}
.visual-selected-badge{display:inline-flex!important;width:max-content;margin-top:4px!important;padding:5px 8px!important;border-radius:999px;background:#facc15;color:#101827!important;font-size:.64rem!important;font-weight:950!important;font-style:normal!important;letter-spacing:.05em}
.visual-confirm-choice{border:2px solid #facc15!important;box-shadow:0 0 0 4px rgba(250,204,21,.12),0 16px 38px rgba(0,0,0,.28)}
.visual-confirm-choice>span{color:#facc15!important;font-weight:950!important}.visual-choice-committed>span{color:#22c55e!important;font-weight:950!important}

/* 0.6.88 · ISO performance: reduce continuous compositor work on touch/mobile devices. */
@media (hover:none), (max-width:900px) {
  html[data-ui-renderer="visual"] .visual-fx-ambient,
  html[data-ui-renderer="visual"] .visual-fx-desk-glow,
  html[data-ui-renderer="visual"] .visual-fx-stage-beam,
  html[data-ui-renderer="visual"] .visual-fx-crowd,
  html[data-ui-renderer="visual"] .visual-fx-gate-flow,
  html[data-ui-renderer="visual"] .visual-fx-tech-flow { animation:none!important; }
  html[data-ui-renderer="visual"] .visual-fx-ambient{opacity:.18;transform:none}
  html[data-ui-renderer="visual"] .visual-fx-stage-beam{opacity:.28}
  html[data-ui-renderer="visual"] .visual-fx-crowd{opacity:.34;filter:none}
  html[data-ui-renderer="visual"] .visual-scene-fx-desk .visual-fx-desk-glow{opacity:.42}
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-current-available::after,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-open::after,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-reopen::after,
  html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-multi-available::after { animation-duration:2.6s; }
}
/* Browser may skip paint/layout work for off-screen panels without changing their content. */
.visual-decision-popover,.visual-chart-stats,.visual-trade-panel{contain:layout paint style}

/* 0.6.90 · pre-student-test UI consistency. Trade color always identifies the Gewerk; status is a separate marker. */
/* Pending normal choices: yellow status marker, never replace the trade identity. */
.game-choice.selected,.visual-option.selected:not(.is-active-upgrade){border-color:var(--accent)!important}
.visual-option.selected:not(.is-active-upgrade){outline-color:#facc15!important}
/* Optional upgrades are selected, not yet "active"; use the same pending-choice yellow while retaining --trade-color. */
.visual-upgrade-option.is-active-upgrade{border-color:var(--trade-color)!important;outline:3px solid #facc15!important;box-shadow:0 0 0 4px rgba(250,204,21,.16),0 14px 34px rgba(0,0,0,.28)}
.visual-upgrade-badge{background:#facc15;color:#181300;letter-spacing:.055em}
.upgrade-card.selected{position:relative;border-width:3px!important;border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.upgrade-list:has(.upgrade-card.selected) .upgrade-card:not(.selected):not(.locked){opacity:.62}
/* Completed ISO hotspots retain their Gewerk color; completion is a green check badge, not a green recolor. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-done{border-color:color-mix(in srgb,var(--trade-color) 70%,#fff)!important;color:var(--trade-color)!important;opacity:.72;filter:saturate(.78)}
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.is-done::before{content:"✓";position:absolute;right:-8px;top:-10px;z-index:5;display:grid;place-items:center;width:24px;height:24px;border:2px solid #fff;border-radius:999px;background:#22c55e;color:#04140a;font-size:.72rem;font-weight:950;box-shadow:0 5px 14px rgba(0,0,0,.28)}
/* Timing stays an overlay/status and does not overwrite the profession color. */
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.timing-late::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.timing-critical::before,
html[data-ui-renderer="visual"] .visual-has-underlay .visual-hotspot-object.timing-toolate::before{color:#1f1300;background:#f59e0b}

/* v1.1: one isometric scene, always spanning the available viewport width. */
html[data-ui-renderer="visual"] .easy-game-root:not([hidden]) {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.visual-viewport-stage {
  position: relative;
  width: var(--app-vw, 100vw);
  height: var(--iso-scene-height, 720px);
  margin-block: max(0px, calc((var(--app-vh, 100svh) - var(--iso-scene-height, 720px)) / 2));
}
html[data-ui-renderer="visual"] .visual-game-shell {
  left: 0;
  top: 0;
  transform: scale(var(--iso-scale, 1));
  transform-origin: top left;
  border-radius: 0;
}

/* v1.1: keep the start page on one landscape browser page. */
.presentation:has(.slide-start.is-active) { height: 100dvh; min-height: 0; }
.presentation:has(.slide-start.is-active) .slides { min-height: 0; flex: 1; }
.slide-start.is-active { height: 100%; min-height: 0; overflow-y: auto; }
.slide-start .slide-content { display: grid; gap: clamp(8px, 1.4vh, 16px); }
.slide-start .start-logo { width: auto; max-width: 100%; max-height: clamp(60px, 20dvh, 180px); object-fit: contain; margin: 0; justify-self: start; }
.slide-start .overline, .slide-start .question, .slide-start .body-copy { margin: 0; }
.slide-start h1 { font-size: clamp(2rem, 6.5dvh, 4.8rem); }
.slide-start .question { font-size: clamp(.95rem, 2.3dvh, 1.3rem); }
.slide-start .body-copy { font-size: clamp(.8rem, 1.8dvh, 1rem); }
.slide-start .start-toggles, .slide-start .action-row { margin-top: 0; }
@media (min-aspect-ratio: 1/1) {
  .presentation:has(.slide-start.is-active) .deck-header { padding-block: 12px 8px; }
  .slide-start.is-active { padding-block: clamp(10px, 2dvh, 24px) 28px; }
  .slide-start .slide-content { grid-template-columns: minmax(150px, .65fr) minmax(0, 1fr); column-gap: clamp(20px, 4vw, 60px); }
  .slide-start .start-logo { grid-column: 1; grid-row: 1 / 7; align-self: center; width: 100%; max-height: min(48dvh, 280px); }
  .slide-start .slide-content > :not(.start-logo) { grid-column: 2; }
  .slide-start .overline { font-size: .6rem; }
  .slide-start .slide-count { bottom: 8px; }
}
/* v1.1: phone decisions keep their readable UI size while the scene fits the width. */
@media (max-width: 900px) {
  html[data-ui-renderer="visual"] .visual-game-shell { overflow: visible; }
  html[data-ui-renderer="visual"] .visual-decision-popover.visual-popover-centered,
  html[data-ui-renderer="visual"] .visual-recap-popup,
  html[data-ui-renderer="visual"] .visual-chart-card.visual-chart-stats {
    left: 50% !important;
    top: calc(min(var(--app-vh), var(--iso-scene-height)) / 2 / var(--iso-scale)) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1000;
    width: min(360px, calc(var(--app-vw) - 24px)) !important;
    max-width: calc(var(--app-vw) - 24px) !important;
    max-height: min(620px, calc(var(--app-vh) - 80px)) !important;
    transform: translate(-50%, -50%) scale(calc(1 / var(--iso-scale))) !important;
    transform-origin: center;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  html[data-ui-renderer="visual"] .visual-option,
  html[data-ui-renderer="visual"] .visual-feedback button,
  html[data-ui-renderer="visual"] .visual-decision-popover .primary-button,
  html[data-ui-renderer="visual"] .visual-recap-actions button { min-height: 44px; }
  html[data-ui-renderer="visual"] .visual-phase-continue {
    transform: scale(calc(1 / var(--iso-scale)));
    transform-origin: right bottom;
    min-height: 44px;
  }
}
.visual-overlay .visual-info-card {
  max-height: calc(var(--app-vh, 100dvh) - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* v1.1.1: one compact start page instead of introduction/selection/briefing slides. */
.presentation:not([hidden]) { height: 100dvh; min-height: 0; overflow-y: auto; }
.start-page { width: min(1120px, 100%); min-height: 100%; margin: auto; padding: clamp(20px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.start-identity { min-width: 0; }
.start-identity .start-logo { width: 100%; max-height: 62dvh; object-fit: contain; margin: 0; }
.start-copy { display: grid; gap: clamp(12px, 2.5dvh, 24px); min-width: 0; }
.start-copy .overline, .start-copy .question, .start-progress { margin: 0; }
.start-copy h1 { font-size: clamp(2rem, min(5vw, 9dvh), 4.8rem); }
.start-copy .question { font-size: clamp(1rem, 2.1vw, 1.4rem); line-height: 1.4; }
.start-progress { color: var(--muted); font-size: .9rem; }
.start-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.start-actions button { min-height: 44px; }
.start-reset { text-decoration: underline; }
.visual-start-hint { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1100; width: max-content; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 12px 18px; border: 1px solid #2dd4bf; border-radius: 14px; background: #0b233b; box-shadow: 0 8px 28px #0008; color: #eef7ff; }
.visual-start-hint p { margin: 0; font-size: .95rem; }
.visual-start-hint button { min-height: 44px; }
@media (max-width: 600px) {
  .start-page { grid-template-columns: 1fr; align-content: center; gap: 22px; }
  .start-identity .start-logo { width: auto; max-width: 100%; max-height: 25dvh; margin: auto; }
  .start-copy { text-align: center; }
  .start-copy h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .start-actions { justify-content: center; }
}
@media (max-height: 450px) and (min-width: 601px) {
  .start-page { padding-block: 16px; }
  .start-copy { gap: 12px; }
  .start-identity .start-logo { max-height: 70dvh; }
}
/* v1.1: decision context is visible once, above choices; profession help is optional. */
.visual-decision-context { margin: 10px 0 16px; color: #dbeafe; font-size: .95rem; line-height: 1.45; }
.visual-trade-help { display: block; width: 100%; min-height: 44px; margin-top: 14px; font-size: .75rem; }
.visual-trade-help { margin: 0 0 16px; }
.visual-profession-card h2 { font-size: clamp(1.3rem, 5vw, 1.9rem); overflow-wrap: anywhere; }
/* Student feedback: exact changes without the technical accounting paragraph. */
.decision-result { display: grid; gap: 14px; padding-block: 8px; }
.decision-result-label { color: #86efac; font-size: .9rem; font-weight: 800; }
.decision-result-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.decision-result-fact { min-width: 0; padding: 10px; border-radius: 10px; background: #ffffff0b; }
.decision-result-fact span,.decision-result-fact small { display: block; font-size: .75rem; color: #cbd5e1; }
.decision-result-fact strong { display: block; margin-block: 4px; font-size: 1.1rem; color: #fff; }
.decision-result-bars { display: grid; gap: 12px; }
.decision-bar-legend { margin: 0; font-size: .65rem; letter-spacing: .06em; color: #94a3b8; }
.decision-result-bar > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; margin-bottom: 5px; }
.decision-bar-track { position: relative; height: 12px; border-radius: 20px; background: #ffffff0c; overflow: hidden; }
.decision-bar-track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.decision-bar-before { background: #94a3b8; opacity: .5; }
.decision-bar-after { background: #f59e0b; }
.is-better .decision-bar-after { background: #34d399; }
.decision-future-notes { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .9rem; line-height: 1.4; color: #e2e8f0; }
.decision-further-effects,.visual-finance-details { font-size: .85rem; color: #cbd5e1; }
.decision-further-effects summary,.visual-finance-details summary { cursor: pointer; padding-block: 10px; min-height: 44px; }
.decision-discovery { margin: 0; padding: 8px 10px; border-left: 3px solid #a3e635; font-size: .8rem; background: #a3e6350b; }
.visual-game-shell:has(.visual-decision-popover) .visual-scene-caption { visibility: hidden; }
/* v1.1.4: shared level-end screen with real guest/cash results. */
html[data-ui-renderer="visual"] .visual-recap-popup.recap-level { width: 680px; max-width: 1040px; max-height: 640px; padding: 22px; border: 1px solid #5eead455; background: linear-gradient(155deg,#102c46f8,#091827fa); }
.recap-level-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.recap-level-head > div > span { color: #94a3b8; font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
html[data-ui-renderer="visual"] .recap-level .recap-level-head h1 { margin: 5px 0 10px; font-size: 1.9rem; color: #f1f5f9; }
.recap-skip { max-width: 140px; min-height: 40px; padding: 6px 9px; font-size: .6rem; }
.recap-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.recap-badges span { padding: 5px 9px; border-radius: 20px; color: #d9f99d; background: #a3e63512; font-size: .65rem; font-weight: 800; border: 1px solid #a3e63533; }
.recap-audience { margin-block: 12px 18px; }
.recap-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; }
.recap-meter-head strong { font-size: 1.3rem; }
.recap-audience-track { position: relative; height: 22px; background: #ffffff12; border-radius: 20px; margin-top: 8px; }
.recap-audience-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2dd4bf,#a3e635); }
.recap-cost-marker { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #fff; border-radius: 4px; transform: translateX(-50%); box-shadow: 0 0 5px #0008; }
.recap-audience p { margin: 8px 0 0; font-size: .75rem; color: #cbd5e1; }
.recap-cash { padding: 14px 16px; background: #030c174d; border-radius: 14px; }
.recap-cash > span { color: #94a3b8; font-size: .65rem; letter-spacing: .07em; }
.recap-cash-line { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: .85rem; }
.recap-cash-line strong { font-variant-numeric: tabular-nums; }
.recap-balance { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff1a; }
.recap-balance > span { font-size: .75rem; font-weight: 800; }
.recap-balance > strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.recap-balance.is-profit strong { color: #a3e635; }
.recap-balance.is-loss strong { color: #fda4af; }
.recap-next-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-block: 12px; color: #94a3b8; font-size: .7rem; }
.recap-next-stats b { color: #e2e8f0; margin-left: 4px; }
.recap-reward,.recap-retry { margin-block: 14px; padding: 12px; border-radius: 12px; border: 1px solid #a3e63555; background: #a3e6350b; }
.recap-reward > span { display: block; color: #a3e635; font-size: .65rem; letter-spacing: .07em; }
.recap-reward > strong { display: block; margin-top: 5px; color: #d9f99d; font-size: 1.5rem; }
.recap-reward p,.recap-retry p { margin: 6px 0 0; font-size: .8rem; line-height: 1.4; }
.recap-retry { border-color: #f59e0b55; background: #f59e0b08; }
.recap-retry strong { font-size: .85rem; color: #fcd34d; }
.recap-level.is-counting .recap-reward { opacity: .2; }
.recap-level.is-revealed .recap-reward { animation: recapRewardReveal .4s ease-out; }
@keyframes recapRewardReveal { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.recap-level .visual-recap-learning { padding: 9px; }
.recap-level .visual-recap-learning p { font-size: .75rem; line-height: 1.35; }
@media(max-width:900px) {
  .recap-level-head { flex-wrap: wrap; }
  html[data-ui-renderer="visual"] .recap-level .recap-level-head h1 { font-size: 1.6rem; }
  .recap-level .visual-recap-learning-grid { grid-template-columns: 1fr; }
  .recap-skip { max-width: none; }
  .recap-balance > strong { font-size: 1.5rem; }
}
@media(prefers-reduced-motion:reduce) { .recap-level.is-revealed .recap-reward { animation: none; } }
html[data-ui-renderer="visual"] .visual-recap-popup.recap-level { display: flex; flex-direction: column; overflow: hidden !important; }
.recap-level-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.recap-level > .visual-recap-actions { flex: 0 0 auto; margin: 0; padding-top: 12px; border-top: 1px solid #ffffff16; }
.visual-game-shell:has(.visual-recap-popup) .visual-scene-caption { visibility: hidden; }

/* Keep long approved job names readable beside the card on phones. */
@media (max-width: 600px) {
  .visual-profession-card > img { width: 72px; margin-right: 12px; }
}
