/* ==========================================================
   StreamHelp · Dunkel + Twitch-Lila
   Darstellung (Design „StreamHelp Dashboard“): <html data-theme="dark|light" data-accent="lila|logo|gruen|blau|pink"
   data-contrast="normal|hoch"> – gesetzt von js/app.js (setupLook), gemerkt im Browser. Alles Farbige im Dashboard
   hängt an diesen Variablen; --twitch bleibt das Twitch-Lila (Twitch-Knöpfe).
   ========================================================== */

:root {
  --bg: #0b0714;
  --bg-rgb: 11, 7, 20;
  --surf-rgb: 28, 20, 46;
  --pop-rgb: 24, 16, 42;
  --bg-2: #110b1e;
  --surface: #161027;
  --surface-2: #221936;
  --line: #2c2244;
  --line-2: #3b2f5a;
  --line-soft: #231a38;
  --text: #eef1f7;
  --text-strong: #fff;
  --text-2: #a7b0c2;
  --muted: #929cb1;
  --dim: #5f6980;
  --hero: linear-gradient(115deg, #140f26 0%, #0b0a16 60%);
  --hero-img: .3;
  --danger: #ff9d95;
  --warn: #ffcf5a;
  /* Helle Schriftfarben auf dunklem Grund – im hellen Modus dunkel (siehe unten) */
  --ok-ink: #9ff0c3; --soft-ink: #c4cad6; --lav-ink: #e6d6ff; --gold-ink: #ffd36b;
  /* Akzentfarbe (Standard: Lila) */
  --acc: #9146ff;
  --acc-2: #a970ff;
  --acc-3: #ff5fd2;
  --acc-rgb: 145, 70, 255;
  --acc2-rgb: 169, 112, 255;
  --acc3-rgb: 255, 95, 210;
  --acc-ink-d: #e0c8ff;
  --acc-ink-l: #6326c9;
  --acc-ink: var(--acc-ink-d);
  --amber: var(--acc-2);
  --amber-2: var(--acc-ink);
  --green: #3ddc84;
  --red: #ff5a4e;
  --twitch: #9146ff;
  --twitch-2: #b186ff;

  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: dark;
}
:root[data-accent="logo"] { --acc: #4a4fd6; --acc-2: #6f74ff; --acc-3: #78b900; --acc-rgb: 84, 89, 230; --acc2-rgb: 111, 116, 255; --acc3-rgb: 120, 185, 0; --acc-ink-d: #cfd1ff; --acc-ink-l: #2f3399; }
:root[data-accent="gruen"] { --acc: #16884e; --acc-2: #2fbf6f; --acc-3: #b5e61d; --acc-rgb: 34, 170, 100; --acc2-rgb: 47, 191, 111; --acc3-rgb: 181, 230, 29; --acc-ink-d: #b6f5cf; --acc-ink-l: #0f6a3b; }
:root[data-accent="blau"] { --acc: #1673d6; --acc-2: #3d9cff; --acc-3: #5ee7ff; --acc-rgb: 30, 130, 230; --acc2-rgb: 61, 156, 255; --acc3-rgb: 94, 231, 255; --acc-ink-d: #cfe6ff; --acc-ink-l: #0d5299; }
:root[data-accent="pink"] { --acc: #d6247a; --acc-2: #ff4f9e; --acc-3: #ffb347; --acc-rgb: 230, 50, 130; --acc2-rgb: 255, 79, 158; --acc3-rgb: 255, 179, 71; --acc-ink-d: #ffd0e6; --acc-ink-l: #a3155b; }
/* Hell */
:root[data-theme="light"] {
  --bg: #f5f3fa; --bg-rgb: 245, 243, 250; --surf-rgb: 255, 255, 255; --pop-rgb: 255, 255, 255;
  --bg-2: #fff; --surface: #fff; --surface-2: #ece8f5;
  --line: #e2dcef; --line-2: #cdc4e2; --line-soft: #ebe6f4;
  --text: #17122a; --text-strong: #0b0818; --text-2: #45405a; --muted: #5a5570; --dim: #7c7792;
  --hero: linear-gradient(115deg, #fff 0%, #f1ecfb 70%); --hero-img: .12;
  --danger: #c0263a; --warn: #9a6400; --acc-ink: var(--acc-ink-l);
  --ok-ink: #13853f; --soft-ink: var(--text-2); --lav-ink: var(--acc-ink-l); --gold-ink: #8a5a00;
  color-scheme: light;
}
/* Hoher Kontrast */
:root[data-contrast="hoch"] { --text-2: #e4e8f0; --muted: #c3cad8; --dim: #a3acbf; --line: #4c3f6e; --line-2: #6a5a96; --line-soft: #3a2f57; }
:root[data-theme="light"][data-contrast="hoch"] { --text: #000; --text-2: #1f1b2e; --muted: #2e2a40; --dim: #4a4560; --line: #a79cc4; --line-2: #7f72a6; --line-soft: #c4bbdb; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: rgba(var(--acc2-rgb), .28); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg);
  font-weight: 600; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
  transition: transform .18s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 18px; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.btn--primary { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; box-shadow: 0 8px 24px -10px rgba(var(--acc2-rgb), .6); }
.btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--acc-2), var(--acc-3)); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--outline {
  background: rgba(var(--acc2-rgb), .1); border-color: rgba(var(--acc2-rgb), .55); color: var(--amber-2);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.btn--outline:hover:not(:disabled) { background: rgba(var(--acc2-rgb), .18); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--twitch { background: var(--twitch); color: #fff; }
.btn--twitch:hover:not(:disabled) { background: #a260ff; }
.btn--connected { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .35); color: #c8f7dc; }
.btn--connected::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .6);
  font-size: 24px; line-height: 1; color: var(--text);
  transition: background-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(90deg); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }

/* ==========================================================
   HINTERGRUND-ANIMATION
   ========================================================== */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.site-bg .bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.1px 1.1px at 14% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 58%, #ffffffcc 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 52% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 42%, #ffffffaa 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 86% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 66%, #ffffff99 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 76%, #ffffff88 50%, transparent 51%);
  background-size: 520px 360px;
  opacity: .55;
  animation: bg-pan 180s linear infinite;
}
@keyframes bg-pan { to { background-position: 520px 0; } }

.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.bg-glow--a {
  width: min(52vw, 700px); aspect-ratio: 1; top: -16vw; left: -10vw;
  background: radial-gradient(circle, rgba(var(--acc-rgb), .32), transparent 62%);
  animation: bg-drift-a 38s ease-in-out infinite alternate;
}
.bg-glow--b {
  width: min(46vw, 620px); aspect-ratio: 1; bottom: -14vw; right: -8vw;
  background: radial-gradient(circle, rgba(var(--acc2-rgb), .2), transparent 62%);
  animation: bg-drift-b 46s ease-in-out infinite alternate;
}
@keyframes bg-drift-a { to { transform: translate3d(12vw, 7vh, 0) scale(1.14); } }
@keyframes bg-drift-b { to { transform: translate3d(-11vw, -9vh, 0) scale(1.1); } }

/* ==========================================================
   DEMO-BANNER
   ========================================================== */
.demo-banner {
  position: relative; z-index: 5;
  padding: 8px 16px; text-align: center; font-size: 13px;
  background: rgba(var(--acc2-rgb), .1); border-bottom: 1px solid rgba(var(--acc2-rgb), .25); color: var(--lav-ink);
}

/* ==========================================================
   AUTH
   ========================================================== */
.segmented {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
}
.segmented button {
  position: relative; z-index: 1; min-height: 40px; border: 0; background: none; border-radius: 999px;
  font-weight: 600; color: var(--muted); transition: color .25s;
}
.segmented button[aria-selected="true"] { color: #fff; }
.segmented-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--amber);
  transition: transform .35s var(--ease-out);
}
.segmented[data-active="register"] .segmented-thumb,
.segmented[data-active="sound"] .segmented-thumb,
.segmented[data-active="mine"] .segmented-thumb,
.segmented[data-active="koop"] .segmented-thumb { transform: translateX(100%); }

.auth-form { display: grid; gap: 15px; animation: view-in .35s var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select, .q-punish-form textarea, .pet-say-form input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus, .q-punish-form textarea:focus, .pet-say-form input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--acc2-rgb), .18); }
.field input::placeholder, .field textarea::placeholder, .pet-say-form input::placeholder { color: var(--dim); }
.form-msg { min-height: 1.2em; font-size: 14px; color: var(--danger); }
.form-msg.is-ok { color: var(--ok-ink); }
.form-msg:empty { display: none; }
/* ---------- Social Login ---------- */
.social { margin-bottom: 20px; }
.social-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-btn {
  --brand: var(--surface-2); --on-brand: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid transparent; background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease-out), filter .2s, box-shadow .2s;
}
.social-btn:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 8px 20px -10px var(--brand); }
.social-btn:active { transform: scale(.97); }
.social-btn:disabled { opacity: .6; cursor: progress; }
.social-btn.is-primary { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.s-icon {
  width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.social-btn--twitch  { --brand: #9146ff; --on-brand: #fff; }
.social-btn--discord { --brand: #5865f2; --on-brand: #fff; }
.social-btn--google  { --brand: #ffffff; --on-brand: #1f1f1f; }
.social-btn--spotify { --brand: #1ed760; --on-brand: #0b0b0b; }
.social-btn--github  { --brand: #0d1117; --on-brand: #f0f6fc; border-color: #3d444d; }
.social-btn--twitch .s-icon  { --icon: url("../assets/icons/twitch.svg"); }
.social-btn--discord .s-icon { --icon: url("../assets/icons/discord.svg"); }
.social-btn--google .s-icon  { --icon: url("../assets/icons/google.svg"); }
.social-btn--spotify .s-icon { --icon: url("../assets/icons/spotify.svg"); }
.social-btn--github .s-icon  { --icon: url("../assets/icons/github.svg"); }
.social-msg { margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 13px; color: var(--dim); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.admin-link { justify-self: center; font-size: 13px; color: var(--dim); text-decoration: none; }
.admin-link:hover { color: var(--muted); text-decoration: underline; }

/* ==========================================================
   APP
   ========================================================== */
/* ---------- Begrüßung + Countdown zum nächsten Termin ---------- */
.hello-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--hero);
}
.nd-bg { position: absolute; inset: 0; background-image: url("../assets/bg-tracks.svg"); background-size: cover; background-position: center; opacity: var(--hero-img); }
.hh-text { position: relative; flex: 1 1 280px; min-width: 0; }
.hh-text h2 { margin: 0; font-size: clamp(28px, 3vw, 34px); line-height: 1; text-wrap: balance; }
.hh-text p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.hh-text b { color: var(--text-strong); font-weight: 600; }

/* Glücksrad-Kachel: die Scheibe dreht sich hinter dem Text */
.tile--wheel { background: radial-gradient(90% 90% at 80% 20%, #2a1a52 0%, #141026 55%, #0d0b18 100%); }
.wheel-card-disc {
  position: absolute; z-index: -2;
  width: min(62%, 200px); aspect-ratio: 1; right: -8%; top: -12%; border-radius: 50%;
  background:
    radial-gradient(circle, #0d0b18 0 13%, transparent 13.5%),
    conic-gradient(var(--c1, #ffb81c) 0 45deg, #1b1830 45deg 90deg, var(--c2, #3ddc84) 90deg 135deg, #1b1830 135deg 180deg, var(--c3, #9146ff) 180deg 225deg, #1b1830 225deg 270deg, var(--c1, #ffb81c) 270deg 315deg, #1b1830 315deg 360deg);
  box-shadow: 0 0 0 7px #0d0b18, 0 0 0 9px rgba(var(--acc2-rgb), .6), 0 30px 80px rgba(0, 0, 0, .6);
  animation: spin 40s linear infinite;
  transition: filter .4s;
}
.tile--wheel:hover .wheel-card-disc { animation-duration: 2.4s; filter: brightness(1.15); }

/* ---------- Content-Ideen: Kopf, Suche, Ansicht, Filter ---------- */
.ideas-section { display: flex; flex-direction: column; gap: 14px; }
.ideas-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.ideas-head h2 { margin: 0; font-size: 28px; line-height: 1; text-transform: uppercase; }
.ideas-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ideas-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ideas-search {
  display: flex; align-items: center; gap: 8px; width: min(260px, 60vw); height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .5); color: var(--muted);
}
.ideas-search:focus-within { border-color: rgba(var(--acc-rgb), .55); }
.ideas-search input { flex: 1; min-width: 0; border: 0; padding: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--text-strong); }
.view-toggle { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .8); }
.view-toggle button {
  width: 34px; height: 30px; border: 0; border-radius: 999px; display: grid; place-items: center;
  font-size: 16px; background: transparent; color: var(--muted); cursor: pointer;
}
.view-toggle button:hover { color: var(--text-strong); }
.view-toggle button[aria-pressed="true"] { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: #fff; }

.ideas-filters { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(var(--surf-rgb), .5); color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.cat-chip[hidden] { display: none; }
.cat-chip:hover { border-color: rgba(var(--acc-rgb), .55); }
.cat-chip[aria-pressed="true"] { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .25); color: var(--text-strong); }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--acc)); flex: none; }
.cat-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ---------- Abschnitts-Überschriften ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.section-head h2 { font-size: clamp(22px, 2.2vw, 30px); }
.section-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kachel-Raster ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tile {
  --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 50%;
  /* Kacheln bleiben auch im hellen Modus dunkel (Bild + Verlauf) */
  --text: #eef1f7; --text-2: #c9cfdb;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 176px; padding: 44px 16px 16px;
  border: 1px solid var(--line); border-radius: 16px;
  background: #151022;
  text-align: left; color: var(--text);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out);
  animation: tile-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.tile:hover, .tile:focus-visible {
  --lift: -3px;
  border-color: rgba(var(--acc-rgb), .45);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--acc2-rgb), .15), 0 20px 50px -20px var(--tile-glow, rgba(var(--acc2-rgb), .35));
}
.tile.is-tilting { transition: transform .12s linear, border-color .3s, box-shadow .45s var(--ease-out); }

.tile-bg {
  position: absolute; inset: -2px; z-index: -3;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), filter .6s;
  filter: saturate(.9) brightness(.85);
}
.tile:hover .tile-bg, .tile:focus-visible .tile-bg { transform: scale(1.1); filter: saturate(1.1) brightness(1); }
.tile-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(10, 13, 19, .15) 0%, rgba(10, 13, 19, .7) 50%, rgba(10, 13, 19, .97) 100%);
}
.tile-shine {
  position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 45%);
  transition: opacity .3s;
}
.tile:hover .tile-shine { opacity: 1; }

.theme-tracks .tile-bg { background-image: url("../assets/bg-tracks.svg"); }
.theme-storm .tile-bg  { background-image: url("../assets/bg-storm.svg"); }
.theme-ghost .tile-bg  { background-image: url("../assets/bg-ghost.svg"); }
.theme-city .tile-bg   { background-image: url("../assets/bg-city.svg"); }
.theme-tracks { --tile-glow: rgba(61, 220, 132, .35); }
.theme-storm  { --tile-glow: rgba(var(--acc-rgb), .5); }
.theme-ghost  { --tile-glow: rgba(157, 255, 180, .3); }
.theme-city   { --tile-glow: rgba(255, 120, 80, .4); }
.theme-prank .tile-bg { background-image: url("../assets/bg-prank.svg"); }
.theme-prank  { --tile-glow: rgba(255, 70, 70, .45); }
.theme-bingo .tile-bg { background-image: url("../assets/bg-bingo.svg"); }
.theme-bingo  { --tile-glow: rgba(79, 195, 255, .45); }
.theme-questions .tile-bg { background-image: url("../assets/bg-questions.svg"); }
.theme-questions { --tile-glow: rgba(255, 95, 168, .45); }
.theme-pet .tile-bg { background-image: url("../assets/bg-pet.svg"); }
.theme-shop .tile-bg { background-image: url("../assets/bg-shop.svg"); }
.theme-shop { --tile-glow: rgba(255, 201, 51, .45); }
.theme-challenge .tile-bg { background-image: url("../assets/bg-challenge.svg"); }
.theme-challenge { --tile-glow: rgba(255, 92, 92, .45); }
.theme-pet { --tile-glow: rgba(92, 195, 107, .45); }

.tile-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Art der Idee: Plakette oben links */
.tile-cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: rgba(10, 13, 19, .65); border: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.tile-cat .cat-dot { width: 6px; height: 6px; box-shadow: 0 0 8px var(--dot); }
/* StreamHelp Pro (js/pro.js): Abzeichen neben der Art; ohne Pro (sobald es gilt) gedämpft mit Schloss */
.tile-pro { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #9184d9, #c9b8ff); color: #160f2e; font-weight: 700; letter-spacing: .08em; }
.tile.is-pro-locked { cursor: pointer; }
.tile.is-pro-locked > :not(.tile-cat) { opacity: .55; filter: saturate(.6); }
.tile.is-pro-locked .tile-pro::before { content: "🔒 "; }
/* Wann: „Jederzeit“ oder Datum mit kurzem Countdown – steht unten */
.tile-tag {
  order: 9; display: flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.tile-tag::before { content: "\e2de"; font-family: "Phosphor"; font-weight: 400; font-size: 14px; line-height: 1; }
.tile-tag--date { color: #d2cefd; }
.tile-tag--date::before { content: "\e10a"; }
.tile-tag.is-soon { color: #ffb81c; }
.tile-tag.is-live { color: var(--red); }
.tile-tag.is-live::before { content: "\e3da"; animation: blink 1.2s steps(1) infinite; }
.tile-title { font-size: 22px; line-height: 1.02; text-wrap: balance; }
.tile-desc {
  color: var(--text-2); font-size: 13.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Countdown */
.countdown { display: flex; gap: 6px; margin-top: 16px; }
.countdown.countdown--mini { display: inline; margin: 0; font-variant-numeric: tabular-nums; }
.cd-unit {
  flex: 1; max-width: 64px;
  display: grid; justify-items: center; padding: 8px 4px 6px;
  border-radius: 10px;
  background: linear-gradient(rgba(20, 25, 37, .85) 50%, rgba(15, 19, 29, .9) 50%);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.cd-num { font-family: var(--font-mono); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--amber); font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-num.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 0% { transform: translateY(-3px); opacity: .4; } 100% { transform: none; opacity: 1; } }
/* Weniger als 24 Stunden: warm hervorgehoben, Sekunden pulsieren */
.countdown--soon .cd-unit { border-color: rgba(255, 184, 28, .55); background: linear-gradient(rgba(58, 38, 8, .85) 50%, rgba(44, 28, 6, .9) 50%); box-shadow: 0 0 14px -4px rgba(255, 184, 28, .55); }
.countdown--soon .cd-num { color: #ffcf5a; }
.countdown--soon .cd-unit:first-child { opacity: .45; }
.countdown--soon .cd-unit:last-child { animation: cd-soon 1s ease-in-out infinite; }
@keyframes cd-soon { 50% { box-shadow: 0 0 20px -2px rgba(255, 184, 28, .8); } }
.tile.is-soon { border-color: rgba(255, 184, 28, .45); }
.countdown--done { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.countdown--lg .cd-unit { max-width: 116px; padding: 12px 6px 9px; }
.countdown--lg .cd-num { font-size: clamp(26px, 3.4vw, 42px); }

/* ---------- Archiv & Vorschläge ---------- */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.panels .section-head { margin-bottom: 14px; }
.panels .section-head h2 { font-size: clamp(20px, 1.9vw, 26px); }

.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.archive li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 13px 15px; border-radius: 14px;
  background: rgba(var(--surf-rgb), .8); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease-out);
}
.archive li:hover { border-color: var(--line-2); transform: translateX(2px); }
.archive .ar-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.archive .ar-main { min-width: 0; }
.archive .ar-title { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.archive .ar-meta { display: block; font-size: 13px; color: #8b95ab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive .ar-vod {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .12); color: #c5a6ff; text-decoration: none;
}
.archive .ar-vod:hover { background: rgba(var(--acc-rgb), .22); text-decoration: none; }
.panel .empty { display: block; padding: 16px; border-radius: 14px; background: rgba(var(--surf-rgb), .8); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.ideas-box { padding: 16px; border-radius: 18px; background: rgba(var(--surf-rgb), .8); border: 1px solid var(--line); display: grid; gap: 12px; }
.ideas-box form { display: grid; gap: 12px; }
.ideas { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ideas li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px; background: var(--bg-2); border: 1px solid #1f2738;
}
.ideas .idea-main { min-width: 0; }
.ideas .idea-text { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ideas .idea-by { display: block; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.vote-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  transition: background-color .2s, border-color .2s, color .2s;
}
.vote-btn::before { content: "▲"; }
.vote-btn:hover:not(:disabled) { border-color: rgba(var(--acc2-rgb), .45); color: var(--amber-2); }
.vote-btn.is-voted { border-color: rgba(var(--acc2-rgb), .55); background: rgba(var(--acc2-rgb), .14); color: var(--amber-2); }
.vote-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ==========================================================
   DIALOGE
   ========================================================== */
.dialog {
  width: min(94vw, 1080px); max-height: 92dvh;
  padding: 0; border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9);
  overflow: auto;
}
.dialog::backdrop { background: rgba(4, 6, 10, .7); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .45s var(--ease-out); }
.dialog[open]::backdrop { animation: fade-in-full .3s ease; }
.dialog.is-closing { animation: dialog-out .22s ease forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in-full { from { opacity: 0; } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.dialog-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-transform: uppercase; margin-top: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog--small { width: min(94vw, 520px); }

/* Glücksrad-Dialog */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: 20px 24px 28px; align-items: start; }
.wheel-stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding-top: 14px; }
.wheel-stage canvas { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.wheel-pointer {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: 36px; height: 46px; margin-left: -18px;
  background: var(--amber);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6));
  transform-origin: 50% 20%;
}
.wheel-pointer.tick { animation: pointer-tick .14s ease-out; }
@keyframes pointer-tick { 40% { transform: rotate(-16deg); } 100% { transform: rotate(0); } }
.wheel-hub {
  position: absolute; left: 50%; top: calc(50% + 7px); transform: translate(-50%, -50%);
  width: 18%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #262e44, #0d1018);
  border: 3px solid var(--amber);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .6);
}
.wheel-hub img { width: 56%; }
.wheel-side { display: grid; gap: 16px; }
.variants { border: 0; padding: 0; margin: 0; }
.variants legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.variant-list { display: grid; gap: 8px; }
.variant-opt { position: relative; }
.variant-opt input { position: absolute; opacity: 0; pointer-events: none; }
.variant-opt label {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.variant-opt label:hover { border-color: var(--line-2); transform: translateX(2px); }
.variant-opt .swatch { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.variant-opt strong { font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.variant-opt small { color: var(--muted); font-size: 13px; }
.variant-opt input:checked + label { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg-2)); }
.variant-opt input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }

.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft-ink); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; flex: none; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-spring); }
.toggle input:checked + .toggle-ui { background: var(--twitch); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--amber); outline-offset: 2px; }

.result {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px;
  background: var(--bg-2); border: 1px dashed var(--line-2);
  transition: border-color .3s, background-color .3s;
}
.result-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.result-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.result-detail { color: var(--soft-ink); font-size: 15px; }
.result-bonus {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display); font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--b, var(--amber)); background: color-mix(in srgb, var(--b, var(--amber)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--b, var(--amber)) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--b, var(--amber)) 35%, transparent);
  animation: result-pop .6s var(--ease-spring) .1s both;
}
.result-bonus::before { content: "◆"; font-size: 12px; }
#wheel-canvas { transition: transform .26s var(--ease-out), opacity .26s; }
#wheel-canvas.is-swap { transform: scale(.82) rotate(-25deg); opacity: .2; }
.result.is-new { border-style: solid; border-color: var(--c, var(--amber)); background: color-mix(in srgb, var(--c, var(--amber)) 9%, var(--bg-2)); animation: result-pop .6s var(--ease-spring); }
@keyframes result-pop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }

