/* Curse of Strahd – Theme für foundry.kaikas.net
   Überschreibt die Farbvariablen des dunklen Foundry-Themes (v13/v14).
   Nicht in @layer, damit es über den Foundry-Layern gewinnt. */

body.theme-dark,
body.join {
  /* Akzente: Blutrot statt Foundry-Orange */
  --color-warm-1: #c8321f;
  --color-warm-2: #7d1c1c;
  --color-warm-3: #3a0b10;
  /* Flächen: schwarz-rotes Nachtgrau statt Blauviolett */
  --color-cool-3: #2b1518;
  --color-cool-4: #160709;
  --color-cool-5: #0a0405;
  --color-cool-5-25: rgba(10, 4, 5, 0.25);
  --color-cool-5-50: rgba(10, 4, 5, 0.5);
  --color-cool-5-75: rgba(10, 4, 5, 0.75);
  --color-cool-5-90: rgba(10, 4, 5, 0.9);
  /* Text: Knochen statt Pergament, bleibt gut lesbar */
  --color-light-1: #f4ece2;
  --color-light-2: #e9dccb;
  --color-light-3: #d9c4ad;
  --color-light-4: #b79f8c;
  --color-light-5: #8f7367;
  --color-light-6: #6e5551;
  --hr-gradient: linear-gradient(90deg, transparent 0%, #a0261f 50%, transparent 100%);
  --color-text-selection-bg: #7d1c1c;
  --sidebar-separator: 1px solid #3a0b10;
  --sidebar-folder-color: #1a0a0c;
  --main-logo: none;
}

/* ---------- Login-Seite ---------- */
body.join #main-background {
  opacity: 0.95;
}
body.join::before {
  /* Dunkler Verlauf, damit Formulare auf dem Bild lesbar bleiben */
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-index-background);
  background: linear-gradient(180deg, rgba(5, 2, 3, 0.25) 0%, rgba(5, 2, 3, 0.05) 35%, rgba(5, 2, 3, 0.55) 100%);
  pointer-events: none;
}
body.join #main-header h1 {
  font-family: "Modesto Condensed", serif;
  letter-spacing: 0.08em;
  color: #e9dccb;
  text-shadow: 0 0 18px rgba(160, 20, 20, 0.9), 0 2px 6px #000, 0 0 2px #000;
  filter: none;
}
body.join .application.framed {
  background: rgba(10, 4, 5, 0.82);
  border: 1px solid #4a1418;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(200, 50, 31, 0.12);
  backdrop-filter: blur(3px);
}
body.join .application.framed h2 {
  color: #d9c4ad;
  border-bottom: 1px solid #5d1a1e;
}
body.join button,
body.join .form-footer button {
  background: linear-gradient(180deg, #7d1c1c, #4a0f12);
  border: 1px solid #a0261f;
  color: #f4ece2;
}
body.join button:hover {
  background: linear-gradient(180deg, #a0261f, #5d1418);
  box-shadow: 0 0 10px rgba(200, 50, 31, 0.6);
}
body.join #watermark,
body.join #software-version {
  color: #8f7367;
}

/* ---------- Spieloberfläche ---------- */
body.theme-dark #sidebar,
body.theme-dark #sidebar-content {
  --sidebar-background: rgba(10, 4, 5, 0.9);
}
body.theme-dark .application .window-header {
  background: linear-gradient(90deg, #2b1518, #160709);
  border-bottom: 1px solid #5d1a1e;
}
body.theme-dark .ui-control,
body.theme-dark .placeable-hud {
  --control-active-border-color: #c8321f;
  --control-button-border-color: #c8321f;
  --control-button-hover-bg-color: #7d1c1c;
  --toggle-bg-color: rgba(60, 12, 16, 0.75);
  --toggle-border-color: #a0261f;
  --toggle-active-bg-color: #a0261f;
  --toggle-active-border-color: #e0634f;
}
body.theme-dark button.bright,
body.theme-dark .form-footer button[type="submit"] {
  background: linear-gradient(180deg, #7d1c1c, #4a0f12);
  border-color: #a0261f;
}
body.theme-dark a.content-link,
body.theme-dark a.inline-roll {
  --content-link-border-color: #5d1a1e;
}
body.theme-dark #chat-form textarea:focus,
body.theme-dark input:focus,
body.theme-dark select:focus {
  outline-color: #a0261f;
  box-shadow: 0 0 5px #a0261f;
}
body.theme-dark ::-webkit-scrollbar-thumb {
  background: #5d1a1e;
  border: 1px solid #2b1518;
}
