/* ============================================================
   METROPOL-VARIETÉ · Berlin 1928
   Art déco: Schwarz, Gold, Champagner, Samtrot.
   ============================================================ */
:root {
  --ink: #0b0a08;
  --night: #13110d;
  --night-2: #1b1813;
  --night-3: #25211a;
  --line: rgba(216, 181, 106, .28);
  --line-strong: rgba(216, 181, 106, .6);
  --gold: #d8b56a;
  --gold-hi: #f4dc9b;
  --gold-lo: #8f6d2e;
  --champagne: #efe3c4;
  --cream: #f5ecd6;
  --paper: #efe4c8;
  --paper-ink: #2a2118;
  --wine: #6d1622;
  --red: #b3242f;
  --red-hi: #e0414c;
  --emerald: #2c6b5d;
  --muted: #a99c80;
  --text: #ece2c9;
  --radius: 4px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gold-grad: linear-gradient(135deg, #8f6d2e 0%, #f4dc9b 28%, #c99d4a 50%, #f8e6b0 72%, #8f6d2e 100%);
  --deco: "Limelight", "Poiret One", serif;
  --thin: "Poiret One", "Josefin Sans", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", "Helvetica Neue", sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --script: "Pinyon Script", cursive;
  --fraktur: "UnifrakturMaguntia", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--ink); }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(216,181,106,.14), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(109,22,34,.22), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
#grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1000; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-hi); }
img { max-width: 100%; display: block; }
::selection { background: rgba(216,181,106,.35); }

/* ---------------------------------------------------- Rahmen */
.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; padding: calc(var(--safe-t) + 68px) 16px calc(var(--safe-b) + 96px); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: linear-gradient(180deg, rgba(11,10,8,.97) 60%, rgba(11,10,8,.85));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-family: var(--deco); font-weight: 400; font-size: 20px; letter-spacing: .14em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: -2px; }
.topbar .spacer { flex: 1; }
.chip-act { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-strong); padding: 5px 9px 3px; border-radius: 2px; white-space: nowrap; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--gold); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { background: var(--gold); color: var(--ink); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: linear-gradient(0deg, rgba(11,10,8,.98) 70%, rgba(11,10,8,.88));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(var(--safe-b) + 6px);
}
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--gold-hi); }
.tab.on::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; background: var(--gold-grad); }
.tab .dot { position: absolute; top: 4px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 10px var(--red-hi); }

/* ---------------------------------------------------- Typo */
h1, h2, h3 { font-weight: 400; margin: 0; }
.h-deco { font-family: var(--deco); letter-spacing: .06em; line-height: 1.1; }
.h-thin { font-family: var(--thin); letter-spacing: .08em; }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.goldtext { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 26px 0 16px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.sep span { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }
.sep svg { width: 22px; height: 22px; }
p { margin: 0 0 .8em; }
.lead { font-size: 20px; font-style: italic; color: var(--champagne); }

/* ---------------------------------------------------- Karten */
.card {
  position: relative; background: linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin: 14px 0;
}
.card.deco::before, .card.deco::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--gold);
}
.card.deco::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.card.deco::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.frame { position: relative; padding: 3px; background: var(--gold-grad); border-radius: 3px; }
.frame > .inner { background: var(--night); border-radius: 2px; padding: 22px 18px; position: relative; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 2px; padding: 14px 20px 12px; min-height: 50px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  background: var(--gold-grad); color: #1b1408; box-shadow: 0 6px 24px rgba(216,181,106,.18), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .12s ease, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--gold-hi); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.red { background: linear-gradient(135deg, #5a0f19, #b3242f 45%, #e0414c 60%, #6d1622); color: #fff2e4; box-shadow: 0 6px 28px rgba(179,36,47,.35); }
.btn.small { min-height: 38px; padding: 9px 14px 7px; font-size: 11px; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 10px; }

.field { display: block; margin: 12px 0; }
.field > span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 12px 14px; font-size: 18px; color: var(--cream); outline: none;
}
.input:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(216,181,106,.15); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.45; }

