:root {
  --void: #1b1b1b;
  --void-2: #232323;
  --bone: #e8e8e8;
  --maritime: #004272;
  --maritime-lt: #4a90c8;
  --trail: #d97706;
  --tattoo: #a91d3a;
  --labor: #6ee7b7;
  --muted: #9a9a9a;
  --line: #333;
  --radius: 12px;
}
:root[data-theme="light"] {
  --void: #f3f3f3;
  --void-2: #ffffff;
  --bone: #1b1b1b;
  --line: #d4d4d4;
  --muted: #666666;
}
:root[data-theme="black"] {
  --void: #080808;
  --void-2: #151515;
  --bone: #e8e8e8;
  --line: #2a2a2a;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: 'Geist Mono', monospace; }
.error { color: var(--tattoo); }
.ok { color: var(--labor); }

.brand-mark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-mark span { color: var(--trail); }
.brand-mark.sm { font-size: 1.3rem; }

/* ---- LOGIN ---- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

/* ---- APP ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--void);
  z-index: 10;
}
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.card h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  border-left: 3px solid var(--trail);
  padding-left: 0.6rem;
}
.card h3 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* form controls */
input, select, textarea {
  width: 100%;
  background: var(--void);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--trail);
  box-shadow: 0 0 0 2px rgba(217, 118, 6, 0.22);
}
select:disabled, input:disabled { opacity: 0.4; cursor: not-allowed; }
.row { display: flex; gap: 0.6rem; }
.row > * { margin-bottom: 0.6rem; }

/* buttons */
.btn {
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  background: var(--void);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--trail); color: #1b1b1b; border-color: var(--trail); font-weight: 700; }
.btn-danger { background: var(--tattoo); color: #fff; border-color: var(--tattoo); }
.btn-ghost { background: transparent; }

/* badge */
.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.badge.on { color: var(--labor); border-color: var(--labor); }
.badge.off { color: var(--tattoo); border-color: var(--tattoo); }

/* status */
.feat { display: grid; gap: 0.4rem; margin-bottom: 0.5rem; }
.feat-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--labor); }
.dot.off { background: var(--tattoo); }

/* member list */
.list { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.6rem; max-height: 180px; overflow-y: auto; }
.member {
  text-align: left;
  background: var(--void);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.member:hover { border-color: var(--maritime-lt); }
.m-name { color: var(--muted); font-weight: 400; }
.member.sel { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); }

