:root {
  --bg: #0b0d12;
  --screen: #11141b;
  --card: #1a1f29;
  --card-2: #222835;
  --line: #2c3342;
  --text: #eef1f6;
  --muted: #8d97a8;
  --accent: #f97316;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #eab308;
  --blue: #3b82f6;
  --violet: #a855f7;
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; justify-content: center; align-items: center; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

.phone {
  width: 100%; height: 100dvh; max-width: 430px; background: var(--screen);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
@media (min-width: 600px) {
  .phone { height: min(900px, 96dvh); border-radius: 44px; border: 10px solid #000; box-shadow: 0 30px 80px #0008, 0 0 0 2px #333; }
}

/* Statusleiste */
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 6px; font-size: 12px; color: var(--muted); }
.statusbar b { color: var(--text); }
.role { padding: 2px 8px; border-radius: 99px; font-weight: 700; font-size: 11px; }
.role.gov { background: #16a34a33; color: #4ade80; }
.role.opp { background: #ef444433; color: #f87171; }
.role.jun { background: #3b82f633; color: #60a5fa; }

.content { flex: 1; overflow-y: auto; padding: 4px 14px 14px; scrollbar-width: thin; }
.apptitle { font-size: 22px; font-weight: 800; margin: 6px 2px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.apptitle small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Dock */
.dock { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: #0d1016; border-top: 1px solid var(--line); }
.dock button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); padding: 4px 0; border-radius: 12px; position: relative; }
.dock button .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--card-2); }
.dock button.on { color: var(--text); }
.dock button.on .ic { background: var(--accent); }
.dock .badge { position: absolute; top: 0; right: 14%; background: var(--bad); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }

/* Karten & Kacheln */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.grid2 .card { margin: 0; }
.kpi .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .val { font-size: 24px; font-weight: 800; margin-top: 2px; }
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--warn); }

.meter { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.row + .row { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }

.stats5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.stats5 .card { margin: 0; padding: 8px 4px; text-align: center; }
.stats5 .val { font-size: 17px; font-weight: 800; }
.stats5 .lbl { font-size: 10px; color: var(--muted); }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.stats4 .card { margin: 0; padding: 8px; text-align: center; }
.stats4 .val { font-size: 17px; font-weight: 800; }
.stats4 .lbl { font-size: 10px; color: var(--muted); }

/* Wählergruppen */
.grp { display: grid; grid-template-columns: 96px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.grp + .grp { margin-top: 7px; }
.grp .bar { position: relative; height: 16px; background: var(--card-2); border-radius: 6px; overflow: hidden; }
.grp .bar i { position: absolute; inset: 0 auto 0 0; background: #f9731655; }
.grp .bar b { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 6px; }
.grp .share { font-size: 10px; color: var(--muted); display: block; }

/* Aktionskarten */
.action { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.action:not(:disabled):hover { border-color: var(--accent); }
.action:disabled { opacity: .45; }
.action .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.action .d { font-size: 12px; color: var(--muted); margin-top: 4px; }
.action .why { font-size: 11px; color: var(--warn); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { font-size: 11px; background: var(--card-2); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.chip.p { color: #4ade80; } .chip.n { color: #f87171; } .chip.r { color: var(--warn); }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.btn { background: var(--accent); border: 0; color: #111; font-weight: 800; border-radius: 14px; padding: 13px 16px; width: 100%; font-size: 15px; }
.btn.ghost { background: var(--card-2); color: var(--text); }
.btn.small { padding: 8px 10px; font-size: 12px; width: auto; border-radius: 10px; }
.btn:disabled { opacity: .4; }
.endbar { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(transparent, var(--screen) 30%); }

/* Chirper */
.post { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.post .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--card-2); }
.post .who { font-size: 13px; } .post .who span { color: var(--muted); font-size: 12px; }
.post .txt { font-size: 14px; margin-top: 2px; line-height: 1.35; }
.post.news .av { background: #3b82f6; } .post.party .av { background: var(--accent); color: #111; } .post.system .av { background: #6b7280; } .post.bank .av { background: #b91c1c; }

/* Overlay (Ereignis, Wahl, Ende) */
.overlay { position: absolute; inset: 0; background: #000b; backdrop-filter: blur(6px); display: flex; align-items: flex-end; z-index: 10; }
.sheet { background: var(--screen); width: 100%; max-height: 92%; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet .src { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.sheet h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.2; }
.sheet p { color: #c8cfdb; line-height: 1.45; font-size: 14px; }
.option { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; }
.option:hover:not(:disabled) { border-color: var(--accent); }
.option .l { font-weight: 700; } .option .x { font-size: 12px; color: var(--muted); margin-top: 3px; }

.report li { font-size: 13px; margin: 6px 0; line-height: 1.35; }
.report { padding-left: 18px; }

.results .r { display: grid; grid-template-columns: 44px 1fr 48px; gap: 8px; align-items: center; font-size: 13px; margin-top: 6px; }
.results .r .b { height: 18px; border-radius: 5px; }
.results .r.me { font-weight: 800; }

/* Koalitions-Tinder */
.swipe { position: relative; height: 290px; margin: 12px 0; touch-action: pan-y; }
.swipe .sc { position: absolute; inset: 0; background: linear-gradient(160deg, #262d3b, #161a22); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; user-select: none; transition: transform .2s; }
.swipe .sc.drag { transition: none; }
.swipe .logos { display: flex; gap: 6px; flex-wrap: wrap; }
.swipe .logo { padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.swipe .demand { font-size: 19px; font-weight: 800; line-height: 1.25; }
.swipe .stamp { position: absolute; top: 20px; font-size: 26px; font-weight: 900; border: 3px solid; border-radius: 10px; padding: 2px 10px; opacity: 0; transform: rotate(-12deg); }
.swipe .stamp.yes { left: 18px; color: var(--good); } .swipe .stamp.no { right: 18px; color: var(--bad); transform: rotate(12deg); }
.swipebtns { display: flex; justify-content: center; gap: 30px; }
.swipebtns button { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-size: 26px; }

/* Start & Ende */
.hero { text-align: center; padding: 26px 8px 8px; }
.hero .logo { font-size: 48px; }
.hero h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.arch { display: block; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 8px; }
.arch.sel { border-color: var(--accent); background: #f973161a; }
.arch .n { font-weight: 800; } .arch .tl { font-size: 12px; color: var(--accent); font-style: italic; } .arch .ds { font-size: 12px; color: var(--muted); margin-top: 4px; }
input.name { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); font: inherit; margin-bottom: 12px; }
.ending .big { font-size: 56px; text-align: center; }
.ending h2 { text-align: center; }
.profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.profile .card { text-align: center; margin: 0; }
.profile .val { font-size: 20px; font-weight: 800; }
.stars { color: var(--warn); letter-spacing: 1px; }
.spark { width: 100%; height: 70px; display: block; }
.rival { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.rival .nm { font-weight: 700; font-size: 14px; }
.rival .rl { font-size: 11px; color: var(--muted); }
.rival .acts { display: flex; gap: 6px; grid-column: 1 / -1; }
.gone { opacity: .5; font-size: 12px; }

/* Spielerführung */
.help { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); font-size: 12px; font-weight: 800; margin-left: 6px; padding: 0; }
.tip { background: #3b82f61f; border: 1px solid #3b82f655; color: #cfe0ff; border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
.link { background: none; border: 0; color: #93c5fd; text-decoration: underline; font-size: 12px; padding: 0; margin-left: 4px; }
.alarm { display: block; width: 100%; text-align: left; background: #ef44442a; border: 1px solid var(--bad); color: #fecaca; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
h3.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 2px 8px; }
.goal.blocked { opacity: .55; }
.danger { border-left: 4px solid var(--good); }
.danger.warn { border-left-color: var(--warn); }
.danger.crit { border-left-color: var(--bad); background: #ef444414; }
.danger .lvl { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--good); }
.danger.warn .lvl { color: var(--warn); } .danger.crit .lvl { color: var(--bad); }

/* Wahlprogramm */
.promise { display: block; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.promise.on { border-color: var(--accent); background: #f973161a; }
.promise:disabled { opacity: .4; }
.promise .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.promise .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.partners { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 6px; align-items: center; flex-wrap: wrap; }
.pchip { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 2px; }
.sticky { position: sticky; top: -18px; z-index: 2; box-shadow: 0 6px 16px #0008; }

/* Verhandlung */
.nego .row { flex-wrap: wrap; }
.stance.support { color: #4ade80; } .stance.veto { color: #f87171; } .stance.neutral { color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg button { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button small { font-weight: 500; color: var(--muted); font-size: 10px; text-align: center; }
.seg button.on { background: var(--accent); color: #111; border-color: var(--accent); }
.seg button.on small { color: #3b1d06; }
.endbar.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.action.vertrag { border-color: #f9731688; background: linear-gradient(135deg, #f9731614, var(--card)); }

/* Einführung, Punkte, Hitliste */
.intro .dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.intro .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.intro .dots i.on { background: var(--accent); }
.scorebox { text-align: center; background: var(--card); border: 1px solid var(--accent); border-radius: 16px; padding: 10px; margin: 10px 0; }
.scorebox .score { font-size: 34px; font-weight: 900; color: var(--accent); }
ol.hit { padding-left: 22px; }
ol.hit li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ol.hit li b { display: inline-block; min-width: 70px; color: var(--accent); }
ol.hit li span { display: inline-block; vertical-align: top; font-size: 13px; }
ol.hit li small { color: var(--muted); }
ol.hit li.me { background: #f973161a; }

/* Runde 3: Karten mit Details, Aktionspunkte-Leiste, Menü, Ergebnis */
.action { cursor: default; }
.action.off { opacity: .55; }
.option { cursor: default; }
.option.off { opacity: .5; }
.cardfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.details { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
table.diff { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
table.diff td { padding: 4px 4px; border-bottom: 1px solid var(--line); }
table.diff td:nth-child(2), table.diff td:nth-child(4) { text-align: right; white-space: nowrap; }
table.diff td:nth-child(3) { color: var(--muted); width: 14px; text-align: center; }
.goaltags { font-size: 11px; color: #c4b5fd; margin-top: 6px; }
.warn { color: var(--warn); }
.card.warn { border-color: var(--warn); }

.apbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #151923; border-top: 1px solid var(--line); }
.apbar .apinfo { flex: 1; min-width: 0; }
.apbar .dots { display: flex; gap: 5px; margin-bottom: 3px; }
.apbar .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.apbar .dots i.on { background: var(--accent); }
.apbar .btn.small { white-space: nowrap; }
.apbar.done { background: #f973161a; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #f9731640; } }

.rolebanner { border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.4; margin-bottom: 10px; border: 1px solid var(--line); }
.rolebanner.opp { background: #ef444414; border-color: #ef444455; }
.rolebanner.gov { background: #16a34a14; border-color: #16a34a55; }
.rolebanner.jun { background: #3b82f614; border-color: #3b82f655; }

.popbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin: 10px 0 4px; }
.popbar i { display: grid; place-items: center; font-style: normal; font-size: 13px; }
.eco { display: grid; grid-template-columns: 1.2fr 1.3fr 64px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.eco.head { border-top: 0; padding: 0 0 2px; font-size: 11px; }
.eco small { display: block; font-size: 10px; color: var(--muted); }
.eco .meter { margin-top: 0; }
.eco .num { text-align: right; font-weight: 800; }

.menuitem { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; font-size: 14px; }
.menuitem.danger { border-color: #ef444466; color: #fca5a5; }
.overlay.light { background: #0007; }
.sheet.result { max-height: 70%; }

/* Wahlabend */
.election .sheet { position: relative; overflow-x: hidden; }
.bigshare { text-align: center; margin: 6px 0; }
.bigshare span { display: block; font-size: 54px; font-weight: 900; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.bigshare small { color: var(--muted); }
.pollcmp { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.results .track { background: var(--card-2); border-radius: 5px; height: 18px; overflow: hidden; }
.results .track .b { height: 100%; width: 0; border-radius: 5px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.election.go .results .track .b, .election.done .results .track .b { width: var(--w); }
.election.done .results .track .b { transition: none; }
.results .r.me { background: #f973161f; border-radius: 6px; }
.seats { margin-top: 10px; }
.hemi { width: 100%; display: block; }
.hemi circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.election.go .hemi circle { animation: pop .25s ease-out forwards; }
.election.done .hemi circle { opacity: 1; animation: none; }
.hemi circle.me { stroke: #fff; stroke-width: .8; }
.hemi .maj { fill: var(--muted); font-size: 7px; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.verdict { text-align: center; font-size: 20px; font-weight: 900; margin: 14px 0; padding: 12px; border-radius: 14px; opacity: 0; }
.verdict.win { background: #16a34a26; color: #4ade80; }
.verdict.lose { background: #6b728026; color: #d1d5db; }
.verdict .small { font-weight: 500; font-size: 12px; margin-top: 4px; }
.election.go .verdict { animation: reveal .5s ease-out 4.4s forwards; }
.election.done .verdict { opacity: 1; animation: none; }
@keyframes reveal { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; }
.election.go .confetti i { animation-name: fall; animation-timing-function: linear; animation-fill-mode: forwards; }
.election.done .confetti { display: none; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(900px) rotate(720deg); } }

/* Runde 4: Führungsteam, Gegnerplan, Chirper */
.charcard { display: block; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
button.charcard.on { border-color: var(--accent); background: #f973161a; }
button.charcard:disabled { opacity: .45; }
.ch-head { display: flex; align-items: center; gap: 10px; }
.ch-head .tag { margin-left: auto; }
.ch-emoji { font-size: 26px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--card-2); border-radius: 12px; flex: none; }
.charcard .nm { font-weight: 800; font-size: 14px; }
.charcard .rl { font-size: 11px; color: var(--muted); }
.charcard .bio { margin-top: 6px; font-style: italic; }
.ch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin-top: 8px; }
.ch-themes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; color: #cbd5e1; }
.pips { color: var(--accent); letter-spacing: 1px; font-size: 10px; }
.teamstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.teamstrip .tm { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.teamstrip .tm span { font-size: 20px; }
.teamstrip .tm small { font-size: 10px; font-weight: 700; }
.teamstrip .tm i { font-style: normal; font-size: 9px; color: var(--good); }
.teamstrip .tm.busy { opacity: .55; }
.teamstrip .tm.busy i { color: var(--muted); }
.plan { border-left: 4px solid var(--warn); }
.plan.hits { border-left-color: var(--bad); background: #ef444412; }
.plan.fails { border-left-color: var(--good); }
.member { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-top: 8px; }
.member:hover:not(:disabled) { border-color: var(--accent); }
.member:disabled { opacity: .4; }
.member .mid { flex: 1; display: flex; flex-direction: column; }
.member .mid small { color: var(--muted); font-size: 11px; }
.member .mult { font-size: 20px; }
.compose { border-color: #3b82f655; }
.tweet { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.tweet .tone { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #93c5fd; font-weight: 700; }
.tweet .txt { font-size: 14px; margin-top: 2px; }
.empty { margin: 0 2px 8px; }

/* Staatskasse */
.budget .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.budget .val { font-size: 26px; font-weight: 800; margin: 2px 0 4px; }
.budget .small + .small { margin-top: 2px; }
.budget.warn { border-color: var(--warn); }
.budget.crit { border-color: var(--bad); background: #ef444414; }
.budget .row.total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.budget .details .row + .row { margin-top: 5px; }

/* Runde 5: Stadtkarte */
.city { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); }
.city .place, .city .district { cursor: pointer; }
.city .place:hover, .city .district:hover { filter: brightness(1.15); }
.city .lbl { fill: #f1f5f9; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #0f172a; stroke-width: 3px; }
.city .lbl.big { font-size: 12px; }
.city .lbl.sub { font-size: 8px; font-weight: 500; fill: #cbd5e1; }
.city .badge-t { fill: #fff; font-size: 9px; font-weight: 800; }
.city .bubble { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.city .car { animation: drive 9s linear infinite; }
.city .car.c2 { animation-duration: 13s; animation-direction: reverse; }
@keyframes drive { from { transform: translateX(-20px); } to { transform: translateX(380px); } }
.city .flag { animation: wave 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes wave { 50% { transform: scaleX(.8) skewY(4deg); } }
.city .fire { animation: flicker .5s ease-in-out infinite alternate; }
@keyframes flicker { to { opacity: .55; transform: translateY(-2px); } }
.city .blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.city .wave { animation: flow 4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.cityhud { display: flex; justify-content: space-between; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.cityplan { display: block; width: 100%; text-align: left; background: #ef44441f; border: 1px solid #ef444466; color: #fecaca; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.grid3 .card { margin: 0; text-align: center; padding: 10px 6px; }
.grid3 .val { font-size: 20px; font-weight: 800; }
.moodbig { font-size: 26px; }
.tour { border-color: #f9731688; }

/* Minispiele */
.mgbox { min-height: 340px; position: relative; user-select: none; }
.mg-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.mg-timer { height: 6px; background: var(--card-2); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.mg-timer i { display: block; height: 100%; background: var(--accent); }
.mg-q { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.mg-opt { display: block; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; font-size: 15px; }
.mg-opt.ok { border-color: var(--good); background: #16a34a33; }
.mg-opt.bad { border-color: var(--bad); background: #ef444433; }
.mg-word { font-size: 30px; font-weight: 900; text-align: center; margin: 40px 0 18px; min-height: 40px; }
.mg-word.pop { animation: popin .25s ease-out; }
.mg-word.hit { color: var(--good); }
.mg-word.miss { color: var(--bad); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.mg-crowd { text-align: center; font-size: 28px; letter-spacing: 4px; margin-bottom: 26px; }
.mg-big { display: block; width: 100%; background: var(--accent); color: #111; border: 0; border-radius: 18px; padding: 22px; font-size: 22px; font-weight: 900; }
.mg-big:active { transform: scale(.97); }
.mg-golf { position: relative; height: 46px; background: linear-gradient(90deg, #7f1d1d, #a16207, #7f1d1d); border-radius: 12px; margin: 50px 0 16px; overflow: hidden; }
.mg-golf .zone { position: absolute; top: 0; bottom: 0; background: #22c55e; }
.mg-golf .needle { position: absolute; top: -4px; bottom: -4px; width: 4px; background: #fff; box-shadow: 0 0 8px #fff; margin-left: -2px; }
.mg-msg { text-align: center; min-height: 40px; margin-bottom: 16px; }
.mg-arena { position: relative; height: 320px; background: linear-gradient(#1e293b, #0f172a); border-radius: 14px; overflow: hidden; }
.mg-sign { position: absolute; top: -40px; width: 30%; padding: 10px 4px; background: #fef9c3; color: #111; font-weight: 800; font-size: 12px; border: 3px solid #a16207; border-radius: 6px; animation-name: signfall; animation-timing-function: linear; animation-fill-mode: forwards; }
.mg-sign.ok { background: #86efac; border-color: #16a34a; }
.mg-sign.bad { background: #fca5a5; border-color: #dc2626; }
@keyframes signfall { to { top: 330px; } }

/* Runde 6: Titelseite „Die Tägliche Empörung“ */
.overlay.paperbg { align-items: center; justify-content: center; padding: 12px; background: #000c; }
.paper { background: #f4efe3; color: #1c1917; width: 100%; max-height: 94%; overflow-y: auto; border-radius: 6px; padding: 16px 16px 18px; box-shadow: 0 20px 60px #000a; font-family: 'Source Serif 4', Georgia, serif; animation: paperin .45s cubic-bezier(.2, .9, .3, 1.2); background-image: radial-gradient(#0000000a 1px, transparent 1px); background-size: 3px 3px; }
@keyframes paperin { from { transform: rotate(-8deg) scale(.6); opacity: 0; } }
.masthead { font-family: 'UnifrakturMaguntia', 'Old English Text MT', serif; font-size: 34px; text-align: center; line-height: 1; letter-spacing: .5px; }
.dateline { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border-top: 2px solid #1c1917; border-bottom: 1px solid #1c1917; padding: 3px 0; margin: 8px 0 10px; }
.headline { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 27px; line-height: 1.08; text-transform: uppercase; letter-spacing: -.01em; }
.lead { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; margin: 10px 0; }
.photo { height: 84px; background: #d6d3d1; border: 1px solid #a8a29e; display: grid; place-items: center; font-size: 44px; filter: grayscale(1) contrast(1.2); }
.subline { font-style: italic; font-size: 14px; line-height: 1.35; margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 108px; gap: 12px; border-top: 1px solid #1c1917; padding-top: 8px; }
.stories article { border-bottom: 1px dotted #78716c; padding-bottom: 6px; margin-bottom: 6px; }
.stories h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 14px; line-height: 1.2; margin: 0 0 3px; }
.stories p { font-size: 12px; line-height: 1.35; margin: 0; }
.paper aside .box { border: 1px solid #1c1917; padding: 6px; margin-bottom: 6px; text-align: center; }
.paper .kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 2px; }
.paper .pollnum { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 900; }
.paper .up { color: #15803d; font-size: 12px; font-weight: 700; } .paper .down { color: #b91c1c; font-size: 12px; font-weight: 700; }
.paper .tiny { font-size: 10px; line-height: 1.3; }
.paper .classified { text-align: left; font-style: italic; }
.paper .moodrow { display: flex; justify-content: space-between; font-size: 14px; }
.paperlink { background: none; border: 0; color: #1c1917; text-decoration: underline; font-family: inherit; font-size: 13px; padding: 8px 0; }
.paperreport { background: #e7e1d3; padding: 8px 8px 8px 22px; border-radius: 4px; }
.paperreport li { font-size: 12px; font-family: system-ui, sans-serif; }
.paper .btn { margin-top: 8px; }

/* Erfolge und Freischaltungen */
.ach { opacity: .6; } .ach.got { opacity: 1; border-color: #eab30888; }
.perks { display: flex; flex-wrap: wrap; gap: 6px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; font-size: 12px; }
.perk.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.perk:disabled { opacity: .45; }
.arch.locked { opacity: .5; }
.unlocks { background: linear-gradient(135deg, #eab30822, #f9731622); border: 1px solid #eab308; border-radius: 16px; padding: 10px 12px; margin: 10px 0; animation: reveal .6s ease-out; }
.unlock { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.unlock > span { font-size: 26px; }
.paper { overflow-x: hidden; }
.cols { grid-template-columns: minmax(0, 1fr) 96px; }
.paper .kicker { font-size: 8px; letter-spacing: .04em; overflow-wrap: anywhere; }
.dateline { flex-wrap: wrap; gap: 2px 8px; }

/* Porträts */
.ch-portrait { width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 2px 6px #0006; }
.tm-portrait { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 1px 4px #0006; }
.rv-portrait { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.rv-head { display: flex; gap: 10px; align-items: center; }
.teamstrip .tm.busy .tm-portrait { filter: grayscale(.8); }
.member .ch-portrait { width: 44px; height: 44px; }
.city .pill text { fill: #f8fafc; font-size: 8.5px; font-weight: 700; }
.city .badge text { fill: #fff; font-size: 8.5px; font-weight: 800; }
.city .win { animation: winflick 7s ease-in-out infinite; }
@keyframes winflick { 50% { opacity: .75; } }
.city .car.c3 { animation: driveV 11s linear infinite; }
@keyframes driveV { from { transform: translateY(-20px); } to { transform: translateY(580px); } }
.city .tourdot { animation: pulsedot 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsedot { 50% { transform: scale(1.18); } }
.city .pct { fill: #0f172a; font-size: 8px; font-weight: 800; }

/* Online-Hitliste, Tages-Herausforderung */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 10px; }
.tabs button { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 2px; font-size: 12px; font-weight: 700; }
.tabs button.on { background: var(--accent); color: #111; border-color: var(--accent); }
.daily { border-color: #3b82f688; background: linear-gradient(135deg, #3b82f61a, var(--card)); margin-top: 10px; }
.online { border-color: #3b82f688; margin-top: 10px; }
.online a, .legal a { color: #93c5fd; }
input.nick { margin: 0; flex: 1; padding: 9px 10px; }
.legal { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 6px; }

/* ------------------------------------------------------------------ Desktop-Ansicht */
.side { display: none; }
@media (min-width: 1100px) {
  body { align-items: stretch; }
  .phone {
    max-width: 1440px; width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none;
    display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; grid-template-rows: auto 1fr auto;
    grid-template-areas: "status status status" "dock content side" "ap content side";
  }
  .statusbar { grid-area: status; padding: 14px 24px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .content { grid-area: content; padding: 18px 28px 28px; }
  .content > * { max-width: 980px; margin-left: auto; margin-right: auto; }
  .dock { grid-area: dock; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-top: 0; border-right: 1px solid var(--line); background: #0d1016; align-self: stretch; }
  .dock button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14px; padding: 6px 10px; }
  .dock button .ic { width: 36px; height: 36px; font-size: 18px; }
  .dock button.on { background: var(--card); }
  .dock .badge { position: static; margin-left: auto; }
  .apbar { grid-area: ap; flex-direction: column; align-items: stretch; border-right: 1px solid var(--line); border-top: 1px solid var(--line); background: #0d1016; padding: 14px 12px; }
  .apbar .btn.small { padding: 12px; font-size: 14px; }
  .side { grid-area: side; display: block; overflow-y: auto; padding: 16px; border-left: 1px solid var(--line); background: #0f1219; }
  .sidehead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
  .skpi { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
  .moods { display: flex; justify-content: space-between; font-size: 18px; margin: 10px 0; }
  .spost { font-size: 12px; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid var(--line); color: #cbd5e1; }
  .spost b { color: var(--text); }

  /* Karten in zwei Spalten */
  .content > .action, .content > .charcard, .content > .card.rival { max-width: none; }
  .content { display: block; }
  .content:has(.action) > .action, .content:has(.card.rival) > .card.rival { display: inline-block; vertical-align: top; width: calc(50% - 8px); margin-right: 12px; }
  .content .action:nth-of-type(2n) { margin-right: 0; }
  .city { max-width: 720px; margin: 0 auto; }
  .grid2 { grid-template-columns: repeat(4, 1fr); }

  /* Dialoge als zentrierte Fenster */
  .overlay { align-items: center; justify-content: center; }
  .sheet { max-width: 620px; max-height: 88vh; border-radius: 22px; border: 1px solid var(--line); }
  .paper { max-width: 720px; }
  .headline { font-size: 38px; }
  .cols { grid-template-columns: minmax(0, 1fr) 150px; }
  .masthead { font-size: 48px; }
}