.reward-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); color: var(--lav-ink); }
.reward-info:empty { display: none; }
.reward-info .ri-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--twitch); color: #fff; font-weight: 800; font-family: var(--font-display); }
.reward-info b { color: var(--text-strong); }

.history h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.history li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 14px; }
.history li.is-new { animation: view-in .4s var(--ease-out); }
.history .src { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: .08em; }
.history .src--twitch { background: rgba(var(--acc-rgb), .2); color: var(--twitch-2); }
.history .src--web { background: rgba(var(--acc2-rgb), .14); color: var(--amber); }
.history .h-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history .h-main small { color: var(--muted); }
.history time { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.history .empty { color: var(--dim); background: none; padding: 4px 0; display: block; }

/* Glücksrad bearbeiten (Admins) */
.dialog--wheel-edit { width: min(96vw, 1040px); }
.we-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 24px 26px; }
.we-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.we-card h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.we-hint { color: var(--muted); font-size: 14px; margin-top: -6px; }
.we-cost-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.we-cost-row .field { flex: 1 1 200px; max-width: 280px; }
.we-card .field input { background: var(--bg); }
.we-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.we-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--text-2);
  transition: border-color .2s, background-color .2s, color .2s;
}
.we-tab .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.we-tab:hover:not(:disabled) { border-color: var(--c, var(--amber)); color: var(--text); }
.we-tab.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--text); }
.we-tab--add { border-style: dashed; color: var(--muted); }
.we-tab:disabled { opacity: .45; cursor: not-allowed; }
.we-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(200px, .8fr); gap: 20px; align-items: start; }
.we-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.we-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.we-color input[type="color"] { width: 64px; height: 44px; padding: 4px; cursor: pointer; }
.we-segs-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.we-segs-head small { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.we-segs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
.we-segs li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.we-num { font-family: var(--font-mono); font-size: 13px; color: var(--dim); text-align: center; }
.we-seg-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 8px; }
.we-seg-fields input {
  width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.we-seg-fields .we-label { font-weight: 600; }
.we-seg-fields input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--acc2-rgb), .18); }
.we-seg-fields input::placeholder { color: var(--dim); }
.we-seg-btns { display: flex; gap: 4px; }
.icon-btn--sm { width: 30px; height: 30px; font-size: 14px; }
.icon-btn--sm:hover { transform: none; }
.icon-btn--sm:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.we-bonus-toggle { font-size: 14px; font-weight: 600; margin-top: 2px; }
.we-parts { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.we-part { min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.we-part[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.we-seg-color { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.we-seg-color::-webkit-color-swatch-wrapper { padding: 0; }
.we-seg-color::-webkit-color-swatch { border: none; border-radius: 50%; }
.we-seg-color::-moz-color-swatch { border: none; border-radius: 50%; }
.we-seg-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.we-danger { color: var(--danger); }
.we-danger:hover:not(:disabled) { border-color: var(--red); }
.we-danger:disabled { opacity: .4; cursor: not-allowed; }
.we-preview { position: sticky; top: 0; padding-top: 12px; }
.we-preview canvas { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); }
.we-preview .wheel-pointer { width: 24px; height: 30px; margin-left: -12px; }
.we-card .dialog-actions { margin-top: 0; }
@media (max-width: 760px) {
  .we-layout { grid-template-columns: 1fr; }
  .we-preview { position: relative; width: min(100%, 240px); margin: 0 auto; order: -1; }
  .we-seg-fields { grid-template-columns: 1fr; }
  .we-segs { max-height: none; }
  .we-body { padding: 14px 12px 20px; }
  .we-card { padding: 14px; }
  .we-segs li { grid-template-columns: 22px minmax(0, 1fr); }
  .we-seg-btns { grid-column: 2; justify-content: flex-end; }
}

/* Kachel-Dialog */
.dialog--tile { width: min(94vw, 640px); }
.tile-dialog-hero { position: relative; height: 200px; background-size: cover; background-position: center; }
.tile-dialog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--surface)); }
.tile-dialog-hero .icon-btn { position: absolute; right: 16px; top: 16px; z-index: 1; }
.tile-dialog-body { padding: 0 24px 24px; margin-top: -30px; position: relative; }
.tile-dialog-body h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; text-transform: uppercase; margin: 6px 0 10px; }
.tile-dialog-desc { color: var(--soft-ink); font-size: 17px; }
.tile-form { display: grid; gap: 14px; margin-top: 40px; }

.twitch-dialog-body { padding: 16px 24px 24px; display: grid; gap: 16px; }

/* ---------- OBS-Overlay ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dialog--obs { width: min(96vw, 1320px); }
.obs-hint { font-size: 13px; color: var(--muted); }
.obs-note { padding: 10px 14px; border-radius: 12px; background: rgba(var(--acc2-rgb), .08); border: 1px solid rgba(var(--acc2-rgb), .3); color: var(--lav-ink); font-size: 14px; }

/* 1. Verbindung */
.obs-connect { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.obs-connect[data-state="on"] { border-color: rgba(61, 220, 132, .45); }
.obs-connect-head { display: flex; gap: 12px; align-items: flex-start; }
.obs-connect-head b { display: block; font-size: 16px; }
.obs-connect-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.obs-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--dim); }
.obs-connect[data-state="busy"] .obs-dot { background: var(--amber); animation: blink 1s steps(1) infinite; }
.obs-connect[data-state="on"] .obs-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.obs-connect-form, .obs-connected { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.obs-connected { grid-template-columns: minmax(0, 1fr) auto auto; }
.obs-connect-form[hidden], .obs-connected[hidden] { display: none; }
.obs-ws-msg:empty { display: none; }
.obs-help { font-size: 13px; color: var(--soft-ink); }
.obs-help summary, .obs-more summary, .obs-manual summary { cursor: pointer; color: var(--amber-2); font-weight: 600; font-size: 14px; }
.obs-help ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.obs-help p { color: var(--muted); }
.obs-share { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.obs-share:hover { color: var(--text); }
.obs-share[hidden] { display: none; }

/* 2. Vorschau: Karten lassen sich dort verschieben */
.obs-preview {
  position: relative; aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 9, 15, .15), rgba(7, 9, 15, .55)),
    url("../assets/bg-storm.svg") center / cover;
}
.obs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.obs-bg[hidden] { display: none; }
/* color-scheme wie im Overlay (hell): Bei abweichendem Schema legt der
   Browser einen deckenden Hintergrund hinter das iframe. */
.obs-preview iframe {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0;
  transform-origin: 0 0; color-scheme: normal; background: transparent;
}
.obs-preview-label {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; pointer-events: none;
  background: rgba(7, 9, 15, .75); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.obs-preview.has-shot .obs-preview-label { color: var(--ok-ink); }
.obs-red { color: #ff7a6e; }

/* 3. Was ist zu sehen */
.obs-options { display: grid; gap: 12px; }
.obs-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.obs-part {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr); gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
}
.obs-part-label { font-size: 14px; color: var(--soft-ink); }
.obs-style { grid-template-columns: minmax(0, 1fr); }
.obs-style select {
  width: 100%; min-height: 34px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg);
}
.obs-size { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.obs-size output, .obs-range output { font-family: var(--font-mono); font-size: 12px; color: var(--text); text-align: right; }
.obs-options input[type="range"] { width: 100%; accent-color: var(--amber); cursor: pointer; }
.obs-options input[type="range"]:disabled { opacity: .35; cursor: default; }
.obs-more { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.obs-more[open] summary { margin-bottom: 12px; }
.obs-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: end; }
.obs-more .field select, .obs-more .field input[type="text"] { background: var(--bg); }
.obs-wide { grid-column: 1 / -1; }
.obs-range > span { display: flex; justify-content: space-between; gap: 8px; }
.obs-range input[type="range"] { min-height: 46px; padding: 0; border: 0; background: none; box-shadow: none; }
.obs-color input[type="color"] { padding: 4px; cursor: pointer; background: var(--bg); }
.obs-reset { justify-self: start; }

/* 4. Ergebnis */
.obs-url { display: flex; gap: 8px; }
.obs-url input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  font-family: var(--font-mono); font-size: 13px; color: var(--amber-2);
}
.obs-url input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--acc2-rgb), .18); }
.obs-manual { font-size: 14px; }
.obs-steps { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--soft-ink); font-size: 14px; }
.obs-steps b { color: var(--text); }
@media (max-width: 760px) {
  .obs-parts, .obs-more-grid { grid-template-columns: minmax(0, 1fr); }
  .obs-connected { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .obs-connect-form { grid-template-columns: minmax(0, 1fr); }
}
.twitch-dialog-body p { color: var(--soft-ink); }
.twitch-dialog-body .bot-note {
  padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px;
}
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perm-list li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.perm-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
.perm-list small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Toasts ---------- */
/* Die Meldungen liegen als Popover in der "top layer" – sonst verschwinden
   sie hinter dem abgedunkelten Hintergrund eines offenen Dialogs. Die
   Angaben hier überschreiben die Standard-Darstellung von [popover]. */
.toasts {
  position: fixed; inset: auto 16px 16px auto; z-index: 200;
  display: grid; gap: 10px;
  width: min(380px, calc(100vw - 32px)); height: auto;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible;
}
.toasts:empty { display: none; }
.toast {
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  font-size: 14px;
  animation: toast-in .4s var(--ease-spring);
}
.toast--error { border-color: rgba(255, 90, 78, .5); }
.toast--ok { border-color: rgba(61, 220, 132, .45); }
.toast--twitch { border-color: rgba(var(--acc-rgb), .6); background: linear-gradient(135deg, rgba(var(--acc-rgb), .22), var(--surface-2)); }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
}
@media (max-width: 860px) {
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-stage { max-width: 420px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .wheel-card-disc { width: 86%; right: -20%; top: -4%; }
  .dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dialog--small { height: auto; border-radius: 24px 24px 0 0; margin-top: auto; }
  .dialog-head, .wheel-layout { padding-left: 16px; padding-right: 16px; }
  .archive li { grid-template-columns: minmax(0, 1fr) auto; }
  .archive .ar-date { grid-column: 1 / -1; }
  .cd-num { font-size: 19px; }
  .countdown--lg .cd-num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .site-status__dot { animation: none; }
}

@keyframes blink { 50% { opacity: 0; } }

.site-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.site-status b { color: var(--ok-ink); font-weight: 700; }
.site-status time { color: var(--dim); }
.site-status__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61,220,132,.1), 0 0 12px rgba(61,220,132,.75);
  animation: status-pulse 2.8s ease-in-out infinite;
}
@keyframes status-pulse { 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0), 0 0 16px rgba(61,220,132,.45); } }

/* ==========================================================
   Ärgere den Streamer
   ========================================================== */
.prank-tile-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.prank-tile-row:not(:has(> :not(.prank-cta):not(.prank-ammo):not(:empty))) { display: none; }
/* Im Raster zählt der Klick auf die ganze Kachel – „Los →“ und Deko braucht es nicht */
.grid .prank-cta, .grid .prank-ammo { display: none; }
.prank-ammo {
  font-size: 22px; letter-spacing: 2px; line-height: 1; white-space: nowrap;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.tile--prank:hover .prank-ammo { animation: prank-wiggle .6s var(--ease-spring); }
@keyframes prank-wiggle { 30% { transform: rotate(-6deg) translateY(-3px); } 60% { transform: rotate(4deg); } }
.prank-cta {
  flex: none; padding: 9px 14px; border-radius: 999px; background: #ff5a4e; color: #1a0604;
  font-weight: 700; font-size: 14px; transition: transform .25s var(--ease-spring);
}
.tile--prank:hover .prank-cta { transform: translateX(3px); }

.dialog--prank { width: min(96vw, 1080px); }
.prank-note {
  margin: 14px 24px 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(var(--acc2-rgb), .08); border: 1px solid rgba(var(--acc2-rgb), .3); color: var(--lav-ink); font-size: 14px;
}
.prank-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 32px); padding: 18px 24px 26px; align-items: start; }
.prank-main { display: grid; gap: 12px; }

/* Bühne mit Vorhang und Scheinwerfer, Dave in der Mitte */
.prank-stage {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 45% 55% at 50% 42%, rgba(255, 231, 160, .22), transparent 70%),
    linear-gradient(90deg, #6d0d1a 0 9%, transparent 9% 91%, #6d0d1a 91%),
    linear-gradient(180deg, #2a0f24 0%, #150a18 70%, #2b1a12 70%, #1a0f0a 100%);
}
.prank-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12%;
  background: #8e1222; border-bottom: 3px solid rgba(var(--acc2-rgb), .8);
  border-radius: 0 0 50% 50% / 0 0 30% 30%;
}
.dave {
  position: absolute; left: 50%; bottom: 8%; width: 46%; height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
  transform-origin: 50% 100%;
}
.dave-eyes-hit, .dave-mouth-hit { display: none; }
.dave.is-hit .dave-eyes, .dave.is-hit .dave-mouth { display: none; }
.dave.is-hit .dave-eyes-hit, .dave.is-hit .dave-mouth-hit { display: inline; }
.dave.is-hit { animation: dave-hit .6s var(--ease-out); }
@keyframes dave-hit {
  15% { transform: translateX(-50%) rotate(-7deg) translateY(4px); }
  40% { transform: translateX(-50%) rotate(5deg); }
  65% { transform: translateX(-50%) rotate(-3deg); }
}
.prank-bubble {
  position: absolute; left: 50%; top: 16%; z-index: 5; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: rgba(10, 13, 19, .85); border: 1px solid rgba(255, 255, 255, .15);
  font-weight: 700; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis;
  animation: bubble-in 2.6s var(--ease-out) both;
}
@keyframes bubble-in {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -14px); }
}

.prank-meter {
  position: relative; overflow: hidden; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ok-ink);
}
.prank-meter.is-cooling { color: var(--amber-2); }
.prank-meter-bar {
  position: absolute; inset: 0; z-index: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: rgba(var(--acc2-rgb), .14);
}
.prank-meter-text { position: relative; }
.prank-log ol { max-height: 200px; }
.prank-log-icon { font-size: 18px; line-height: 1; }

.prank-side { display: grid; gap: 14px; }
.prank-tabs { margin-bottom: 0; }
.prank-pane { display: grid; gap: 12px; }
.prank-pane[hidden] { display: none; }
.prank-lead { color: var(--soft-ink); font-size: 14px; }
.prank-h3 { font-size: 18px; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.prank-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prank-item {
  display: grid; justify-items: center; gap: 4px; padding: 14px 6px 10px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease-spring), border-color .2s, background-color .2s;
}
.prank-item-emoji {
  font-size: 38px; line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transition: transform .25s var(--ease-spring);
}
.prank-item:hover:not(:disabled) { border-color: #ff5a4e; background: rgba(255, 90, 78, .08); transform: translateY(-2px); }
.prank-item:hover:not(:disabled) .prank-item-emoji { transform: rotate(-12deg) scale(1.12); }
.prank-item:active:not(:disabled) { transform: scale(.96); }
.prank-item.is-nice:hover:not(:disabled) { border-color: var(--green); background: rgba(61, 220, 132, .08); }
.prank-item:disabled, .prank-sfx-main:disabled, .prank-sound-main:disabled { opacity: .45; cursor: not-allowed; }

.prank-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prank-sfx { position: relative; }
.prank-sfx-main {
  width: 100%; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-spring);
}
.prank-sfx-main span { font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.prank-sfx-main b { font-size: 13px; font-weight: 600; }
.prank-sfx-main:hover:not(:disabled) { border-color: var(--twitch); background: rgba(var(--acc-rgb), .1); transform: translateY(-2px); }
.prank-try {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; line-height: 1;
  transition: background-color .2s, transform .2s;
}
.prank-try:hover { background: var(--surface-2); transform: scale(1.08); }
.prank-sfx .prank-try { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; font-size: 12px; }

.prank-sounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.prank-sounds li { display: flex; align-items: center; gap: 6px; }
.prank-sounds li.empty { color: var(--dim); font-size: 14px; }
.prank-sound-main {
  flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; padding: 8px 12px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.prank-sound-main b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prank-sound-main small { font-size: 12px; color: var(--muted); }
.prank-sound-main:hover:not(:disabled) { border-color: var(--twitch); background: rgba(var(--acc-rgb), .1); }
.prank-del:hover { background: rgba(255, 90, 78, .18); }

.sound-form { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.sound-form[hidden] { display: none; }
.sound-file { position: relative; display: block; cursor: pointer; }
.sound-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sound-file-text {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--amber-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sound-file:focus-within .sound-file-text { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--acc2-rgb), .18); }
.form-hint { font-size: 12px; color: var(--muted); }
.prank-uploads-off { font-size: 14px; color: var(--muted); }

.prank-admin { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--acc2-rgb), .3); background: rgba(var(--acc2-rgb), .05); }
.prank-admin[hidden] { display: none; }
.prank-points { display: grid; gap: 12px; }
.prank-admin .prank-h3 { margin: 0; color: var(--amber-2); }