/* worlds */
.worlds { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.world {
  font-family: 'Geist Mono', monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.mappings div { padding: 0.15rem 0; border-bottom: 1px dashed var(--line); }
.mappings span { color: var(--maritime-lt); }

code {
  font-family: 'Geist Mono', monospace;
  background: var(--void);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 0.85em;
}

.brand-block { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-by {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.login-status { display: block; margin-top: 0.5rem; font-family: 'Geist Mono', monospace; font-size: 0.66rem; color: var(--labor); }
.sys-accordion { grid-template-columns: 1fr; max-width: 580px; }
.theme-swatches { display: flex; gap: 0.5rem; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch:hover { border-color: var(--bone); }

/* Sanftes oranges Hover-Glow (dezent) */
.btn, .nav-item, .acc-head, .ga-plat, .snip, .setup-opt, .member, .tpl-tok, .swatch, .lang-btn, .doc-expand {
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover, .nav-item:hover, .acc-head:hover, .ga-plat:hover, .snip:hover, .setup-opt:hover, .member:hover, .tpl-tok:hover, .swatch:hover, .lang-btn:hover, .doc-expand:hover {
  box-shadow: 0 0 9px rgba(217, 118, 6, 0.22);
}

/* Sprache — 2 Buttons */
.lang-toggle { display: flex; gap: 0.5rem; }
.lang-btn { flex: 1; background: var(--void); color: var(--bone); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem; cursor: pointer; font-family: inherit; font-size: 0.92rem; }
.lang-btn.active { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); color: var(--trail); }
.bg-toggle { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bg-btn { flex: 1; min-width: 90px; background: var(--void); color: var(--bone); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; cursor: pointer; font-family: inherit; font-size: 0.85rem; }
.bg-btn.active { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); color: var(--trail); }

.sys-import-btn { display: inline-block; margin-left: 0.5rem; }

/* Dokument-Boxen (Datenschutz) */
.doc-box { background: var(--void); border: 1px solid var(--line); border-radius: 8px; margin-top: 0.6rem; overflow: hidden; }
.doc-head { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.82rem; font-family: 'Geist Mono', monospace; }
.doc-expand { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--bone); cursor: pointer; padding: 0.1rem 0.45rem; font-size: 0.9rem; }
.doc-content { padding: 0.6rem 0.7rem; font-size: 0.82rem; line-height: 1.5; max-height: 110px; overflow-y: auto; color: var(--muted); white-space: pre-line; }

/* Dokument-Modal (vergrößert) */
.doc-modal-card { max-width: 640px; width: 100%; }
.doc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.doc-modal-head h2 { margin: 0; }
.doc-x { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--bone); cursor: pointer; padding: 0.2rem 0.55rem; font-size: 0.95rem; }
.doc-x:hover { border-color: var(--tattoo); color: var(--tattoo); }
.doc-modal-body { max-height: 60vh; overflow-y: auto; font-size: 0.9rem; line-height: 1.6; white-space: pre-line; }

.modules { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.4rem; }
.mod { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.mod-name {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  color: var(--trail);
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Format-Leiste */
.fmt-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; margin-bottom: 0.5rem; }
.fmt {
  background: var(--void);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 30px;
  height: 30px;
  padding: 0 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Geist Mono', monospace;
}
.fmt:hover { border-color: var(--maritime-lt); }
.fmt.b { font-weight: 800; }
.fmt.i { font-style: italic; }
.fmt.u { text-decoration: underline; }
.fmt.s { text-decoration: line-through; }
.fmt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 0.2rem; }

.emoji-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
}
.emoji {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.15rem 0.3rem;
  border-radius: 5px;
}
.emoji:hover { background: var(--void); filter: brightness(1.6); }

/* Bausteine */
.snippets { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.7rem; }
.snippets-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.snip {
  background: var(--void);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.snip:hover { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); }

/* ===== Sidebar-Layout ===== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--void-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand { padding: 0 0.4rem 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.nav { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  text-align: left;
}
.nav-item:hover { background: var(--void); }
.nav-item.active { background: var(--void); border-color: var(--line); border-left: 3px solid var(--trail); }
.nav-ico { font-size: 1.05rem; }
.side-foot { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.side-credit { font-family: 'Geist Mono', monospace; font-size: 0.65rem; color: var(--muted); line-height: 1.5; text-align: center; margin: 0.3rem 0 0; }
.side-credit a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.side-credit a:hover { color: var(--trail); border-color: var(--trail); }

.content { flex: 1; padding: 1.5rem; max-width: 1200px; min-width: 0; }
.view-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.8rem;
  margin: 0 0 0.3rem;
}
.settings-hint { margin-bottom: 1.2rem; }

/* ===== Toggle-Switch ===== */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.2s;
}
.switch .track::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: var(--muted);
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .track { background: rgba(110, 231, 183, 0.2); border-color: var(--labor); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--labor); }

