:root {
  --bg: #17142b;
  --bg2: #1f1b3a;
  --panel: #27224a;
  --panel2: #302a5a;
  --line: #463d80;
  --text: #f1ecff;
  --muted: #a69dcf;
  --gold: #ffcc4d;
  --gold-dark: #c99a1f;
  --good: #6ee7a0;
  --bad: #ff6b7a;
  --tech: #5ec8ff;
  --design: #ff8fd1;
  --trend: #c792ff;
  --shadow: 0 4px 0 #0c0a18;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, #2a2160 0, transparent 45%), radial-gradient(circle at 90% 100%, #1d3a5a 0, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.4;
  min-height: 100vh;
}
button { font-family: inherit; font-size: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--body); font-weight: normal; line-height: 1.5; margin: 0 0 12px; }
h2 { font-size: 14px; color: var(--gold); }
h3 { font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* ---------- Buttons ---------- */
.btn {
  background: var(--panel2);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  box-shadow: var(--shadow);
  transition: transform .05s;
}
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0c0a18; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--gold); color: #2a1f00; border-color: var(--gold-dark); font-weight: 700; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 15px; }
.btn.big { font-family: var(--body); font-size: 13px; padding: 16px 22px; }

/* ---------- Start ---------- */
.start {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 16px;
}
.logo { font-family: var(--body); font-size: clamp(22px, 6vw, 44px); color: var(--gold); text-shadow: 4px 4px 0 #6b3fd1, 8px 8px 0 #0c0a18; margin-bottom: 18px; }
.tagline { color: var(--muted); margin-bottom: 36px; max-width: 460px; }
.start-card { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 24px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.start-card .row { display: flex; flex-direction: column; gap: 12px; }
input[type=text] {
  background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-family: inherit; font-size: 18px; width: 100%;
}
input[type=text]:focus { outline: none; border-color: var(--gold); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 20, 43, .95); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 16px;
}
.studio-name { font-family: var(--body); font-size: 12px; color: var(--gold); }
.stat { display: flex; flex-direction: column; min-width: 70px; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-weight: 700; font-size: 17px; }
.energy { width: 90px; height: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.energy > div { height: 100%; background: var(--good); }
.speed { margin-left: auto; display: flex; gap: 4px; }
.speed .btn { padding: 5px 9px; font-size: 14px; }
.speed .btn.on { background: var(--gold); color: #2a1f00; border-color: var(--gold-dark); }

/* ---------- Layout ---------- */
.tabs { display: flex; gap: 6px; padding: 12px 16px 0; max-width: 1200px; margin: 0 auto; overflow-x: auto; }
.tab { background: transparent; color: var(--muted); border: 2px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; padding: 10px 14px; white-space: nowrap; }
.tab.on { background: var(--panel); color: var(--text); border-color: var(--line); }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.view { background: var(--panel); border: 2px solid var(--line); border-top: none; border-radius: 0 0 10px 10px; padding: 20px; min-height: 360px; }
.newsbox { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 16px; align-self: start; max-height: 70vh; overflow-y: auto; }
.newsbox ul { list-style: none; padding: 0; margin: 0; }
.newsbox li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.newsbox li:last-child { border: none; }
.newsbox .when { display: block; font-size: 12px; color: var(--muted); }
.newsbox li.good { color: var(--good); }
.newsbox li.bad { color: var(--bad); }
.newsbox li.trend { color: var(--trend); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .newsbox { max-height: 280px; }
  .speed { margin-left: 0; }
}

/* ---------- Projekt ---------- */
.empty { text-align: center; padding: 40px 10px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 24px; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.proj-title { font-family: var(--body); font-size: 15px; color: var(--text); margin-bottom: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; font-size: 14px; color: var(--muted); }
.tag.trend { color: var(--trend); border-color: var(--trend); }
.bar { height: 18px; background: var(--bg2); border: 2px solid var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.bar > div { height: 100%; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--gold-dark) 10px 12px); transition: width .3s; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.pbox { background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.pbox .num { font-family: var(--body); font-size: 16px; margin-top: 6px; }
.pbox.design .num { color: var(--design); }
.pbox.tech .num { color: var(--tech); }
.pbox.bugs .num { color: var(--bad); }
.pbox.hype .num { color: var(--trend); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hint { background: var(--bg2); border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 4px; margin: 12px 0; font-size: 15px; color: var(--muted); }

/* ---------- Listen ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; padding: 6px 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 8px; border-bottom: 1px dashed var(--line); }
.table-wrap { overflow-x: auto; }
.score { font-family: var(--body); font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card .title { font-weight: 700; }
.card .desc { color: var(--muted); font-size: 15px; flex: 1; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cost { font-family: var(--body); font-size: 11px; color: var(--tech); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 6, 18, .78); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 3px solid var(--gold); border-radius: 12px; padding: 22px; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; box-shadow: 0 8px 0 #0c0a18; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 15px; }
.chip.on { background: var(--gold); color: #2a1f00; border-color: var(--gold-dark); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip small { opacity: .75; }
.namerow { display: flex; gap: 8px; }
.namerow input { flex: 1; }
.knowhow { font-size: 15px; margin-top: 6px; min-height: 20px; }
.slider-row { margin: 14px 0; }
.slider-row .top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.slider-row .pct { font-family: var(--body); font-size: 11px; color: var(--gold); }
.slider-row .knew { font-size: 13px; margin-left: 6px; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.review { background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 12px; text-align: center; }
.review .mag { font-size: 13px; color: var(--muted); }
.review .s { font-family: var(--body); font-size: 26px; margin: 8px 0; }
.review .q { font-size: 14px; font-style: italic; }
.avg { text-align: center; font-family: var(--body); font-size: 13px; margin-bottom: 12px; }
.notes { list-style: none; padding: 0; margin: 0 0 16px; }
.notes li { padding: 4px 0 4px 18px; position: relative; color: var(--muted); }
.notes li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 480px) { .reviews { grid-template-columns: 1fr 1fr; } .review .s { font-size: 20px; } }

.flash { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--bad); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.flash.ok { background: var(--good); color: #0b2a18; }
.flash.hidden { display: none; }

@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.review { animation: pop .35s both; }
.review:nth-child(2) { animation-delay: .3s; }
.review:nth-child(3) { animation-delay: .6s; }
.review:nth-child(4) { animation-delay: .9s; }

/* ---------- Assets ---------- */
.ico { width: 26px; height: 26px; border-radius: 4px; vertical-align: middle; margin-right: 6px; image-rendering: pixelated; }
.chip { display: inline-flex; align-items: center; gap: 5px; }
.chip .ico { width: 24px; height: 24px; margin: -2px 0 -2px -6px; border-radius: 50%; }
.card .title { display: flex; align-items: center; }
.card-img { width: calc(100% + 28px); margin: -14px -14px 4px; height: 90px; object-fit: cover; border-radius: 6px 6px 0 0; }
.proj-head { align-items: center; }
.cover-sm { width: 72px; height: 99px; border-radius: 6px; border: 2px solid var(--line); object-fit: cover; }
.cover-xs { width: 38px; height: 52px; border-radius: 4px; border: 1px solid var(--line); object-fit: cover; flex: none; }
.cover-md { width: 110px; height: 151px; border-radius: 8px; border: 2px solid var(--gold); object-fit: cover; box-shadow: var(--shadow); }
.gcell { display: flex; gap: 10px; align-items: center; }
.review-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.review-head h2 { margin: 0; }
@media (max-width: 480px) { .cover-sm { width: 54px; height: 74px; } }


/* ---------- Lebendige Szene ---------- */
.maincol { min-width: 0; }
.scene {
  position: relative; height: 230px; overflow: hidden;
  background-size: cover; background-position: center 60%;
  border: 2px solid var(--line); border-bottom: 2px solid var(--line); border-radius: 0 10px 0 0;
  animation: pan 40s ease-in-out infinite alternate;
}
@keyframes pan { from { background-position: 35% 60%; } to { background-position: 65% 60%; } }
.scene::after { /* Lichtstimmung */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(23,20,43,0) 55%, rgba(23,20,43,.55) 100%);
}
.scene-label { position: absolute; left: 12px; top: 10px; z-index: 3; font-family: var(--body); font-size: 10px; background: rgba(23,20,43,.82); padding: 6px 8px; border-radius: 4px; color: var(--gold); }
.scene-status { position: absolute; right: 12px; top: 10px; z-index: 3; font-size: 14px; background: rgba(23,20,43,.82); padding: 4px 10px; border-radius: 20px; }
.worker { position: absolute; }
.worker img { height: 100%; image-rendering: pixelated; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.worker .zzz { position: absolute; top: -4px; right: 10%; font-size: 18px; display: none; animation: breathe 2s infinite; }
.worker.tired .zzz { display: block; }
.worker.tired img { filter: grayscale(.4) drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.dev .dev-b { display: none; }
.dev .glow { position: absolute; left: -6%; top: 6%; width: 55%; height: 45%; border-radius: 50%; background: radial-gradient(circle, rgba(110,231,255,.45), transparent 70%); opacity: 0; pointer-events: none; }
.scene[data-mode=work] .worker img, .scene[data-mode=bugfix] .worker img { animation: type .5s steps(2) infinite; }
.scene[data-mode=crunch] .worker img { animation: type .22s steps(2) infinite; }
.scene[data-mode=idle] .worker img { animation: breathe 3s ease-in-out infinite; }
.worker.staff:nth-of-type(odd) img { animation-delay: -.25s !important; }
.scene[data-mode=work] .dev .glow, .scene[data-mode=crunch] .dev .glow, .scene[data-mode=bugfix] .dev .glow { animation: flicker 1.6s infinite; }
.scene[data-mode=crunch] { box-shadow: inset 0 0 60px rgba(255,107,122,.45); }
.scene[data-mode=crunch] .scene-status { color: var(--bad); }
.scene.cheer .dev .dev-a { display: none; }
.scene.cheer .dev .dev-b { display: block; animation: jump .45s ease-in-out infinite alternate; }
.scene.cheer .worker.staff img { animation: jump .45s ease-in-out infinite alternate; }
@keyframes type { 0% { transform: translateY(0); } 100% { transform: translateY(-2px); } }
@keyframes breathe { 50% { transform: translateY(-3px); } }
@keyframes flicker { 0%, 100% { opacity: .85; } 40% { opacity: .55; } 45% { opacity: .9; } 70% { opacity: .65; } }
@keyframes jump { to { transform: translateY(-12px); } }
.cat { position: absolute; right: 2%; bottom: 4px; height: 30%; z-index: 4; image-rendering: pixelated; animation: catnap 4s ease-in-out infinite; transform-origin: bottom center; cursor: pointer; }
@keyframes catnap { 50% { transform: scaleY(.96); } }
.fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bubble {
  position: absolute; bottom: 58%; font-family: var(--body); font-size: 12px; padding: 5px 8px; border-radius: 12px;
  background: rgba(23,20,43,.9); border: 2px solid currentColor; animation: rise 1.6s ease-out forwards; white-space: nowrap;
}
.bubble.design { color: var(--design); }
.bubble.tech { color: var(--tech); }
.bubble.rp { color: #9fe3ff; font-size: 10px; }
.bubble.bug { color: var(--bad); font-family: var(--body); font-size: 18px; padding: 2px 6px; }
.bubble.fix { color: var(--good); font-size: 10px; }
@keyframes rise { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 15% { transform: translateY(0) scale(1.1); opacity: 1; } 30% { transform: scale(1); } 100% { transform: translateY(-90px); opacity: 0; } }
@media (max-width: 860px) { .scene { border-radius: 10px 10px 0 0; height: 190px; } }

#floaters { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.floater { position: absolute; font-weight: 700; font-size: 15px; animation: floatup 1.3s ease-out forwards; text-shadow: 0 2px 0 #0c0a18; }
.floater.money { color: var(--good); }
@keyframes floatup { from { transform: translateY(0); opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; display: none; }

/* Phasen-Balken */
.bar2 { display: flex; gap: 6px; margin: 10px 0 4px; }
.bar2 .seg { flex: 1; position: relative; height: 24px; background: var(--bg2); border: 2px solid var(--line); border-radius: 5px; overflow: hidden; }
.bar2 .seg > div { height: 100%; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--gold-dark) 10px 12px); transition: width .4s; }
.bar2 .seg.on { border-color: var(--gold); }
.bar2 .seg.done > div { background: var(--good); }
.bar2 .seg span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text); text-shadow: 0 1px 2px #000; }

/* Live-Verkäufe */
.live { display: grid; gap: 8px; }
.live-item { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.live-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.live-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-info span { font-size: 14px; }
.spark { display: block; margin-top: 3px; }

/* Ereignisse */
.event { text-align: center; }
.event-icon { font-size: 56px; animation: wobble 1s ease-in-out infinite alternate; display: inline-block; margin-bottom: 6px; }
@keyframes wobble { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }
.event p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.event-opts { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }

/* Review-Enthüllung */
.reveal-late { animation: fadein .5s 1.25s both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.review .s { animation: stamp .35s both; animation-delay: inherit; }
@keyframes stamp { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* allgemeine Lebendigkeit */
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 #0c0a18, 0 0 0 6px rgba(255,204,77,.18); } }
.card { transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.chip { transition: transform .1s; }
.chip:hover:not(:disabled) { transform: translateY(-2px); }
.newsbox li:first-child { animation: fadein .5s both; }
.modal-box { animation: popin .25s ease-out; }
@keyframes popin { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
body::after { /* dezente Röhrenmonitor-Linien */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---------- Team ---------- */
.team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.team-head .actions { margin-top: 0; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.member { display: flex; gap: 12px; background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 12px; text-align: left; color: var(--text); }
.member.me { border-color: var(--gold); }
.portrait { width: 74px; height: 74px; flex: none; border-radius: 8px; background-color: var(--panel2); background-size: 160%; background-position: 50% 8%; background-repeat: no-repeat; image-rendering: pixelated; border: 2px solid var(--line); }
.mbody { flex: 1; min-width: 0; }
.mname { font-weight: 700; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.srow { display: grid; grid-template-columns: 64px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 3px 0; }
.srow b { color: var(--text); text-align: right; }
.sbar { height: 9px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.sbar > div { height: 100%; }
.sbar.design > div { background: var(--design); }
.sbar.tech > div { background: var(--tech); }
.sbar.energy > div { background: var(--good); }
.mfoot { font-size: 13px; margin-top: 6px; }
.member .actions { margin-top: 8px; gap: 6px; }
.member .btn.small { font-size: 13px; padding: 4px 8px; }
.empty-seat { flex-direction: column; align-items: center; justify-content: center; border-style: dashed; color: var(--muted); min-height: 120px; cursor: pointer; font-family: inherit; font-size: 16px; }
.empty-seat span { font-size: 30px; }
.empty-seat small { color: var(--gold); }
.empty-seat:hover { border-color: var(--gold); color: var(--text); }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.cand { background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.cand .srow { width: 100%; grid-template-columns: 56px 1fr 22px; }
.cand .portrait { width: 90px; height: 90px; }
@media (max-width: 600px) { .cands { grid-template-columns: 1fr; } }
.card-img.dim { filter: grayscale(.5) brightness(.7); }

/* ---------- Erfolge ---------- */
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; opacity: .55; }
.ach .ai { grid-row: span 2; font-size: 26px; text-align: center; }
.ach b { font-size: 14px; }
.ach .muted { font-size: 12px; }
.ach.got { opacity: 1; border-color: var(--gold); }
#toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 3px solid var(--gold); border-radius: 12px; padding: 10px 18px; box-shadow: var(--shadow); animation: toastin .4s ease-out, fadein .4s reverse 3.8s forwards; }
.toast .ai { font-size: 30px; }
.toast small { display: block; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
@keyframes toastin { from { transform: translateY(-30px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* =====================================================================
   Layout 2.0 – Seitenleiste, Aufgaben-Banner, Navi, Dock (orange Akzente)
   ===================================================================== */
:root {
  --accent: #ff8a2a;
  --accent-dark: #b85a10;
  --accent-light: #ffb46b;
  --cream: #fff3d6;
  --cream-line: #e9cf98;
  --cream-text: #4a3214;
  --bg: #1a1828;
  --panel: #252238;
  --panel2: #2f2b47;
  --line: #3f3a5e;
}
body { background: #15131f; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 24px 24px; }
h2 { font-family: var(--body); font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: .01em; }
h3 { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Buttons im Stil der Vorlage: kräftiges Orange mit dunkler Kante */
.btn.primary, .btn.cta { background: var(--accent); color: #fff; border: 2px solid var(--accent-dark); box-shadow: 0 4px 0 var(--accent-dark); font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.primary:hover, .btn.cta:hover { background: #ff9b47; border-color: var(--accent-dark); }
.btn.primary:active, .btn.cta:active { box-shadow: 0 1px 0 var(--accent-dark); }
.btn.cta { font-size: 19px; padding: 12px 22px; }
.btn.wide { min-width: 240px; }
.chip.on { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.speed .btn.on { background: var(--accent); border-color: var(--accent-dark); color: #fff; }
.pulse { animation: pulse2 1.8s ease-in-out infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 4px 0 var(--accent-dark), 0 0 0 7px rgba(255,138,42,.22); } }

/* Topbar */
.topbar { gap: 10px 22px; padding: 8px 16px; background: #1e1b2d; border-bottom: 3px solid #0e0c16; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--line); background-color: #3a345a; background-size: 170%; background-position: 62% 8%; position: relative; image-rendering: pixelated; }
.avatar .lv { position: absolute; right: -6px; bottom: -6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; min-width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent-dark); }
.studio-name { font-family: var(--body); font-weight: 700; font-size: 20px; color: var(--text); }
.xprow { display: flex; align-items: center; gap: 8px; }
.xpbar { position: relative; width: 170px; height: 18px; background: #12101c; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; }
.xpbar > div { height: 100%; background: linear-gradient(90deg, #3cc6b0, #6ee7c8); }
.xpbar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.xpinfo { font-size: 13px; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; }
.moneypill { margin-left: 4px; background: #fff; color: #1a1726; font-weight: 700; font-size: 20px; padding: 6px 14px; border-radius: 6px; border: 3px solid #0e0c16; box-shadow: 0 3px 0 #0e0c16; }
.moneypill.neg { color: var(--bad); }
.speed { margin-left: auto; }

/* Grundaufbau: Seitenleiste | Mitte | Navi */
.app-body { display: grid; grid-template-columns: 96px minmax(0, 1fr) 340px; gap: 14px; padding: 14px; max-width: 1500px; margin: 0 auto; align-items: start; }
.center { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.sidenav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 6px; background: #1e1b2d; border: 2px solid #0e0c16; border-radius: 10px; padding: 8px 6px; }
.navbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: 2px solid transparent; border-radius: 8px; padding: 8px 4px; color: var(--muted); font-family: var(--body); }
.navbtn .ni { position: relative; font-size: 28px; line-height: 1; }
.navbtn .nn { font-size: 14px; font-weight: 700; color: var(--text); }
.navbtn .nl { font-size: 12px; color: var(--muted); }
.navbtn:hover { background: var(--panel2); }
.navbtn.on { background: var(--panel2); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-dark); }
.navbtn.locked .nn { color: var(--muted); }
.badge { position: absolute; top: -6px; right: -14px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px; background: #3cc6b0; color: #0b1f1a; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #0e0c16; font-family: var(--body); }
.badge.hot { background: var(--accent); color: #fff; }
.quest-btn { border: 2px dashed var(--accent); }

/* Aufgaben-Banner (Creme) */
.questcard { position: relative; background: var(--cream); color: var(--cream-text); border: 3px solid #0e0c16; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head cta" "steps cta" "foot later"; gap: 8px 16px; box-shadow: 0 4px 0 #0e0c16; animation: popin .3s ease-out; }
.qhead { grid-area: head; display: flex; justify-content: space-between; gap: 10px; }
.qtitle { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a3561a; font-size: 15px; }
.qcount { font-size: 14px; }
.qsteps { grid-area: steps; display: flex; gap: 4px; }
.qstep { flex: 1; text-align: center; font-size: 14px; font-weight: 700; padding: 6px 4px; background: #efe3c4; border: 2px solid var(--cream-line); border-radius: 3px; color: #8d7a58; }
.qstep.done { background: #ffc46b; border-color: #d78f2f; color: var(--cream-text); }
.qstep.now { background: #fff; border-color: var(--accent); color: var(--cream-text); }
.qfoot { grid-area: foot; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.qreward { color: #a3561a; font-weight: 700; }
.questcard .cta { grid-area: cta; align-self: stretch; min-width: 200px; }
.qlater { grid-area: later; background: none; border: none; color: #2f6fb3; text-decoration: underline; font-family: inherit; font-size: 15px; justify-self: end; padding: 0; }

/* Szene + Ansicht in der Mitte */
.scene { border-radius: 10px 10px 0 0; border: 3px solid #0e0c16; border-bottom: none; }
.view { border: 3px solid #0e0c16; border-top: 2px solid var(--line); border-radius: 0 0 10px 10px; background: var(--panel); }

/* Projekt-Dock */
.dock { position: sticky; bottom: 10px; margin-top: 14px; z-index: 20; }
.dockcard { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #1e1b2d; border: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 0 #0e0c16, 0 10px 30px rgba(0,0,0,.4); }
.dinfo { display: flex; align-items: center; gap: 10px; min-width: 200px; flex: 1; }
.dinfo b { display: block; font-size: 17px; }
.dinfo .muted { font-size: 14px; }
.dicon { font-size: 30px; }
.dboxes { display: flex; gap: 3px; flex: 2; min-width: 180px; }
.dboxes i { flex: 1; height: 16px; background: #2f2b47; border: 1px solid #0e0c16; border-radius: 2px; }
.dboxes i.f { background: var(--accent); }

/* Navi rechts */
.navi { position: sticky; top: 80px; background: #1f2440; border: 3px solid #0e0c16; border-radius: 10px; padding: 0 0 10px; max-height: calc(100vh - 100px); overflow-y: auto; }
.navi-head { background: #171b33; padding: 8px 12px; font-weight: 700; letter-spacing: .12em; color: #ffd27a; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #0e0c16; }
.navi-head .dots { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, #39406a 0 2px, transparent 2px 5px); }
.navi-sec { padding: 12px 12px 6px; font-weight: 700; letter-spacing: .12em; font-size: 13px; color: #9fb0ff; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.duechip { background: #ffe9a8; color: #3a2a08; border: 2px solid #0e0c16; border-radius: 4px; padding: 5px 9px; font-family: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 2px 0 #0e0c16; }
.duechip:hover { background: #fff1c7; }
.duechip.warn { background: #ffb3b3; }
.unlocks { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.unl { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; background: #262c4d; border: 2px solid #0e0c16; border-radius: 6px; padding: 6px 8px; opacity: .85; }
.unl .ui { font-size: 22px; text-align: center; filter: grayscale(.6); }
.unl .ut { display: flex; flex-direction: column; min-width: 0; }
.unl .ut b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unl .ut .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvtag { background: #12152a; border: 1px solid #4a5390; color: #cfd6ff; font-size: 12px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ftabs { display: flex; gap: 4px; padding: 0 12px 8px; }
.ftab { flex: 1; background: #2a3158; color: #cfd6ff; border: 2px solid #0e0c16; border-radius: 4px; padding: 5px 2px; font-family: inherit; font-size: 13px; font-weight: 700; }
.ftab.on { background: #3cc6b0; color: #0b1f1a; }
.newslist { list-style: none; margin: 0; padding: 0 12px; }
.newslist li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px dashed #39406a; font-size: 15px; }
.newslist li:first-child { animation: fadein .5s both; }
.newslist .nic { font-size: 16px; }
.newslist .when { display: block; font-size: 12px; color: var(--muted); }
.newslist li.good { color: var(--good); }
.newslist li.bad { color: var(--bad); }
.newslist li.trend { color: var(--trend); }

/* alte Elemente ausblenden */
.tabs, .newsbox { display: none; }

/* Tablet: Navi unter die Mitte */
@media (max-width: 1180px) {
  .app-body { grid-template-columns: 90px minmax(0, 1fr); }
  .navi { grid-column: 2; position: static; max-height: none; }
}
/* Handy: Navigation unten, alles einspaltig */
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; padding: 10px 10px 90px; }
  .navi { grid-column: auto; }
  .sidenav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 60; flex-direction: row; justify-content: space-around; border-radius: 12px 12px 0 0; padding: 6px 4px 8px; }
  .navbtn { padding: 4px 2px; flex: 1; }
  .navbtn .ni { font-size: 22px; }
  .navbtn .nn { font-size: 12px; }
  .navbtn .nl { display: none; }
  .badge { right: -10px; }
  .questcard { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "foot" "cta" "later"; }
  .qstep { font-size: 12px; }
  .dock { bottom: 74px; }
  .dockcard .btn.wide { min-width: 0; width: 100%; }
  .stats { display: none; }
  .xpbar { width: 130px; }
  .moneypill { font-size: 17px; padding: 4px 10px; }
  .speed { margin-left: 0; }
}

/* Meldungen rechts oben statt mittig über dem Aufgaben-Banner */
#toasts { left: auto; right: 18px; transform: none; top: 76px; align-items: flex-end; }
@media (max-width: 760px) { #toasts { right: 10px; left: 10px; top: 64px; align-items: stretch; } }

/* Account & Rangliste */
.btn.acct { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sdot { width: 9px; height: 9px; border-radius: 50%; background: #666; display: inline-block; }
.sdot.ok { background: var(--good); }
.sdot.sync { background: var(--gold); animation: breathe 1s infinite; }
.sdot.error { background: var(--bad); }
.acct-start { margin-top: 14px; width: 100%; }
input[type=password] { background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 6px; padding: 10px 12px; font-family: inherit; font-size: 18px; width: 100%; }
input[type=password]:focus { outline: none; border-color: var(--accent); }
.rtabs { padding: 0; margin: 10px 0 14px; flex-wrap: wrap; }
.rtabs .ftab { flex: 1 1 120px; }
.table.rank td { padding: 10px 8px; }
.table.rank .rk { font-size: 20px; width: 44px; text-align: center; }
.table.rank tr.mine td { background: rgba(255,138,42,.14); }
@media (max-width: 760px) { .btn.acct { padding: 5px 8px; font-size: 14px; } }

/* Markt, Game Jam, Profile */
.plink { background: none; border: none; padding: 0; color: #8fb4ff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline dotted; }
.jamcard { background: linear-gradient(135deg, #3a2457, #2a2050); border: 3px solid var(--accent); border-radius: 12px; padding: 16px; box-shadow: 0 5px 0 #0e0c16; }
.jamhead { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.jamtag { font-weight: 700; letter-spacing: .14em; color: var(--accent-light); }
.jamtheme { display: flex; align-items: center; gap: 8px; font-size: 24px; margin-top: 8px; flex-wrap: wrap; }
.jamtheme .plus { color: var(--accent); }
.jamico { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; border: 2px solid #0e0c16; }
.jamtop { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.jamtop li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 6px 10px; }
.jamtop li.mine { outline: 2px solid var(--accent); }
.jamtop .rk { font-size: 18px; text-align: center; }
.jamtop .jn { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.jamtop .jn .plink { font-size: 13px; font-weight: 400; }
.satgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; margin-bottom: 6px; }
.sat { display: grid; grid-template-columns: 130px 1fr 26px; align-items: center; gap: 8px; font-size: 14px; }
.sat span { display: flex; align-items: center; }
.sat b { text-align: right; }
.charts { display: grid; gap: 6px; }
.chartrow { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.chartrow .ci { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chartrow .ci .muted { font-size: 13px; }
.prof .profhead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar.big { width: 72px; height: 72px; }
.profstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.profstats div { background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; text-align: center; }
.profstats .muted { font-size: 12px; }
@media (max-width: 600px) { .profstats { grid-template-columns: 1fr 1fr; } }

/* Live-Welt */
.livepill { font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 12px; background: #3a1d24; color: var(--bad); border: 2px solid #0e0c16; align-self: center; white-space: nowrap; }
.livepill.on { background: #143a2a; color: var(--good); }
.pnbtn { position: relative; }
.pnbtn .badge { top: -8px; right: -10px; }
.autorow { display: flex; gap: 10px; align-items: flex-start; background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 10px; margin: 8px 0; cursor: pointer; }
.autorow input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.autorow span { display: flex; flex-direction: column; }
select { background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 6px; padding: 9px 10px; font-family: inherit; font-size: 16px; width: 100%; }
.patches { display: grid; gap: 8px; margin: 10px 0; }
.patch { background: var(--bg2); border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.patch summary { cursor: pointer; }
.patch .notes { margin: 10px 0 0; }
@media (max-width: 760px) { .speed .btn { padding: 4px 7px; font-size: 13px; } .livepill { font-size: 11px; } }

/* Lesbarkeit: runde, klare Schrift für Text; Pixel-Schrift nur für Akzente */
body { font-family: var(--body); font-size: 16px; line-height: 1.5; letter-spacing: .005em; }
button, input, select { font-family: var(--body); }
.btn { font-weight: 700; }
h2, .studio-name, .proj-title, .qtitle, .navi-head, .jamtheme b, .review-head h2, .logo + .tagline { font-family: var(--body); }
h2 { font-weight: 700; letter-spacing: .02em; }
.studio-name { font-weight: 700; }
.proj-title { font-family: var(--body); font-size: 22px; font-weight: 700; }
.score, .review .s, .pbox .num, .avg, .cost, .moneypill, .xpbar span, .lvtag, .badge { font-family: var(--body); font-weight: 700; }
.pbox .num { font-size: 24px; }
.btn.big, .btn.cta { font-family: var(--body); font-weight: 800; letter-spacing: .01em; }
.btn.big { font-size: 17px; }
.navbtn .nn { font-size: 13px; font-weight: 800; }
.stat .label, .navi-sec, h3, .field > label, .table th { font-weight: 800; letter-spacing: .08em; }
.stat .value { font-weight: 800; }
.newslist li, .notes li, .desc, .muted { line-height: 1.45; }
.qstep { font-weight: 700; }
.chip { font-weight: 700; }
.tag { font-weight: 600; }
.scene-label { font-family: var(--body); font-size: 14px; font-weight: 700; }
.bubble { font-family: var(--body); font-weight: 700; font-size: 15px; }
.bubble.rp, .bubble.fix { font-size: 12px; }

/* 1.1: Messe, Engine */
.expocard { background: linear-gradient(135deg, #1f3550, #22284a); border: 3px solid #3f5f8f; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 5px 0 #0e0c16; }
.expocard.open { border-color: #5ec8ff; animation: pulse3 2s ease-in-out infinite; }
@keyframes pulse3 { 50% { box-shadow: 0 5px 0 #0e0c16, 0 0 0 6px rgba(94,200,255,.18); } }
.expolist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.exh { background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px 9px; font-size: 14px; }
.eico { font-size: 22px; margin-right: 6px; }

/* Eine Schrift für alles: Nunito. Hierarchie über Größe und Stärke statt über Schriftarten. */
h1, h2, h3 { line-height: 1.3; }
h2 { font-size: 22px; font-weight: 800; }
.logo { font-weight: 900; letter-spacing: .02em; font-size: clamp(30px, 8vw, 56px); }
.studio-name { font-size: 18px; font-weight: 800; color: var(--text); }
.proj-title { font-size: 22px; font-weight: 800; }
.pbox .num { font-size: 26px; font-weight: 800; }
.score { font-size: 16px; font-weight: 800; }
.review .s { font-size: 34px; font-weight: 900; }
.avg { font-size: 17px; font-weight: 800; }
.cost { font-size: 14px; font-weight: 800; }
.slider-row .pct { font-size: 14px; font-weight: 800; }
.btn.big { font-size: 17px; font-weight: 800; }
.qtitle { font-weight: 800; }
.navi-head { font-weight: 800; letter-spacing: .14em; }
.jamtheme b { font-weight: 800; }
.scene-label { font-size: 13px; font-weight: 800; }
.bubble { font-size: 15px; font-weight: 800; }

/* Admin */
.table.admin td { vertical-align: middle; }
.table.admin tr.banned td { opacity: .55; }
.aacts { white-space: nowrap; }
.aacts .btn.small { padding: 3px 7px; font-size: 14px; margin: 1px; }

/* Hilfe & Tutorial */
.help { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: #8fb4ff; font-size: 12px; font-weight: 800; padding: 0; margin-left: 4px; vertical-align: middle; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0; }
.help:hover { background: #8fb4ff; color: #12152a; }
.helppop { position: fixed; z-index: 120; background: #fff8e6; color: #3a2a08; border: 3px solid #0e0c16; border-radius: 10px; padding: 12px 14px; box-shadow: 0 6px 0 #0e0c16, 0 10px 30px rgba(0,0,0,.4); font-size: 15px; animation: popin .15s ease-out; }
.helppop p { margin: 6px 0 8px; line-height: 1.45; }
.helppop .plink { color: #2f6fb3; }
.lex { display: grid; gap: 6px; margin: 10px 0; max-height: 60vh; overflow-y: auto; }
.lex p { margin: 8px 0 2px; color: var(--muted); line-height: 1.5; }
#coach { position: fixed; z-index: 110; width: min(420px, calc(100% - 24px)); background: #fff8e6; color: #3a2a08; border: 3px solid var(--accent); border-radius: 12px; padding: 12px 16px 14px; box-shadow: 0 6px 0 #0e0c16, 0 14px 40px rgba(0,0,0,.5); animation: popin .25s ease-out; }
#coach.corner { right: 16px; top: 78px; }
#coach.side { right: 16px; bottom: 16px; }
#coach.bottom { left: 50%; bottom: 130px; transform: translateX(-50%); }
#coach b { font-size: 18px; }
#coach p { margin: 6px 0 10px; line-height: 1.5; }
#coach .coachhead { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #a3561a; margin-bottom: 4px; }
#coach .plink { color: #2f6fb3; font-size: 13px; }
.coach-target { position: relative; z-index: 105; outline: 4px solid var(--accent) !important; outline-offset: 3px; border-radius: 10px; animation: coachpulse 1.4s ease-in-out infinite; }
@keyframes coachpulse { 50% { outline-color: #ffd27a; } }
#modal-box.coach-target { outline-offset: 0; }
#coach.inmodal { position: static; width: auto; margin: -4px 0 14px; box-shadow: none; padding: 10px 12px 12px; }
#coach.inmodal p { margin: 4px 0 8px; font-size: 15px; }
#modal-box.coach-target:has(#coach.inmodal) { outline: none; animation: none; }
body.tut-on #quest { display: none; }
/* am Handy: Tutorial immer oben, nie über der Projekt-Leiste oder den Knöpfen */
@media (max-width: 760px) { #coach.corner, #coach.side, #coach.bottom { left: 10px; right: 10px; width: auto; transform: none; top: 60px; bottom: auto; max-height: 42vh; overflow-y: auto; } #coach p { font-size: 15px; } }

/* Deals */
.dealbox { background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.dealbox.hot { border-color: var(--accent); background: linear-gradient(135deg, #3a2a1a, #2a2240); }
.dealbox h3 { margin-bottom: 8px; }
.dealrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.dealrow:last-child { border-bottom: none; }
.dact { display: flex; gap: 6px; align-items: center; }
.dealform, .pubform { margin-top: 10px; display: grid; gap: 8px; }
.pubform { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; }
.eur { align-self: center; color: var(--muted); font-weight: 700; }
input[type=number] { background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 6px; padding: 8px 10px; font-family: inherit; font-size: 16px; width: 100%; min-width: 0; }
@media (max-width: 760px) { .pubform { grid-template-columns: 1fr 1fr; } .pubform select { grid-column: span 2; } }

/* Saisons */
.seasonbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(90deg, #3a2a1a, #2a2240); border: 2px solid var(--accent); border-radius: 10px; padding: 8px 12px; margin: 4px 0 10px; font-weight: 700; }
.stag { background: var(--accent); color: #fff; border-radius: 6px; padding: 2px 8px; font-weight: 900; letter-spacing: .08em; font-size: 13px; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.award { display: flex; gap: 10px; background: var(--bg2); border: 2px solid var(--gold); border-radius: 10px; padding: 10px 12px; animation: popin .4s both; text-align: left; }
.award .ai { font-size: 32px; }
.award small { display: block; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-bottom: 2px; }
.hallseason { margin-bottom: 18px; }
.trophies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.trophy { background: #3a2a1a; border: 2px solid var(--gold); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 14px; }
.trophy small { color: var(--muted); }
.ceremony { text-align: center; }
.cer-head { font-size: 60px; animation: wobble 1s ease-in-out infinite alternate; display: inline-block; }

/* Handy: untere Leiste wischbar, alle Bereiche erreichbar */
@media (max-width: 760px) {
  .sidenav { overflow-x: auto; justify-content: flex-start; gap: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sidenav::-webkit-scrollbar { display: none; }
  .navbtn { flex: 0 0 66px; }
  .sidenav::after { content: ''; flex: 0 0 4px; }
}

/* ---------- 1.6: Startseite ---------- */
.start.landing { justify-content: flex-start; padding: 0 0 40px; }
.hero { width: 100%; min-height: 560px; background-size: cover; background-position: center 30%; position: relative; display: flex; align-items: center; justify-content: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,43,.55) 0%, rgba(23,20,43,.75) 55%, var(--bg) 100%); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 30px; width: 100%; }
.hero .tagline { color: #e6dcff; margin-bottom: 26px; max-width: 560px; text-shadow: 0 2px 6px #000a; }
.livestats { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 18px; color: #e6dcff; font-size: 15px; text-shadow: 0 2px 4px #000a; min-height: 22px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1040px; width: 100%; padding: 26px 16px 0; text-align: left; }
.feature { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; display: block; border-bottom: 2px solid var(--line); background: var(--bg2); }
.feature > div { padding: 12px 16px 14px; }
.feature h3 { margin: 0 0 4px; font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--text); }
.feature p { margin: 0; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 1040px; padding: 22px 16px 0; }
.facts span { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.legal { margin-top: 18px; font-size: 14px; color: var(--muted); }
.legal a { color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .hero { min-height: 520px; } }

/* ---------- 1.6: Konsole, Kooperation, Account ---------- */
.consolecard { display: flex; gap: 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; box-shadow: var(--shadow); }
.consolecard.dev { border-style: dashed; }
.con-img { width: 96px; height: 96px; border-radius: 10px; image-rendering: pixelated; flex: 0 0 auto; }
.con-img.dim { opacity: .6; }
.con-body { flex: 1; min-width: 0; }
.con-title { font-weight: 900; font-size: 19px; margin-bottom: 2px; }
.consolecard .profstats { margin: 10px 0; }
.consolecard .namerow label { white-space: nowrap; font-size: 14px; }
.consoleform { background: var(--bg2); border: 2px dashed var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.cgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.cgrid input, .cgrid select { font-size: 16px; }
.hint.coop { border-color: var(--trend); }
.danger-zone { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 700; }
@media (max-width: 600px) { .consolecard { flex-direction: column; } .con-img { width: 72px; height: 72px; } .consolecard .namerow { flex-wrap: wrap; } }

/* ---------- 1.7 ---------- */
.errlist { display: flex; flex-direction: column; gap: 6px; }
.errrow { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.errrow summary { cursor: pointer; font-size: 15px; }
.errstack { font-family: var(--body); white-space: pre-wrap; word-break: break-all; font-size: 12px; background: var(--bg); padding: 8px; border-radius: 6px; max-height: 240px; overflow: auto; }
.tag.bad { color: var(--bad); border-color: var(--bad); }
.testbanner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 9999; background: #d9480f; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .08em; padding: 2px 12px; border-radius: 8px 8px 0 0; pointer-events: none; }
.treff { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.treff-chat { display: flex; flex-direction: column; min-height: 520px; margin: 0; }
.treff-side .dealbox:first-child { margin-top: 0; }
.chatlist { flex: 1; height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; margin: 8px 0; }
.cmsg { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 92%; }
.cmsg.mine { align-self: flex-end; border-color: var(--trend); }
.cmsg.hid { opacity: .45; border-style: dashed; }
.chead { font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ctext { font-size: 16px; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.cflag { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.cflag:hover { color: var(--bad); }
.chatform { display: flex; gap: 8px; }
.chatform input { flex: 1; min-width: 0; }
.chat-rules { font-size: 12px; margin: 6px 0 0; }
.chat-empty { text-align: center; margin-top: 40px; }
.chal { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.chal.done { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.chal.claimed { opacity: .6; }
.chal-t { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; margin-bottom: 4px; }
.chal .btn { margin-top: 6px; }
.allyhead { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.allytag { display: inline-grid; place-items: center; min-width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, #6b3fd1, #ff8a2a); font-weight: 900; font-size: 18px; color: #fff; padding: 0 6px; }
.allytag.sm { min-width: 0; height: auto; font-size: 12px; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.treff h4 { margin: 14px 0 6px; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .treff { grid-template-columns: 1fr; } .chatlist { height: 360px; } .treff-chat { min-height: 0; } }
.dlcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dlcopt { display: flex; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.dlcopt > div { flex: 1; min-width: 0; }
.specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 12px 0; }
.specopt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-family: inherit; font-size: 16px; }
.specopt:hover { border-color: var(--gold); }
.specopt .si { font-size: 26px; }
.tag.spec { border-color: var(--gold); color: var(--gold); }
.jamcard.goty { border-color: var(--gold); }
.chartrow.mine { border-color: var(--good); }
.dlcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dlcopt { display: flex; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.dlcopt > div { flex: 1; min-width: 0; }
.specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 12px 0; }
.specopt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-family: inherit; font-size: 16px; }
.specopt:hover { border-color: var(--gold); }
.specopt .si { font-size: 26px; }
.tag.spec { border-color: var(--gold); color: var(--gold); }
.jamcard.goty { border-color: var(--gold); }
.chartrow.mine { border-color: var(--good); }
.acc-sec { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.acc-sec summary { cursor: pointer; font-weight: 700; }
.reccode { font-family: var(--body); font-size: clamp(17px, 5.4vw, 30px); white-space: nowrap; font-weight: 800; letter-spacing: .04em; text-align: center; background: var(--bg2); border: 2px dashed var(--gold); color: var(--gold); border-radius: 12px; padding: 16px 8px; margin: 14px 0; user-select: all; overflow-x: auto; }
/* ---------- 1.8 ---------- */
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 8px 0; }
.subcard { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.subcard.ipo { margin-top: 10px; border-color: var(--good); }
.ipoprice { font-size: 26px; font-weight: 900; }
.ipoprice span { font-size: 15px; font-weight: 700; margin-left: 6px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 10px 0; }
.statgrid h4, .funnel + h4 { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.statbars { width: 100%; height: 110px; color: var(--muted); background: var(--bg2); border-radius: 8px; padding: 4px; }
.funnel { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.fstep { display: grid; grid-template-columns: 150px 1fr 50px 50px; gap: 8px; align-items: center; font-size: 14px; }
#invite-link { font-size: 14px; }
/* ---------- 1.9 ---------- */
.scene .decor { position: absolute; z-index: 1; transform: translateX(-50%); image-rendering: auto; pointer-events: auto; filter: drop-shadow(0 4px 2px rgba(0,0,0,.35)); }
.decorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.decoritem { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
.decoritem img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.decoritem .di { display: flex; flex-direction: column; gap: 3px; font-size: 14px; min-width: 0; }
.decoritem.own { border-color: var(--good); }
.decoritem.locked img { opacity: .4; filter: grayscale(1); }
.sbar.mood > div { background: #ffb3e6; }
.sbar.bad > div { background: var(--bad); }
.wish { display: flex; gap: 10px; background: var(--bg2); border: 2px solid var(--trend); border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.wish.urgent { border-color: var(--bad); }
.wish .wi { font-size: 24px; }
.rivalform { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 10px 0; }
.rivalform .namerow { margin-top: 6px; flex-wrap: wrap; }
.rivalform select { width: auto; flex: 1; min-width: 120px; }
.rteam { max-height: 280px; overflow-y: auto; }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 6px 0; }
details.more[open] > summary { margin-bottom: 8px; }