/* Sound-Nummern (auf Twitch eintippen) und Sounds mit eigener Belohnung (⚡) */
.prank-no {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .35em; border-radius: 999px;
  font: 700 11px/1 var(--font-mono); font-style: normal; color: #e9ddff; background: rgba(var(--acc-rgb), .28);
}
.prank-sfx-main .prank-no { position: absolute; top: 6px; left: 6px; }
.prank-sfx.is-direct .prank-sfx-main, .prank-sounds li.is-direct .prank-sound-main { border-color: rgba(255, 196, 0, .55); }
.prank-sfx.is-direct .prank-sfx-main::after, .prank-sounds li.is-direct .prank-sound-main b::after {
  content: "⚡"; font-size: 12px; margin-left: 4px;
}
.prank-sfx.is-direct .prank-sfx-main::after { position: absolute; bottom: 6px; right: 8px; margin: 0; }
.prank-direct { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; min-width: 0; }
.prank-direct[hidden] { display: none; }
.prank-direct legend { padding: 0 6px; font-size: 15px; }
.prank-panel { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; min-width: 0; }
.prank-panel legend { padding: 0 6px; font-size: 15px; }
.prank-panel:disabled { opacity: .6; }
.prank-direct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.prank-panel-extra { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.prank-h4 { margin: 4px 0 0; font-size: 15px; }
.prank-h4 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.prank-sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; }
.prank-sub-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.prank-sub-list input { accent-color: var(--amber, #ffb81c); }
.prank-direct-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 4px 8px; }
.prank-direct-name { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; font-size: 14px; }
.prank-direct-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prank-direct-name input { width: 18px; height: 18px; accent-color: var(--twitch); flex: none; }
.prank-direct-row input[type="number"] {
  width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px;
}
.prank-direct-row input[type="number"]:disabled { opacity: .45; }
.prank-direct-row small { grid-column: 1 / -1; font-size: 12px; padding-left: 26px; }
.prank-direct-ok { color: var(--green); }
.prank-direct-err { color: var(--danger); }

@media (max-width: 860px) {
  .prank-layout { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .prank-note { margin-left: 16px; margin-right: 16px; }
  .prank-stage { aspect-ratio: 16 / 10; }
  .dave { width: 34%; }
}
@media (max-width: 420px) {
  .prank-items, .prank-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   Fortnite-Bingo
   ========================================================== */
.bingo-tile-progress { color: #cfe6ff; }
.bingo-cta { background: #4fc3ff; color: #04121f; }

.dialog--bingo { width: min(96vw, 1080px); }
.bingo-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(18px, 3vw, 32px); padding: 18px 24px 26px; }
.dialog--bingo.is-admin .bingo-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); justify-items: stretch; align-items: start; }
.bingo-main { display: grid; gap: 12px; width: 100%; max-width: 620px; }
.bingo-status { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--amber-2); min-height: 1.2em; }
.bingo-card-wrap { position: relative; }
.bingo-main .bingo-grid {
  font-size: clamp(11px, 1.6vw, 17px);
  padding: .6em; border-radius: 18px; background: linear-gradient(180deg, #0f1d4d, #0a1233); border: 1px solid #22356e;
}
.bingo-empty { padding: 40px 20px; border-radius: 18px; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); }
.bingo-help { font-size: 14px; color: var(--muted); }
.bingo-win {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 10vw, 120px); text-transform: uppercase;
  color: #ffd36b; text-shadow: 0 6px 0 #c26410, 0 12px 30px rgba(0, 0, 0, .7);
}
.bingo-win.is-on { animation: bingo-win 2.4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes bingo-win {
  0% { opacity: 0; transform: scale(.4) rotate(-12deg); }
  20% { opacity: 1; transform: scale(1.08) rotate(-6deg); }
  30%, 80% { opacity: 1; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: scale(1.1) rotate(-6deg); }
}

.bingo-side { display: grid; gap: 14px; }
.bingo-side[hidden] { display: none; }
.bingo-box { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.bingo-box .prank-h3 { margin: 0; }
.bingo-box .prank-h3 small { font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.bingo-new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.bingo-new .toggle { min-height: 46px; }
.bingo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bingo-box .sound-form { padding: 12px; }
/* Tipprunde */
.bingo-bet-note {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(var(--acc2-rgb), .45); background: rgba(var(--acc2-rgb), .1);
  font-size: 14px; line-height: 1.45;
}
.bingo-bet-note.is-won { border-color: rgba(123, 208, 47, .55); background: rgba(123, 208, 47, .12); }
.bingo-bet-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.bingo-bet-start[hidden] { display: none; }
.bingo-bet-state { margin: 0; font-size: 14px; color: var(--amber); }
.bingo-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
/* Pro Bild: oben Name, Kopieren, Tresor, Löschen – darunter Seltenheit und Zahl im Icon */
.bingo-items li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 78px auto auto auto; gap: 6px 8px; align-items: center;
  grid-template-areas: "img name amount copy vault del" "img rarity cat cat cat cat";
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.bingo-items li:last-child { border-bottom: 0; }
.bingo-items li > img { grid-area: img; }
.bingo-items li > input:not(.bingo-amount-pick) { grid-area: name; }
.bingo-items li > .bingo-rarity-pick { grid-area: rarity; max-width: none; }
.bingo-items li > .bingo-amount-pick { grid-area: amount; width: 78px; }
.bingo-items li > button:not(.prank-del, .bingo-vault-btn) { grid-area: copy; }
.bingo-items li > .bingo-vault-btn { grid-area: vault; }
.bingo-items li > .bingo-cat-pick { grid-area: cat; min-width: 0; min-height: 36px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; }
/* Lootpool: Filter-Chips nach Kategorie und Überschrift je Kategorie */
.bingo-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.bingo-cat-chips:empty { display: none; }
.bingo-cat-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.bingo-cat-chip span { color: var(--dim); font-variant-numeric: tabular-nums; }
.bingo-cat-chip[aria-pressed="true"] { border-color: var(--acc); background: rgba(var(--acc-rgb), .16); color: var(--text); }
.bingo-cat-auto { margin: 0 0 8px; }
.bingo-cat-auto[hidden] { display: none; }
.bingo-items li.bingo-cat-head { display: block; padding: 8px 0 2px; border-bottom: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-ink, var(--text-2)); }
.bingo-items li > .prank-del { grid-area: del; }
.bingo-rarity-pick {
  min-height: 36px; max-width: 128px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-2);
  border-left: 6px solid var(--line-2); background: var(--bg); font-size: 13px;
}
.bingo-rarity-pick.r-common { border-left-color: #9aa0ab; }
.bingo-rarity-pick.r-uncommon { border-left-color: #7bd02f; }
.bingo-rarity-pick.r-rare { border-left-color: #4fb6ff; }
.bingo-rarity-pick.r-epic { border-left-color: #c46cff; }
.bingo-rarity-pick.r-legendary { border-left-color: #ffa24c; }
.bingo-rarity-pick.r-mythic { border-left-color: #ffd84a; box-shadow: 0 0 8px rgba(255, 214, 90, .45); }
.bingo-rarity-pick.r-exotic { border-left-color: #7fe8f5; }
.bingo-items li.empty { display: block; color: var(--dim); font-size: 14px; }
/* Tresor: eigene Überschrift, Items blass (kommen auf keine neue Karte) */
.bingo-items li.bingo-vault-head {
  display: block; position: sticky; top: 0; z-index: 1; margin-top: 4px; padding: 6px 8px; border-radius: 8px; border-bottom: 0;
  background: var(--surface-2); font: 600 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
}
.bingo-items li.is-vault > :not(.bingo-vault-btn) { opacity: .5; }
.bingo-items li.is-vault img { filter: grayscale(.8); }
/* Hochladen: ein Bild in mehreren Seltenheiten */
.bingo-rar-pick { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.bingo-rar-pick legend { padding: 0; font-size: 13px; color: var(--dim); }
.bingo-rar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bingo-rar-chip { position: relative; }
.bingo-rar-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bingo-rar-chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; transition: background .15s, border-color .15s, transform .15s var(--ease-spring);
}
.bingo-rar-chip span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--rc); }
.bingo-rar-chip input:checked + span { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 22%, var(--bg)); transform: scale(1.04); }
.bingo-rar-chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.bingo-rar-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.bingo-items img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.bingo-items input {
  min-width: 0; min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg);
}
.bingo-items input:focus { outline: none; border-color: var(--amber); }
@media (max-width: 860px) {
  .dialog--bingo.is-admin .bingo-layout { grid-template-columns: minmax(0, 1fr); }
  .bingo-layout { padding-left: 16px; padding-right: 16px; }
}

/* Startdatum für Zuschauer */
.tile-note {
  align-self: flex-start; margin-top: 10px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(var(--bg-rgb), .7); border: 1px solid rgba(var(--acc2-rgb), .35);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--amber-2);
}
.tile-start { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.tile-start[hidden] { display: none; }
.tile-start input { background: var(--bg); }

/* Ärgere den Streamer über Kanalpunkte */
.prank-howto {
  display: block; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--soft-ink);
  background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .35);
}
.prank-howto b { color: var(--text); }
.prank-howto small { display: block; margin-top: 6px; color: var(--amber-2); }
.prank-twitch-link { display: inline-block; margin-top: 6px; color: #c9a8ff; font-weight: 600; }
.prank-costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prank-costs input { background: var(--bg); }
.prank-sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.prank-sync-status { margin: 0; font-size: 13px; color: var(--soft-ink); }
#prank-dialog.is-viewer .prank-item:hover .prank-item-emoji { transform: rotate(-8deg) scale(1.08); }

/* Bingo: eigene Karte */
.bingo-tabs { margin-bottom: 0; }
.bingo-pane { display: grid; gap: 12px; }
.bingo-pane[hidden] { display: none; }
.bingo-mine-bar { display: grid; grid-template-columns: minmax(0, 140px) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.bingo-mine-bar .toggle { min-height: 46px; }
.bingo-mine-bar .btn { min-height: 46px; }
@media (max-width: 560px) {
  .bingo-mine-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .bingo-mine-bar .btn { grid-column: 1 / -1; }
}

/* ==========================================================
   Unangenehme Fragen
   ========================================================== */
.tile--questions .prank-cta { background: #ff5fa8; color: #2a0616; }
.tile--pet .prank-cta { background: #5cc36b; color: #06210c; }
.tile--questions:hover .prank-cta, .tile--pet:hover .prank-cta { transform: translateX(3px); }
.tile-live-status { color: #f4e9ff; }
.tile--pet.is-hungry .tile-live-status { color: #ffb3b3; }
.pet-tile-dino { position: absolute; right: 14px; top: -64px; width: 86px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.pet-tile-dino .dino-svg { width: 100%; height: auto; }
.tile--pet .tile-body { position: relative; }
.tile--pet:hover .pet-tile-dino { animation: dino-hop .5s ease-out; }
.tile--pet.is-hungry .pet-tile-dino .dino-brow { opacity: 1; }

.dialog--questions, .dialog--pet { width: min(96vw, 1080px); }
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); padding: 18px 24px 26px; align-items: start; }
.dialog--questions.is-admin .q-layout, .dialog--pet.is-admin .pet-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.q-main, .q-side, .pet-main { display: grid; gap: 14px; align-content: start; }
.q-side[hidden] { display: none; }

/* Karte „Gerade im Stream“ (gleich aufgebaut wie im Overlay) */
.qcard {
  position: relative; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(160deg, #3a0f45, #1b0a26); border: 1px solid rgba(255, 95, 168, .35);
  display: grid; gap: 6px;
}
.qcard-kicker { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #ff9cc9; }
.qcard-author { margin: 0; font-size: 13px; color: var(--muted); }
.qcard-text { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.qcard-result { margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; background: rgba(255, 255, 255, .08); }
.qcard[data-state="punished"] .qcard-result { background: rgba(255, 90, 78, .2); color: var(--danger); }
.qcard[data-state="answered"] .qcard-result { background: rgba(92, 195, 107, .2); color: #bdf5c4; }
.qcard-empty { margin: 0; color: var(--dim); }
.qcard[data-state="hidden"] .qcard-author, .qcard[data-state="hidden"] .qcard-text { display: none; }
.qcard:not([data-state="hidden"]) .qcard-empty { display: none; }

.q-form { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.q-form textarea, .q-punish-form textarea, .pet-settings textarea { width: 100%; resize: vertical; min-height: 70px; }
.q-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-count { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.q-list li.empty { color: var(--dim); font-size: 14px; }
.q-item { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 6px; }
.q-item--rejected { opacity: .6; }
.q-text { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.q-meta { margin: 0; font-size: 12px; color: var(--muted); }
.q-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.q-actions:empty { display: none; }
.q-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.q-punish-form { display: grid; gap: 8px; }

/* ==========================================================
   Der Dino
   ========================================================== */
.pet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); padding: 18px 24px 26px; align-items: start; }
.pet-stage {
  position: relative; overflow: hidden; height: 260px; border-radius: 18px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 78%, #14503f 78%, #0d3a2e),
    radial-gradient(circle at 80% 20%, rgba(255, 211, 107, .35), transparent 40%),
    linear-gradient(180deg, #1c6b5a, #0f3b36);
}
.pet-stage .dino, .pet-stage .dino-snack, .pet-stage .dino-food { bottom: 12%; }
.pet-stage .dino-heart { bottom: 55%; }
.pet-meter { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.pet-meter-bar { height: 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.pet-meter-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5cc36b, #ffd36b); transition: width .6s var(--ease-out); }
.pet-meter-fill.is-hungry { background: linear-gradient(90deg, #ffb03c, #ff5a4e); animation: pet-pulse 1.2s ease-in-out infinite; }
@keyframes pet-pulse { 50% { opacity: .6; } }
.pet-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.pet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pet-say-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pet-settings { display: grid; gap: 10px; }

@media (max-width: 860px) {
  .dialog--questions.is-admin .q-layout, .dialog--pet.is-admin .pet-layout { grid-template-columns: minmax(0, 1fr); }
  .pet-stage { height: 200px; }
}

/* OBS-Dialog: Laufband */
.obs-part-label small { font-weight: 500; color: var(--dim); text-transform: none; letter-spacing: 0; }
.obs-ticker-edit details { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.obs-ticker-edit summary { cursor: pointer; font-weight: 700; }
.obs-ticker-edit[open] summary, .obs-ticker-edit details[open] summary { margin-bottom: 10px; }
.obs-ticker-edit details > * + * { margin-top: 8px; }
/* Alert-Sounds: je Alert-Art Sound, eigene Lautstärke und ▶ */
.obs-asounds { display: grid; gap: 6px; margin-top: 10px; }
.obs-asound {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 30px; gap: 8px; align-items: end;
  padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.obs-asound-pick { display: grid; gap: 4px; min-width: 0; font-size: 13px; color: var(--muted); }
.obs-asound-pick select { min-width: 0; width: 100%; min-height: 34px; background: var(--bg); }
.obs-asound-vol { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; align-items: center; min-height: 34px; }
.obs-asound-vol input { width: 100%; accent-color: var(--twitch); }
.obs-asound-vol output { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--muted); }
.obs-asound .obs-mini-btn { width: 30px; height: 34px; padding: 0; display: grid; place-items: center; }
@media (max-width: 520px) {
  .obs-asound { grid-template-columns: minmax(0, 1fr) 30px; }
  .obs-asound-vol { grid-column: 1; grid-row: 2; }
  .obs-asound .obs-mini-btn { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}
/* Sound-Studio: Vorlagen und Regler für den Klang aller Overlay-Sounds */
.obs-studio { display: grid; gap: 8px; padding: 12px 14px; margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .45); }
.obs-studio-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-studio-preset {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer;
}
.obs-studio-preset:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.obs-studio-preset[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-900); color: var(--acc-100); }
.obs-studio-preset:disabled { opacity: .55; cursor: default; }
.obs-studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; align-items: center; }
.obs-studio-grid select { min-width: 0; }
.obs-studio-try { justify-self: start; }
.obs-alert-upload { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.obs-alert-upload h4 { font-size: 14px; font-weight: 700; }
.obs-alert-sound-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.obs-alert-sound-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.obs-alert-sound-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-alert-sound-list li small { color: var(--dim); font-family: var(--font-mono); font-size: 12px; }
.obs-alert-sound-list .empty { color: var(--dim); border-style: dashed; }
.obs-alert-upload-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.obs-alert-upload-row .field input { background: var(--bg); }
@media (max-width: 640px) { .obs-alert-upload-row { grid-template-columns: minmax(0, 1fr); } }
.obs-alerts details { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.obs-alerts summary { cursor: pointer; font-weight: 700; }
.obs-alerts details[open] summary { margin-bottom: 10px; }
.obs-alerts details > * + * { margin-top: 8px; }
.obs-alerts-status { color: var(--muted); font-size: 14px; }
.obs-alerts-status.is-warn { color: var(--amber-2); }
.obs-alerts-subs { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.obs-alerts-subs li { color: var(--muted); }
.obs-alerts-subs b { color: var(--text); font-weight: 600; }
.obs-alerts-subs .is-ok { color: var(--green, #3fb950); }
.obs-alerts-subs .is-bad { color: var(--amber-2); }
.obs-alerts-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* OBS-Dialog: Live-Status */
.obs-live { display: grid; gap: 8px; }
.obs-live-status { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: rgba(92, 195, 107, .1); border: 1px solid rgba(92, 195, 107, .35); color: #c9f5cf; }
.obs-live-status.is-locked { background: rgba(var(--acc2-rgb), .08); border-color: rgba(var(--acc2-rgb), .3); color: var(--lav-ink); }
.obs-live-status:empty { display: none; }

.pet-hint { margin: 0; font-size: 13px; color: var(--muted); }
.pet-actions .toggle { margin-left: auto; }

/* ==========================================================
   Kisten-Shop
   ========================================================== */
.tile--shop .prank-cta { background: #ffc933; color: #2a1a00; }
.tile--shop:hover .prank-cta { transform: translateX(3px); }
.dialog--shop { width: min(96vw, 1120px); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); padding: 18px 24px 26px; align-items: start; }
.dialog--shop.has-side .shop-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.shop-main { display: grid; gap: 14px; align-content: start; }
.shop-main .segmented { margin-bottom: 0; }
.shop-side:empty { display: none; }
.shop-rules { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 201, 51, .08); border: 1px solid rgba(255, 201, 51, .3); font-size: 14px; }
.shop-step { display: grid; gap: 12px; }
.shop-step[hidden] { display: none; }
.shop-koop { display: grid; gap: 10px; }
.shop-koop[hidden], .shop-koop-start[hidden], .shop-koop-info[hidden] { display: none; }
.shop-koop-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shop-join { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-join .form-msg { flex-basis: 100%; margin: 0; }
.shop-join .form-msg:empty { display: none; }
.shop-join input {
  width: 8em; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg);
  font-family: var(--font-mono); font-size: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
.shop-koop-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.shop-koop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-code { font-family: var(--font-mono); font-size: 22px; letter-spacing: .18em; color: var(--gold-ink); }
.shop-settings { display: grid; gap: 10px; }
.shop-prices { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.shop-prices legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.shop-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px; }
.shop-price { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; align-items: center; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--bg); border-left: 4px solid var(--rc); font-size: 13px; }
.shop-price input { min-height: 32px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.shop-settings textarea { width: 100%; resize: vertical; min-height: 120px; font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 860px) {
  .dialog--shop.has-side .shop-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- OBS-Einstellungen als eigenes Fenster (index.html?obs) ---------- */
body.obs-page #app { display: none !important; }
body.obs-page .dialog--obs {
  position: static; inset: auto; margin: 24px auto; width: min(100% - 32px, 1360px); max-width: none; max-height: none; overflow: visible;
  animation: none;
}
body.obs-page .dialog--obs .dialog-head .icon-btn { font-size: 16px; width: auto; padding: 0 14px; border-radius: 999px; }

/* ---------- OBS-Fenster v2 (aus „OBS Overlay v2“ in Claude Design) ----------
   Kopfzeile mit OBS-Status, links Vorschau und Adresse, rechts Ebenen mit Reitern. */
.obs-tab, .obs-layer-name, .obs-mini-btn, .obs-pill { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.obs-head { align-items: center; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.obs-head .dialog-head h2, .obs-head h2 { font-size: 36px; line-height: 1; }
.obs-pill {
  display: flex; align-items: center; gap: 12px; margin-right: auto; margin-left: 8px; max-width: 480px; min-width: 0;
  padding: 8px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.obs-pill:hover { background: var(--surface-2); }
.obs-pill .obs-dot { margin-top: 0; width: 10px; height: 10px; }
.obs-pill[data-state="on"] { border-color: rgba(61, 220, 132, .45); }
.obs-pill[data-state="on"] .obs-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.obs-pill[data-state="busy"] .obs-dot { background: var(--amber); animation: blink 1s steps(1) infinite; }
.obs-pill-text { display: grid; min-width: 0; }
.obs-pill-text b { font-size: 14px; }
.obs-pill-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-head-actions { display: flex; align-items: center; gap: 10px; }
.obs-saved { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.obs-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.obs-saved[data-state="on"] { color: var(--ok-ink); }
.obs-saved[data-state="on"]::before { background: var(--green); animation: live-blink 1.6s ease-in-out infinite; }
.obs-saved[data-state="locked"] { color: var(--lav-ink); }
.obs-saved[data-state="locked"]::before { background: var(--amber); }
.obs-saved:empty { display: none; }
@keyframes live-blink { 50% { opacity: .35; } }
.obs-head-actions .btn[hidden] { display: none; }
/* Bereiche ein- und ausklappen (js/app.js setupObsTools) */
.obs-cols, .obs-undo-box { display: flex; align-items: center; gap: 4px; }
.obs-col-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s;
}
.obs-col-btn[aria-pressed="true"] { color: var(--text); background: rgba(var(--acc-rgb), .16); border-color: rgba(var(--acc2-rgb), .55); }
.obs-col-btn:hover { color: var(--text); }
.obs-undo { min-width: 32px; min-height: 32px; font-size: 15px; }
.obs-history { position: relative; }
.obs-history summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--text-2); }
.obs-history summary::-webkit-details-marker { display: none; }
.obs-history[open] summary { background: var(--surface-2); color: var(--text); }
.obs-history-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; max-height: 340px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  border-radius: 12px; border: 1px solid var(--line-2); background: #1a1230; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
}
.obs-history-list li { display: flex; }
.obs-history-list button { flex: 1; border: 0; background: transparent; box-shadow: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 8px; text-align: left; font-size: 13px; color: var(--text-2); }
.obs-history-list button:hover { background: rgba(var(--acc-rgb), .14); color: var(--text); }
.obs-history-list button small { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.obs-history-list li.is-now button { background: rgba(var(--acc-rgb), .24); color: var(--text-strong); }
.obs-history-list li.is-future button { opacity: .5; }
.obs-history-list .is-empty { padding: 10px; font-size: 13px; color: var(--muted); }
/* Ebenen suchen, nur aktive zeigen */
.obs-layer-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.obs-layer-tools input[type="search"] { min-width: 0; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; }
.obs-layer-tools input[type="search"]:focus { outline: none; border-color: var(--amber); }
.obs-only-on { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.obs-layer-none { margin: 0; font-size: 13px; color: var(--muted); }
.obs-layer.is-filtered, .obs-group.is-filtered { display: none !important; }
/* Für Mods: keine Anleitungen zum Verbinden (das richtet der Streamer ein) */
.dialog--obs.is-mod .obs-help, .dialog--obs.is-mod .obs-manual { display: none; }
.obs-insp-head .obs-mini-btn.obs-insp-test { grid-column: 3; grid-row: 1 / 3; color: var(--green); border-color: rgba(61, 220, 132, .45); white-space: nowrap; }
.obs-insp-head .obs-mini-btn.obs-insp-test:hover { background: rgba(61, 220, 132, .12); }

.obs-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); padding: 0; }
.obs-left { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line-soft); min-width: 0; }
.obs-right { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.obs-left .obs-live-status { font-size: 13px; padding: 8px 12px; }

.obs-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; max-width: 100%; overflow-x: auto; }
.obs-tab { min-height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.obs-tab:hover { color: var(--text); }
.obs-tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.obs-pane[hidden] { display: none !important; }
.obs-options { display: contents; }

/* Ebenen */
.obs-layers { display: flex; flex-direction: column; gap: 14px; }
.obs-group { display: flex; flex-direction: column; gap: 6px; }
.obs-group-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.obs-layer { border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
.obs-layer.is-open { border-color: rgba(var(--acc2-rgb), .55); }
.obs-layer-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 12px; }
.obs-switch { gap: 0; }
.obs-switch--always { width: 40px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--twitch) 45%, var(--line-2)); position: relative; opacity: .7; }
.obs-switch--always::after { content: ""; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.obs-layer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); opacity: .3; transition: opacity .2s; }
.obs-layer.is-on .obs-layer-dot { opacity: 1; box-shadow: 0 0 8px var(--lc); }
.obs-layer-name { min-width: 0; padding: 6px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-layer.is-on .obs-layer-name { color: var(--text); }
.obs-layer-name small { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--dim); }
.obs-layer-size { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.obs-layer-chev { color: var(--dim); font-size: 12px; transition: transform .2s; cursor: pointer; }
.obs-layer.is-open .obs-layer-chev { transform: rotate(180deg); }
.obs-layer-head:has(.obs-layer-name:hover) .obs-layer-chev { color: var(--text); }
.obs-layer-body { display: grid; gap: 10px; padding: 4px 14px 14px 62px; }
.obs-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.obs-row > span:first-child { color: var(--muted); }
.obs-row select, .obs-row input[type="text"] {
  grid-column: 2 / -1; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 500 13px var(--font-body);
}
.obs-row output { font-family: var(--font-mono); font-size: 12px; color: var(--text); text-align: right; }
.obs-row input[type="range"] { width: 100%; accent-color: var(--amber); cursor: pointer; }
.obs-row input:disabled, .obs-row select:disabled { opacity: .4; cursor: default; }
.obs-place { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.obs-pos { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.obs-mini-btn { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; }
.obs-mini-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.obs-mini-btn:disabled { opacity: .4; cursor: default; }
.obs-row-toggle { font-size: 13px; }
.obs-row-hint { font-size: 12px; color: var(--dim); }
/* Streameransicht: Content-Ideen und Mods */
.obs-content { display: grid; gap: 12px; align-content: start; }
.obs-mods.is-on { border-color: rgba(61, 220, 132, .45); }
.obs-mods-status { font-size: 13px; color: var(--muted); }
.obs-mods-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.obs-mods-list li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.obs-mods-list:empty { display: none; }
.obs-content-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.obs-content-head { font-weight: 700; }
.obs-content-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.obs-content-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-soft, var(--line)); }
.obs-content-icon { font-size: 20px; }
.obs-content-main { display: grid; min-width: 0; }
.obs-content-main b { overflow-wrap: anywhere; line-height: 1.25; }
.obs-content-main small { color: var(--muted); font-size: 12px; }
.obs-content-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.obs-content-empty { color: var(--muted); font-size: 14px; }
.obs-pet-admin { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.obs-pet-admin[hidden] { display: none; }
.obs-pet-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-costume-box { display: grid; gap: 10px; }

/* Aussehen & Ton */
.obs-look { display: grid; gap: 14px; align-content: start; }
.obs-look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: end; }
.obs-look .field input[type="color"] { background: var(--bg); }
.obs-look input[type="range"] { width: 100%; accent-color: var(--amber); cursor: pointer; }
.obs-look input[type="range"]:disabled { opacity: .35; }

/* Texte & Tests */
.obs-admin { display: grid; gap: 12px; align-content: start; }
.obs-admin-empty { color: var(--muted); font-size: 14px; }
.obs-card-form { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.obs-card-form[hidden] { display: none; }
.obs-card-form small { color: var(--muted); font-size: 13px; }
.obs-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.obs-inline input { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }

@media (max-width: 1100px) {
  .obs-body { grid-template-columns: minmax(0, 1fr); }
  .obs-left { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .obs-head { gap: 10px; }
  .obs-pill { order: 3; margin: 0; max-width: none; width: 100%; }
  .obs-left, .obs-right { padding: 16px; }
  .obs-layer-body { padding-left: 14px; }
  .obs-row { grid-template-columns: 76px minmax(0, 1fr) 44px; }
  .obs-look-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mischpult: eigener Lautstärkeregler je Ebene (OBS-Fenster → Aussehen & Ton) */
.obs-mixer { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .45); }
.obs-mixer-head { display: grid; gap: 2px; margin-bottom: 6px; }
.obs-mixer-head small { color: var(--muted); font-size: 12px; }
.obs-mix { display: grid; grid-template-columns: minmax(0, 1fr) 48px 30px 30px; align-items: center; gap: 4px 8px; min-height: 34px; font-size: 14px; transition: opacity .2s; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.obs-mix input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
.obs-mix .obs-mini-btn { width: 30px; height: 28px; padding: 0; display: grid; place-items: center; }
.obs-mix.is-muted > span, .obs-mix.is-muted output { opacity: .5; text-decoration: line-through; }
.obs-mix.is-muted .obs-mix-mute { background: rgba(255, 90, 78, .2); border-color: rgba(255, 90, 78, .5); }
.obs-mix input[type="range"] { width: 100%; accent-color: var(--twitch); }
.obs-mix output { font-family: var(--font-mono); font-size: 12px; text-align: right; }
.obs-mix.is-off { opacity: .4; }
.obs-mix.is-off > span::after { content: " · aus"; color: var(--dim); font-size: 12px; }
.obs-mix.is-muted output { color: var(--danger); }
.obs-mix.is-muted output::after { content: " 🔇"; }

/* ==========================================================
   OBS-Editor (index.html?obs=1): Werkzeugleiste oben, links die Ebenen,
   in der Mitte die Bühne mit großer Vorschau, rechts der Inspektor.
   ========================================================== */
.obs-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-weight: 800; font-size: 15px; }
.obs-panel-title small { font-weight: 500; font-size: 11px; color: var(--dim); }
.obs-insp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.obs-insp-head[hidden] { display: none; }
.obs-insp-head .obs-layer-dot { grid-row: 1 / 3; width: 12px; height: 12px; opacity: 1; box-shadow: 0 0 10px var(--lc); }
.obs-insp-head b { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-insp-head small { grid-column: 2; color: var(--dim); font-size: 12px; }
.obs-insp-head.is-on small { color: var(--ok-ink); }
.obs-insp-head .obs-mini-btn { grid-column: 4; grid-row: 1 / 3; }
.obs-insp-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.obs-insp-empty[hidden] { display: none; }
.obs-insp-empty span { font-size: 30px; }
.obs-insp-empty b { color: var(--text); }
.obs-insp-empty p { font-size: 13px; max-width: 32ch; }
.obs-inspector { display: grid; gap: 14px; align-content: start; }
.obs-inspector .obs-layer-body { padding: 0; gap: 14px; }
.obs-inspector .obs-row { grid-template-columns: 96px minmax(0, 1fr) 52px; }

body.obs-page { overflow: hidden; }
body.obs-page .dialog--obs {
  position: fixed; inset: 0; z-index: 5; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; overflow: hidden;
  background: #0d0918;
}
body.obs-page .demo-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; }
/* Werkzeugleiste */
body.obs-page .obs-head {
  flex: none; display: flex; align-items: center; gap: 16px; margin: 0; padding: 10px 16px; min-height: 60px;
  background: #140e24; border-bottom: 1px solid #2c2244;
}
body.obs-page .obs-head .eyebrow { font-size: 10px; }
body.obs-page .obs-head h2 { font-size: 22px; text-transform: none; }
body.obs-page .obs-pill { padding: 6px 12px; border-radius: 10px; max-width: 420px; }
body.obs-page .obs-head-actions { gap: 8px; }
body.obs-page .obs-head-actions .icon-btn { order: -1; }
/* Arbeitsfläche */
body.obs-page .obs-body {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 370px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "layers stage tabs" "layers stage panel";
}
body.obs-page .obs-right, body.obs-page .obs-options { display: contents; }
body.obs-page .obs-layers {
  grid-area: layers; min-height: 0; overflow-y: auto; gap: 16px; padding: 16px 14px 24px;
  background: #120c20; border-right: 1px solid #2c2244;
}
body.obs-page .obs-left {
  grid-area: stage; min-height: 0; overflow-y: auto; padding: 28px clamp(16px, 3vw, 44px) 40px; border: 0; gap: 14px;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(var(--acc-rgb), .1), transparent 70%),
    repeating-conic-gradient(#0f0a1b 0 25%, #110c1f 0 50%) 0 0 / 28px 28px;
}
body.obs-page .obs-preview {
  /* ganzes 16:9-Bild sichtbar: so breit, dass es auch in der Höhe auf den Bildschirm passt */
  width: 100%; max-width: min(1280px, calc((100dvh - 150px) * 16 / 9)); margin: 0 auto; border-radius: 10px; border-color: #3b2f5a;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(var(--acc-rgb), .15);
}
body.obs-page .obs-left > :not(.obs-preview) { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
body.obs-page .obs-tabs {
  grid-area: tabs; align-self: stretch; display: flex; margin: 0; padding: 10px 12px 0; gap: 2px; border: 0; border-radius: 0;
  background: #120c20; border-left: 1px solid #2c2244; border-bottom: 1px solid #2c2244; overflow-x: auto;
}
body.obs-page .obs-tab { flex: 1 0 auto; min-height: 38px; padding: 0 12px; border-radius: 10px 10px 0 0; font-size: 13px; }
body.obs-page .obs-tab[aria-selected="true"] { background: #1c1430; box-shadow: inset 0 2px 0 var(--twitch); }
body.obs-page .obs-pane {
  grid-area: panel; min-height: 0; overflow-y: auto; padding: 18px 18px 32px;
  background: #1c1430; border-left: 1px solid #2c2244;
}
body.obs-page .obs-look-grid { grid-template-columns: minmax(0, 1fr); }
/* Ebenenliste: kompakt wie in einem Editor */
body.obs-page .obs-layer { border-radius: 10px; background: transparent; border-color: transparent; }
body.obs-page .obs-layer:hover { background: rgba(var(--acc-rgb), .07); }
body.obs-page .obs-layer.is-open { background: rgba(var(--acc-rgb), .18); border-color: rgba(var(--acc2-rgb), .6); }
body.obs-page .obs-layer-head { padding: 4px 8px; gap: 8px; }
body.obs-page .obs-layer-chev { transform: rotate(-90deg); }
body.obs-page .obs-layer.is-open .obs-layer-chev { color: var(--text); transform: rotate(-90deg) translateY(2px); }
body.obs-page .obs-group { gap: 2px; }
body.obs-page .obs-group-head { padding: 0 8px 4px; }

@media (max-width: 1280px) {
  body.obs-page .obs-body { grid-template-columns: 250px minmax(0, 1fr) 330px; }
}
/* Schmal: alles untereinander, die ganze Seite scrollt */
@media (max-width: 1000px) {
  body.obs-page { overflow: auto; }
  body.obs-page .dialog--obs { position: static; height: auto; min-height: 100dvh; overflow: visible; }
  body.obs-page .obs-head { flex-wrap: wrap; }
  body.obs-page .obs-body {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "stage" "tabs" "panel" "layers";
  }
  body.obs-page .obs-layers, body.obs-page .obs-pane, body.obs-page .obs-left { overflow: visible; border: 0; }
  body.obs-page .obs-left { padding: 16px; }
}
body.obs-page .obs-tab { flex: 1 1 auto; padding: 0 8px; }
/* Eingeklappt: im Fenster zwei Spalten, auf der OBS-Seite drei Bereiche */
.obs-body.is-closed-left { grid-template-columns: minmax(0, 1fr); }
.obs-body.is-closed-left .obs-left { display: none; }
.obs-body.is-closed-right { grid-template-columns: minmax(0, 1fr); }
.obs-body.is-closed-right .obs-right { display: none; }
.obs-body.is-closed-right .obs-left { border-right: 0; }
body.obs-page .obs-body.is-closed-left { grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "layers tabs" "layers panel"; }
body.obs-page .obs-body.is-closed-right { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "stage"; }
body.obs-page .obs-body.is-closed-right .obs-right { display: contents; }
body.obs-page .obs-body.is-closed-right .obs-layers, body.obs-page .obs-body.is-closed-right .obs-tabs, body.obs-page .obs-body.is-closed-right .obs-pane { display: none !important; }
@media (max-width: 1000px) {
  body.obs-page .obs-body.is-closed-left { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "panel" "layers"; }
}
@media (max-width: 640px) { .obs-col-text { display: none; } }
body.obs-page .obs-layer-name small { display: none; }
body.obs-page .obs-layer-name { font-size: 13.5px; }
body.obs-page .obs-layer-size { font-size: 11px; color: var(--dim); }
body.obs-page .obs-layer.is-open .obs-layer-size { color: var(--text-2); }
body.obs-page .demo-banner { font-size: 12px; padding: 4px 12px; }

/* Alert-Design-Bibliothek (OBS-Editor → Ebene „Alerts“) */
.al-lib { display: grid; gap: 8px; }
.al-lib-head { display: grid; gap: 2px; }
.al-lib-head small { color: var(--muted); font-size: 12px; }
.al-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.al-look { display: grid; gap: 5px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font: 600 12px var(--font-body); cursor: pointer; transition: border-color .2s, transform .15s, background-color .2s; }
.al-look:hover:not(:disabled) { border-color: rgba(var(--acc2-rgb), .6); transform: translateY(-2px); }
.al-look[aria-checked="true"] { border-color: var(--twitch); background: rgba(var(--acc-rgb), .18); color: var(--text-strong); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }
.al-look:disabled { opacity: .5; cursor: default; }
/* Mini-Vorschau: dieselbe Idee wie im Overlay, stark verkleinert */
.al-thumb {
  --c: #ffb81c; position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; height: 58px; overflow: hidden;
  border-radius: 8px; background: #151b28; border: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.al-thumb i { font-style: normal; font-size: 15px; line-height: 1; }
.al-thumb b { font: 800 13px var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.al-thumb s { width: 60%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); text-decoration: none; }
.al-thumb[data-look="classic"] { box-shadow: inset 0 0 0 2px var(--c); }
.al-thumb[data-look="neon"] { background: #06040e; border: 2px solid #ff4fd8; box-shadow: 0 0 10px #ff4fd8 inset; }
.al-thumb[data-look="neon"] b { text-shadow: 0 0 4px #fff, 0 0 10px #ff4fd8; }
.al-thumb[data-look="banner"] { grid-template-columns: auto 1fr; justify-items: start; column-gap: 6px; padding: 0 8px; border-left: 5px solid var(--c); border-radius: 5px; }
.al-thumb[data-look="banner"] s { display: none; }
.al-thumb[data-look="bubble"] { background: linear-gradient(135deg, #ffe066, #ff7ac8 55%, #9146ff); border: 2px solid #140a24; border-radius: 14px; box-shadow: 3px 3px 0 #140a24; }
.al-thumb[data-look="bubble"] b { -webkit-text-stroke: .5px #140a24; transform: rotate(-4deg); }
.al-thumb[data-look="glass"] { background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)), url("../assets/bg-city.svg") center / cover; border-color: rgba(255, 255, 255, .35); border-radius: 14px; }
.al-thumb[data-look="minimal"] { background: url("../assets/bg-storm.svg") center / cover; border-color: transparent; }
.al-thumb[data-look="minimal"] b { font-size: 15px; text-shadow: 0 1px 4px #000; }
.al-thumb[data-look="minimal"] s { display: none; }
.al-thumb[data-look="retro"] { border-radius: 0; background: #0b0b16 repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px var(--c) inset; }
.al-thumb[data-look="retro"] b { font: 700 11px var(--font-mono); text-shadow: 1px 1px 0 var(--c); }
.al-thumb[data-look="glitch"] { background: #08060f; border-radius: 3px; }
.al-thumb[data-look="glitch"] b { text-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8; }
.al-thumb[data-look="hype"] { border: 2px solid transparent; background: linear-gradient(#100a1e, #100a1e) padding-box, conic-gradient(#ff2a6d, #ffd36b, #3ddc84, #35c7ff, #9146ff, #ff2a6d) border-box; }
.al-thumb[data-look="hype"] b { background: linear-gradient(90deg, #ffd36b, #ff7ac8, #35c7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.al-thumb[data-look="gold"] { background: linear-gradient(160deg, #1a1408, #070604); border: 2px solid #e8c46a; border-radius: 4px; }
.al-thumb[data-look="gold"] b { font-family: Georgia, serif; text-transform: none; color: #e8c46a; }

/* ---------- Alert-Designer (Seite „Alerts“, js/alert-designer.js) ---------- */
.ad { display: grid; gap: 14px; }
.ad-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-kind { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font: 600 14px var(--font-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ad-kind:hover { border-color: var(--line-2); color: var(--text); }
.ad-kind[aria-selected="true"] { background: var(--twitch); border-color: var(--twitch); color: #fff; }
.ad-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-vars[hidden] { display: none; }
.ad-vars-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
.ad-var { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 600 13px var(--font-body); cursor: pointer; }
.ad-var[aria-pressed="true"] { border-color: var(--twitch-2); color: var(--text-strong); background: rgba(var(--acc-rgb), .22); }
.ad-var-add { border-style: dashed; color: var(--twitch-2); }
.ad-var:disabled { opacity: .5; cursor: default; }
.ad-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ad-stage { position: sticky; top: 76px; display: grid; gap: 10px; }
.ad-preview {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 820 / 440;
  background: linear-gradient(135deg, rgba(var(--bg-rgb), .35), rgba(var(--bg-rgb), .65)), url("../assets/bg-city.svg") center / cover;
}
.ad-preview iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; color-scheme: normal; background: transparent; pointer-events: none; }
.ad-preview-note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ad-stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-amount { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.ad-amount[hidden] { display: none; }
.ad-amount input, .ad-var-edit input[type="number"] { width: 110px; }
.ad-hint { flex: 1 1 200px; color: var(--muted); font-size: 12px; }
.ad-var-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .35); }
.ad-var-edit[hidden] { display: none; }
.ad-var-edit label { display: inline-flex; align-items: center; gap: 8px; }
.ad-form { display: grid; gap: 12px; }
.ad-sec { display: grid; gap: 10px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); min-width: 0; }
.ad-sec legend { padding: 0 6px; font: 700 15px var(--font-body); color: var(--text); }
.ad-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.ad-row > span:first-child { color: var(--text-2); }
.ad-row input[type="text"], .ad-row select { grid-column: 2 / -1; width: 100%; }
.ad-row output { min-width: 48px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ad-color { display: flex; align-items: center; gap: 10px; grid-column: 2 / -1; }
.ad-color input[type="color"] { width: 44px; height: 32px; padding: 2px; border-radius: 8px; }
.ad-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.ad-chip { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--twitch-2); font: 600 12px var(--font-mono); cursor: pointer; }
.ad-chip:hover { border-color: var(--twitch-2); }
.ad-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ad-preset { display: grid; gap: 5px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 600 12px var(--font-body); cursor: pointer; transition: transform .15s, border-color .2s; }
.ad-preset:hover { transform: translateY(-2px); border-color: var(--pc); color: var(--text-strong); }
.ad-preset-thumb { display: grid; place-items: center; height: 58px; border-radius: 8px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%), #0d0918; border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent); font: 800 20px var(--font-display); color: #fff; }
.ad-preset-thumb img { width: 46px; height: 46px; transition: transform .3s cubic-bezier(.34, 1.4, .64, 1); }
/* Maus drauf: das Design spielt in der großen Vorschau, das Vorschaubild hüpft */
.ad-preset.is-hover { border-color: var(--pc); color: var(--text-strong); box-shadow: 0 0 0 1px var(--pc), 0 10px 24px -14px var(--pc); }
.ad-preset.is-hover .ad-preset-thumb img { transform: scale(1.18) rotate(-6deg); }
.ad-legend-hint { margin-left: 6px; font-weight: 500; font-size: 11.5px; color: var(--dim); }
.ad-dice:active { transform: rotate(-12deg) scale(.96); }
.ad-dice.is-rolling { animation: ad-roll .5s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes ad-roll { 30% { transform: rotate(-25deg) scale(1.08); } 60% { transform: rotate(15deg); } }
/* Zeitleiste: Ein – Halten – Aus auf einer Skala von 0 bis 30 Sekunden */
.ad-row--timeline { align-items: start; }
.ad-timeline { grid-column: 2 / -1; display: grid; gap: 4px; cursor: ew-resize; user-select: none; touch-action: none; }
.ad-tl-track {
  position: relative; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--line) calc(100% / 6 - 1px) calc(100% / 6)), var(--bg);
}
.ad-tl-block { position: absolute; left: 0; top: 0; bottom: 0; width: var(--tl-w, 25%); display: flex; transition: width .15s var(--ease-out); }
.ad-timeline.is-dragging .ad-tl-block { transition: none; }
.ad-tl-seg { display: grid; align-content: center; min-width: 0; padding: 0 6px; overflow: hidden; white-space: nowrap; font-size: 11px; line-height: 1.2; }
.ad-tl-seg b { font-weight: 800; }
.ad-tl-seg small { font-size: 10px; opacity: .85; font-variant-numeric: tabular-nums; }
.ad-tl-seg.is-in { flex: var(--tl-in, 1) 0 0; background: linear-gradient(90deg, rgba(61, 220, 132, .25), rgba(61, 220, 132, .55)); color: #c8ffe0; }
.ad-tl-seg.is-hold { flex: var(--tl-hold, 6) 0 0; background: color-mix(in srgb, var(--tl-c, #9146ff) 45%, transparent); color: #fff; }
.ad-tl-seg.is-out { flex: var(--tl-out, .36) 0 0; background: linear-gradient(90deg, rgba(255, 90, 78, .55), rgba(255, 90, 78, .2)); color: #ffd6d2; min-width: 22px; padding: 0 3px; }
.ad-tl-seg.is-out small { display: none; }
.ad-tl-grip { position: absolute; right: -1px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.ad-tl-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #ffd23f; box-shadow: 0 0 8px #ffd23f; opacity: 0; pointer-events: none; }
.ad-tl-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
/* Wellenform des Sounds */
.ad-wave-box { position: relative; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; }
.ad-wave { display: block; width: 100%; height: 64px; }
.ad-wave-info { position: absolute; right: 8px; top: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.ad-all { font-size: 13px; }
.ad-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.ad-mtile-wrap { position: relative; display: grid; }
.ad-mtile { display: grid; justify-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; min-width: 0; }
.ad-mtile img, .ad-mtile video { width: 44px; height: 44px; object-fit: contain; }
.ad-mtile small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ad-mtile-emoji { display: grid; place-items: center; width: 44px; height: 44px; font-size: 28px; }
.ad-mtile[aria-checked="true"] { border-color: var(--twitch); background: rgba(var(--acc-rgb), .2); color: var(--text-strong); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }
.ad-mtile:disabled { opacity: .55; cursor: default; }
.ad-mtile-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; }
.ad-mtile-del:hover { background: var(--red); border-color: var(--red); }
.ad-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ad-upload[hidden] { display: none; }
.ad-upload .form-hint, .ad-upload .form-msg { grid-column: 1 / -1; margin: 0; }
@media (max-width: 980px) {
  .ad-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-stage { position: static; }
}
@media (max-width: 560px) {
  .ad-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-row > span:first-child { grid-column: 1 / -1; }
  .ad-row input[type="text"], .ad-row select, .ad-color { grid-column: 1 / -1; }
  .ad-upload { grid-template-columns: minmax(0, 1fr); }
}
.ad input[type="text"], .ad input[type="number"], .ad select {
  min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 500 14px var(--font-body);
}
.ad input[type="text"]:focus, .ad input[type="number"]:focus, .ad select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--acc2-rgb), .18); }
.ad input::placeholder { color: var(--dim); }
.ad input[type="range"] { width: 100%; accent-color: var(--amber); cursor: pointer; }
.ad input:disabled, .ad select:disabled { opacity: .45; cursor: default; }
.ad input[type="file"] { min-width: 0; font-size: 13px; color: var(--text-2); }
.ad input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 13px var(--font-body); cursor: pointer;
}

/* ---------- OBS-Fenster: Overlay-Design, Info-Leiste, Szenen-Quellen ---------- */
.obs-themes-box { display: grid; gap: 8px; }
.obs-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.obs-theme { display: grid; gap: 5px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font: 600 12px var(--font-body); cursor: pointer; transition: border-color .2s, transform .15s; }
.obs-theme:hover:not(:disabled) { border-color: rgba(var(--acc2-rgb), .6); transform: translateY(-2px); }
.obs-theme[aria-checked="true"] { border-color: var(--twitch); background: rgba(var(--acc-rgb), .18); color: var(--text-strong); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }
.obs-theme:disabled { opacity: .5; cursor: default; }
.obs-theme-thumb {
  --c: #ffb81c; position: relative; display: grid; align-content: center; gap: 4px; height: 54px; padding: 0 10px; overflow: hidden;
  border-radius: 9px; background: linear-gradient(180deg, #161c2a, #0c1019); border: 1px solid rgba(255, 255, 255, .1);
}
.obs-theme-thumb i { width: 45%; height: 6px; border-radius: 3px; background: var(--c); }
.obs-theme-thumb b { width: 80%; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.obs-theme-thumb s { width: 60%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.obs-theme-thumb[data-theme="neon"] { --c: #ff4fd8; background: #05030c; border: 2px solid #ff4fd8; box-shadow: 0 0 10px #ff4fd8 inset, 0 0 8px #ff4fd8; }
.obs-theme-thumb[data-theme="glass"] { --c: #cfb3ff; background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05)), url("../assets/bg-city.svg") center / cover; border-color: rgba(255, 255, 255, .35); border-radius: 16px; }
.obs-theme-thumb[data-theme="gamer"] { --c: #ff2e4d; border: 0; border-radius: 0; box-shadow: inset 4px 0 0 #ff2e4d; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); background: linear-gradient(135deg, #1a080c, #08080e); }
.obs-theme-thumb[data-theme="retro"] { --c: #3ddc84; border-radius: 0; border: 0; background: #0b0b16 repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); box-shadow: 0 0 0 2px #fff inset, 0 0 0 4px #3ddc84 inset; }
.obs-theme-thumb[data-theme="gold"] { --c: #e8c46a; background: linear-gradient(160deg, #1a1408, #070604); border: 2px solid #e8c46a; border-radius: 4px; }
.obs-theme-thumb[data-theme="candy"] { --c: #ff7ac8; border: 2px solid transparent; border-radius: 18px; background: linear-gradient(#22123a, #180e28) padding-box, linear-gradient(135deg, #ff9fd0, #b8a6ff, #8ee8ff) border-box; }
.obs-theme-thumb[data-theme="minimal"] { --c: #ffb81c; background: url("../assets/bg-storm.svg") center / cover; border: 0; border-left: 4px solid #ffb81c; border-radius: 3px; }
.obs-theme-thumb[data-theme="space"] { --c: #8ea2ff; background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(160deg, #101436, #06061a); border-color: rgba(142, 162, 255, .5); border-radius: 12px; }
.obs-theme-thumb[data-theme="hud"] { --c: #35f0ff; border-radius: 0; border-color: rgba(53, 240, 255, .45); background: repeating-linear-gradient(0deg, rgba(53, 240, 255, .08) 0 1px, transparent 1px 4px), #020e16; box-shadow: inset 3px 3px 0 -1px #35f0ff, inset -3px -3px 0 -1px #35f0ff; }
.obs-theme-thumb[data-theme="kawaii"] { --c: #ff8fc8; border: 2px dotted #ffc3e1; border-radius: 18px; background: linear-gradient(180deg, #4a2046, #30163a); }
.obs-theme-thumb[data-theme="horror"] { --c: #d1162f; border: 0; border-top: 4px solid #d1162f; border-radius: 3px; background: radial-gradient(120% 80% at 50% 0, #5a000c, #060203 70%); }
.obs-theme-thumb[data-theme="forest"] { --c: #79c95a; border: 2px solid #6b4a2b; border-radius: 12px 4px 12px 4px; background: linear-gradient(170deg, #162c1a, #0a160e); }
.obs-theme-thumb[data-theme="fantasy"] { --c: #d8a64a; border: 2px solid #d8a64a; border-radius: 6px; background: linear-gradient(180deg, #24180e, #100a06); box-shadow: inset 0 0 0 3px #100a06, inset 0 0 0 4px rgba(216, 166, 74, .5); }
.obs-theme-thumb[data-theme="ocean"] { --c: #2fd3c6; border-color: rgba(120, 240, 230, .4); border-radius: 16px; background: radial-gradient(60% 50% at 100% 100%, rgba(47, 211, 198, .35), transparent 70%), linear-gradient(170deg, #062e42, #031222); }
.obs-theme-thumb[data-theme="spooky"] { --c: #ff8a1c; border: 2px solid #ff8a1c; border-radius: 10px; background: linear-gradient(160deg, #2a1038, #100616); box-shadow: inset 0 -4px 0 rgba(140, 60, 200, .5); }
.obs-theme-thumb[data-theme="xmas"] { --c: #e3283e; border: 2px solid #fff; border-radius: 12px; background: radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 1.6px) 0 0 / 12px 12px, linear-gradient(170deg, #14462c, #082216); box-shadow: 0 0 0 2px #e3283e; }
.obs-theme-thumb[data-theme="lofi"] { --c: #f2a65a; border: 1px solid rgba(242, 166, 90, .45); border-radius: 12px; background: radial-gradient(90% 70% at 100% 0%, rgba(242, 166, 90, .25), transparent 70%), linear-gradient(170deg, #2b2350, #1d1830); }
.obs-theme-thumb[data-theme="manga"] { --c: #ff4d6d; border: 3px solid #fff; border-radius: 3px; background: radial-gradient(circle, rgba(255, 77, 109, .35) 0 1px, transparent 1.4px) 0 0 / 6px 6px, #14091f; box-shadow: 4px 4px 0 #ff4d6d; }
.obs-theme-thumb[data-theme="cyberpunk"] { --c: #fcee0a; border: 1px solid #35f0ff; border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); background: linear-gradient(90deg, #fcee0a 0 4px, transparent 4px), linear-gradient(160deg, #120a26, #080616); }
.obs-theme-thumb[data-theme="valentine"] { --c: #ff5c8a; border: 2px solid #ff9ab8; border-radius: 16px; background: linear-gradient(170deg, #7a1a3e, #2a0614); box-shadow: 0 0 10px rgba(255, 92, 138, .45); }
.obs-theme-thumb[data-theme="easter"] { --c: #9be38b; border: 2px dashed #ffe08a; border-radius: 14px; background: radial-gradient(circle, rgba(255, 179, 199, .45) 0 1.4px, transparent 1.6px) 0 0 / 12px 12px, linear-gradient(170deg, #1c4a34, #0e2c20); }
.obs-theme-thumb[data-theme="summer"] { --c: #ffb02e; border: 1px solid rgba(255, 176, 46, .6); border-radius: 12px; background: radial-gradient(80% 60% at 100% 100%, rgba(255, 111, 97, .45), transparent 70%), linear-gradient(170deg, #3b1d5e, #1b1232); box-shadow: inset 0 -3px 0 #ff6f61; }
.obs-theme-thumb[data-theme="newyear"] { --c: #ffd76a; border: 2px solid #ffd76a; border-radius: 10px; background: radial-gradient(circle, rgba(255, 215, 106, .7) 0 1px, transparent 1.6px) 0 0 / 11px 11px, linear-gradient(170deg, #0e1234, #070a20); }
.obs-lbitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; font-size: 13px; }
.obs-scene-links { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-row input[type="time"], .obs-row input[type="date"], .obs-row input[type="number"] {
  grid-column: 2 / -1; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 500 13px var(--font-body); color-scheme: dark;
}

/* ---------- Ärgere den Streamer: Overlay-Hack (nur Mods) ---------- */
.prank-hack {
  display: grid; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 90, 78, .12), rgba(145, 132, 217, .1)); border: 1px solid rgba(255, 110, 90, .45);
}
.prank-hack[hidden] { display: none; }
.prank-hack .prank-h3 { margin: 0; }
.prank-hack .prank-h3 small { font-size: 12px; color: var(--danger); font-weight: 600; }
.prank-hack-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.prank-hack-text code { font-family: var(--font-mono); color: var(--acc-ink); }
.prank-hack-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.prank-hack .form-hint { margin: 0; }
.prank-hack .prank-h3 + .prank-hack-text { margin-top: -4px; }
.prank-anniv-date { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.prank-anniv-date input { min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); color-scheme: dark; }

/* ---------- Design-Bibliothek (Seite „Design-Bibliothek“, js/library.js) ---------- */
.lb { --tc: var(--acc); display: grid; gap: 28px; container-type: inline-size; }
.lb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lb-intro { display: grid; gap: 8px; }
.lb-eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink); }
.lb-intro h2 { font: 700 clamp(28px, 4vw, 42px)/1.1 var(--font-body); letter-spacing: -.02em; text-transform: none; color: var(--text-strong); }
.lb-intro p:last-child { margin: 0; max-width: 62ch; color: var(--text-2); text-wrap: pretty; }
.lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-search { position: relative; display: block; width: 240px; max-width: 100%; }
.lb-search .ph { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.lb-search input { width: 100%; padding-left: 34px; }
.lb-favonly, .lb-apply, .lb-empty .btn { display: inline-flex; align-items: center; gap: 8px; }
.lb-favonly[aria-pressed="true"] { border-color: var(--acc); color: var(--acc-ink); }
.lb-favonly[aria-pressed="true"] .ph::before { content: "\e2a8"; font-family: "Phosphor-Fill"; }

/* Reiter: Designs entdecken ↔ Alert-Designer */
.lb-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft); }
.lb-views [role="tab"] {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 13px; border: 1px solid transparent; text-align: left;
  background: transparent; color: var(--text-2); font: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.lb-views [role="tab"] .ph { font-size: 24px; color: var(--dim); transition: color .2s; }
.lb-views [role="tab"] span { display: grid; gap: 2px; min-width: 0; }
.lb-views [role="tab"] b { font-size: 15px; font-weight: 600; color: var(--text); }
.lb-views [role="tab"] small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.lb-views [role="tab"]:hover, .lb-views [role="tab"]:focus-visible { border-color: rgba(var(--acc-rgb), .45); outline: none; }
.lb-views [role="tab"][aria-selected="true"] { background: color-mix(in srgb, var(--acc) 14%, var(--surface)); border-color: var(--acc); }
.lb-views [role="tab"][aria-selected="true"] .ph { color: var(--acc-ink); }
.lb-view { display: grid; gap: 28px; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .lb-views [role="tab"], .lb-views .ph { transition: none; } }

.lb-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.lb-type {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 14px 20px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lb-type .ph { grid-row: span 2; padding-top: 2px; font-size: 22px; color: var(--acc-ink); }
.lb-type b { font-size: 15px; font-weight: 600; }
.lb-type b span { color: var(--dim); font-weight: 400; }
.lb-type small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.lb-type:hover, .lb-type:focus-visible { border-color: rgba(var(--acc-rgb), .55); outline: none; }
.lb-type[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surface)); }

.lb-hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(var(--surf-rgb), .92), var(--bg)); border: 1px solid var(--line-soft);
}
@container (min-width: 980px) { .lb-hero { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); } }
@media (max-width: 600px) { .lb-hero { padding: 12px; } }
.lb-stage { position: relative; display: grid; gap: 12px; min-width: 0; }
/* Höhe nur über aspect-ratio – nie per JS setzen (sonst schrumpft die Vorschau, siehe Alert-Designer) */
.lb-screen {
  --split: 50%; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 9, 15, .15), rgba(7, 9, 15, .55)), url("../assets/bg-storm.svg") center / cover;
}
.lb-screen.is-alert { aspect-ratio: 820 / 440; background: linear-gradient(135deg, rgba(7, 6, 13, .35), rgba(7, 6, 13, .65)), url("../assets/bg-city.svg") center / cover; }
.lb-layer { position: absolute; inset: 0; }
.lb-layer iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; color-scheme: normal; background: transparent; pointer-events: none; }
.lb-screen.is-compare .lb-layer--after { clip-path: inset(0 0 0 var(--split)); }
.lb-split-line, .lb-cmp-label { display: none; }
.lb-screen.is-compare .lb-split-line { display: block; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .6); }
.lb-screen.is-compare .lb-cmp-label { display: block; position: absolute; padding: 3px 8px; border-radius: 6px; background: rgba(10, 10, 16, .8); color: #fff; font-size: 11px; }
.lb-cmp-label.is-before { left: 12px; bottom: 12px; }
.lb-cmp-label.is-after { right: 56px; top: 16px; }
.lb-fullbtn {
  position: absolute; right: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: rgba(10, 10, 16, .7); color: #fff; font-size: 18px; cursor: pointer;
}
.lb-fullbtn:hover, .lb-fullbtn:focus-visible { background: rgba(var(--acc-rgb), .8); outline: none; }
.lb-stagebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lb-stagebar .btn { display: inline-flex; align-items: center; gap: 6px; }
.lb-stagebar [hidden] { display: none; }
.lb-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-scenes[hidden] { display: none; }
.lb-scene { padding: 5px 11px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 12.5px var(--font-body); cursor: pointer; }
.lb-scene:hover, .lb-scene:focus-visible { border-color: var(--line-2); color: var(--text); outline: none; }
.lb-scene[aria-selected="true"] { border-color: var(--acc); background: rgba(var(--acc-rgb), .14); color: var(--acc-ink); }
.lb-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.lb-compare { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; cursor: pointer; }
.lb-compare input { accent-color: var(--acc); }
.lb-compare input[type="range"] { width: 120px; }

.lb-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-tag { padding: 3px 10px; border-radius: 999px; background: rgba(var(--surf-rgb), .7); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.lb-tag.is-acc { background: rgba(var(--acc-rgb), .16); border-color: rgba(var(--acc-rgb), .45); color: var(--acc-ink); }
.lb-tag.is-line { background: transparent; }
.lb-tag.is-on { background: var(--acc); border-color: var(--acc); color: #fff; }
.lb-namerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lb-namerow h3 { font: 700 28px/1.1 var(--font-body); letter-spacing: -.01em; text-transform: none; color: var(--text-strong); }
.lb-favbig {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); font-size: 18px; cursor: pointer;
}
.lb-favbig:hover, .lb-favbig:focus-visible { border-color: var(--acc); outline: none; }
.lb-favbig[aria-pressed="true"], .lb-fav[aria-pressed="true"] { color: var(--acc-ink); }
.lb-favbig[aria-pressed="true"] .ph::before, .lb-fav[aria-pressed="true"] .ph::before { content: "\e2a8"; font-family: "Phosphor-Fill"; }
.lb-desc { margin: 0; color: var(--text-2); text-wrap: pretty; }
.lb-sub { margin: 4px 0 -6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lb-parts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lb-parts li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: rgba(var(--surf-rgb), .7); border: 1px solid var(--line-soft); font-size: 13px; }
.lb-parts .ph { font-size: 16px; color: var(--acc-ink); }
.lb-parts span { flex: 1; }
.lb-parts small { color: var(--muted); font-size: 13px; }
.lb-apply { justify-content: center; padding-block: 11px; font-size: 15px; }
.lb-side .form-hint { margin: -6px 0 0; }
.lb-links summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
.lb-links[open] summary { margin-bottom: 8px; }
.lb-links[hidden] { display: none; }

.lb-browse { display: grid; gap: 18px; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lb-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lb-tabs button { padding: 7px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text); font: 500 13px var(--font-body); cursor: pointer; }
.lb-tabs button:last-child { border-right: 0; }
.lb-tabs button span { color: var(--dim); }
.lb-tabs button:hover, .lb-tabs button:focus-visible { background: rgba(var(--acc-rgb), .08); outline: none; }
.lb-tabs button[aria-selected="true"] { background: rgba(var(--acc-rgb), .16); color: var(--acc-ink); }
.lb-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.lb-sort select { width: auto; min-height: 34px; padding: 4px 28px 4px 10px; }
.lb-moods { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-mood {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: 500 13px var(--font-body); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lb-mood:hover, .lb-mood:focus-visible { border-color: rgba(var(--acc-rgb), .6); outline: none; }
.lb-mood[aria-pressed="true"] { border-color: var(--acc); background: rgba(var(--acc-rgb), .14); color: var(--acc-ink); }
.lb-count { margin: 0; font-size: 13px; color: var(--dim); }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 24px 16px; }
.lb-item { position: relative; display: grid; gap: 10px; }
.lb-pick {
  position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-out), box-shadow .2s;
}
.lb-pick:hover, .lb-pick:focus-visible { transform: translateY(-3px); outline: none; box-shadow: 0 10px 30px color-mix(in srgb, var(--acc) 22%, transparent); }
.lb-pick[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.lb-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.lb-badge { padding: 2px 7px; border-radius: 6px; background: rgba(10, 10, 16, .75); color: #fff; font: 700 10.5px var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.lb-badge.is-new { background: #e0c8ff; color: #2a0f5c; }
.lb-badge.is-on { color: #c9b0ff; }
.lb-fav {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(10, 10, 16, .65); color: #fff; font-size: 15px; cursor: pointer;
}
.lb-fav[aria-pressed="true"] { color: #e0c8ff; }
.lb-fav:hover, .lb-fav:focus-visible { background: rgba(var(--acc-rgb), .85); outline: none; }
.lb-item-text { display: grid; gap: 1px; padding: 0 2px; }
.lb-item-text b { font-size: 14px; font-weight: 600; color: var(--text); }
.lb-item-text small { font-size: 12px; color: var(--dim); }
.lb-empty { display: grid; justify-items: start; gap: 12px; padding: 28px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--text-2); }
.lb-empty[hidden] { display: none; }

/* Vollbild */
.lb-full {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px; border: 0;
  background: rgba(8, 9, 16, .94); color: #fff;
}
.lb-full[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; }
.lb-full::backdrop { background: rgba(8, 9, 16, .7); }
.lb-full-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-full-head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.lb-full-head b { font-size: 20px; font-weight: 600; }
.lb-full-head span { color: #a7b0c2; font-size: 13px; }
.lb-full-btns { display: flex; gap: 8px; }
.lb-full-btns form { margin: 0; }
.lb-iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: transparent; color: #fff; font-size: 17px; cursor: pointer; }
.lb-iconbtn:hover, .lb-iconbtn:focus-visible { border-color: var(--acc-2); background: rgba(var(--acc-rgb), .25); outline: none; }
.lb-full-stage { display: grid; place-items: center; min-height: 0; }
.lb-full-stage .lb-screen { width: min(100%, calc((100dvh - 190px) * 16 / 9)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.lb-full-stage .lb-screen.is-alert { width: min(100%, calc((100dvh - 190px) * 820 / 440)); }
.lb-full-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.lb-full-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.lb-full .lb-scene { border-color: rgba(255, 255, 255, .22); color: #dfe3ec; }
.lb-full .lb-scene[aria-selected="true"] { border-color: var(--acc-2); color: #fff; background: rgba(var(--acc-rgb), .3); }
@media (max-width: 600px) { .lb-full { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .lb-pick, .lb-type, .lb-mood { transition: none; } .lb-pick:hover { transform: none; } }

/* Kachel: Mini-Szene (16:9) */
.th-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; overflow: hidden; }
.th-t-cam { position: absolute; right: 7%; bottom: 14%; width: 34%; height: 40%; border-radius: 6px; border: 2px solid var(--tc); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 70%, transparent); background: rgba(0, 0, 0, .35); }
.th-thumb[data-cf="clean"] .th-t-cam { border-color: rgba(255, 255, 255, .9); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.th-thumb[data-cf="neon"] .th-t-cam { border-color: #fff; box-shadow: 0 0 0 2px var(--tc), 0 0 14px var(--tc); }
.th-thumb[data-cf="corners"] .th-t-cam { border-radius: 0; border-color: transparent; box-shadow: none;
  background: linear-gradient(var(--tc), var(--tc)) 0 0 / 22% 3px, linear-gradient(var(--tc), var(--tc)) 0 0 / 3px 26%,
    linear-gradient(var(--tc), var(--tc)) 100% 100% / 22% 3px, linear-gradient(var(--tc), var(--tc)) 100% 100% / 3px 26%, rgba(0, 0, 0, .35); background-repeat: no-repeat; }
.th-t-bar { position: absolute; left: 6%; bottom: 10%; display: flex; gap: 4px; padding: 5px 7px; border-radius: 6px; background: rgba(10, 8, 20, .8); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); }
.th-t-bar i { width: 26px; height: 5px; border-radius: 3px; background: var(--tc); }
.th-t-bar i + i { width: 18px; background: rgba(255, 255, 255, .7); }
.th-thumb[data-otheme="gamer"] .th-t-bar, .th-thumb[data-otheme="retro"] .th-t-bar, .th-thumb[data-otheme="cyberpunk"] .th-t-bar, .th-thumb[data-otheme="manga"] .th-t-bar { border-radius: 0; }
.th-thumb[data-otheme="candy"] .th-t-bar, .th-thumb[data-otheme="glass"] .th-t-bar { border-radius: 12px; background: rgba(255, 255, 255, .14); }
.th-t-alert { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 10px; background: rgba(10, 8, 20, .7); border: 1px solid color-mix(in srgb, var(--tc) 70%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--tc) 45%, transparent); }
.th-t-alert img { width: 70%; height: 70%; }
.th-t-name { position: absolute; left: 6%; top: 8%; max-width: 36%; font: 800 15px/1.05 var(--font-display); color: #fff; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }

.th-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.th-links li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.th-links input { width: 100%; font-family: var(--font-mono); font-size: 12px; }
.th-links .btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
  .th-links li { grid-template-columns: minmax(0, 1fr) auto; }
  .th-links li span { grid-column: 1 / -1; }
}

/* ---------- OBS-Fenster: Ton, Aussehen je Ebene, Vorlagen ---------- */
.obs-sound-hint { margin: 2px 0 6px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); font-size: 13px; color: var(--text-2, #c4cad6); line-height: 1.45; }
.obs-preview-sound { font-size: 13px; margin: 0 0 4px; }
.obs-sound-result { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; }
.obs-sound-result p { margin: 0; }
.obs-sound-result .is-ok { color: var(--ok-ink); }
.obs-sound-result .is-bad { color: var(--danger); }
.obs-sound-result .btn { justify-self: start; margin-top: 4px; }
.obs-look-block { display: grid; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.obs-look-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.obs-look-block select { width: 100%; }
.obs-look-custom { display: none; }
.obs-look-block:has(select[name^="lc_"] option[value="custom"]:checked) .obs-look-custom { display: grid; }
.obs-look-custom input[type="color"] { width: 100%; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; }
.obs-presets { display: grid; gap: 10px; }
.obs-preset-new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.obs-preset-new input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.obs-preset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.obs-preset-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.obs-preset-list li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-preset-list .obs-preset-empty { display: block; color: var(--muted); font-size: 13px; border-style: dashed; }

/* ---------- Games (js/games.js) ---------- */
.games-section { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.games-section[hidden] { display: none; }
.games-section::before { content: ""; width: 1px; height: 22px; background: var(--line); }
@media (max-width: 1280px) { .games-section::before { display: none; } }
.games-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.game-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--surf-rgb), .7); color: var(--text-strong); font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.game-chip:hover, .game-chip:focus-visible { border-color: rgba(var(--acc-rgb), .55); outline: none; }
.game-chip[aria-selected="true"] { border-color: var(--acc-2); background: linear-gradient(135deg, rgba(var(--acc-rgb), .28), rgba(var(--acc-rgb), .08)); }
.game-chip[hidden] { display: none; }
.game-chip-ico { font-size: 15px; line-height: 1; }
.game-chip--edit { background: none; border-style: dashed; color: var(--muted); font-weight: 600; }
.game-chip--edit:hover { color: var(--text-strong); }
.game-chip-live {
  padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
}
.games-live { margin: 0; color: var(--text-2); font-size: 14px; }
.games-live[hidden] { display: none; }
.grid-head { grid-column: 1 / -1; padding-top: 6px; }
.grid-head h3 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile--placeholder { min-height: 240px; border-style: dashed; background: rgba(255, 255, 255, .02); animation: tile-in .7s var(--ease-out) both; }
.tile--placeholder .tile-title { font-size: clamp(20px, 1.8vw, 26px); }
.tile--placeholder .tile-desc { display: block; -webkit-line-clamp: unset; overflow: visible; margin-bottom: 14px; }
.tile-placeholder-ico { font-size: 34px; margin-bottom: 10px; display: block; }
.dialog--games { width: min(680px, calc(100vw - 32px)); }
.games-form { display: grid; gap: 16px; padding: 4px 24px 24px; }
.games-group { display: grid; gap: 8px; }
.games-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.games-check {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid var(--line); cursor: pointer;
}
.games-check:has(input:checked) { border-color: rgba(var(--acc2-rgb), .6); background: rgba(var(--acc-rgb), .1); }
.games-check b { display: block; font-size: 14px; }
.games-check small { color: #8f99ad; font-size: 12px; }

/* Anleitung zum Verbinden: nach dem ersten Mal hinter dem Knopf „❓ Anleitung“ */
#obs-dialog.guide-hidden .obs-help, #obs-dialog.guide-hidden .obs-manual { display: none; }
.obs-connect-head .obs-guide-btn { margin-left: auto; align-self: flex-start; flex: none; }
#obs-dialog.is-mod .obs-guide-btn { display: none; }

/* Kacheln: Suche und Favoriten (js/app.js renderGrid) */
.tile-wrap { position: relative; display: grid; min-width: 0; }
.tile-wrap > .tile { min-width: 0; }
.tile-fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 13, 19, .55); color: #e8ecf4; font-size: 17px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .2s, transform .2s, background .2s;
}
.tile-wrap:hover .tile-fav, .tile-fav:focus-visible, .tile-fav.is-on { opacity: 1; }
.tile-fav:hover { transform: scale(1.08); background: rgba(10, 13, 19, .8); }
.tile-fav.is-on { color: #ffd166; border-color: rgba(255, 209, 102, .5); }
@media (hover: none) { .tile-fav { opacity: .85; } }
.grid-empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); font-size: 14px; }
.grid-empty .link-btn { padding: 0; border: 0; background: none; color: var(--acc-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.grid-empty .link-btn:hover { text-decoration: underline; }

/* Listenansicht: eine Zeile je Idee */
.grid.is-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(var(--surf-rgb), .6); }
.grid.is-list .grid-head { padding: 12px 14px 6px; border-bottom: 1px solid var(--line-soft); }
.grid.is-list .tile-wrap { display: block; }
.grid.is-list .tile {
  --text: var(--text-strong); --text-2: var(--muted);
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 140px 20px; align-items: center; gap: 14px;
  width: 100%; min-height: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
  background: none; transform: none; box-shadow: none; animation: none;
}
.grid.is-list .tile::after { content: "\e13a"; font-family: "Phosphor"; color: var(--dim); grid-column: 4; grid-row: 1; }
.grid.is-list .tile:hover, .grid.is-list .tile:focus-visible { background: rgba(var(--acc-rgb), .08); }
.grid.is-list .tile-bg {
  position: relative; inset: auto; z-index: 0; grid-column: 1; grid-row: 1; width: 56px; height: 40px;
  border-radius: 10px; border: 1px solid var(--line); transform: none; filter: none;
}
.grid.is-list .tile:hover .tile-bg { transform: none; }
.grid.is-list .tile--wheel .tile-bg { background: conic-gradient(var(--c1) 0 90deg, #1b1830 90deg 180deg, var(--c2) 180deg 270deg, var(--c3) 270deg); }
.grid.is-list .tile-shade, .grid.is-list .tile-shine, .grid.is-list .wheel-card-disc, .grid.is-list .tile-note, .grid.is-list .prank-tile-row { display: none; }
.grid.is-list .tile-cat {
  position: static; grid-column: 3; grid-row: 1; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-2);
}
.grid.is-list .tile-cat .cat-dot { width: 7px; height: 7px; box-shadow: none; }
.grid.is-list .tile-body { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 14px; }
.grid.is-list .tile-title { grid-column: 1; font-family: inherit; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.grid.is-list .tile-desc { grid-column: 1; display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid.is-list .tile-tag { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 13px; white-space: nowrap; }
.grid.is-list .tile-tag--date { color: var(--acc-ink); }
.grid.is-list .tile-tag.is-soon { color: var(--warn); }
.grid.is-list .tile-fav { top: 50%; right: 44px; width: 28px; height: 28px; font-size: 14px; transform: translateY(-50%); }
.grid.is-list .tile--placeholder { display: block; padding: 18px; }
@media (max-width: 640px) {
  .ideas-tools { margin-left: 0; width: 100%; }
  .ideas-search { flex: 1; width: auto; }
  .grid.is-list .tile { grid-template-columns: 48px minmax(0, 1fr) 16px; }
  .grid.is-list .tile::after { grid-column: 3; }
  .grid.is-list .tile-bg { width: 48px; height: 36px; }
  .grid.is-list .tile-cat { display: none; }
  .grid.is-list .tile-body { grid-template-columns: minmax(0, 1fr); }
  .grid.is-list .tile-tag { grid-column: 1; grid-row: auto; }
}

/* ---------- OBS-Fenster: Overlay-Module (js/overlay-modules.js) ---------- */
.obs-modules { display: grid; gap: 12px; padding: 4px 2px 12px; }
.obs-modules .form-hint { margin: 0; }
.obs-modules-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 184, 28, .12); color: var(--text); font-size: 13px; }
.obs-modules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.obs-module { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); }
.obs-module.is-empty { opacity: .7; }
.obs-module-head { display: grid; gap: 2px; min-width: 0; }
.obs-module-head small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.obs-module-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-modules-custom summary { cursor: pointer; font-weight: 700; }
.obs-modules-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; margin: 10px 0; font-size: 13px; }
.obs-modules-check { display: flex; align-items: center; gap: 6px; }
.obs-modules-custom .x-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.obs-modules-custom input[type="text"] { flex: 1; min-width: 140px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }

/* Kanäle ohne Twitch-Affiliate (js/affiliate.js): Hinweis statt Fehler, gesperrter Bereich blass */
.aff-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(53, 199, 255, .35); background: rgba(53, 199, 255, .08); color: var(--text, inherit); font-size: .9rem; line-height: 1.45; grid-column: 1 / -1; }
.aff-off > :not(.aff-note) { opacity: .45; filter: grayscale(.6); }

/* ======================================================================
   OBS-Editor im OBS-Stil (Design „Nocturne“, Claude Design: OBS-Editor.dc.html)
   Vorschau oben, darunter Docks: Szenen · Quellen · Eigenschaften · Steuerung.
   Tablet: Quellen und Eigenschaften rechts. Handy: Docks als Reiter (Quellen/Eigenschaften/Steuerung).
   Die Farben kommen als Nocturne-Werte in die vorhandenen Variablen – so übernimmt alles im Editor den Look.
   ====================================================================== */
#obs-dialog {
  --bg: #161826; --bg-2: #1c1e2b; --surface: #232532; --surface-2: #292b31;
  --line: #3f424d; --line-2: #595d6c; --line-soft: color-mix(in srgb, #e9e9ed 16%, transparent);
  --text: #e9e9ed; --text-2: #cfd3e5; --muted: #9397ab; --dim: #75798c;
  --amber: #9184d9; --amber-2: #d2cefd; --twitch: #9184d9; --twitch-2: #b5abfc;
  --acc: #9184d9; --acc-900: #2b2741; --acc-800: #423a6a; --acc-300: #d2cefd; --acc-100: #f5f4ff;
  /* Der OBS-Editor bleibt dunkel und lila – auch bei heller Darstellung oder anderer Akzentfarbe im Dashboard */
  --bg-rgb: 22, 24, 38; --surf-rgb: 35, 37, 50; --pop-rgb: 35, 37, 50; --text-strong: #fff;
  --acc-2: #b5abfc; --acc-3: #d2cefd; --acc-rgb: 145, 132, 217; --acc2-rgb: 181, 171, 252; --acc3-rgb: 210, 206, 253; --acc-ink: #d2cefd;
  --danger: #ff9d95; --warn: #ffcf5a; --ok-ink: #9ff0c3; --soft-ink: #c4cad6; --lav-ink: #e6d6ff; --gold-ink: #ffd36b;
  color-scheme: dark;
  --radius: 14px; --radius-sm: 8px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  font-family: var(--font-body); color-scheme: dark;
  scrollbar-color: #595d6c transparent; scrollbar-width: thin;
}
#obs-dialog h2, #obs-dialog h3 { font-family: var(--font-body); font-weight: 500; letter-spacing: -.01em; }
#obs-dialog :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#obs-dialog input[type="range"] { accent-color: var(--acc); }
/* Knöpfe: Umriss statt Fläche (Nocturne) */
#obs-dialog .btn { border-radius: 8px; font-family: var(--font-body); font-weight: 500; box-shadow: none; }
#obs-dialog .btn--primary { background: transparent; color: var(--acc); border: 1px solid var(--acc); }
#obs-dialog .btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 12%, transparent); transform: none; filter: none; }
#obs-dialog .btn--outline { background: transparent; border: 1px solid var(--line-soft); color: var(--text); }
#obs-dialog .btn--outline:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 7%, transparent); }
#obs-dialog .btn--ghost { color: var(--acc-300); }
#obs-dialog .btn i.ph, .obs-ctl i.ph { font-size: 16px; }

body.obs-page .dialog--obs { background: var(--bg); }
/* Kopfleiste */
body.obs-page .obs-head { min-height: 48px; padding: 0 16px; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
body.obs-page .obs-head .eyebrow { display: none; }
body.obs-page .obs-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; letter-spacing: 0; }
.obs-title-ico { font-size: 18px; color: var(--acc); }
body.obs-page .obs-pill { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; gap: 8px; max-width: 460px; }
body.obs-page .obs-pill:hover { background: var(--surface-2); }
body.obs-page .obs-pill-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
body.obs-page .obs-pill-text b { font-size: 13px; font-weight: 500; white-space: nowrap; }
body.obs-page .obs-pill-text small { font-size: 12.5px; }
.obs-pill[data-state="on"] { border-color: var(--line); }
.obs-pill[data-state="on"] .obs-dot { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
body.obs-page .obs-head-actions { flex: 1; justify-content: flex-end; gap: 10px; }
body.obs-page .obs-cols { display: none; }
.obs-head-scene { font-size: 13px; color: var(--muted); white-space: nowrap; }
.obs-head-scene b { font-weight: 500; color: var(--text); margin-left: 4px; }
body.obs-page .obs-undo-box { padding-left: 10px; border-left: 1px solid var(--line-soft); }
body.obs-page .obs-undo { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; font-size: 16px; color: var(--muted); }
body.obs-page .obs-undo:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
body.obs-page .obs-undo:disabled { opacity: .35; }
body.obs-page .obs-saved { min-width: 110px; justify-content: flex-end; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }
.obs-saved[data-state="on"] { color: var(--muted); }
.obs-saved[data-state="on"]::before { background: var(--acc); }
body.obs-page .obs-head-actions .icon-btn { order: 0; height: 32px; border-radius: 8px; border: 1px solid var(--line-soft); background: transparent; font-size: 13px; }

/* Arbeitsfläche: Vorschau oben, Docks unten */
body.obs-page .obs-body {
  --dock-h: 318px;
  flex: 1; min-height: 0; display: grid; gap: 6px; padding: 12px 16px 16px;
  grid-template-columns: 200px 330px minmax(0, 1fr) 250px;
  grid-template-rows: minmax(0, 1fr) 30px calc(var(--dock-h) - 36px);
  grid-template-areas: "stage stage stage stage" "scenes layers tabs control" "scenes layers panel control";
}
body.obs-page .obs-mtabs { display: none; }
body.obs-page .obs-left {
  grid-area: stage; min-height: 0; overflow: hidden; padding: 0 0 4px; border: 0; gap: 6px; align-items: center; background: none;
  /* Die Vorschau richtet sich nach dem Platz im Bereich (Container-Einheiten) */
  container-type: size; --stage-extra: 28px;
}
body.obs-page .obs-left:has(> .obs-note:not([hidden])) { --stage-extra: 92px; }
body.obs-page .obs-left > :not(.obs-preview) { max-width: none; }
body.obs-page .obs-preview {
  width: auto; height: auto; flex: none; max-height: 100%;
  /* 16:9 ganz sichtbar: Breite aus der verfügbaren Höhe */
  width: min(100cqw, calc((100cqh - var(--stage-extra)) * 16 / 9)); max-width: 100%;
  border-radius: 4px; border: 0; box-shadow: 0 0 0 1px var(--line);
  background: radial-gradient(120% 90% at 30% 10%, var(--acc-900), var(--bg) 70%);
}
body.obs-page .obs-drag-hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0; font-size: 11.5px; color: var(--muted); text-align: center; }
body.obs-page .obs-note { width: 100%; }

/* Docks: Fläche, 8px Radius, feine Kante, Kopfzeile in Versalien */
.obs-dock, body.obs-page .obs-layers, body.obs-page .obs-pane, body.obs-page .obs-tabs {
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
body.obs-page .obs-dock, body.obs-page .obs-layers { border-radius: 8px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.obs-dock-head, body.obs-page .obs-panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; flex: none; margin: 0; padding: 0 12px;
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
body.obs-page .obs-panel-title small { font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* Szenen */
.obs-scenes { grid-area: scenes; }
.obs-scene-list { flex: 1; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.obs-scene {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.obs-scene i { font-size: 15px; color: var(--muted); }
.obs-scene:hover { background: var(--line); }
.obs-scene.is-on { background: var(--acc-900); box-shadow: inset 0 0 0 1px var(--acc-800); color: var(--acc-100); }
.obs-scene.is-on i { color: var(--acc-300); }
.obs-scene:disabled { cursor: default; opacity: .6; }
/* Quellen */
body.obs-page .obs-layers { grid-area: layers; padding: 0; gap: 0; border: 0; }
body.obs-page .obs-layers > .obs-group, body.obs-page .obs-layers > .obs-layer-none { margin: 0 6px; }
body.obs-page .obs-layers { overflow-y: auto; }
body.obs-page .obs-layer-tools {
  order: 99; position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 6px; background: var(--surface); border-top: 1px solid var(--line-soft);
}
body.obs-page .obs-layer-tools input[type="search"] { min-height: 28px; border-radius: 8px; border-color: var(--line-soft); background: var(--surface); font-size: 12.5px; }
body.obs-page .obs-group { gap: 1px; padding-top: 4px; }
body.obs-page .obs-group-head { padding: 8px 8px 3px; font-family: var(--font-body); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); }
body.obs-page .obs-layer { border-radius: 4px; border: 0; background: transparent; }
body.obs-page .obs-layer:hover { background: var(--line); }
body.obs-page .obs-layer.is-open { background: var(--acc-900); box-shadow: inset 0 0 0 1px var(--acc-800); }
body.obs-page .obs-layer.is-open .obs-layer-name { color: var(--acc-100); }
body.obs-page .obs-layer-head { min-height: 30px; padding: 0 6px; }
body.obs-page .obs-layer-name { font-size: 13px; font-weight: 400; }
/* Eigenschaften: Reiter als Kopf, Inhalt darunter */
body.obs-page .obs-tabs {
  grid-area: tabs; display: flex; gap: 2px; padding: 0 6px; margin: 0; border-radius: 8px 8px 0 0; border: 0;
  align-items: stretch; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft);
}
body.obs-page .obs-tab {
  flex: none; min-height: 0; padding: 0 10px; border-radius: 0; font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: none; box-shadow: none;
}
body.obs-page .obs-tab:hover { color: var(--text); }
body.obs-page .obs-tab[aria-selected="true"] { background: none; color: var(--text); box-shadow: inset 0 -2px 0 var(--acc); }
body.obs-page .obs-pane { grid-area: panel; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; border: 0; border-radius: 0 0 8px 8px; }
body.obs-page .obs-inspector .obs-layer-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 22px; align-content: start; }
body.obs-page .obs-inspector .obs-row-hint, body.obs-page .obs-inspector .obs-look-block, body.obs-page .obs-inspector details { grid-column: 1 / -1; }
body.obs-page .obs-insp-head { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
/* Steuerung */
.obs-control { grid-area: control; }
.obs-control-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.obs-control-btns { display: grid; gap: 6px; }
.obs-ctl {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.obs-ctl:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.obs-ctl[hidden] { display: none; }
.obs-ctl--ext { color: var(--acc-300); border-color: var(--acc-800); }
.obs-ctl--ext:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc-100); }
.obs-ctl-out { margin-left: auto; font-size: 13px !important; opacity: .8; }
.obs-control .obs-url { gap: 6px; }
.obs-control .obs-url input { min-width: 0; height: 30px; font-size: 12px; border-radius: 8px; border-color: var(--line-soft); background: var(--surface); }
.obs-control .obs-url .btn { min-height: 30px; padding: 0 8px; }
.obs-control .obs-copy-text { display: none; }
.obs-control .obs-live-status { margin: 0; padding: 6px 8px; font-size: 12px; }
.obs-control .obs-connect { padding: 10px; gap: 8px; border-radius: 8px; background: var(--bg-2); border-color: var(--line); }
.obs-control .obs-connect-form, .obs-control .obs-connected { display: grid; gap: 6px; }
.obs-control .obs-connect small { font-size: 12px; }
.obs-control .obs-manual, .obs-control .obs-help { font-size: 12.5px; }

/* Anordnung (js/app.js setupObsLayout): Bereiche links und rechts neben der Vorschau statt darunter.
   Nur auf der OBS-Seite und ab 1280 px – darunter gibt es keinen Platz daneben. */
.obs-layout { display: none; }
@media (min-width: 1280px) {
  body.obs-page .obs-layout { display: flex; gap: 2px; padding: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-soft); }
  .obs-layout-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px;
    background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  }
  .obs-layout-btn i { font-size: 15px; }
  .obs-layout-btn:hover { color: var(--text); background: var(--surface-2); }
  .obs-layout-btn[aria-pressed="true"] { color: var(--acc-100); background: var(--acc-900); box-shadow: inset 0 0 0 1px var(--acc-800); }
  body.obs-page .obs-body[data-layout="side"], body.obs-page .obs-body[data-layout="side-r"] {
    grid-template-rows: 30px minmax(150px, auto) minmax(0, 1fr) minmax(0, 300px);
  }
  body.obs-page .obs-body[data-layout="side"] {
    grid-template-columns: 290px minmax(0, 1fr) 420px;
    grid-template-areas: "scenes stage tabs" "scenes stage panel" "layers stage panel" "layers stage control";
  }
  body.obs-page .obs-body[data-layout="side-r"] {
    grid-template-columns: 420px minmax(0, 1fr) 290px;
    grid-template-areas: "tabs stage scenes" "panel stage scenes" "panel stage layers" "control stage layers";
  }
  /* Seitlich hat die Vorschau die volle Höhe – Hinweis darunter kompakter */
  body.obs-page .obs-body[data-layout^="side"] .obs-drag-hint { gap: 2px 14px; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  body.obs-page .obs-body[data-layout="side"] { grid-template-columns: 250px minmax(0, 1fr) 380px; }
  body.obs-page .obs-body[data-layout="side-r"] { grid-template-columns: 380px minmax(0, 1fr) 250px; }
  body.obs-page .obs-body[data-layout^="side"] .obs-tab { padding: 0 6px; letter-spacing: .04em; }
}

/* Tablet: Vorschau, Szenen-Chips und Steuerung links – Quellen und Eigenschaften rechts */
@media (max-width: 1279px) {
  body.obs-page .obs-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: minmax(0, 1.15fr) 44px minmax(0, 1fr);
    grid-template-areas: "stage layers" "scenes tabs" "control panel";
  }
  body.obs-page .obs-tabs { border-radius: 8px 8px 0 0; }
  .obs-scenes { background: none; box-shadow: none; border-radius: 0; }
  .obs-scenes .obs-dock-head { display: none; }
  .obs-scene-list { flex-direction: row; overflow-x: auto; padding: 0; gap: 6px; scrollbar-width: none; }
  .obs-scene { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
  .obs-scene.is-on { box-shadow: inset 0 0 0 1px var(--acc); }
  .obs-control .obs-control-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obs-ctl { min-height: 44px; justify-content: center; }
  .obs-ctl--ext { grid-column: auto; }
  body.obs-page .obs-layer-head { min-height: 44px; }
  body.obs-page .obs-inspector .obs-layer-body { grid-template-columns: minmax(0, 1fr); }
}
/* Handy: Vorschau, Szenen, dann ein Dock nach dem anderen als Reiter; die Seite scrollt */
@media (max-width: 719px) {
  body.obs-page { overflow: auto; }
  body.obs-page .dialog--obs { position: static; height: auto; min-height: 100dvh; overflow: visible; }
  body.obs-page .obs-head { flex-wrap: wrap; padding: 8px 12px; }
  body.obs-page .obs-pill-text small, .obs-head-scene, body.obs-page .obs-saved { display: none; }
  body.obs-page .obs-undo { width: 44px; height: 44px; font-size: 20px; }
  body.obs-page .obs-body {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 8px 12px 24px;
    grid-template-areas: "stage" "scenes" "mtabs" "dock";
  }
  body.obs-page .obs-left { container-type: inline-size; overflow: visible; }
  body.obs-page .obs-preview { width: 100%; }
  body.obs-page .obs-mtabs {
    grid-area: mtabs; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; border-radius: 8px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  }
  .obs-mtabs button { height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; }
  .obs-mtabs button[aria-selected="true"] { background: var(--acc-900); color: var(--acc-100); }
  body.obs-page .obs-layers, body.obs-page .obs-control { grid-area: dock; overflow: visible; }
  body.obs-page .obs-tabs { grid-area: dock; }
  body.obs-page .obs-pane { grid-area: auto; grid-column: 1; overflow: visible; }
  body.obs-page .obs-body:not([data-mtab="layers"]) .obs-layers,
  body.obs-page .obs-body:not([data-mtab="control"]) .obs-control,
  body.obs-page .obs-body:not([data-mtab="props"]) .obs-tabs,
  body.obs-page .obs-body:not([data-mtab="props"]) .obs-pane { display: none !important; }
  body.obs-page .obs-layer-head { min-height: 52px; }
  body.obs-page .obs-layer-tools { position: static; order: 0; margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .obs-control .obs-control-btns { grid-template-columns: minmax(0, 1fr); }
  .obs-ctl { min-height: 48px; justify-content: flex-start; }
  .obs-ctl--ext { grid-column: auto; }
}

/* ---------- Anleitung „Overlay in OBS einrichten“ (js/obs-setup.js) ----------
   Nach dem Entwurf „OBS-Anleitung“ im Designsystem Nocturne: Schritte links, Adresse immer griffbereit,
   OBS-Status oben. Die Farben sind die Nocturne-Tokens, nur innerhalb der Anleitung gültig. */
.obs-setup {
  --n-bg: #161826; --n-surface: #232532; --n-text: #e9e9ed; --n-line: color-mix(in srgb, #e9e9ed 16%, transparent);
  --n-acc: #9184d9; --n-acc-100: #f5f4ff; --n-acc-300: #d2cefd; --n-acc-800: #423a6a; --n-acc-900: #2b2741;
  --n-200: #e4e7f5; --n-300: #cfd3e5; --n-400: #b2b6ca; --n-700: #595d6c; --n-800: #3f424d;
  --n-ok: #2fbf71; --n-ok-100: #c9f5dc; --n-wait: #ffcf5a; --n-mark: #ffb020;
  width: min(1040px, calc(100vw - 24px)); height: min(780px, calc(100dvh - 24px)); max-width: none; max-height: none;
  padding: 0; display: none; flex-direction: column; overflow: hidden;
  background: var(--n-bg); color: var(--n-text); border: 0; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--n-line), 0 16px 40px rgba(0, 0, 0, .65); font: 400 15px/1.55 Inter, var(--font-body), system-ui, sans-serif;
}
.obs-setup[open] { display: flex; }
.obs-setup b { font-weight: 500; color: var(--n-acc-100); }
.obs-setup :focus-visible { outline: 2px solid var(--n-acc); outline-offset: 2px; }
.obs-setup .ph { line-height: 1; }

/* Kopf mit OBS-Status */
.os-head { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--n-line); }
.os-head h2 { flex: 1; min-width: 0; margin: 0; font: 500 15px/1.2 Inter, var(--font-body), sans-serif; letter-spacing: 0; text-transform: none; color: var(--n-text); }
.os-head-ico { font-size: 18px; color: var(--n-acc); }
.os-pill { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--n-line); font-size: 12.5px; color: var(--n-200); white-space: nowrap; }
.os-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--n-wait); }
.os-pill[data-state="ok"] { border-color: var(--n-ok); background: rgba(47, 191, 113, .1); color: var(--n-ok-100); }
.os-pill[data-state="ok"] .os-dot { background: var(--n-ok); box-shadow: 0 0 8px var(--n-ok); }
.os-pill[data-state="unknown"] .os-dot { background: var(--n-400); }
.os-icon { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--n-text); font-size: 18px; cursor: pointer; }
.os-icon:hover { background: color-mix(in srgb, var(--n-text) 7%, transparent); }

/* Knöpfe (Nocturne: Primär = Umriss in der Akzentfarbe) */
.os-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--n-text);
  font: 500 14px/1.2 Inter, var(--font-body), sans-serif; cursor: pointer; white-space: nowrap;
}
.os-btn:disabled { opacity: .45; cursor: not-allowed; }
.os-btn--primary { color: var(--n-acc); border-color: var(--n-acc); }
.os-btn--primary:hover { background: color-mix(in srgb, var(--n-acc) 12%, transparent); }
.os-btn--secondary { border-color: var(--n-line); }
.os-btn--secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--n-text) 7%, transparent); }
.os-btn--sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.os-btn--sq { width: 32px; min-height: 32px; padding: 0; }
.os-btn .ph { font-size: 16px; }

/* Links die Schritte und die Adresse */
.os-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.os-rail { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--n-line); background: var(--n-surface); }
.os-steps { flex: 1; overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.os-phase { margin: 0; padding: 10px 8px 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n-300); }
.os-step {
  display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 4px; text-align: left;
  background: transparent; color: var(--n-300); font: inherit; font-size: 13px; cursor: pointer;
}
.os-step:hover { background: var(--n-700); }
.os-step[data-state="on"] { background: var(--n-acc-900); box-shadow: inset 0 0 0 1px var(--n-acc-800); color: var(--n-acc-100); }
.os-step[data-state="done"] { color: var(--n-200); }
.os-step-t { flex: 1; min-width: 0; }
.os-step small { font-size: 10.5px; color: var(--n-300); }
.os-step-num {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--n-line); color: var(--n-300); font-size: 11px; font-weight: 600;
}
.os-step-num .ph { display: none; font-size: 12px; }
.os-step[data-state="on"] .os-step-num { border-color: var(--n-acc); color: var(--n-acc-100); }
.os-step[data-state="done"] .os-step-num { border-color: transparent; background: var(--n-acc-800); color: var(--n-acc-100); }
.os-step[data-state="done"] .os-step-num span { display: none; }
.os-step[data-state="done"] .os-step-num .ph { display: block; }
.os-addr { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-top: 1px solid var(--n-line); }
.os-label { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n-300); }
.os-addr-row { display: flex; gap: 6px; }
.os-addr-row input, .os-url input {
  flex: 1; min-width: 0; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--n-line);
  background: var(--n-bg); color: var(--n-text); font: 11.5px "JetBrains Mono", ui-monospace, monospace;
}
.os-copied { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--n-ok-100); }
.os-copied[hidden] { display: none; }

/* Rechts der Schritt */
.os-content { min-height: 0; overflow-y: auto; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.os-titles { display: flex; flex-direction: column; gap: 4px; }
.os-kicker { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--n-acc-300); }
.os-titles h3 { margin: 0; font: 500 22px/1.15 Inter, var(--font-body), sans-serif; letter-spacing: -.015em; text-transform: none; color: var(--n-text); }
.os-body { display: flex; flex-direction: column; gap: 14px; }
.os-body > * { flex: none; }
.os-lead { margin: 0; max-width: 640px; font-size: 14.5px; line-height: 1.5; color: var(--n-200); text-wrap: pretty; }
.os-lines { display: flex; flex-direction: column; gap: 8px; }
.os-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.os-num {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--n-mark); color: #1b1300; font-size: 12px; font-weight: 700; line-height: 1;
}
.os-line .os-num { margin-top: 1px; }
.os-hints { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.os-hint { display: flex; align-items: flex-start; gap: 10px; max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--n-200); }
.os-hint .ph { margin-top: 2px; font-size: 16px; color: var(--n-acc); }
.os-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 11px; letter-spacing: .02em; background: var(--n-800); color: #f3f5fe; white-space: nowrap; }
.os-tag--acc { background: var(--n-acc-800); color: var(--n-acc-100); }

/* Schritt 1: zwei Wege */
.os-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.os-way { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 8px; background: var(--n-surface); box-shadow: inset 0 0 0 1px var(--n-line); }
.os-way.is-best { box-shadow: inset 0 0 0 1px var(--n-acc-800); }
.os-way-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.os-way-head .ph { font-size: 20px; color: var(--n-acc); }
.os-way p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--n-200); }
.os-way .os-btn { align-self: flex-start; margin-top: 4px; }
.os-final { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.os-final img { width: 100%; max-width: 560px; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--n-line); }
.os-final figcaption { margin: 0; font-size: 12.5px; color: var(--n-300); }

/* Schritt 2: Adresse groß */
.os-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 16px; border-radius: 8px; background: var(--n-surface); box-shadow: inset 0 0 0 1px var(--n-line); }
.os-url input { height: 40px; padding: 0 12px; font-size: 13px; }
.os-url .os-btn { min-height: 40px; }

/* Schritt 6: Felder zum Abhaken */
.os-checks { display: flex; flex-direction: column; border-radius: 8px; background: var(--n-surface); box-shadow: inset 0 0 0 1px var(--n-line); overflow: hidden; }
.os-check { display: grid; grid-template-columns: 22px minmax(120px, 170px) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; }
.os-check + .os-check { border-top: 1px solid var(--n-line); }
.os-check-field { font-size: 13.5px; color: var(--n-200); }
.os-check-val { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.os-check-val b { font-size: 14px; }
.os-check-val small { font-size: 12.5px; color: var(--n-300); }
.os-check-act { display: flex; align-items: center; gap: 8px; }
.os-box { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--n-line); border-radius: 6px; background: transparent; color: var(--n-acc-100); cursor: pointer; }
.os-box .ph { font-size: 14px; visibility: hidden; }
.os-box[aria-pressed="true"] { border-color: var(--n-acc); background: var(--n-acc-800); }
.os-box[aria-pressed="true"] .ph { visibility: visible; }

/* Bild aus OBS */
.os-shot { position: relative; margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--n-line); background: #1d1f26; }
.os-shot img { display: block; width: 100%; height: auto; }
.os-shot a {
  position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(22, 24, 38, .88); box-shadow: 0 0 0 1px var(--n-line); color: var(--n-text); font-size: 12.5px; text-decoration: none;
}

/* Letzter Schritt: Ergebnis */
.os-result { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; background: var(--n-surface); box-shadow: inset 0 0 0 1px var(--n-line); font-size: 14px; }
.os-result > .ph { font-size: 20px; color: var(--n-acc); }
.os-result span { display: flex; flex-direction: column; gap: 2px; }
.os-result small { font-size: 13px; color: var(--n-200); }
.os-result[data-state="wait"] > .ph, .os-result[data-state="wait"] b { color: var(--n-wait); }
.os-result[data-state="wait"] > .ph { animation: os-spin 1.2s linear infinite; }
.os-result[data-state="ok"] { background: rgba(47, 191, 113, .1); box-shadow: inset 0 0 0 1px var(--n-ok); }
.os-result[data-state="ok"] > .ph { color: var(--n-ok); }
.os-result[data-state="ok"] b, .os-result[data-state="ok"] small { color: var(--n-ok-100); }
@keyframes os-spin { to { transform: rotate(360deg); } }
.os-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.os-note { font-size: 13px; color: var(--n-300); }
.os-note b { color: var(--n-200); }

/* Fuß */
.os-foot { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-top: 1px solid var(--n-line); }
.os-keys { margin-left: auto; font-size: 12px; color: var(--n-300); }

@media (prefers-reduced-motion: reduce) { .os-result[data-state="wait"] > .ph { animation: none; } }

/* Schmal: Schritte als Leiste oben, Adresse steht in den Schritten 2 und 6 */
@media (max-width: 760px) {
  .obs-setup { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
  .os-head { padding-left: 14px; }
  .os-head h2 { font-size: 14px; }
  .os-pill { height: 28px; padding: 0 10px; font-size: 0; gap: 0; }
  .os-pill .os-dot { width: 10px; height: 10px; }
  .os-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .os-rail { border-right: 0; border-bottom: 1px solid var(--n-line); }
  .os-steps { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 4px; scrollbar-width: none; }
  .os-phase, .os-addr, .os-keys { display: none; }
  .os-step { flex: none; }
  .os-step:not([data-state="on"]) .os-step-t, .os-step small { display: none; }
  .os-content { padding: 16px; }
  .os-titles h3 { font-size: 19px; }
  .os-ways { grid-template-columns: minmax(0, 1fr); }
  .os-check { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .os-check-field { grid-column: 2 / 4; }
  .os-check-val { grid-column: 2; }
  .os-check-act { grid-column: 3; grid-row: 2; }
  .os-url { grid-template-columns: minmax(0, 1fr); }
  .os-foot { height: auto; min-height: 60px; padding: 8px 14px; justify-content: space-between; }
  .os-foot .os-btn { min-height: 44px; }
}

/* ---------- Profil & Zeitplan (Dashboard, js/dash-profile.js) ---------- */
.pf-cards { align-items: start; }
.pf-card .dash-actions .btn, .pf-url .btn { display: inline-flex; align-items: center; gap: 6px; }
.pf-slots, .pf-links { display: grid; gap: 8px; }
.pf-slot-head, .pf-slot { display: grid; grid-template-columns: 130px 104px 118px minmax(0, 1.4fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.pf-slot-head { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-slot select, .pf-slot input, .pf-link input, .pf-url input, .pf-card .field select, .pf-card .field input[type="date"] {
  width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.pf-slot input[type="time"], .pf-card input[type="date"] { color-scheme: dark; }
:root[data-theme="light"] .pf-slot input[type="time"], :root[data-theme="light"] .pf-card input[type="date"] { color-scheme: light; }
.pf-link { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) 36px; gap: 8px; }
.pf-del { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.pf-del:hover, .pf-del:focus-visible { border-color: var(--danger); color: var(--danger); outline: none; }
.pf-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-url input { flex: 1 1 260px; font-family: var(--font-mono); font-size: 12.5px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pf-wide { grid-column: 1 / -1; }
.pf-next { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-next li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: rgba(var(--surf-rgb), .7); border: 1px solid var(--line-soft); font-size: 14px; }
.pf-next b { color: var(--text); font-weight: 600; white-space: nowrap; }
.pf-next span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-next small { color: var(--muted); }
.pf-away { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(var(--acc-rgb), .12); color: var(--acc-ink); font-size: 13.5px; }
@media (max-width: 760px) {
  .pf-slot-head { display: none; }
  .pf-slot { grid-template-columns: 1fr 1fr 1fr; padding: 10px; border-radius: 12px; border: 1px solid var(--line-soft); }
  .pf-slot input[type="text"] { grid-column: span 3; }
  .pf-slot .pf-del { grid-column: 3; justify-self: end; }
  .pf-link { grid-template-columns: 1fr 36px; }
  .pf-link input[type="url"] { grid-column: 1; grid-row: 2; }
  .pf-link .pf-del { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* ---------- Discord (Dashboard, js/dash-discord.js) ---------- */
.dc-cards { align-items: start; }
.dc-card .dash-actions .btn, .dc-community .btn { display: inline-flex; align-items: center; gap: 6px; }
.dc-community .btn { flex: 0 0 auto; }
.dc-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.dc-connect { display: grid; gap: 10px; }
.dc-connect input { font-family: var(--font-mono); font-size: 13px; }
.dc-danger:hover, .dc-danger:focus-visible { border-color: var(--danger); color: var(--danger); }
.dc-state { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.dc-state--ok { color: var(--muted); }
.dc-state--ok i { color: #3ddc97; }
.dc-state--bad { color: var(--danger); font-weight: 600; }
.dc-toggles { display: grid; gap: 10px; }
.dc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dc-fields { display: grid; gap: 10px; }
.dc-fields .form-hint { margin: -4px 0 0; }
.dc-fields input[type="text"] { margin-top: 6px; }
.dc-preview { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: #313338; color: #dbdee1; font-size: 14px; line-height: 1.4; }
.dc-msg-head { display: flex; align-items: center; gap: 8px; }
.dc-msg-head b { color: #f2f3f5; }
.dc-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #9146ff; color: #fff; font-weight: 700; font-size: 13px; }
.dc-bot { padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; }
.dc-msg-text { margin: 0; overflow-wrap: anywhere; }
.dc-mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; }
.dc-embed { display: grid; gap: 4px; padding: 10px 12px; border-left: 4px solid #eb0400; border-radius: 4px; background: #2b2d31; }
.dc-embed b { color: #00a8fc; }
.dc-embed-img { display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 320px; margin-top: 4px; border-radius: 6px; background: linear-gradient(135deg, #1f1534, #9146ff); color: #fff; font-size: 28px; }
.dc-post { display: grid; gap: 10px; }
.dc-post-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .7); }
.dc-post-row > span { color: var(--text-2); font-size: 14px; }
.dc-post-row select { flex: 1 1 220px; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.dc-post-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.dash-card.dc-community { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, rgba(88, 101, 242, .22), rgba(var(--surf-rgb), .7)); }
.dc-community h2 { margin: 0 0 4px; font-size: 17px; }
@media (max-width: 760px) { .dc-grid { grid-template-columns: 1fr; } }

/* ---------- Raid-Netzwerk und Freunde werben (js/dash-network.js) ---------- */
.rn-cards { align-items: start; }
.rn-card .dash-actions .btn, .rn-item .btn { display: inline-flex; align-items: center; gap: 6px; }
.rn-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.rn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.rn-card .field select { min-height: 42px; }
.rn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rn-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .7); }
.rn-ava { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: rgba(var(--acc-rgb), .25); color: var(--text); font-weight: 700; }
.rn-who { display: grid; gap: 2px; min-width: 0; }
.rn-who a, .rn-who b { color: var(--text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.rn-who a:hover, .rn-who a:focus-visible { text-decoration: underline; }
.rn-meta { color: var(--muted); font-size: 13px; }
.rn-note { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.rn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rn-tags:empty { display: none; }
.rn-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.rn-tag--ok { border-color: rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .12); color: var(--ok-ink); }
.rf-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.rf-perks li { display: flex; gap: 10px; align-items: baseline; }
.rf-perks .ph { color: var(--amber); }
.rf-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rf-ladder li { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; opacity: .6; }
.rf-ladder li.is-done { opacity: 1; border-style: solid; border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .12); }
.rf-ladder li.is-next { opacity: .9; }
.rf-badge { font-size: 26px; line-height: 1.2; }
.rf-ladder small { color: var(--muted); }
@media (max-width: 560px) {
  .rn-item { grid-template-columns: auto minmax(0, 1fr); }
  .rn-item > .btn, .rn-item > .rn-tag { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Trinkgeld & Sponsoren (js/dash-money.js) ---------- */
.mo-cards { align-items: start; }
.mo-card .dash-actions .btn, .mo-sponsor .btn { display: inline-flex; align-items: center; gap: 6px; }
.mo-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.mo-steps-url { list-style: none; margin-left: -20px; }
.mo-kofi { display: grid; gap: 10px; }
.mo-kofi input { font-family: var(--font-mono); font-size: 13px; }
.mo-danger:hover, .mo-danger:focus-visible { border-color: var(--danger); color: var(--danger); }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.mo-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mo-recent li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .7); font-size: 14px; }
.mo-recent small { grid-column: 2 / 3; color: var(--muted); overflow-wrap: anywhere; }
.mo-recent time { color: var(--muted); font-size: 12px; }
.mo-sponsors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mo-sponsor { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .7); }
.mo-sponsor.is-off { opacity: .6; }
.mo-sponsor .toggle { gap: 0; }
.mo-sponsor-text { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.mo-sponsor-text span { color: var(--text-2); overflow-wrap: anywhere; }
.mo-sponsor-text a { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .mo-sponsor { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mo-sponsor > .btn { grid-column: 2 / 3; justify-self: start; }
}

/* Sponsoring-Börse im Dashboard (js/dash-money.js) */
.mo-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: rgba(255, 255, 255, .06); vertical-align: middle; margin-right: 8px; }
.mo-fixed { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mo-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mo-offer { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .7); }
.mo-offer-head { display: flex; align-items: center; gap: 10px; }
.mo-offer-head .mo-logo { width: 42px; height: 42px; margin: 0; }
.mo-offer-head > div { display: grid; gap: 1px; }
.mo-offer-head span { color: var(--muted); font-size: 13.5px; }
.mo-offer-text { margin: 0; color: var(--text-2); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.mo-offer-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 13.5px; }
.mo-offer-state { margin: 0; font-weight: 600; }
.mo-offer textarea { width: 100%; }

/* ---------- Artist-Bereich (js/dash-artist.js) ---------- */
.ar-cards { align-items: start; }
.ar-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.ar-steps li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .6); font-size: 13.5px; color: var(--muted); }
.ar-steps li b { color: var(--text-2); font-size: 14px; }
.ar-steps li.is-done { border-color: rgba(61, 220, 132, .35); }
.ar-steps li.is-done b::after { content: " ✓"; color: #3ddc84; }
.ar-steps li.is-now { border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .1); }
.ar-steps li.is-now b { color: var(--text); }
.ar-form { display: grid; gap: 14px; }
.ar-links { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; min-width: 0; }
.ar-links legend { padding: 0 6px; font-size: 13.5px; color: var(--text-2); }
.ar-link-list { display: grid; gap: 8px; }
.ar-link-list input, .ar-form .field select { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.ar-links > .btn { justify-self: start; }
.ar-rules { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); font-size: 14px; }
.ar-rules ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); }
.ar-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(var(--acc-rgb), .1); font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.ar-note.is-bad { background: rgba(255, 90, 78, .12); color: var(--text); }
.ar-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14px; }
.ar-facts dt { color: var(--muted); }
.ar-facts dd { margin: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.ar-profile summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.ar-profile summary::-webkit-details-marker { display: none; }
.ar-profile summary > span:last-child { display: grid; }
.ar-profile summary small { color: var(--muted); }
.ar-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.ar-kind { position: relative; display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.ar-kind input { position: absolute; opacity: 0; pointer-events: none; }
.ar-kind-ico { font-size: 22px; }
.ar-kind small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ar-kind:has(input:checked) { border-color: var(--acc); background: rgba(var(--acc-rgb), .12); box-shadow: inset 0 0 0 1px var(--acc); }
.ar-kind:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.ar-upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ar-upload-fields { display: grid; gap: 12px; }
.ar-extra { display: grid; gap: 12px; }
.ar-extra[hidden] { display: none; }
.ar-form input[type="color"] { min-height: 42px; padding: 4px; }
.ar-form input[type="file"] { padding: 8px; }
.ar-preview { position: sticky; top: 12px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.ar-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b14 radial-gradient(120% 120% at 30% 20%, #2a1d52, #0b0b14); border: 1px solid var(--line); display: grid; place-items: center; color: #fff; }
.ar-stage-bg { position: absolute; inset: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.ar-stage-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.ar-stage-label { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; padding: 10px 18px; border-radius: 12px; background: rgba(10, 10, 20, .6); border: 2px solid var(--ar-accent, var(--acc)); text-align: center; }
.ar-stage-label small { color: var(--ar-accent, var(--acc)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.ar-stage-alert { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; max-width: 70%; }
.ar-stage-alert img, .ar-stage-alert video { max-width: 100%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.ar-stage-alert b { padding: 4px 12px; border-radius: 10px; background: rgba(10, 10, 20, .75); font-size: 14px; }
.ar-stage-alert--mini { position: absolute; right: 4%; bottom: 6%; max-width: 32%; }
.ar-stage-alert--mini img, .ar-stage-alert--mini video { max-height: 70px; }
.ar-stage-alert--mini b { font-size: 11px; }
.ar-stage--card { aspect-ratio: 4 / 3; }
.ar-stage-card { display: grid; gap: 6px; justify-items: center; width: 42%; padding: 8px 8px 10px; border-radius: 14px; background: linear-gradient(160deg, #3d2a7a, #1b1240); border: 3px solid #d6b24a; }
.ar-stage-card img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; }
.ar-stage-card b { font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.ar-rights { align-items: flex-start; font-size: 14px; }
.ar-mine { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ar-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(var(--surf-rgb), .6); }
.ar-thumb { display: grid; place-items: center; width: 84px; height: 56px; border-radius: 10px; overflow: hidden; background: #0b0b14; font-size: 24px; }
.ar-thumb img, .ar-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ar-item-body { display: grid; gap: 2px; min-width: 0; }
.ar-item-body b { overflow-wrap: anywhere; }
.ar-item-body small { color: var(--muted); }
.ar-item-body .ar-note { margin-top: 4px; }
.ar-status { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: rgba(var(--surf-rgb), .9); border: 1px solid var(--line); }
.ar-status.is-approved { color: #3ddc84; border-color: rgba(61, 220, 132, .45); }
.ar-status.is-pending { color: var(--amber); border-color: rgba(255, 184, 28, .45); }
.ar-status.is-rejected { color: var(--danger); border-color: rgba(255, 90, 78, .45); }
@media (max-width: 760px) {
  .ar-upload-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-preview { position: static; order: -1; }
  .ar-item { grid-template-columns: 64px minmax(0, 1fr) 36px; }
  .ar-thumb { width: 64px; height: 48px; }
  .ar-status { grid-column: 2; justify-self: start; }
  .ar-item .pf-del { grid-column: 3; grid-row: 1; }
}

/* ---------- Design-Bibliothek: Von Artists ---------- */
.lb-art-thumb { background: #0b0b14 center / cover no-repeat; }
.lb-art-thumb.is-alert, .lb-art-thumb.is-card { display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--tc) 35%, #1b1240), #07060d); }
.lb-art-obj { display: grid; place-items: center; width: 62%; height: 78%; }
.lb-art-obj img, .lb-art-obj video { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.lb-art-thumb.is-card .lb-art-obj { width: 34%; height: 86%; }
.lb-art-thumb.is-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 2px solid #d6b24a; }
.th-t-alert video { width: 70%; height: 70%; object-fit: contain; }
.lb-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .3); font-size: 13.5px; color: var(--text-2); }
.lb-credit[hidden] { display: none; }
.lb-credit a { color: var(--acc-ink); font-weight: 600; }
.lb-credit small { color: var(--muted); }
.lb-report { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.lb-report:hover, .lb-report:focus-visible { color: var(--danger); border-color: var(--danger); outline: none; }
.lb-card-prev { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 20%, #2a1d52, #0b0b14); }
.lb-card-face { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 6px; justify-items: center; height: 86%; aspect-ratio: 5 / 8; padding: 10px 10px 12px; border-radius: 16px; background: linear-gradient(160deg, #3d2a7a, #1b1240); border: 3px solid #d6b24a; color: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); }
.lb-card-face img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 10px; }
.lb-card-face b { font-size: clamp(11px, 1.6vw, 16px); }
.lb-card-face b { text-align: center; overflow-wrap: anywhere; }
.lb-card-face small { color: #ffd36b; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.lb-card-face.is-epic { border-color: #b388ff; }
.lb-card-face.is-legendary { border-color: #ffb81c; box-shadow: 0 0 30px rgba(255, 184, 28, .45); }

/* ---------- Farbe aus dem Logo (OBS-Fenster → Design, js/brand-colors.js) ---------- */
.obs-brand { display: grid; gap: 8px; align-content: start; }
.obs-brand-pick { justify-self: start; cursor: pointer; }
.obs-brand-pick:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.obs-brand-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.obs-brand-swatches:empty { display: none; }
.obs-brand-swatch { min-width: 74px; padding: 6px 8px; border: 2px solid transparent; border-radius: 10px; font: 600 12px var(--font-mono, monospace); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.obs-brand-swatch[aria-pressed="true"] { border-color: var(--text); }
.obs-brand-swatch:disabled { cursor: default; opacity: .6; }
.pf-color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 46px; }
.pf-color-row input[type="color"] { width: 56px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.pf-color-row input[type="color"]:disabled { opacity: .4; cursor: default; }

/* ---------- Look-Baukasten (js/look-builder.js) ---------- */
.lb-build { white-space: nowrap; }
.lb-builder { width: min(96vw, 1180px); }
.lbb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; padding: 18px 24px 26px; align-items: start; }
.lbb-form { display: grid; gap: 14px; }
.lbb-box { display: grid; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.lbb-box legend { padding: 0 6px; font-weight: 700; }
.lbb-color { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lbb-color input[type="color"] { width: 64px; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.lbb-logo { cursor: pointer; }
.lbb-logo:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.lbb-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.lbb-swatches:empty { display: none; }
.lbb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.lbb-grid .field select { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.lbb-wide { grid-column: 1 / -1; }
.lbb-side { position: sticky; top: 0; display: grid; gap: 10px; }
.lbb-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.lbb-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 9, 15, .15), rgba(7, 9, 15, .55)), url("../assets/bg-storm.svg") center / cover; }
.lbb-screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; color-scheme: normal; }
.lb-edit { margin-left: auto; }
.lb-edit + .lb-report { margin-left: 0; }
@media (max-width: 860px) {
  .lbb { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 22px; }
  .lbb-side { position: static; order: -1; }
  .lbb-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Console (Entwurf, js/dash-console.js): virtuelles Gerät wie im 3D-Modell ---------- */
.cs-cards { align-items: start; }
.cs-card { display: grid; gap: 16px; }
.cs-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cs-head h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-head-btns { display: flex; gap: 8px; }
.cs-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--acc-100); background: var(--acc-900); box-shadow: inset 0 0 0 1px var(--acc-800); }
.cs-device {
  display: grid; grid-template-columns: minmax(0, 420px) auto minmax(240px, 1fr); align-items: center; gap: 20px;
  padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #2c2f37, #1d1f25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .35);
}
.cs-device.is-editing { outline: 2px dashed var(--acc); outline-offset: 4px; }
.cs-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-key {
  --k: #8e8e9a;
  position: relative; display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 1; min-height: 72px; padding: 6px;
  border: 0; border-radius: 12px; cursor: pointer; color: #f4f4f6; font: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 26%, #3a3d46), color-mix(in srgb, var(--k) 14%, #2a2c33));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--k) 70%, transparent), 0 4px 0 #15161a, 0 6px 10px rgba(0, 0, 0, .35);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.cs-key:hover { filter: brightness(1.12); }
.cs-key:active, .cs-key.is-hit { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--k), 0 1px 0 #15161a; }
.cs-key:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cs-key.is-on { box-shadow: inset 0 0 0 2px var(--k), 0 0 16px color-mix(in srgb, var(--k) 70%, transparent), 0 4px 0 #15161a; }
.cs-key.is-empty { color: #8e909a; background: #2a2c33; box-shadow: inset 0 0 0 1px #464954, 0 4px 0 #15161a; }
.cs-key.is-picked { outline: 3px solid var(--acc); outline-offset: 3px; }
.cs-key.is-busy { opacity: .6; cursor: progress; }
.cs-key-ico { font-size: 24px; line-height: 1; }
.cs-key-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.cs-bulb {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; color: #ffd75e; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #4a4d58, #262830); box-shadow: inset 0 0 0 2px #575a66, 0 3px 0 #15161a;
}
.cs-bulb:hover { color: #ffe9a0; box-shadow: inset 0 0 0 2px #ffd75e, 0 0 14px rgba(255, 215, 94, .45), 0 3px 0 #15161a; }
.cs-bulb:active { transform: translateY(2px); }
.cs-bulb:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cs-display {
  display: grid; gap: 10px; align-content: start; align-self: stretch; padding: 14px; border-radius: 12px; color: #eef0f4;
  background: #0d0f14; box-shadow: inset 0 0 0 2px #3a3d46, inset 0 0 24px rgba(145, 70, 255, .12);
}
.cs-d-title { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-d-title span { color: #a7abb8; }
.cs-d-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #1a1d25; }
.cs-d-card.is-idea { background: #2b2410; box-shadow: inset 0 0 0 1px #6b5a1c; }
.cs-d-card .btn { color: #ffd75e; }
.cs-d-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #262a35; font-size: 18px; }
.cs-d-text { display: grid; min-width: 0; }
.cs-d-text b, .cs-d-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-d-text b { font-size: 13px; }
.cs-d-text small { font-size: 11.5px; color: #a7abb8; }
.cs-d-goal { display: grid; gap: 6px; font-size: 11.5px; color: #a7abb8; }
.cs-d-bar { display: block; height: 8px; border-radius: 999px; background: #262a35; overflow: hidden; }
.cs-d-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5a4e, #ffb81c); transition: width .4s ease; }
.cs-foot { margin: 0; }
.cs-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cs-edit fieldset { display: grid; gap: 10px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; }
.cs-edit legend { padding: 0 6px; font-weight: 600; }
.cs-edit fieldset > .btn { justify-self: start; }
.cs-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--k); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cs-swatch[aria-checked="true"] { border-color: var(--text); }
.cs-swatch:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 900px) {
  .cs-device { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cs-keys, .cs-display { width: 100%; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .cs-key, .cs-d-bar > span { transition: none; } }
/* Console: 3D-Ansicht und Technik-Baukasten */
.cs-cards { display: grid; gap: 16px; }
.cs-main, .cs-kit { display: grid; gap: 16px; grid-column: 1 / -1; min-width: 0; }
.cs-3d-card { display: grid; gap: 12px; }
.cs-3d-card .cs-head-btns, .ck-card .cs-head-btns { align-items: center; flex-wrap: wrap; }
.cs-head > div { min-width: 0; }
.cs-3d-mode { min-height: 34px; width: auto; max-width: 100%; }
.cs-3d-card .btn[for] { cursor: pointer; }
.cs-3d-host {
  min-height: 300px; border-radius: 16px; overflow: hidden; touch-action: none;
  background: radial-gradient(120% 90% at 30% 10%, #2a2340, #121219 70%); box-shadow: inset 0 0 0 1px var(--line);
}
.cs-3d-host:empty { display: grid; place-items: center; }
.cs-3d-host:empty::before { content: "🎛️"; font-size: 40px; opacity: .35; }
.cs-3d-host canvas { display: block; width: 100% !important; cursor: grab; }
.cs-3d-host canvas:active { cursor: grabbing; }
.cs-3d-status { margin: 0; }
.ck-card { display: grid; gap: 14px; min-width: 0; }
.ck-card select { max-width: 100%; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px 16px; }
.ck-part, .ck-part .field { min-width: 0; }
.ck-part { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .35); }
.ck-part select { min-width: 0; width: 100%; }
.ck-price { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ck-price input { min-width: 0; min-height: 32px; text-align: right; }
.ck-note { font-size: 12px; color: var(--muted); }
.ck-note.is-warn { color: var(--warning, #ffb81c); }
.ck-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.ck-sums { display: grid; gap: 6px; margin: 0; }
.ck-sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.ck-sums dt { color: var(--muted); }
.ck-sums dd { margin: 0; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.ck-sums .is-total dt { color: var(--text); font-weight: 600; }
.ck-sums .is-total dd { color: var(--acc-100); font-size: 1.15em; }
.form-hint.is-warn { color: var(--warning, #ffb81c); }
.ck-scope-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px 16px; }
.ck-scope-group { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .35); min-width: 0; }
.ck-scope-group legend { padding: 0 6px; font-weight: 600; }
.ck-scope-group ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ck-scope-group li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line-soft); }
.ck-scope-group li:last-child { border-bottom: 0; }
.ck-scope-text { display: grid; gap: 3px; min-width: 0; }
.ck-scope-text small { color: var(--muted); font-size: 12px; }
.ck-scope-text small.is-warn { color: var(--warning, #ffb81c); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ck-scope-group select { flex: none; width: 132px; min-height: 32px; }
.ck-scope-group li.is-v1 select { border-color: var(--acc); color: var(--acc-100); }
.ck-scope-group li.is-no > .ck-scope-text > span { color: var(--muted); text-decoration: line-through; }
.ck-scope-group li.is-later > .ck-scope-text > span { color: var(--muted); }
@media (max-width: 520px) { .ck-scope-group li { flex-direction: column; align-items: stretch; } .ck-scope-group select { width: 100%; } }
.ck-tip-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ck-tip-sum > div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .35); }
.ck-tip-sum span { font-size: 12.5px; color: var(--muted); }
.ck-tip-sum b { font-family: var(--font-mono); font-size: 1.1em; }
.ck-tip-group h3 { margin: 4px 0 8px; font-size: 1rem; }
.ck-tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck-tip { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .35); }
.ck-tip.is-yes { border-color: var(--acc-800); }
.ck-tip.is-no { opacity: .6; }
.ck-tip.is-no b { text-decoration: line-through; }
.ck-tip-text { display: grid; gap: 4px; min-width: 0; }
.ck-tip-text p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ck-tip-fx { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.ck-tip-fx.is-good { color: var(--success, #3ddc97); }
.ck-tip-fx.is-cost { color: var(--warning, #ffb81c); }
.ck-tip-text small.is-warn { color: var(--warning, #ffb81c); font-size: 12px; }
.ck-tip-act { display: flex; flex-direction: column; gap: 6px; flex: none; width: 150px; }
.ck-tip-act select { min-height: 32px; width: 100%; }
@media (max-width: 560px) { .ck-tip { flex-direction: column; } .ck-tip-act { width: 100%; flex-direction: row; } .ck-tip-act > * { flex: 1; } }
.ck-fixed { flex: none; font-size: 12.5px; color: var(--muted); padding: 4px 10px; border: 1px dashed var(--line); border-radius: 999px; }
.ck-scope-text small.is-good { color: var(--success, #3ddc97); }
.ck-survey .ck-scope-group select { width: 240px; }
.ck-survey-note textarea { width: 100%; min-height: 56px; resize: vertical; }
@media (max-width: 520px) { .ck-survey .ck-scope-group select { width: 100%; } }
.ck-rear-list { list-style: none; margin: 0; display: grid; }
.ck-rear .ck-scope-group select { width: 300px; }
.ck-rear .ck-scope-group li.is-rec { box-shadow: inset 3px 0 0 var(--acc); padding-left: 10px; }
.ck-rear .ck-scope-text small b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .ck-rear .ck-scope-group select { width: 100%; } .ck-rear .ck-scope-group li { flex-direction: column; align-items: stretch; } }
.ck-duties-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ck-duties-list .is-extra { color: var(--warning, #ffb81c); }
.ck-bar { height: 10px; }
.ck-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; }
.ck-check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; cursor: pointer; }
.ck-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--acc); flex: none; }
.ck-check input:checked + span { color: var(--muted); text-decoration: line-through; }
.ck-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-idea-form { display: grid; gap: 8px; }
.ck-idea-form textarea { width: 100%; min-height: 64px; resize: vertical; }
.ck-idea-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck-idea-list li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .35); }
.ck-idea-list li.is-done p, .ck-idea-list li.is-dropped p { color: var(--muted); text-decoration: line-through; }
.ck-idea-list li.is-planned { border-color: var(--acc-800); }
.ck-idea-list p { margin: 0 0 6px; overflow-wrap: anywhere; }
.ck-idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-idea-meta small { margin-right: auto; color: var(--muted); }
.ck-idea-meta select { min-height: 30px; }


/* Sprache im Konto-Menü (js/app.js → langPicker) */
.pop-item--lang { cursor: default; gap: 10px; }
.pop-item--lang .pop-item-ico { width: 18px; text-align: center; }
.pop-item--lang .lang-pick { flex: 1; min-width: 0; margin: 0; color: inherit; }
