/* Agent Army · Trailer · Gestaltung der Text- und Bedienebene (Tokens aus docs/manifest/design.md) */
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: block; }

:root {
  --bg: #07060D; --fl: #100D1C; --fl2: #17132A; --line: rgb(255 255 255 / .09);
  --fg: #F3F0FF; --mut: #A39CC0; --brand: #7C3CFF; --brand2: #9C42FD; --dunkel: #0B0814;
  --tv: linear-gradient(90deg, #8B879C 0%, #A98BF0 25%, #6A30F5 50%, #C026D3 72%, #FF1F6B 84%, #FF7A00 93%, #FFD21F 100%);
  --dsp: 'Unbounded', 'Arial Black', sans-serif;
  --ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fokus: #C9B2FF;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { color: var(--fg); font-family: var(--ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.player { position: fixed; inset: 0; background: var(--bg); user-select: none; -webkit-user-select: none; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--bg); contain: strict; }
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov > * { position: absolute; display: none; }

/* ---------- Schrift ---------- */
.h { font-family: var(--dsp); font-weight: 900; text-transform: uppercase; line-height: 1.04; letter-spacing: -.012em; white-space: pre-line;
  text-wrap: balance; color: var(--fg); filter: drop-shadow(0 6px 34px rgb(7 6 13 / .95)); }
.z { font-family: var(--ui); font-weight: 800; line-height: 1.22; color: var(--fg); letter-spacing: -.005em; filter: drop-shadow(0 3px 18px rgb(7 6 13 / .95)); }
.z.m { color: var(--mut); font-weight: 600; }
.tv { background: var(--tv); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; }
.mitte { text-align: center; }

/* ---------- Hook: weiße Karten ---------- */
.hook { left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 72%; }
.hc { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-radius: 14px;
  background: rgb(243 240 255 / .94); color: #100D1C; font: 700 26px/1.1 var(--ui); white-space: nowrap;
  box-shadow: 0 14px 34px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(255 255 255 / .6); }
.hc i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #8B879C; }
.hc b { display: block; height: 10px; border-radius: 5px; background: #CFC9DF; }
.hc .sk { flex: 1; display: grid; gap: 8px; }

/* ---------- Glas-Inseln und Karten ---------- */
.insel { border-radius: 18px; background: rgb(16 13 28 / .9); border: 1px solid var(--line); box-shadow: 0 18px 50px rgb(0 0 0 / .45); }
.plak { display: inline-grid; place-items: center; min-width: 64px; height: 34px; padding: 0 12px; border-radius: 11px; font: 800 18px/1 var(--dsp);
  letter-spacing: .04em; color: var(--dunkel); }
.badge { left: 0; top: 0; transform-origin: 50% 50%; box-shadow: 0 0 0 3px rgb(7 6 13 / .55), 0 8px 22px rgb(0 0 0 / .5); }

.budget { padding: 20px 24px; width: 380px; }
.budget .k { font: 700 18px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.budget .v { margin-top: 10px; font: 800 34px/1.1 var(--ui); color: var(--fg); }
.budget .spur { margin-top: 16px; height: 10px; border-radius: 5px; background: rgb(255 255 255 / .08); overflow: hidden; }
.budget .spur span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--tv); background-size: 380px 100%; }
.budget .ziel { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.budget .ziel em { font: normal 800 20px/1 var(--dsp); color: #3DDC97; }

.rk { left: 0; top: 0; width: 540px; height: 98px; display: flex; align-items: center; gap: 18px; padding: 0 22px; border-radius: 18px;
  background: rgb(23 19 42 / .94); border: 1px solid var(--line); box-shadow: 0 16px 40px rgb(0 0 0 / .5); transform-origin: 0 50%; }
.rk .t { font: 800 29px/1.15 var(--ui); color: var(--fg); white-space: nowrap; }
.rk .b { margin-top: 5px; font: 700 21px/1.1 var(--ui); color: var(--mut); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.rk .b::before { content: ''; width: 16px; height: 9px; border-left: 3px solid #3DDC97; border-bottom: 3px solid #3DDC97; transform: translateY(-3px) rotate(-45deg); }

/* ---------- Freigabe ---------- */
.frei { left: 0; top: 0; width: 980px; padding: 40px 44px 42px; border-radius: 22px; background: rgb(23 19 42 / .97); border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 30px 90px rgb(0 0 0 / .65), 0 0 0 1px rgb(124 60 255 / .25), 0 0 80px rgb(124 60 255 / .18); }
.frei .kopf { display: flex; align-items: center; gap: 20px; }
.frei .kopf .plak { height: 44px; min-width: 76px; font-size: 22px; }
.frei .titel { font: 800 48px/1.1 var(--ui); flex: 1; }
.frei .status { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 24px; font: 800 24px/1 var(--ui);
  background: rgb(255 194 61 / .14); color: #FFC23D; white-space: nowrap; }
.frei .status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.frei .status.ok { background: rgb(61 220 151 / .14); color: #3DDC97; }
.frei .vorschau { margin: 26px 0 30px; padding: 22px 24px; border-radius: 14px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); display: grid; gap: 14px; }
.frei .vorschau b { display: block; height: 16px; border-radius: 8px; background: rgb(255 255 255 / .13); }
.frei .knoepfe { display: flex; gap: 16px; align-items: center; }
.frei .los { height: 78px; padding: 0 42px; border-radius: 16px; font: 800 31px/1 var(--ui); color: #fff; display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 10px 34px rgb(124 60 255 / .45); }
.frei .zur { height: 78px; padding: 0 32px; border-radius: 16px; font: 700 28px/1 var(--ui); color: var(--fg); display: inline-flex; align-items: center;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.frei .key { margin-left: auto; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgb(201 178 255 / .5); color: #C9B2FF; }
.tipp { left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 9%, rgb(255 255 255 / .55) 14%, rgb(201 178 255 / .22) 34%, transparent 70%); }

/* ---------- Tempo-Pille ---------- */
.pille { display: flex; align-items: center; gap: 22px; padding: 12px 26px 12px 12px; border-radius: 999px; background: rgb(16 13 28 / .94);
  border: 1px solid var(--line); }
.pille .feld { min-width: 290px; height: 82px; padding: 0 28px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; }
.pille .name { font: 900 34px/1 var(--dsp); letter-spacing: .02em; display: inline-block; }
.pille .fak { font: 800 24px/1 var(--ui); opacity: .92; }
.pille .spur { position: relative; width: 470px; height: 82px; }
.pille .bahn { position: absolute; left: 0; right: 0; top: 24px; height: 12px; border-radius: 6px; background: var(--tv); }
.pille .raste { position: absolute; top: 22px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: rgb(7 6 13 / .75); }
.pille .knopf { position: absolute; top: 12px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgb(7 6 13 / .7); }
.pille .marken { position: absolute; left: 0; right: 0; top: 54px; height: 20px; }
.pille .marken span { position: absolute; transform: translateX(-50%); font: 800 14px/1 var(--ui); letter-spacing: .08em; color: var(--mut); }

/* ---------- Sicherheit ---------- */
.liste { display: grid; gap: 22px; }
.liste div { display: flex; align-items: center; gap: 20px; font: 800 44px/1.1 var(--ui); white-space: nowrap; }
.liste div::before { content: ''; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 3px solid #9C42FD;
  background: linear-gradient(135deg, rgb(124 60 255 / .35), transparent); }

/* ---------- Endkarte ---------- */
.zeichen { left: 0; top: 0; overflow: visible; }
.wort { font: 900 76px/1 var(--dsp); letter-spacing: .01em; white-space: nowrap; }
.cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; height: 96px; padding: 0 52px; border-radius: 18px; text-decoration: none;
  font: 800 36px/1 var(--ui); color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); white-space: nowrap;
  box-shadow: 0 14px 44px rgb(124 60 255 / .5), inset 0 0 0 1px rgb(255 255 255 / .18); cursor: pointer; }
.cta:focus-visible { outline: 3px solid var(--fokus); outline-offset: 5px; }
.cta svg { width: 30px; height: 30px; }
.url { font: 800 66px/1 var(--ui); letter-spacing: -.01em; white-space: nowrap; }
.zeile { font: 600 30px/1.2 var(--ui); color: var(--mut); white-space: nowrap; }

/* ---------- Bedienung ---------- */
.ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px;
  background: linear-gradient(to top, rgb(7 6 13 / .88), rgb(7 6 13 / 0)); transition: opacity .25s; z-index: 3; }
.ctl.aus { opacity: 0; }
.ctl.aus .ton { opacity: 1; }
.ctl button { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--fg); cursor: pointer; font: 700 14px/1 var(--ui); }
.ctl button:hover { background: rgb(255 255 255 / .08); }
.ctl button:focus-visible, .zeit:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.ctl svg { width: 22px; height: 22px; display: block; }
.ctl .ton { display: inline-flex; gap: 8px; padding: 0 14px; background: rgb(16 13 28 / .82); border: 1px solid var(--line); }
.zeit { flex: 1; min-width: 60px; height: 40px; margin: 0 8px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.zeit::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #C9B2FF var(--p, 0%), rgb(255 255 255 / .18) var(--p, 0%)); }
.zeit::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; }
.zeit::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(255 255 255 / .18); }
.zeit::-moz-range-progress { height: 4px; border-radius: 2px; background: #C9B2FF; }
.zeit::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.uhr { flex: none; font: 700 13px/1 var(--ui); color: var(--mut); font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }
.linie { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); z-index: 2; pointer-events: none; }
.ctl:not(.aus) ~ .linie { opacity: 0; }
.lade { margin-left: 2px; font-weight: 600; color: var(--mut); }
.render .ctl, .render .linie { display: none; }
@media (pointer: coarse) { .ctl button { min-width: 44px; height: 44px; } }
@media (max-width: 520px) { .uhr { display: none; } .ctl .ton span { display: none; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[hidden] { display: none !important; }
.ohne-js { position: fixed; inset: auto 0 0 0; padding: 24px; color: var(--fg); font: 600 16px/1.4 var(--ui); }
.ohne-js a { color: var(--fokus); }