/* ===== Accordion ===== */
.accordion { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; max-width: 880px; align-items: start; }
.acc-item.open { grid-column: 1 / -1; border-color: var(--trail); }
@media (max-width: 640px) { .accordion { grid-template-columns: 1fr; } }
.acc-item { background: var(--void-2); border: 1px solid var(--line); border-radius: 10px; }
.acc-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; }
.acc-title-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  background: transparent;
  border: none;
  color: var(--bone);
  cursor: pointer;
  text-align: left;
  padding: 0.3rem 0;
  flex-wrap: wrap;
}
.acc-ico { font-size: 1.1rem; }
.acc-title { font-family: 'Geist Mono', monospace; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.acc-desc { color: var(--muted); font-size: 0.78rem; }
.acc-caret { color: var(--muted); transition: transform 0.2s; cursor: pointer; user-select: none; }
.acc-caret.open { transform: rotate(180deg); }
.acc-body { padding: 0.5rem 0.9rem 0.9rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.acc-body.hidden { display: none; }
.set-field { display: flex; flex-direction: column; gap: 0.25rem; }
.set-field span { font-size: 0.78rem; color: var(--muted); }
.set-field input, .set-field select, .set-field textarea { margin: 0; }
.set-info, .set-lock { font-size: 0.85rem; margin: 0; color: var(--muted); }
.set-lock { color: var(--trail); }
.set-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.set-check input { width: auto; margin: 0; }
.range-in { width: 100%; accent-color: var(--trail); margin: 0; cursor: pointer; }
.range-val { color: var(--trail); font-family: 'Geist Mono', monospace; font-size: 0.8rem; }
.save-set { align-self: flex-start; margin-top: 0.3rem; }

/* Hilfe-Tooltip (? neben Feld-Titeln) */
.help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
}
.help:hover { border-color: var(--maritime-lt); color: var(--maritime-lt); }
.help:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--void);
  border: 1px solid var(--maritime-lt);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--bone);
  width: max-content;
  max-width: 230px;
  white-space: normal;
  line-height: 1.4;
  text-align: left;
  z-index: 60;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== Modal (Bug-Report) ===== */
