/* ============================================================
   Squills – The Startup Game · Styles
   Hell, modern, bunt – 2026 Browser-Game-Look
   ============================================================ */

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

:root {
  --bg1: #fdf6ec;
  --bg2: #eef3ff;
  --ink: #2d2a45;
  --muted: #8a86a3;
  --primary: #7c5cff;
  --primary-dark: #6647e8;
  --accent: #ff8a5c;
  --green: #38c7a2;
  --gold: #ffce4f;
  --pink: #ff6f9d;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(80, 60, 160, 0.10);
  --shadow-lg: 0 12px 40px rgba(80, 60, 160, 0.18);
}

html { font-size: 16px; }
body {
  /* Squills-Brand-Font (Montserrat) – identisch zur squills.eu-Website */
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe9f3 0%, transparent 60%),
    radial-gradient(1000px 700px at 110% 0%, #e3f7ff 0%, transparent 55%),
    radial-gradient(900px 600px at 50% 120%, #eafff4 0%, transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}

.screen { max-width: 1180px; margin: 0 auto; padding: 20px 20px 60px; }
.center-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92vh; gap: 20px; }
.center { text-align: center; margin-top: 18px; }
.muted { color: var(--muted); }
.mini { font-size: .8rem; }

h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
h2 { font-size: 1.4rem; margin-bottom: 8px; }
h3 { font-size: 1.05rem; margin-bottom: 10px; }
p { line-height: 1.5; }

/* ---------- Karten ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(124, 92, 255, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit; font-size: 1rem; font-weight: 700;
  border: 2px solid rgba(45, 42, 69, 0.12);
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px 20px;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffb347); color: #5b4300; border: none; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-big { font-size: 1.15rem; padding: 16px 28px; width: 100%; margin-top: 14px; }
.btn-sm { font-size: .85rem; padding: 8px 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }

/* ---------- Startscreen ---------- */
.hero { text-align: center; }
.hero-logo { font-size: 4.5rem; animation: bounce 2.2s infinite ease-in-out; }
@keyframes bounce { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.game-title {
  /* Produkt-Titel in Squills-Manier: Montserrat ExtraBold (800) + enges Tracking wie squills.eu */
  font-size: 4rem; font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin: 0;
  background: linear-gradient(90deg, var(--primary), var(--pink), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.game-sub { font-size: 1.15rem; color: var(--muted); font-weight: 700; margin: 6px 0 12px; }
.game-sub .brand-link { color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: .01em; transition: opacity .15s; }
.game-sub .brand-link:hover { text-decoration: underline; text-underline-offset: 3px; opacity: .75; }
.hero-text { max-width: 520px; margin: 0 auto; }
.start-card { width: min(440px, 92vw); display: flex; flex-direction: column; gap: 10px; }
.start-card label { font-weight: 700; font-size: .9rem; color: var(--muted); }
.start-card input {
  font-family: inherit; font-size: 1.1rem; padding: 12px 16px;
  border: 2px solid rgba(124, 92, 255, .25); border-radius: 12px; outline: none;
}
.start-card input:focus { border-color: var(--primary); }
/* Gründer-Typ-Auswahl: scrollbares Karussell, Auswahl mittig & groß */
.founder-carousel { display: flex; align-items: center; gap: 6px; }
.car-viewport {
  flex: 1; overflow: hidden; padding: 50px 0 40px;   /* oben: Platz fürs Hochskalieren der Karte · unten: Schatten */
  /* seitlich weich ausblenden statt hart abschneiden */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
}
.car-track {
  display: flex; gap: 12px; align-items: stretch;
  transition: transform .45s cubic-bezier(.22, 1.2, .36, 1);
  will-change: transform;
}
.car-arrow {
  font-family: inherit; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(124, 92, 255, .3); background: #fff; color: var(--primary-dark);
  font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .12s, opacity .12s;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.car-arrow:hover:not(:disabled) { transform: scale(1.15); background: #efe9ff; }
.car-arrow:disabled { opacity: .25; cursor: default; }
.founder-carousel .founder-card {
  flex: 0 0 166px; width: 166px; min-height: 250px; justify-content: flex-start;
  transform: scale(.82); opacity: .55; filter: saturate(.7);
  transform-origin: 50% 100%;   /* wächst nach OBEN – unten wird nie abgeschnitten */
  transition: transform .45s cubic-bezier(.22, 1.2, .36, 1), opacity .3s, filter .3s, border-color .2s, box-shadow .3s;
}
.founder-carousel .founder-card.sel {
  transform: scale(1.12); opacity: 1; filter: none;
  border-color: var(--primary); background: linear-gradient(180deg, #efe9ff, #e2d8ff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .25), 0 6px 14px rgba(80, 60, 160, .3);  /* kompakter Schatten, wird nicht geclippt */
  z-index: 2;
}
.founder-carousel .founder-card.near { transform: scale(.9); opacity: .8; filter: saturate(.9); }
.founder-carousel .founder-card.far { transform: scale(.78); opacity: .35; }

.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.founder-card {
  font-family: inherit; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, #faf8ff, #f0ecfd);
  border: 2px solid rgba(124, 92, 255, .15); border-radius: 14px;
  padding: 8px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink); font-size: .78rem; font-weight: 800; line-height: 1.2;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.founder-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.founder-card.sel {
  border-color: var(--primary); background: linear-gradient(180deg, #efe9ff, #e2d8ff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .25), var(--shadow-lg);
}
.founder-figure { flex: 1 1 auto; min-height: 158px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.founder-img { max-height: 186px; max-width: 132px; filter: drop-shadow(0 6px 7px rgba(45, 42, 69, .32)); transition: transform .15s; }
.founder-card:hover .founder-img { transform: scale(1.06); }
.founder-card.sel .founder-img { transform: scale(1.1); }
.founder-fallback { font-size: 2.6rem; }
.founder-tag { font-size: .62rem; font-weight: 600; color: var(--muted); min-height: 2.1em; }
@media (max-width: 520px) { .founder-grid { grid-template-columns: repeat(2, 1fr); } }

.avatar-row { display: flex; gap: 8px; }
.avatar-btn {
  font-size: 1.8rem; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; background: #f4f1ff; transition: transform .12s;
}
.avatar-btn:hover { transform: scale(1.12); }
.avatar-btn.sel { border-color: var(--primary); background: #e9e2ff; }
.hint-cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.legal-links { margin-top: 14px; font-size: .78rem; color: var(--muted); }
.legal-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mini-card {
  background: rgba(255, 255, 255, .75); border-radius: 14px; padding: 10px 16px;
  font-size: .9rem; box-shadow: var(--shadow); margin: 6px 0;
}
/* Sprachwahl: Flaggen-Dropdown (Start-Screen oben rechts + Statusbar) */
.lang-select {
  font-family: inherit; font-weight: 800; font-size: .85rem; color: var(--ink);
  border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232d2a45' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-btn.lang-select {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background-color: rgba(255, 255, 255, .8);
  border: 2px solid rgba(45, 42, 69, 0.08);
  padding: 8px 30px 8px 14px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lang-btn.lang-select:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.topbar-right .lang-select { background-color: transparent; border: none; padding: 6px 24px 6px 8px; }
.topbar-right .lang-select:hover { background-color: rgba(124, 92, 255, .1); }

/* ---------- Branchen-Auswahl / Hub ---------- */
.screen-head { text-align: center; margin: 18px 0 24px; }
.ind-grid, .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ind-card, .hub-card { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; transition: transform .15s; }
.ind-card:hover, .hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-emoji { font-size: 3rem; }
.ind-company { color: var(--primary); font-weight: 800; font-size: .9rem; }
.ind-card p, .hub-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.ind-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .8rem; }
.ind-stats > div { display: flex; justify-content: space-between; align-items: center; }
.ind-stats span { color: var(--muted); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e1f5; display: inline-block; margin-left: 3px; }
.dot.on { background: var(--accent); }
.ind-card .btn, .hub-card .btn { width: 100%; }
.hub-card.locked { opacity: .55; }
.hub-stats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.brand { font-size: 1.1rem; margin-right: 6px; }
.chip {
  background: #f4f1ff; border-radius: 999px; padding: 6px 14px; font-size: .85rem;
}
.company-chip { background: linear-gradient(135deg, #efe9ff, #ffe9f3); }
.topbar-right { margin-left: auto; display: flex; gap: 6px; }

/* ---------- KPI-Zeile ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: var(--card); border-radius: 16px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
}
.kpi-emoji { font-size: 1.6rem; }
.kpi-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.kpi-value { font-size: 1.05rem; font-weight: 800; }
.kpi-extra { font-size: .72rem; color: var(--muted); }
.bar { height: 7px; background: #efecfb; border-radius: 99px; overflow: hidden; margin-top: 4px; min-width: 60px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--pink)); border-radius: 99px; }
.bar-hype > div { background: linear-gradient(90deg, var(--accent), var(--pink)); }
.bar-goal > div { background: linear-gradient(90deg, var(--gold), var(--accent)); }

/* ---------- Spiel-Layout ---------- */
.game-cols { display: grid; grid-template-columns: 1.9fr 1fr; gap: 16px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .game-cols { grid-template-columns: 1fr; } }

/* ---------- Aktionen ---------- */
.actions-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ap-dots { display: flex; align-items: center; gap: 5px; font-size: .8rem; }
.ap { width: 14px; height: 14px; border-radius: 50%; background: #e5e1f5; display: inline-block; }
.ap.on { background: linear-gradient(135deg, var(--gold), var(--accent)); box-shadow: 0 0 8px rgba(255, 178, 71, .7); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.action-card {
  font-family: inherit; text-align: left; cursor: pointer;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .12); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; gap: 3px; transition: transform .12s, box-shadow .12s;
}
.action-card:hover:not(.disabled) { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.action-card.disabled { opacity: .45; cursor: not-allowed; }
.act-emoji { font-size: 1.5rem; }
.act-name { font-weight: 800; font-size: .92rem; }
.act-cost { font-size: .8rem; font-weight: 800; color: var(--accent); }
.act-desc { font-size: .75rem; color: var(--muted); line-height: 1.35; }

/* ---------- Log ---------- */
.log-card h3 { margin-bottom: 8px; }
.log { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.log-row {
  font-size: .85rem; line-height: 1.45; background: #faf8ff;
  padding: 8px 10px; border-radius: 10px; display: flex; gap: 8px; align-items: baseline;
}
.log-month {
  flex-shrink: 0; font-size: .68rem; font-weight: 800; color: #fff;
  background: var(--primary); padding: 2px 7px; border-radius: 99px;
}

/* ---------- Cap Table / Pie ---------- */
.pie { width: 150px; display: block; margin: 6px auto 12px; filter: drop-shadow(0 4px 10px rgba(80, 60, 160, .18)); }
.cap-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; padding: 4px 0; }
.cap-row b { margin-left: auto; }
.cap-row.founder { font-weight: 800; }
.swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.goal-card .goal-text { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.goal-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 3px 0; }

/* ---------- Modals ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(45, 42, 69, .45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
  max-width: 460px; width: 100%; padding: 28px; text-align: center;
  max-height: 88vh; overflow-y: auto;
  animation: popIn .22s cubic-bezier(.2, 1.4, .4, 1);
}
.modal.wide { max-width: 560px; }
@keyframes popIn { from { transform: scale(.85); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal-emoji { font-size: 3.2rem; margin-bottom: 6px; }
.modal p { margin: 10px 0; }
.modal .btn { margin-top: 8px; }
.event-result { font-weight: 700; }
.choice-col { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.btn-choice { width: 100%; }
.lesson {
  background: #fff7e0; border-radius: 12px; padding: 12px 14px;
  font-size: .88rem; text-align: left; line-height: 1.5;
}
.investor-quote {
  background: #f4f1ff; border-radius: 14px; padding: 14px; font-style: italic;
  font-size: .95rem; margin: 12px 0; line-height: 1.5;
}
.deal-box { background: #faf8ff; border-radius: 14px; padding: 12px 16px; margin: 12px 0; text-align: left; }
.deal-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .92rem; }
.deal-row.highlight {
  border-top: 2px dashed rgba(124, 92, 255, .25); margin-top: 6px; padding-top: 10px;
  font-size: 1rem; color: var(--primary-dark); font-weight: 800;
}

/* ---------- Lexikon ---------- */
.term { text-decoration: underline dotted var(--primary) 2px; text-underline-offset: 3px; cursor: help; font-weight: 700; color: var(--primary-dark); }
.lex-overlay { z-index: 200; }
.lex-modal { max-width: 400px; }
.lex-head { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.lex-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.lex-item {
  font-family: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  background: #f4f1ff; border: 1px solid rgba(124, 92, 255, .2); color: var(--ink);
  border-radius: 999px; padding: 7px 13px; transition: transform .1s;
}
.lex-item:hover { transform: scale(1.06); background: #e9e2ff; }
.lex-item.seen { background: #e2f8f0; border-color: rgba(56, 199, 162, .4); }

/* ---------- Pitches ---------- */
.pitch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pitch-card { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pitch-card.invested { outline: 3px solid var(--green); }
.pitch-quote { font-style: italic; font-size: .9rem; color: var(--ink); flex: 1; }
.stars-box { background: #faf8ff; border-radius: 12px; padding: 10px 14px; }
.stars-box > div { display: flex; justify-content: space-between; font-size: .85rem; padding: 2px 0; }
.stars { color: var(--gold); letter-spacing: 2px; }
.star-dim { color: #e5e1f5; }

/* ---------- Ergebnisse ---------- */
.wide-card { max-width: 640px; }
.exit-card { max-width: 620px; width: 100%; text-align: center; }
.result-row {
  display: grid; grid-template-columns: 1.2fr 1.2fr .9fr; gap: 8px; align-items: center;
  background: #faf8ff; border-radius: 10px; padding: 8px 12px; margin: 5px 0;
  font-size: .85rem; text-align: left;
}
.result-row.unicorn { background: linear-gradient(90deg, #fff3fa, #f3f0ff); outline: 2px solid var(--pink); }
.result-row.dead { opacity: .6; }
.result-row .mult { text-align: right; font-weight: 800; }
.payout-banner {
  background: linear-gradient(135deg, var(--gold), #ffb347); color: #5b4300;
  border-radius: 14px; padding: 14px; font-size: 1.3rem; margin: 14px 0; font-weight: 800;
}

/* ---------- Vermächtnis ---------- */
.share-row { align-items: stretch; }
.share-btn {
  font-family: inherit; cursor: pointer; flex: 1; min-width: 105px;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .15); border-radius: 14px;
  padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; align-items: center;
  font-size: .85rem; transition: transform .12s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.sel { border-color: var(--primary); background: #efe9ff; box-shadow: var(--shadow); }
.share-btn b { font-size: 1.2rem; }
.legacy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.legacy-card {
  font-family: inherit; cursor: pointer; text-align: center;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .15); border-radius: 14px;
  padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: transform .12s;
}
.legacy-card:hover { transform: translateY(-2px); }
.legacy-card.sel { border-color: var(--green); background: #e8faf4; box-shadow: var(--shadow); }
.legacy-card .mini { color: var(--muted); }

/* Screen-Karten (Vermächtnis etc.) untereinander */
.screen > .card { margin-bottom: 16px; }

/* ============================================================
   SZENE: Squills Tower (Gebäude-Querschnitt à la Airline Tycoon)
   ============================================================ */
.scene-screen { display: flex; flex-direction: column; min-height: 96vh; padding-bottom: 16px; }

/* --- HUD oben: 2 klare Zeilen — oben Identität + Controls, unten KPIs --- */
.hud {
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.hud-top { display: flex; align-items: center; gap: 10px; }
.hud-company {
  font-size: .82rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.hud-top .topbar-right { flex-shrink: 0; }
.hud-kpis {
  display: flex; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;   /* Mobile: KPIs seitlich wischen */
  scrollbar-width: none;
}
.hud-kpis::-webkit-scrollbar { display: none; }
.hud-brand { font-size: 1rem; flex-shrink: 0; }
.hud-chip {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: #f8f6ff; border-radius: 12px; padding: 5px 10px;
}
.hud-emoji { font-size: 1.15rem; }
.hud-body { display: flex; flex-direction: column; line-height: 1.15; }
.hud-label { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.hud-value { font-size: .88rem; font-weight: 800; }
.hud-body .bar { min-width: 54px; height: 5px; margin-top: 2px; }

/* --- Branchen-Themes (Farbwelten pro Business-Typ) --- */
.scene-screen, .room-detail {
  --t-accent: #7c5cff; --t-accent-2: #ff8a5c;
  --t-frame: #f6f1e7; --t-frame-dark: #ded5c2; --t-frame-edge: #c9bda3;
  --t-slab: #e9e1cf; --t-ground: #efe7d5;
}
.theme-ki     { --t-accent: #3f8fe8; --t-accent-2: #7c5cff; --t-frame: #eef2f8; --t-frame-dark: #ccd7e6; --t-frame-edge: #aebfd6; --t-slab: #dde5ef; --t-ground: #e4ebf4; }
.theme-space  { --t-accent: #5b3fd4; --t-accent-2: #ff8a5c; --t-frame: #efedf7; --t-frame-dark: #cfcae4; --t-frame-edge: #b1a9d2; --t-slab: #dfdaee; --t-ground: #e6e2f2; }
.theme-food   { --t-accent: #e8712e; --t-accent-2: #38c7a2; --t-frame: #f9f0dd; --t-frame-dark: #e5d3b2; --t-frame-edge: #cdb488; --t-slab: #eeddbd; --t-ground: #f3e6ca; }
.theme-klima  { --t-accent: #2aa87e; --t-accent-2: #ffce4f; --t-frame: #eff4e6; --t-frame-dark: #d2ddbd; --t-frame-edge: #b3c497; --t-slab: #dfe8c9; --t-ground: #e8efd6; }
.theme-gaming { --t-accent: #a24ee8; --t-accent-2: #39e6c4; --t-frame: #f2edf8; --t-frame-dark: #d6c9e8; --t-frame-edge: #b8a3d4; --t-slab: #e3d7f0; --t-ground: #eae0f4; }
.theme-mode   { --t-accent: #e85c8f; --t-accent-2: #ffce4f; --t-frame: #f9eef0; --t-frame-dark: #e8cdd3; --t-frame-edge: #d3aab5; --t-slab: #f0d9de; --t-ground: #f4e3e7; }

/* --- Gebäude: warme Glas-und-Stein-Architektur --- */
.scene-wrap { position: relative; flex: 1; }
/* Schmaleres Gebäude: der gerenderte Himmel bekommt Raum zum Atmen */
.building { max-width: 840px; margin: 0 auto; filter: drop-shadow(0 22px 40px rgba(50, 40, 60, .35)); }
.roof {
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  background: linear-gradient(180deg, var(--t-frame) 0%, var(--t-frame-dark) 100%);
  border-radius: 18px 18px 0 0; padding: 10px 20px 8px; position: relative;
  border-bottom: 5px solid var(--t-frame-edge);
}
.roof::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: -7px; height: 7px;
  background: var(--t-frame-dark); border-radius: 8px 8px 0 0;
}
.roof-sign {
  font-size: 1.25rem; font-weight: 900; letter-spacing: 1px; color: #fff;
  background: rgba(45, 42, 69, .88); border: 2.5px solid var(--t-accent);
  border-radius: 12px; padding: 6px 18px;
  box-shadow: 0 0 16px var(--t-accent), 0 4px 12px rgba(45, 42, 69, .3);
}
.roof-antenna, .roof-flag { font-size: 1.4rem; transform: translateY(-6px); }
.tower-body {
  display: flex; background: var(--t-frame);
  border-left: 8px solid var(--t-frame-dark); border-right: 8px solid var(--t-frame-dark);
}
/* Glas-Aufzug: Panorama-Röhre mit gleitender Kapsel (kein Emoji) */
.shaft {
  width: 46px; flex-shrink: 0; position: relative;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(214,226,240,.45) 45%, rgba(170,188,210,.5) 100%);
  border-right: 4px solid var(--t-frame-dark);
  box-shadow: inset 3px 0 6px -3px rgba(255,255,255,.9), inset -8px 0 14px -8px rgba(60, 70, 90, .45);
}
.shaft::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.15));
  border-radius: 2px;
}
.shaft::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 10px; width: 3px;
  background: repeating-linear-gradient(180deg, rgba(90,100,125,.35) 0 8px, transparent 8px 16px);
}
.cab {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 30px; height: 42px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.95) 0%, rgba(205,216,235,.9) 55%, rgba(160,175,200,.92) 100%);
  border: 2px solid rgba(110,120,150,.55);
  box-shadow: 0 4px 10px rgba(45,42,69,.3), inset 0 2px 3px rgba(255,255,255,.9);
  animation: elevator 11s ease-in-out infinite alternate;
}
.cab::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: 5px; height: 16px;
  border-radius: 6px; background: linear-gradient(180deg, rgba(140,180,225,.55), rgba(190,215,240,.25));
}
.cab-light {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 2px rgba(255, 206, 79, .8);
  animation: blinkA 2.4s infinite;
}
@keyframes elevator { 0% { top: 3% } 45% { top: 42% } 100% { top: 82% } }
.floors { flex: 1; display: flex; flex-direction: column; }
.floor {
  position: relative; border-bottom: 12px solid var(--t-slab);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  padding: 12px 14px 30px;
  box-shadow: inset 0 -16px 18px -16px rgba(90, 78, 55, .3);
}
.floor-ground { background: linear-gradient(180deg, #fffdf8 55%, var(--t-ground) 100%); border-bottom: 14px solid var(--t-frame-edge); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* --- Räume --- */
.room {
  position: relative; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, #fff, #f6f2ff);
  border: 2px solid rgba(124, 92, 255, .18); border-bottom: 6px solid rgba(124, 92, 255, .28);
  border-radius: 12px; padding: 8px 8px 10px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); z-index: 2; }
.room-off { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
.room-off:hover { transform: none; box-shadow: none; }
.room-bank { background: linear-gradient(180deg, #fffbe8, #fff3c4); border-color: rgba(214, 158, 20, .35); border-bottom-color: rgba(214, 158, 20, .5); }
.room-scale { background: linear-gradient(180deg, #eafaf3, #d5f3e6); border-color: rgba(56, 199, 162, .4); border-bottom-color: rgba(56, 199, 162, .55); }
.room-scale .room-sign { background: #1e9e77; }
.room-sign {
  font-size: .82rem; font-weight: 900;
  background: var(--t-accent, var(--ink)); color: #fff; border-radius: 8px; padding: 3px 8px;
  display: inline-block; margin-bottom: 6px; transform: translateY(-14px);
  box-shadow: 0 3px 8px rgba(45, 42, 69, .35);
}
.room-bank .room-sign { background: #a8790a; }
.room-deco { display: flex; justify-content: center; gap: 10px; font-size: 1.7rem; margin: -6px 0 6px; }
.room-deco span { transition: transform .15s; }
.room:hover .room-deco span { transform: scale(1.15) rotate(-4deg); }
.room-cost { font-size: .72rem; color: var(--muted); font-weight: 700; }
.room-cost b { color: var(--accent); }

/* --- Flure & Figuren (freigestellte Renderings) --- */
.corridor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .07));
  overflow: visible; pointer-events: none;
}
.floor-ground .corridor { background: linear-gradient(180deg, transparent, rgba(255, 138, 92, .1)); }
.person {
  position: absolute; bottom: 2px; left: 0; font-size: 1.25rem;
  animation-name: walkX; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate;
}
.person.boss { font-size: 1.45rem; filter: drop-shadow(0 0 6px rgba(255, 206, 79, .9)); }
@keyframes walkX { from { left: 2%; } to { left: 90%; } }
.person.walker { bottom: 4px; z-index: 3; pointer-events: auto; cursor: pointer; }
.person.walker:hover img { filter: drop-shadow(0 6px 6px rgba(45, 42, 69, .35)) drop-shadow(0 0 10px rgba(255, 206, 79, .75)); }
.person.walker img {
  height: 64px; display: block;
  filter: drop-shadow(0 6px 6px rgba(45, 42, 69, .35));
  transition: filter .15s ease;
}
.person.walker.talking, .person.walker.talking * { animation-play-state: paused !important; }

/* NPC-Karte: Passant groß, mit Text & Schließen-Button */
.walker-card {
  position: absolute; z-index: 20; width: 300px; max-width: calc(100% - 16px);
  display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .98); border-radius: 16px;
  padding: 14px 16px 14px 12px;
  box-shadow: var(--shadow-lg); border: 2px solid rgba(124, 92, 255, .2);
  animation: popIn .25s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: auto;
}
.walker-card.egg-card {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf2, #fff6d8);
  box-shadow: 0 0 0 4px rgba(255, 206, 79, .3), var(--shadow-lg);
}
.walker-card-fig { flex: 0 0 auto; width: 108px; display: flex; align-items: flex-end; justify-content: center; }
.walker-card-fig img { height: 142px; max-width: 108px; object-fit: contain; filter: drop-shadow(0 7px 8px rgba(45, 42, 69, .3)); }
.walker-card-body { flex: 1; min-width: 0; text-align: left; }
.walker-card-name { font-size: .95rem; margin-bottom: 5px; }
.walker-card-text { font-size: .85rem; line-height: 1.5; color: var(--ink); }
.walker-card-x {
  position: absolute; top: 7px; right: 9px; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(45, 42, 69, .08); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding-bottom: 2px;
  transition: background .12s, transform .12s;
}
.walker-card-x:hover { background: rgba(45, 42, 69, .16); transform: scale(1.1); }

/* 7 Gründer-Karten: letzte mittig */
.founder-card:nth-child(7) { grid-column: 2; }
.walker-flip {
  display: block;
  animation-name: walkerFlip; animation-timing-function: steps(1, end); animation-iteration-count: infinite;
}
/* walkX läuft alternate: Hinweg (Blick nach rechts), Rückweg gespiegelt */
@keyframes walkerFlip { 0%, 49.99% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
.person.walker .walker-flip img { animation: walkBob .38s ease-in-out infinite alternate; }
.sidewalk {
  height: 18px;
  background: linear-gradient(180deg, #ddd7cb, #c2bbab);
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 4px 6px -4px rgba(70, 60, 40, .4);
}

/* --- Statusleiste unten --- */
.statusbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2d2a45, #3d3763); color: #fff;
  border-radius: 16px; padding: 10px 14px; margin-top: 14px; box-shadow: var(--shadow-lg);
}
.sb-chip { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.statusbar .btn-ghost { color: #cfc8f0; }
.ticker { flex: 1; min-width: 160px; overflow: hidden; }
.ticker-text {
  white-space: nowrap; font-size: .85rem; color: #ffe9a8; font-weight: 700;
  animation: tickerMove 18s linear infinite;
}
@keyframes tickerMove { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.pulse { animation: pulseBtn 1.1s ease-in-out infinite; }
@keyframes pulseBtn { 0%,100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .55); } 50% { box-shadow: 0 0 0 10px rgba(124, 92, 255, 0); } }

/* --- Stadt-Hintergrund & Ambient-Animationen --- */
.scene-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 20px; }
.scene-bg-svg { width: 100%; height: 100%; display: block; }
.scene-wrap > .building, #fx-layer { position: relative; z-index: 1; }
.building { padding-top: 18px; }
.city-backdrop { position: fixed; inset: 0; z-index: -1; opacity: .45; pointer-events: none; }
.city-backdrop svg { width: 100%; height: 100%; display: block; }
.cloud.c1 { animation: drift 75s linear infinite; }
.cloud.c2 { animation: drift 100s linear infinite; animation-delay: -30s; }
.cloud.c3 { animation: drift 85s linear infinite; animation-delay: -55s; }
@keyframes drift { from { transform: translateX(-380px); } to { transform: translateX(1520px); } }

.anim-steam { animation: steamUp 2.4s ease-out infinite; }
.anim-steam.s2 { animation-delay: 1.2s; }
@keyframes steamUp { 0% { opacity: .85; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-12px); } }
.anim-blink { animation: blinkA 2.6s infinite; }
@keyframes blinkA { 0%, 86%, 100% { opacity: 1; } 90%, 96% { opacity: .15; } }
.anim-bob { animation: bobA 2.4s ease-in-out infinite alternate; }
@keyframes bobA { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.anim-spin { animation: spinA 3s linear infinite; }
.anim-spin-slow { animation: spinA 8s linear infinite; }
@keyframes spinA { to { transform: rotate(360deg); } }

/* --- Illustrierte Raum-Interieurs --- */
.room-art { margin: -8px 0 4px; }
.room-svg { width: 100%; height: 82px; display: block; }
.roof-prop { width: 52px; height: 46px; transform: translateY(-8px); }

/* --- SVG-Figuren --- */
.person { width: 26px; }
.person .person-svg { width: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(45, 42, 69, .25)); }
.person .legA { animation: legSwing .45s linear infinite alternate; transform-box: fill-box; transform-origin: top center; }
.person .legB { animation: legSwing .45s linear infinite alternate-reverse; transform-box: fill-box; transform-origin: top center; }
@keyframes legSwing { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }

/* --- Porträt-Dialoge (à la Airline Tycoon) --- */
.char-slot { display: contents; }   /* Slot-Wrapper ist layout-neutral; probeChar tauscht den Inhalt live */
.dialog { display: flex; gap: 16px; align-items: flex-start; text-align: left; margin-bottom: 8px; }
.dialog-portrait { flex-shrink: 0; width: 98px; }
.portrait { width: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(80, 60, 160, .3)); }
.dialog-right { flex: 1; min-width: 0; }
.dialog-right h2 { text-align: left; margin-bottom: 8px; }
.bubble {
  background: #f4f1ff; border-radius: 4px 16px 16px 16px; padding: 12px 15px;
  position: relative; line-height: 1.55; font-size: .95rem;
}
.bubble::before {
  content: ''; position: absolute; left: -10px; top: 12px;
  border: 10px solid transparent; border-right-color: #f4f1ff; border-left: 0;
}

/* --- Pitch-Porträts --- */
.pitch-head { position: relative; width: 86px; height: 86px; margin: 0 auto; }
.pitch-head .portrait { width: 100%; height: 100%; }
.pitch-photo {
  width: 86px; height: 86px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 4px 12px rgba(80, 60, 160, .25);
  display: block; background: #efeaff;
}
.pitch-badge { position: absolute; right: -10px; bottom: -2px; font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); z-index: 2; }

/* Mobile: Porträt + Name als Kopfzeile, Sprechblase darunter in VOLLER Breite */
@media (max-width: 640px) {
  .dialog { flex-wrap: wrap; align-items: center; gap: 12px; }
  .dialog-portrait { width: 58px; }
  .dialog-right { display: contents; }              /* h2 + bubble werden direkte Flex-Kinder */
  .dialog-right h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.08rem; }
  .dialog .bubble { flex-basis: 100%; border-radius: 14px; }
  .dialog .bubble::before {                          /* Pfeil zeigt nach oben zum Kopf */
    left: 18px; top: -9px;
    border: 9px solid transparent; border-bottom-color: #f4f1ff; border-top: 0;
  }
}

/* --- Action-Feedback --- */
#fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx {
  position: absolute; transform: translateX(-50%); font-weight: 900; font-size: 1.05rem;
  color: var(--primary-dark); text-shadow: 0 2px 8px #fff, 0 0 3px #fff;
  animation: fxUp 1.5s ease-out forwards; white-space: nowrap;
}
@keyframes fxUp { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -60px; } }

.modal-log { max-height: 320px; text-align: left; }

@media (max-width: 760px) {
  .rooms { grid-template-columns: 1fr 1fr; }
  .shaft { display: none; }
  .hud-chip .hud-label { font-size: .55rem; }
}

/* --- Mobile: HUD kompakt, Spiel bleibt bedienbar --- */
@media (max-width: 640px) {
  .screen { padding: 10px 10px 60px; }
  .hud { padding: 6px 8px; gap: 6px; border-radius: 14px; }
  .hud-brand { font-size: .9rem; padding: 4px 8px; }
  .hud-company { font-size: .74rem; }
  .hud-chip { padding: 4px 8px; gap: 5px; border-radius: 10px; }
  .hud-emoji { font-size: 1rem; }
  .hud-value { font-size: .8rem; }
  .hud-body .bar { min-width: 40px; }
  .topbar-right { gap: 3px; }
  .topbar-right .btn-sm { padding: 5px 7px; font-size: .8rem; }

  /* Tower: Hintergrund-Rendering & dunkles Dach-Band stören auf kleinem Screen */
  .scene-bg { display: none; }
  .building { filter: drop-shadow(0 14px 28px rgba(50, 40, 60, .25)); }
  .roof { background: none; border-bottom: none; padding: 0 12px 6px; }
  .roof::before { display: none; }
}

/* ============================================================
   RAUM-DETAIL: Räume betreten
   ============================================================ */
.room-detail { display: flex; flex-direction: column; gap: 14px; min-height: 96vh; }
.detail-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 8px 14px; box-shadow: var(--shadow);
}
.detail-top h1 { font-size: 1.3rem; flex: 1; }
.center-text { text-align: center; margin: 8px 0; }

.detail-stage {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 44vh;
  background: linear-gradient(180deg, #fbf9ff 60%, #e9e2ff 100%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(124, 92, 255, .12);
}
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.title-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-svg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.stage-svg svg { width: min(94%, 880px); height: 100%; }
.stage-npc {
  position: absolute; left: 26px; bottom: -4px; width: clamp(120px, 17vw, 185px);
  filter: drop-shadow(0 12px 26px rgba(45, 42, 69, .35));
  animation: npcIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes npcIn { from { transform: translateY(34px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.stage-bubble {
  position: absolute; left: calc(clamp(120px, 17vw, 185px) + 48px); top: 22px;
  max-width: min(540px, 58%);
  background: rgba(255, 255, 255, .97); border-radius: 6px 20px 20px 20px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  line-height: 1.55; font-size: .98rem;
  animation: popIn .3s cubic-bezier(.2, 1.4, .4, 1);
}
.stage-bubble::before {
  content: ''; position: absolute; left: -12px; top: 18px;
  border: 12px solid transparent; border-right-color: rgba(255, 255, 255, .97); border-left: 0;
}
.npc-name { font-weight: 900; margin-bottom: 4px; }

.detail-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.stage-fx { left: 50%; top: 42%; font-size: 1.5rem; }

@media (max-width: 760px) {
  .detail-panel { grid-template-columns: 1fr; }
  .stage-bubble { left: 14px; right: 14px; max-width: none; top: 12px; }
  .stage-npc { width: 104px; left: 12px; }
  .detail-stage { min-height: 52vh; }
}

/* ============================================================
   RENDERED TOWER: Foto-Kacheln, Spielfigur, Interaktion
   ============================================================ */
.scene-screen, .room-detail { animation: sceneIn .32s cubic-bezier(.2, 1, .4, 1); }
@keyframes sceneIn { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }

.floors { position: relative; }

/* Raum-Kacheln mit Renderings */
.room.has-photo { padding: 0; min-height: 168px; overflow: hidden; border-width: 0; border-bottom: 5px solid rgba(90, 70, 160, .35); }
.room-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 62%;
  transition: transform .3s ease;
}
.room.has-photo:hover .room-photo { transform: scale(1.05); }
.room-glass {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 28%),
              linear-gradient(0deg, rgba(45, 42, 69, .42) 0%, rgba(45, 42, 69, 0) 34%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35);
  border-radius: 12px;
}
.room.has-photo .room-sign { position: absolute; top: 2px; left: 10px; transform: none; z-index: 2; }
.room.has-photo .room-cost {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px 10px 7px; color: #fff;
  background: linear-gradient(0deg, rgba(45, 42, 69, .78), transparent);
}
.room.has-photo .room-cost b { color: var(--gold); }
.room.has-photo.room-off .room-photo { filter: saturate(.35) brightness(.85); }

/* Spielfigur */
.player-token {
  position: absolute; z-index: 6; width: 56px; left: 8%; top: 0;
  transition: left .5s ease-in-out, top .42s ease-in-out;
  pointer-events: none; text-align: center;
}
.player-token img {
  height: 74px; width: auto; max-width: 60px; object-fit: contain;
  transform: scaleX(var(--dir, 1));
  filter: drop-shadow(0 4px 8px rgba(45, 42, 69, .4));
}
.player-token .token-emoji {
  font-size: 2.1rem; display: inline-block;
  filter: drop-shadow(0 0 8px rgba(255, 206, 79, .95)) drop-shadow(0 3px 5px rgba(45, 42, 69, .35));
}
.token-shadow { width: 34px; height: 7px; margin: -3px auto 0; border-radius: 50%; background: rgba(45, 42, 69, .28); }
.player-token.walking img, .player-token.walking .token-emoji { animation: walkBob .32s ease-in-out infinite alternate; }
@keyframes walkBob { from { transform: translateY(0) scaleX(var(--dir, 1)) rotate(-2deg); } to { transform: translateY(-5px) scaleX(var(--dir, 1)) rotate(2deg); } }

/* NPC-Foto (gerenderte Charaktere) */
.npc-photo {
  width: 100%; display: block; border-radius: 26px;
  border: 4px solid #fff; box-shadow: var(--shadow-lg);
}
.stage-npc { background: none; border: none; padding: 0; cursor: pointer; transition: transform .15s; font-family: inherit; }
.stage-npc:hover { transform: scale(1.04) rotate(-1deg); }

/* Hotspots */
.hotspot {
  position: absolute; z-index: 4; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .38); backdrop-filter: blur(3px);
  font-size: 1.35rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  animation: hotspotPulse 2.2s ease-in-out infinite; transition: transform .15s;
}
.hotspot:hover { transform: scale(1.18); animation-play-state: paused; }
.hotspot.boing { animation: boing .4s; }
@keyframes hotspotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 55% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes boing { 30% { transform: scale(1.35) rotate(-8deg); } 70% { transform: scale(.92) rotate(5deg); } }

/* Gäste / Investoren / Team in der Szene */
.stage-guests {
  position: absolute; right: 16px; bottom: 12px; z-index: 4;
  display: flex; align-items: flex-end;
}
.guest-chip {
  width: 58px; height: 58px; margin-left: -12px; padding: 0;
  border-radius: 50%; border: 3px solid #fff; overflow: hidden;
  background: #f4f1ff; cursor: pointer; box-shadow: 0 4px 12px rgba(45, 42, 69, .3);
  transition: transform .15s; animation: guestBob 2.6s ease-in-out infinite alternate;
}
.guest-chip:nth-child(2n) { animation-delay: -1.2s; }
.guest-chip:hover { transform: translateY(-8px) scale(1.08); z-index: 5; }
.guest-chip svg, .guest-chip img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guest-chip.founder-chip { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 206, 79, .5), 0 4px 12px rgba(45, 42, 69, .3); }
@keyframes guestBob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.guests-empty {
  background: rgba(255, 255, 255, .9); border-radius: 12px; padding: 8px 12px;
  font-size: .8rem; color: var(--muted); font-weight: 700;
}

/* Toast (Szenen-Feedback) */
.toast {
  position: absolute; z-index: 8; left: 50%; bottom: 16px; transform: translateX(-50%);
  max-width: min(560px, 80%); text-align: center;
  background: rgba(255, 255, 255, .97); border-radius: 16px; padding: 12px 18px;
  font-size: .92rem; font-weight: 700; line-height: 1.45;
  box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1), toastOut .4s ease-in 2.7s forwards;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(-50%) translateY(14px); opacity: 0; } }

/* Feinschliff */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 10px rgba(102, 71, 232, .35); }
.btn-gold { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 10px rgba(214, 158, 20, .35); }
.statusbar { background: linear-gradient(135deg, rgba(45, 42, 69, .96), rgba(61, 55, 99, .96)); backdrop-filter: blur(8px); }
/* --- Branchen-Himmel & Quests --- */
.sky-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-quest {
  font-family: inherit; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--gold), #ffb347); color: #5b4300;
  font-size: .85rem; font-weight: 800; padding: 9px 16px; border-radius: 999px;
  max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 10px rgba(214, 158, 20, .45);
  transition: transform .12s;
}
.btn-quest:hover { transform: translateY(-2px); }
.quest-list { text-align: left; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; margin: 12px 0; }
.quest-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: #faf8ff; border-radius: 12px; padding: 9px 12px; font-size: .88rem; line-height: 1.4;
}
.quest-row.active { outline: 2px solid var(--gold); background: #fff8e0; }
.quest-row.done { opacity: .5; }
.quest-state { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   CEO-MODUS: Modus-Wahl, Businessplan-Werkstatt, Monatsbericht
   ============================================================ */
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-btn {
  font-family: inherit; cursor: pointer; text-align: left;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .18); border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
  font-size: .95rem; transition: transform .12s, border-color .12s;
}
.mode-btn span { font-size: .75rem; color: var(--muted); line-height: 1.4; font-weight: 600; }
.mode-btn:hover { transform: translateY(-2px); }
.mode-btn.sel { border-color: var(--primary); background: #efe9ff; box-shadow: var(--shadow); }
.mode-btn[data-mode="ceo"].sel { border-color: #d69e14; background: #fff8e0; }
@media (max-width: 520px) { .mode-row { grid-template-columns: 1fr; } }

.plan-screen { max-width: 860px; margin: 0 auto; }
.plan-progress { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.plan-dot {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid rgba(124, 92, 255, .2); font-size: 1.1rem; opacity: .45;
}
.plan-dot.done { opacity: 1; background: #e2f8f0; border-color: var(--green); }
.plan-dot.now { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 206, 79, .35); transform: scale(1.1); }
.plan-card .choice-col { margin-top: 16px; }
.plan-card .btn-choice { text-align: left; }

.result-pos b { color: #1e9e77; }
.result-neg b { color: #d64f4f; }

/* --- Raum-Easter-Eggs & Entwicklungs-Entscheidung --- */
.egg {
  background: radial-gradient(circle at 35% 30%, #fff7d6, #ffd86b) !important;
  border: 2px solid #e8b422 !important;
  box-shadow: 0 0 0 0 rgba(255, 206, 79, .7), 0 4px 10px rgba(160, 110, 0, .3);
  animation: eggGlow 2s ease-in-out infinite;
}
@keyframes eggGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 206, 79, .65), 0 4px 10px rgba(160, 110, 0, .3); }
  50% { box-shadow: 0 0 0 9px rgba(255, 206, 79, 0), 0 4px 10px rgba(160, 110, 0, .3); }
}
.egg-used {
  filter: grayscale(1); opacity: .55; animation: none;
  box-shadow: none; cursor: default;
}
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.scale-grid { grid-template-columns: repeat(2, 1fr); }
.dev-grid.four { grid-template-columns: repeat(2, 1fr); }
.dev-grid.five { grid-template-columns: repeat(2, 1fr); }
.dev-grid.five .dev-card:last-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .scale-grid, .dev-grid.four, .dev-grid.five { grid-template-columns: 1fr; } }

/* Karriere & Rennen */
.lvl-stars { font-size: .68rem; font-weight: 800; color: #b8860b; }
.train-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #faf8ff; border-radius: 10px; padding: 8px 10px; margin: 6px 0;
  font-size: .82rem; flex-wrap: wrap;
}
.train-btns { display: flex; gap: 6px; align-items: center; }
.quest-row.race-won { background: linear-gradient(90deg, #fff9e6, #fff3c4); outline: 2px solid var(--gold); }
.quest-row.race-lost { opacity: .55; }
.race-bonus-text { color: #b8860b; font-weight: 700; }

/* Rollen-Zähler in der Job-Börse */
.role-card .act-emoji { position: relative; }
.role-count {
  position: absolute; top: -6px; right: -14px;
  background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800;
  border-radius: 99px; padding: 2px 7px; border: 2px solid #fff;
}

/* Impact-Policies (Welt-Kiosk) */
.policy-row { margin: 12px 0; }
.policy-head { font-size: .95rem; margin-bottom: 6px; }
.policy-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.policy-tier {
  font-family: inherit; cursor: pointer; font-size: .78rem; font-weight: 700; line-height: 1.25;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .14); border-radius: 11px;
  padding: 8px 6px; text-align: center; color: var(--ink); transition: transform .1s, border-color .1s;
}
.policy-tier:hover { transform: translateY(-2px); }
.policy-tier.tier-good.sel { border-color: var(--green); background: #e2f8f0; box-shadow: var(--shadow); }
.policy-tier.tier-mid.sel { border-color: var(--muted); background: #f0eef7; box-shadow: var(--shadow); }
.policy-tier.tier-bad.sel { border-color: #d98a3c; background: #fdeede; box-shadow: var(--shadow); }
.mission-card.done { outline: 2px solid var(--green); opacity: .85; }
@media (max-width: 640px) { .policy-tiers { grid-template-columns: 1fr; } }

/* Kampagnen-/Stunt-Report */
.tier-badge {
  display: inline-block; font-weight: 900; font-size: 1.05rem;
  border-radius: 999px; padding: 6px 18px; margin: 6px 0 10px;
}
.tier-viral { background: linear-gradient(135deg, #ffce4f, #ff8a5c); color: #5b2d00; animation: pulseBtn 1.1s ease-in-out infinite; }
.tier-hit { background: #ffe9c4; color: #a05a00; }
.tier-solid { background: #e2f8f0; color: #1e7a5e; }
.tier-flop { background: #f0f0f5; color: #8a86a3; }
.headline-card {
  background: #fff; border: 2px solid rgba(45, 42, 69, .12); border-left: 6px solid var(--primary);
  border-radius: 12px; padding: 12px 14px; margin: 10px 0;
  font-weight: 700; font-style: italic; text-align: left; line-height: 1.45;
  box-shadow: var(--shadow);
}
.dev-card {
  font-family: inherit; cursor: pointer; text-align: center;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .15); border-radius: 14px;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: transform .12s, border-color .12s;
}
.dev-card:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.dev-card:disabled { opacity: .45; cursor: not-allowed; }
.dev-card b { font-size: .92rem; }
.dev-card .act-desc { font-size: .72rem; }
@media (max-width: 700px) { .dev-grid { grid-template-columns: 1fr; } }

/* --- Term Sheets (CEO-Modus) --- */
.term-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.term-box { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.term-box .btn { margin-top: 10px; }
.term-title { font-weight: 900; font-size: 1rem; text-align: center; margin-bottom: 6px; }
.pref-tag {
  font-size: .68rem; font-weight: 800; color: #b3543c;
  background: #ffe3d9; border-radius: 99px; padding: 2px 8px; margin-left: 6px;
}
@media (max-width: 560px) { .term-row { grid-template-columns: 1fr; } }

/* ============================================================
   FEEDBACK-WIDGET
   ============================================================ */
#fb-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(80, 60, 160, .35);
  transition: transform .15s ease;
}
#fb-btn:hover { transform: scale(1.12) rotate(-6deg); }
.fb-overlay { z-index: 150; }
.fb-modal { max-width: 520px; }
.fb-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.fb-type {
  font-family: inherit; cursor: pointer; font-size: .82rem; font-weight: 700;
  background: #faf8ff; border: 2px solid rgba(124, 92, 255, .15); border-radius: 12px;
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink); transition: transform .1s, border-color .1s;
}
.fb-type span { font-size: 1.4rem; }
.fb-type:hover { transform: translateY(-2px); }
.fb-type.sel { border-color: var(--primary); background: #efe9ff; box-shadow: var(--shadow); }
.fb-label { display: block; font-weight: 700; font-size: .9rem; text-align: left; margin: 10px 0 6px; }
#fb-text {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 10px 12px;
  border: 2px solid rgba(124, 92, 255, .25); border-radius: 12px; outline: none; resize: vertical;
}
#fb-text:focus { border-color: var(--primary); }
.fb-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; }
.fb-nuts { display: flex; gap: 2px; }
.fb-nut { font-family: inherit; font-size: 1.3rem; background: none; border: none; cursor: pointer; filter: grayscale(1); opacity: .45; transition: transform .1s; }
.fb-nut:hover { transform: scale(1.2); }
.fb-nut.on { filter: none; opacity: 1; }
#fb-age {
  width: 130px; font-family: inherit; font-size: .85rem; padding: 8px 10px;
  border: 2px solid rgba(124, 92, 255, .2); border-radius: 10px; outline: none;
}
.fb-footer { display: flex; justify-content: space-between; margin-top: 10px; }
@media (max-width: 520px) { .fb-types { grid-template-columns: repeat(2, 1fr); } #fb-btn { width: 44px; height: 44px; font-size: 1.2rem; } }

/* ---------- Konfetti ---------- */
.confetti {
  position: fixed; top: -30px; z-index: 300; pointer-events: none;
  animation: fall 2.6s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(540deg); opacity: .7; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .game-title { font-size: 2.6rem; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .result-row { grid-template-columns: 1fr; }
}