/* ---------------------------------------------------- Login */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 18px calc(var(--safe-b) + 24px); }
.login-in { width: 100%; max-width: 440px; text-align: center; }
.marquee-sign { position: relative; padding: 26px 20px 24px; margin-bottom: 20px; }
.marquee-sign .bulbs { position: absolute; inset: 0; pointer-events: none; }
.marquee-sign h1 { font-family: var(--deco); font-size: clamp(44px, 13vw, 64px); letter-spacing: .1em; line-height: 1; }
.marquee-sign .sub { font-family: var(--thin); font-size: 18px; letter-spacing: .28em; text-transform: uppercase; color: var(--champagne); margin-top: 8px; }
.poster { width: 62%; margin: 0 auto 18px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 6px rgba(216,181,106,.06); transform: rotate(-1.2deg); }
.ticket {
  position: relative; margin-top: 8px; padding: 22px 20px 20px; color: var(--paper-ink);
  background: linear-gradient(180deg, #f4e8c9, #e7d6ad); border-radius: 6px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket .eyebrow { color: #7a5a22; }
.ticket h2 { font-family: var(--deco); font-size: 26px; letter-spacing: .08em; margin: 4px 0 12px; color: #2a1b0b; }
.ticket .input { background: #fff8e8; color: #2a1b0b; border: 1px dashed #9c7a35; text-align: center; letter-spacing: .2em; text-transform: uppercase; font-family: var(--type); font-size: 22px; }
.ticket .err { color: #9b1b26; font-style: italic; min-height: 1.4em; margin: 8px 0 0; }
.ticket .btn { margin-top: 12px; }
.ticket-perf { border-top: 2px dashed rgba(122,90,34,.4); margin: 16px -20px 12px; }
.ticket small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #7a5a22; }

/* ---------------------------------------------------- Marquee/Akt */
.act-hero { position: relative; text-align: center; padding: 30px 18px 26px; overflow: hidden; }
.act-hero .roman { font-family: var(--sans); letter-spacing: .5em; font-size: 12px; color: var(--gold); text-transform: uppercase; }
.act-hero h1 { font-family: var(--deco); font-size: clamp(34px, 10vw, 46px); margin: 10px 0 8px; line-height: 1.05; }
.act-hero p { color: var(--champagne); font-style: italic; margin: 0; font-size: 19px; }
.sunburst { position: absolute; left: 50%; top: 100%; width: 700px; height: 700px; transform: translate(-50%, -50%); opacity: .18; pointer-events: none; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.programme { display: grid; gap: 0; margin-top: 10px; }
.programme .step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 8px 0; color: var(--muted); }
.programme .bulb { width: 14px; height: 14px; border-radius: 50%; margin: 5px auto 0; background: #3a3327; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.programme .step.past .bulb { background: var(--gold-lo); }
.programme .step.now { color: var(--cream); }
.programme .step.now .bulb { background: #ffe8a8; box-shadow: 0 0 12px #ffd76a, 0 0 28px rgba(255,215,106,.6); animation: bulb 1.6s ease-in-out infinite; }
@keyframes bulb { 50% { box-shadow: 0 0 6px #ffd76a, 0 0 14px rgba(255,215,106,.3); } }
.programme .step b { font-family: var(--thin); font-weight: 400; font-size: 19px; letter-spacing: .06em; display: block; }
.programme .step small { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; }

/* ---------------------------------------------------- Durchsage */
.telegram { background: linear-gradient(180deg, #f2e6c6, #e6d3a6); color: #2a1b0b; padding: 14px 16px 12px; border-radius: 2px; font-family: var(--type); font-size: 16px; position: relative; margin: 10px 0; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.telegram::before { content: "TELEGRAMM · REGIE"; display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: #7a5a22; margin-bottom: 6px; border-bottom: 1px solid rgba(122,90,34,.3); padding-bottom: 6px; }
.telegram time { display: block; font-size: 12px; color: #7a5a22; margin-top: 6px; }

/* ---------------------------------------------------- Papier / Brief */
.paper {
  position: relative; color: var(--paper-ink); padding: 28px 22px 26px; margin: 16px 0;
  background: url(/img/papier.jpg) center / cover, var(--paper);
  box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 0 80px rgba(120,90,40,.25);
  border-radius: 2px;
}
.paper::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(122,90,34,.45); pointer-events: none; }
.paper .eyebrow { color: #7a5a22; }
.paper h2 { font-family: var(--deco); font-size: 28px; color: #2a1b0b; margin: 4px 0 14px; letter-spacing: .05em; line-height: 1.15; }
.paper h3 { font-family: var(--thin); font-size: 20px; font-weight: 700; color: #3a2a12; margin: 18px 0 6px; letter-spacing: .04em; }
.paper p { font-size: 18.5px; line-height: 1.55; }
.paper .dropcap::first-letter { font-family: var(--deco); float: left; font-size: 58px; line-height: .9; padding: 6px 8px 0 0; color: var(--wine); }
.paper .sig { font-family: var(--script); font-size: 34px; color: #3a2a12; margin-top: 10px; }
.paper ol { padding-left: 0; list-style: none; counter-reset: s; }
.paper ol li { counter-increment: s; position: relative; padding-left: 42px; margin: 12px 0; }
.paper ol li::before { content: counter(s, upper-roman); position: absolute; left: 0; top: 0; font-family: var(--deco); color: var(--wine); font-size: 20px; width: 32px; text-align: center; }
.paper ol li b { display: block; font-size: 19px; }

.dossier { border-left: 3px solid var(--wine); }
.costume { background: linear-gradient(135deg, rgba(109,22,34,.35), rgba(19,17,13,.9)); border: 1px solid rgba(224,65,76,.35); }
.costume .eyebrow { color: #f0a0a6; }

/* ---------------------------------------------------- Rollenkopf */
.rolehead { display: flex; gap: 16px; align-items: center; margin: 4px 0 6px; }
.medal { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 35% 30%, #3a3225, #14110c 70%); box-shadow: 0 0 0 1px var(--gold-lo), 0 0 0 4px var(--ink), 0 0 0 5px var(--gold), 0 10px 30px rgba(0,0,0,.6); }
.medal span { font-family: var(--deco); font-size: 28px; letter-spacing: .02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.medal.sm { width: 44px; height: 44px; box-shadow: 0 0 0 1px var(--gold-lo), 0 0 0 2px var(--ink), 0 0 0 3px var(--gold-lo); }
.medal.sm span { font-size: 16px; }
.rolehead h1 { font-family: var(--deco); font-size: 28px; line-height: 1.1; }
.rolehead .t { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.rolehead .p { color: var(--muted); font-style: italic; }

/* ---------------------------------------------------- Umschlag */
.envelope-wrap { perspective: 1200px; margin: 22px auto 10px; max-width: 420px; }
.envelope { position: relative; height: 240px; cursor: pointer; }
.envelope .back { position: absolute; inset: 0; background: linear-gradient(160deg, #e9d8b0, #cdb684); border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.envelope .front { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; }
.envelope .front::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(28deg, #dcc597 50%, transparent 50.3%) left / 50% 100% no-repeat, linear-gradient(-28deg, #d5bd8c 50%, transparent 50.3%) right / 50% 100% no-repeat; }
.envelope .flap { position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: top; transition: transform .8s cubic-bezier(.6,.0,.3,1); z-index: 3; }
.envelope .flap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #e4d0a3, #c9b080); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.envelope .seal { position: absolute; left: 50%; top: 48%; width: 72px; height: 72px; transform: translate(-50%, -50%); z-index: 4; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #d84a52, #8d1520 60%, #5e0c15); box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 -3px 8px rgba(0,0,0,.35), inset 0 2px 4px rgba(255,255,255,.25); transition: opacity .3s, transform .4s; }
.envelope .seal span { font-family: var(--deco); font-size: 30px; color: #f6c9b9; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.envelope .label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; z-index: 2; color: #3a2a12; font-family: var(--thin); font-size: 21px; letter-spacing: .1em; font-weight: 700; }
.envelope .label small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #7a5a22; font-weight: 400; }
.envelope .letter { position: absolute; left: 7%; right: 7%; top: 10%; height: 80%; background: #fbf3df; z-index: 1; border-radius: 2px; transition: transform .8s .35s cubic-bezier(.3,.7,.2,1); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.envelope.opening .flap { transform: rotateX(180deg); z-index: 0; }
.envelope.opening .seal { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(20deg); }
.envelope.opening .letter { transform: translateY(-62%); }
.envelope.locked { cursor: default; filter: grayscale(.55) brightness(.55); }
.envelope.locked .seal { background: radial-gradient(circle at 35% 30%, #6a5a48, #3a3025); }
.envelope-hint { text-align: center; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }
.envelope-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.envelope-tabs button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 12px 6px 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border-radius: 2px; }
.envelope-tabs button.on { border-color: var(--gold); color: var(--gold-hi); background: rgba(216,181,106,.08); }
.envelope-tabs button:disabled { opacity: .45; }

.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(122,90,34,.25); }
.tasks li:last-child { border-bottom: 0; }
.check { width: 28px; height: 28px; border: 1.5px solid #9c7a35; border-radius: 2px; background: rgba(255,255,255,.4); display: grid; place-items: center; padding: 0; transform: rotate(45deg); margin: 3px 0 0 3px; }
.check svg { width: 16px; height: 16px; opacity: 0; transform: rotate(-45deg) scale(.6); transition: .2s; color: #fff; }
.tasks li.done .check { background: var(--wine); border-color: var(--wine); }
.tasks li.done .check svg { opacity: 1; transform: rotate(-45deg) scale(1); }
.tasks li.done .txt { opacity: .55; text-decoration: line-through; text-decoration-color: rgba(109,22,34,.6); }
.know { list-style: none; padding: 0; margin: 0; }
.know li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px dotted rgba(122,90,34,.35); }
.know li::before { content: "◆"; position: absolute; left: 4px; top: 10px; color: var(--wine); font-size: 13px; }
.progress { height: 4px; background: rgba(122,90,34,.2); border-radius: 2px; overflow: hidden; margin: 6px 0 2px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--red-hi)); transition: width .4s; }
.speech { background: #1a1510; color: var(--cream); padding: 22px 20px; border: 1px solid var(--line-strong); margin: 18px 0; position: relative; }
.speech .eyebrow { color: var(--gold); }
.speech h3 { font-family: var(--deco); color: var(--gold-hi); font-size: 22px; margin: 6px 0 10px; }
.speech p { font-size: 19px; font-style: italic; }
.speech .note { font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.fatal { margin: 18px 0; padding: 22px 18px; border: 1px solid rgba(224,65,76,.5); background: radial-gradient(400px 200px at 50% 0, rgba(179,36,47,.35), transparent), #140a0b; text-align: center; }
.fatal h3 { font-family: var(--deco); font-size: 24px; color: #ffb3b8; margin: 4px 0 8px; }

/* ---------------------------------------------------- Kasse */
.vault { text-align: center; padding: 26px 16px 20px; }
.vault .amount { font-family: var(--deco); font-size: 64px; line-height: 1; margin: 8px 0 4px; }
.vault .amount small { font-family: var(--thin); font-size: 22px; letter-spacing: .1em; margin-left: 6px; }
.notes-fan { position: relative; height: 150px; margin: 20px auto 8px; max-width: 320px; }
.notes-fan img { position: absolute; left: 50%; top: 10px; width: 230px; border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.6); transform-origin: 50% 160%; border: 1px solid rgba(0,0,0,.3); }
.notes-fan .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-style: italic; border: 1px dashed var(--line); }
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid rgba(216,181,106,.12); }
.ledger .who { font-family: var(--thin); font-size: 18px; letter-spacing: .03em; }
.ledger .amt { font-family: var(--type); font-size: 17px; }
.ledger .amt.plus { color: #9fd9b9; }
.ledger .amt.minus { color: #f19aa2; }
.ledger .meta { grid-column: 1 / -1; font-size: 15px; color: var(--muted); font-style: italic; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; border: 1px solid var(--line-strong); border-radius: 2px; }
.stepper button { height: 56px; background: none; border: 0; color: var(--gold-hi); font-size: 28px; font-family: var(--thin); }
.stepper output { text-align: center; font-family: var(--deco); font-size: 30px; }
.stepper output small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }

/* ---------------------------------------------------- Personenwahl */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.person > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.person { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 3px; padding: 10px; color: var(--text); min-height: 64px; transition: .15s; }
.person b { font-family: var(--thin); font-weight: 700; font-size: 15px; letter-spacing: .02em; line-height: 1.15; display: block; }
.person small { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.person.on { border-color: var(--gold-hi); background: rgba(216,181,106,.12); box-shadow: 0 0 0 1px var(--gold-hi), 0 0 24px rgba(216,181,106,.2); }
.person:disabled { opacity: .35; }
.search { margin-bottom: 10px; }

/* ---------------------------------------------------- Beweise */
.evidence { background: linear-gradient(180deg, #d9c08b, #c6a96d); color: #2a1b0b; border-radius: 3px 14px 3px 3px; padding: 16px 14px 14px; margin: 16px 0; position: relative; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.evidence::before { content: ""; position: absolute; top: -14px; left: 0; width: 42%; height: 16px; background: #d9c08b; border-radius: 6px 10px 0 0; }
.evidence .tag { padding-right: 120px; font-family: var(--type); font-size: 13px; letter-spacing: .08em; color: #5a3e12; }
.evidence h3 { font-family: var(--type); font-size: 22px; margin: 2px 0 8px; }
.evidence .photo { background: #fff; padding: 10px; transform: rotate(-.6deg); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.evidence .found { font-family: var(--type); font-size: 14px; margin: 10px 0 12px; color: #4a3410; }
.stamp { position: absolute; right: 16px; top: 14px; font-family: var(--type); color: rgba(155,27,38,.85); border: 2px solid rgba(155,27,38,.85); padding: 3px 8px; transform: rotate(8deg); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 70px; height: 70px; color: var(--gold-lo); margin-bottom: 12px; }
.empty-state h3 { font-family: var(--thin); font-size: 22px; color: var(--champagne); margin-bottom: 6px; }

/* ---------------------------------------------------- Zeitung */
.news { background: url(/img/papier.jpg) center / cover, #ece2cb; color: #1d1812; padding: 16px 14px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.55); font-family: "Times New Roman", var(--serif); }
.news .mast { display: grid; grid-template-columns: 54px 1fr 54px; align-items: end; border-bottom: 3px double #1d1812; padding-bottom: 6px; }
.news .mast h2 { font-family: var(--deco); text-align: center; font-size: clamp(22px, 7vw, 32px); letter-spacing: .04em; line-height: 1; }
.news .mast small { font-family: var(--type); font-size: 10px; line-height: 1.2; }
.news .headline { font-family: var(--fraktur); font-size: clamp(30px, 9vw, 42px); text-align: center; margin: 10px 0 8px; line-height: 1.05; }
.news .photo { filter: grayscale(1) contrast(1.1); margin-bottom: 8px; }
.news p { font-size: 15.5px; line-height: 1.42; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.news p:first-of-type::first-letter { font-family: var(--fraktur); font-size: 30px; float: left; line-height: .9; padding-right: 4px; }
.news .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid #1d1812; padding-top: 10px; margin-top: 8px; }
.news h4 { font-family: var(--fraktur); font-size: 21px; text-align: center; margin: 0 0 6px; line-height: 1.1; font-weight: 400; }
.news .ad { border: 2px solid #1d1812; padding: 6px; text-align: center; }
.news .ad b { font-family: var(--type); font-size: 11px; letter-spacing: .2em; }
.news .guests h4 { margin-top: 14px; font-size: 24px; }
.news .guests dl { margin: 0; columns: 1; }
.news .guests dt { font-weight: 700; font-size: 15px; margin-top: 8px; }
.news .guests dd { margin: 0; font-size: 14.5px; }
@media (min-width: 480px) { .news .guests dl { columns: 2; column-gap: 18px; } .news .guests dt { break-after: avoid; } .news .guests dd { break-inside: avoid; } }

/* ---------------------------------------------------- Anklage */
.vote-card { margin: 16px 0; }
.vote-card .q { font-family: var(--thin); font-size: 22px; letter-spacing: .03em; color: var(--champagne); margin: 4px 0 12px; }
.vote-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; padding: 4px 8px 3px; border: 1px solid var(--line); color: var(--muted); }
.vote-status.ok { color: #9fd9b9; border-color: rgba(159,217,185,.5); }
.accuse-stamp { font-family: var(--type); color: var(--red-hi); border: 3px solid var(--red-hi); padding: 6px 14px; display: inline-block; transform: rotate(-6deg); letter-spacing: .2em; text-transform: uppercase; font-size: 20px; animation: stamp .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes stamp { from { transform: rotate(-6deg) scale(2.6); opacity: 0; } }

/* ---------------------------------------------------- Enthüllung */
.theatre { position: relative; border: 1px solid var(--line-strong); overflow: hidden; background: radial-gradient(500px 280px at 50% 0, rgba(255,226,150,.22), transparent 70%), #0d0b08; padding: 26px 14px 20px; min-height: 260px; }
.theatre .curtain { position: absolute; top: 0; bottom: 0; width: 18%; background: repeating-linear-gradient(90deg, #4c0d16 0 10px, #7a1a26 10px 20px, #5d111b 20px 30px); box-shadow: inset -10px 0 30px rgba(0,0,0,.6); }
.theatre .curtain.l { left: 0; border-right: 2px solid #2a050a; }
.theatre .curtain.r { right: 0; transform: scaleX(-1); border-right: 2px solid #2a050a; }
.theatre .valance { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(90deg, #6d1622 0 22px, #8d2230 22px 44px); box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.theatre .stagein { position: relative; z-index: 2; margin: 0 14%; text-align: center; }
.callout { min-height: 132px; display: grid; place-items: center; }
.callout .who { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.callout .verb { font-style: italic; color: var(--muted); margin: 4px 0; }
.callout .target { font-family: var(--deco); font-size: clamp(26px, 8vw, 38px); line-height: 1.05; }
.callout .reason { font-style: italic; color: var(--champagne); margin-top: 8px; font-size: 17px; }
.callout .flip { animation: flipin .7s cubic-bezier(.2,.9,.3,1.2); }
@keyframes flipin { from { transform: perspective(600px) rotateX(-80deg) translateY(-20px); opacity: 0; } }
.counter { font-family: var(--type); color: var(--muted); font-size: 14px; margin-top: 10px; }
.standings { list-style: none; padding: 0; margin: 14px 0 0; }
.standings li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.standings .pos { font-family: var(--deco); color: var(--gold); text-align: center; }
.standings .name { font-family: var(--thin); font-size: 17px; letter-spacing: .02em; font-weight: 700; }
.standings .bar { grid-column: 2 / 3; height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.standings .bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; transition: width .8s cubic-bezier(.2,.9,.3,1); }
.standings .n { font-family: var(--deco); font-size: 24px; min-width: 32px; text-align: right; }
.standings li.lead .name { color: var(--gold-hi); }
.standings li.lead .bar i { background: linear-gradient(90deg, #b3242f, #e0414c, #ffb3b8); box-shadow: 0 0 14px rgba(224,65,76,.6); }
.standings li.hit { animation: hit .8s ease; }
@keyframes hit { 30% { background: rgba(216,181,106,.15); } }

/* ---------------------------------------------------- Auflösung / Urkunde */
.verdict { text-align: center; margin: 18px 0; }
.verdict .name { font-family: var(--deco); font-size: 36px; color: #ffb3b8; text-shadow: 0 0 30px rgba(224,65,76,.6); }
.typed p { font-family: var(--type); font-size: 16.5px; line-height: 1.6; }
.certificate { position: relative; padding: 34px 22px 30px; text-align: center; color: #2a1b0b; background: url(/img/papier.jpg) center / cover, #f2e7cd; box-shadow: 0 20px 60px rgba(0,0,0,.6); margin: 18px 0; }
.certificate::before { content: ""; position: absolute; inset: 10px; border: 2px solid #9c7a35; outline: 1px solid #9c7a35; outline-offset: 4px; pointer-events: none; }
.certificate h2 { font-family: var(--deco); letter-spacing: .3em; font-size: 30px; color: #6d1622; }
.certificate .to { font-family: var(--script); font-size: 46px; line-height: 1.1; margin: 10px 0; color: #2a1b0b; }
.certificate .for { font-family: var(--thin); font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.certificate p { font-style: italic; margin: 10px 0 0; }
.certificate .seal-sm { width: 64px; height: 64px; margin: 16px auto 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #d84a52, #8d1520 60%, #5e0c15); color: #f6c9b9; font-family: var(--deco); font-size: 26px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.award { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.award .cup { width: 56px; height: 56px; color: var(--gold-hi); }
.award b { font-family: var(--deco); font-size: 22px; display: block; line-height: 1.1; }

/* ---------------------------------------------------- Overlays */
#layer:empty { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; overflow-x: hidden; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: linear-gradient(180deg, #1d1914, #12100c); border-top: 1px solid var(--line-strong); border-radius: 14px 14px 0 0; padding: 10px 18px calc(var(--safe-b) + 22px); animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 14px; box-shadow: 0 0 0 14px transparent; position: relative; }
.sheet .grab::after { content: ""; position: absolute; inset: -16px -60px; }
.sheet { overscroll-behavior: contain; touch-action: pan-y; }
.sheet h2 { font-family: var(--deco); font-size: 26px; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

.fullview { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 14px) 14px calc(var(--safe-b) + 14px); animation: fade .2s; }
.fullview img { flex: 1; min-height: 0; object-fit: contain; width: 100%; background: #fff; border-radius: 2px; }
.fullview .cap { color: var(--champagne); text-align: center; padding: 12px; font-family: var(--type); }
.nametag { flex: 1; display: grid; place-items: center; text-align: center; background: var(--night); border: 2px solid var(--gold); margin: 10px; padding: 20px; position: relative; }
.nametag h1 { font-family: var(--deco); font-size: clamp(40px, 12vw, 80px); line-height: 1.05; }
.nametag .t { font-family: var(--thin); font-size: clamp(20px, 6vw, 34px); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

#toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 70px); z-index: 400; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; background: linear-gradient(180deg, #f2e6c6, #e6d3a6); color: #2a1b0b; padding: 12px 14px; border-radius: 3px; box-shadow: 0 16px 40px rgba(0,0,0,.6); display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; animation: toastin .5s cubic-bezier(.2,1.3,.4,1); }
.toast.out { animation: toastout .3s forwards; }
.toast svg { width: 36px; height: 36px; color: var(--wine); }
.toast b { font-family: var(--thin); font-size: 18px; font-weight: 700; display: block; }
.toast span { font-size: 15px; }
@keyframes toastin { from { transform: translateY(-30px) rotate(-2deg); opacity: 0; } }
@keyframes toastout { to { transform: translateY(-20px); opacity: 0; } }
.flying-note { position: fixed; z-index: 450; width: 180px; pointer-events: none; left: 50%; top: 40%; animation: flynote 1.4s cubic-bezier(.3,.7,.3,1) forwards; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
@keyframes flynote { 0% { transform: translate(-50%, 60vh) rotate(-25deg) scale(.6); opacity: 0; } 30% { opacity: 1; } 70% { transform: translate(-50%, -10vh) rotate(8deg) scale(1); opacity: 1; } 100% { transform: translate(-50%, -30vh) rotate(14deg) scale(.7); opacity: 0; } }

.blackout { position: fixed; inset: 0; z-index: 900; background: #000; display: grid; place-items: center; text-align: center; padding: 30px; }
.blackout .flash { position: absolute; inset: 0; background: #fff; animation: flash .5s ease-out forwards; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.blackout .msg { opacity: 0; animation: msg 1.2s 2.4s forwards; }
.blackout .msg h1 { font-family: var(--deco); font-size: clamp(40px, 12vw, 72px); color: #e0414c; text-shadow: 0 0 40px rgba(224,65,76,.8); letter-spacing: .06em; }
.blackout .msg p { color: var(--champagne); font-style: italic; font-size: 20px; margin-top: 12px; }
.blackout .drip { position: absolute; top: 0; left: 0; right: 0; height: 0; background: linear-gradient(180deg, #5e0c15, #8d1520); animation: drip 3s 1.4s ease-in forwards; clip-path: polygon(0 0,100% 0,100% 60%,95% 75%,90% 62%,84% 90%,78% 66%,70% 80%,63% 64%,55% 96%,48% 70%,40% 82%,33% 62%,25% 92%,18% 70%,10% 84%,4% 66%,0 78%); opacity: .9; }
@keyframes drip { to { height: 34%; } }
@keyframes msg { to { opacity: 1; } }
.lights-flicker { animation: flicker 2.2s steps(1) 1; }
@keyframes flicker { 0%,8%,14%,30%,36% { opacity: 1; } 4%,11%,22%,33% { opacity: .08; } 100% { opacity: 1; } }

/* ---------------------------------------------------- Install */
.install { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.install img { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-strong); }
.install-steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.install-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px 0; align-items: center; }
.install-steps li::before { content: counter(s); width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 13px; color: var(--gold); }
.install-steps svg { width: 20px; height: 20px; vertical-align: -4px; color: #4da3ff; }
.codebox { font-family: var(--type); font-size: 24px; letter-spacing: .14em; text-align: center; color: var(--gold-hi); border: 1px dashed var(--line-strong); padding: 10px; margin: 12px 0; }

/* ---------------------------------------------------- Regie */
.regie .card { padding: 16px 14px; }
.ph-list { display: grid; gap: 6px; }
.ph-btn { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.02); border: 1px solid var(--line); color: var(--muted); padding: 10px 12px; border-radius: 2px; }
.ph-btn b { font-family: var(--thin); font-weight: 700; color: var(--text); font-size: 17px; display: block; }
.ph-btn small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.ph-btn.now { border-color: var(--gold-hi); background: rgba(216,181,106,.1); }
.ph-btn.now b { color: var(--gold-hi); }
.ph-btn.next { border-style: dashed; border-color: var(--gold); }
.ph-btn .i { font-family: var(--deco); color: var(--gold); text-align: center; }
.rtable { display: grid; gap: 8px; }
.rrow { border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; background: rgba(255,255,255,.015); }
.rrow.off { opacity: .5; }
.rrow .top { display: flex; align-items: center; gap: 8px; }
.rrow .top b { font-family: var(--thin); font-weight: 700; font-size: 16px; flex: 1; }
.rrow .meta { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.rrow .code { font-family: var(--type); color: var(--gold-hi); letter-spacing: .08em; }
.online { width: 9px; height: 9px; border-radius: 50%; background: #3a3327; flex: none; }
.online.on { background: #4fd18b; box-shadow: 0 0 8px #4fd18b; }
.pill { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 6px 2px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.pill.ok { color: #9fd9b9; border-color: rgba(159,217,185,.45); }
.bigcount { font-family: var(--deco); font-size: 40px; line-height: 1; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: #3a3327; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: .2s; }
.switch input:checked + i { background: var(--gold-lo); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------------------------------------------------- Bühne (Beamer) */
.stage-screen { min-height: 100vh; min-height: 100dvh; padding: 4vh 5vw; display: grid; grid-template-rows: auto 1fr; gap: 3vh; }
.stage-screen .brand b { font-size: 3vw; }
.stage-screen .act-hero h1 { font-size: 6vw; }
.stage-screen .act-hero p { font-size: 2vw; }
.stage-screen .theatre { min-height: 60vh; }
.stage-screen .callout .target { font-size: 5vw; }
.stage-screen .standings .name { font-size: 2vw; }
.stage-screen .standings .n { font-size: 3vw; }
.stage-screen .standings .bar { height: 1.2vw; }

.fade-in { animation: fadein .45s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.hidden { display: none !important; }
.spin { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: rot .9s linear infinite; margin: 40px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