.bug-btn { color: var(--trail); }
.bug-debug { margin: 0.7rem 0 0.2rem; }
.bug-echo { margin: 0 0 0.5rem; }
.bug-echo.on { color: var(--labor); }
.bug-hint { font-size: 0.72rem; line-height: 1.5; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.privacy-link { color: var(--muted); font-size: 0.78rem; }
.account-btn { color: var(--maritime-lt); }
.acc-sec { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.acc-sec:last-of-type { border-bottom: none; }
.acc-sec h3 { font-size: 0.9rem; margin: 0 0 0.4rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-card {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
}
.modal-card h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
}

/* Erst-Einrichtung */
.setup-opts { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.8rem 0; }
.setup-opt {
  text-align: left;
  background: var(--void);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.setup-opt:hover { border-color: var(--trail); background: rgba(217, 118, 6, 0.1); }
.setup-open-btn { margin-bottom: 1rem; color: var(--trail); }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.setup-progress { font-family: 'Geist Mono', monospace; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.setup-nav { display: flex; justify-content: space-between; margin-top: 0.6rem; }
.setup-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; margin: 0.9rem 0; cursor: pointer; }
.setup-check input { width: auto; margin: 0; }
#setup-finish { width: 100%; }

/* ===== Give Away ===== */
.ga-end { max-width: 540px; }
.ga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.ga-setup, #ga-live, .ga-end { grid-column: 1; grid-row: 1; }
.ga-preview { grid-column: 2; grid-row: 1; }
@media (max-width: 860px) {
  .ga-grid { grid-template-columns: 1fr; }
  .ga-setup, #ga-live, .ga-end, .ga-preview { grid-column: 1; grid-row: auto; }
}
.ga-pv-block { margin-bottom: 0.7rem; }
.ga-pv-label { display: block; font-family: 'Geist Mono', monospace; font-size: 0.68rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.ga-pv-msg { background: var(--void); border: 1px solid var(--line); border-left: 3px solid var(--maritime-lt); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.85rem; line-height: 1.45; white-space: pre-line; min-height: 1.4rem; }
.ga-platforms { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.ga-plat { display: flex; align-items: center; gap: 0.4rem; background: var(--void); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.7rem; cursor: pointer; font-size: 0.9rem; }
.ga-plat input { width: auto; margin: 0; }
.ga-start { width: 100%; margin-top: 0.7rem; font-size: 1.05rem; padding: 0.85rem; }
.dur-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.dur-btn { background: var(--void); color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; font-size: 0.85rem; font-family: 'Geist Mono', monospace; }
.dur-btn.active { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); color: var(--trail); }
.dur-custom { display: flex; align-items: center; gap: 0.5rem; }
.dur-custom input { width: 100px; margin: 0; }
.ga-timer-opts { margin: 0.3rem 0 0.6rem; padding: 0.7rem 0.8rem; background: var(--void); border: 1px solid var(--line); border-radius: 8px; transition: opacity 0.2s; }
.ga-timer-opts.off { opacity: 0.4; pointer-events: none; }
.rem-msg { margin: 0.2rem 0 0.7rem; transition: opacity 0.2s; }
.rem-msg.off { opacity: 0.4; pointer-events: none; }
.rem-msg textarea { width: 100%; }

.ga-live { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 2.5rem 1rem; text-align: center; }
.ga-timer {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.ga-timer.dramatic { color: var(--tattoo); animation: ga-pulse 0.55s infinite; }
@keyframes ga-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.09); opacity: 0.65; } }
.ga-count { font-family: 'Geist Mono', monospace; font-size: 1.3rem; color: var(--trail); }
.ga-count span { font-weight: 700; }

.ga-end { text-align: center; }
.ga-datastatus { margin: 0.8rem 0 1rem; text-align: left; display: inline-block; }
.ga-ds-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; padding: 0.2rem 0; }
.ga-draw { font-size: 1.15rem; padding: 0.9rem 1.6rem; }
.ga-roulette { margin: 1.5rem auto 0; padding: 1.5rem 2rem; background: var(--void); border: 2px solid var(--trail); border-radius: 14px; display: inline-block; min-width: 260px; }
.ga-roulette-name { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 6vw, 3rem); color: var(--trail); }
.ga-winner { margin-top: 1.2rem; font-size: 1.4rem; }
.ga-winner strong { color: var(--labor); }
.ga-wheel { display: block; margin: 1rem auto; max-width: 100%; } /* transparenter BG → OBS-Browser-Source tauglich */
.ga-winner-verify { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; }
.ga-winner-verify a { color: var(--trail); font-weight: 600; }
.ga-draw-opt { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: 0.85rem; }
.draw-opt-btn { background: var(--void); color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; font-size: 0.82rem; font-family: 'Geist Mono', monospace; display: inline-flex; align-items: center; gap: 0.35rem; }
.draw-opt-btn.active { border-color: var(--trail); background: rgba(217, 118, 6, 0.12); color: var(--trail); }
.pro-tag { font-size: 0.6rem; font-weight: 700; background: var(--trail); color: var(--void); border-radius: 4px; padding: 0.05rem 0.32rem; letter-spacing: 0.05em; }
.btn-discord { width: 100%; background: #5865f2; color: #fff; border: none; }
.btn-discord:hover { background: #4752c4; }
.login-sep { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.74rem; margin: 0.5rem 0; }
.login-sep::before, .login-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#login-pw-wrap { display: flex; flex-direction: column; gap: 0.6rem; }
.ga-stats { display: flex; gap: 0.8rem; margin: 0.8rem 0 0.4rem; }
.ga-stat { flex: 1; background: var(--void); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.5rem; text-align: center; }
.ga-stat-num { display: block; font-family: 'Geist Mono', monospace; font-size: 1.6rem; font-weight: 800; color: var(--trail); line-height: 1; }
.ga-stat-lbl { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }
/* PRO-Gating: Give Away in LITE gesperrt */
.nav-item.locked { opacity: 0.5; }
.nav-item.locked .nav-ico { filter: grayscale(1); }
.nav-lock { margin-left: auto; font-size: 0.78rem; }
.ga-quick.locked { opacity: 0.55; position: relative; }
.ga-quick.locked::after { content: '🔒 PRO-Feature'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Geist Mono', monospace; font-weight: 700; color: var(--trail); background: rgba(0,0,0,0.4); border-radius: inherit; pointer-events: none; }
#pro-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--void); border: 1px solid var(--trail); color: var(--bone); padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 0.9rem; box-shadow: 0 8px 26px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 9500; }
#pro-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ga-cond { background: var(--void); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; }
.ga-cond p { margin: 0.25rem 0; }
.ga-file { display: inline-block; margin: 0 0.5rem 0.6rem 0; }
.ga-announce { margin-top: 1.2rem; font-size: 1.05rem; }
.ga-chat { max-width: 560px; margin-top: 1.25rem; }
.ga-chatlog { display: flex; flex-direction: column; gap: 0.5rem; max-height: 340px; overflow-y: auto; }
.ga-chatmsg { background: var(--void); border: 1px solid var(--line); border-left: 3px solid var(--maritime-lt); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.88rem; line-height: 1.45; display: flex; gap: 0.5rem; }
.ga-chat-plat { flex-shrink: 0; }
.ga-chat-body { white-space: normal; }
.ga-quick-status { font-family: 'Geist Mono', monospace; font-size: 0.95rem; margin-bottom: 0.5rem; }
.ga-q-live { color: var(--tattoo); font-weight: 700; }
.ga-q-ready { color: var(--labor); }
.ga-quick-info { line-height: 1.6; margin-bottom: 0.9rem; }
.ga-quick > .btn-primary { width: 100%; }

/* ===== Template-Editor (Vorlagen mit Tokens) ===== */
.tpl-tokens { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }
.tpl-tok {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  background: var(--void);
  color: var(--maritime-lt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.tpl-tok:hover { border-color: var(--maritime-lt); filter: brightness(1.2); }
/* Lock/Edit: 2 quadratische Kacheln links neben dem Textfeld (feste Höhe, wachsen NICHT mit) */
.tpl-editrow { display: flex; gap: 0.5rem; align-items: flex-start; }
.tpl-lockcol { display: flex; flex-direction: column; gap: 0.4rem; flex: 0 0 auto; }
.lock-btn {
  width: 2.2rem; height: 2.2rem; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--void); color: var(--bone);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; line-height: 1; cursor: pointer; position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.lock-btn:hover { border-color: var(--trail); }
.tpl-lockcol.unlocked .lock-btn { border-color: var(--trail); }
.tpl-lockcol.unlocked .tpl-edit { background: rgba(217, 118, 6, 0.15); color: var(--trail); }
.lock-btn:hover::after {
  content: attr(data-tip);
  position: absolute; top: 112%; left: 0;
  background: var(--void); border: 1px solid var(--trail); border-radius: 6px;
  padding: 0.45rem 0.6rem; font-size: 0.72rem; color: var(--bone);
  width: max-content; max-width: 200px; white-space: normal; line-height: 1.4;
  text-align: left; z-index: 60; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.tpl-editrow textarea { flex: 1 1 auto; width: auto; margin: 0; }
.tpl-area { flex: 1 1 auto; width: auto; font-family: 'Geist Mono', monospace; font-size: 0.82rem; margin: 0; }
.tpl-area[readonly] { opacity: 0.7; }
.tpl-hint { font-size: 0.72rem; color: var(--muted); margin: 0.3rem 0 0; line-height: 1.4; }

/* Vorschau */
.tpl-preview {
  margin-top: 0.5rem;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
}
.tpl-preview-label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.tpl-preview-body { font-size: 0.88rem; line-height: 1.5; }
.tpl-preview-body .ph { color: var(--trail); font-style: italic; opacity: 0.9; }
.tpl-preview-body code { font-size: 0.85em; background: var(--void-2); padding: 0.05rem 0.3rem; border-radius: 4px; }
.tpl-preview-body blockquote { border-left: 3px solid var(--line); margin: 0.2rem 0; padding-left: 0.6rem; color: var(--muted); }
.tpl-preview-body a { color: var(--maritime-lt); }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.5rem;
  font-family: 'Geist Mono', monospace;
}
