@font-face {
  font-family: "Ringbearer";
  src: url("Ringbearer Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#0b0f14;
  --border:#1d2a3a;
  --text:#e8eef6;
  --muted:#a9b8cc;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;

  --red:#d25555;
  --green:#31c16b;
  --yellow:#f4c54d;
  --blue:#4aa3ff;
  --purple:#a56bff;
  --orange:#ff9a3c;
  --cyan:#3fe3e3;
  --pink:#ff6bd6;

  --white:#e8eef6;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background: radial-gradient(1400px 500px at 50% 0%, rgba(64,98,140,.18), transparent 55%),
              linear-gradient(#0b0f14, #090d12);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wrap{
  max-width: 1400px;
  margin: 18px auto 26px;
  padding: 0 16px;
}

.pageTitle{
  text-align:center;
  font-weight: 1000;
  letter-spacing: .6px;
  font-size: 34px;
  margin: 8px 0 14px;
  color: rgba(232,238,246,.95);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.topCard{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.topGrid{
  display:grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.section{
  background: rgba(10,14,20,.25);
  border: 1px solid rgba(29,42,58,.65);
  border-radius: 16px;
  padding: 14px;
  min-height: 160px;
  position: relative;
}

.sectionTitle{
  font-weight: 800;
  color: rgba(232,238,246,.8);
  letter-spacing:.2px;
  margin: 2px 0 12px;
  opacity:.8;
  text-align:center;
}

.bossRow{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 6px;
  position: relative;
}

.bossIcon{
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  position: relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(74,163,255,.9), rgba(49,193,107,.65));
  background-size: cover;
  background-position: center;
}
.bossIcon::after{
  content:"";
  position:absolute; inset:-25%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 55%);
  transform: rotate(20deg);
  pointer-events:none;
}
.bossInitials{
  position: relative;
  z-index: 2;
  font-weight: 900;
  letter-spacing: .6px;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
  opacity: .95;
}

/* RING STATES */
.ring-prev { border-color: rgba(210,85,85,.85); }
.ring-active { border-color: rgba(49,193,107,.85); }
.ring-next { border-color: rgba(232,238,246,.85); }

.timeBig{
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 44px;
  line-height: 1;
  margin: 10px 0 8px;
  text-align:center;
}
.timeBig.small{ font-size: 40px; }

.labelLine{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  font-weight: 900;
  margin-top: 4px;
  text-align:center;
}

.tag{ font-size: 16px; }
.tag.red{ color: var(--red); }
.tag.green{ color: var(--green); }
.tag.yellow{ color: var(--yellow); }
.tag.blue{ color: var(--blue); }
.tag.purple{ color: var(--purple); }
.tag.orange{ color: var(--orange); }
.tag.cyan{ color: var(--cyan); }
.tag.pink{ color: var(--pink); }
.tag.white{ color: var(--white); }

.subInfo{
  text-align:center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.25;
}

/* Table area */
.tableCard{
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.tableHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(29,42,58,.75);
  background: rgba(9,13,18,.55);
  gap:12px;
  flex-wrap: wrap;
}

.toggleGroup{ display:flex; gap:8px; align-items:center; }
.rightGroup{ margin-left:auto; }

.btn{
  background: rgba(21,34,49,.9);
  border: 1px solid rgba(34,50,71,.9);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
  cursor:pointer;
  user-select:none;
}
.btn:hover{ filter: brightness(1.08); }
.btn.active{
  background: rgba(49,193,107,.18);
  border-color: rgba(49,193,107,.55);
  color: rgba(191,242,214,1);
}
.btn.notactive{
  opacity: .35;
    cursor: not-allowed;
    filter: grayscale(0.2);
    box-shadow: none;
  }


.tzChip{
  color: var(--muted);
  font-size: 12px;
  display:flex; align-items:center; gap:8px;
  opacity:.95;
}
.tzChip code{
  background: rgba(11,15,20,.65);
  border: 1px solid rgba(34,50,71,.8);
  padding: 2px 8px;
  border-radius: 999px;
  color: rgba(207,226,255,.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

table{ width:100%; border-collapse:collapse; table-layout: fixed; }
thead th{
  padding: 12px 10px;
  text-align:center;
  font-size: 14px;
  font-weight: 900;
  color: rgba(232,238,246,.9);
  border-bottom: 1px solid rgba(29,42,58,.75);
  background: rgba(16,23,35,.55);
}
tbody td{
  padding: 10px 10px;
  text-align:center;
  border-bottom: 1px solid rgba(29,42,58,.55);
  color: rgba(232,238,246,.86);
  font-weight: 800;
  vertical-align: middle;
  position: relative;
}
tbody tr:hover td{ background: rgba(16,23,35,.35); }

.timeCol{
  width: 110px;
  color: rgba(232,238,246,.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cellBoss{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  line-height: 1.05;
}
.cellBoss .bossName{ font-weight: 900; font-size: 13px; opacity:.92; }
.cellBoss .bossSub{ font-weight: 900; font-size: 13px; opacity:.95; }

.footerHint{
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(9,13,18,.45);
  line-height:1.35;
  text-align: right;
}

@media (max-width: 940px){
  .topGrid{ grid-template-columns: 1fr; }
  .section{ min-height: auto; }
  .timeBig{ font-size: 40px; }
  .bossIcon{ width: 170px; height: 170px; }
  .timeCol{ width: 96px; }
}

/* ===== Highlight "Today" column ===== */
th.todayCol{
  background: linear-gradient(180deg, rgba(49,193,107,.18), rgba(16,23,35,.55));
  box-shadow: inset 0 -2px 0 rgba(49,193,107,.45);
}
td.todayCol{ background: rgba(49,193,107,.06); }
tbody tr:hover td.todayCol{ background: rgba(49,193,107,.12); }

/* ===== Row highlight (next/closest row) ===== */
tr.isNowRow td{ background: rgba(49,193,107,.08); }

/* ===== Active boss cell highlight ===== */
td.activeCell{
  outline: 3px solid rgba(49,193,107,.85);
  outline-offset: -3px;
  border-radius: 8px;
}

/* ===== Overlap icon stack (top panels) ===== */
.iconStack{
  display:flex;
  justify-content:center;
  align-items:center;
  position: relative;
}
.iconStack.multi .bossIcon + .bossIcon{
  margin-left:-48px;
}
.iconStack .bossIcon{ position: relative; }
.iconStack .bossIcon:nth-child(1){ z-index:1; }
.iconStack .bossIcon:nth-child(2){ z-index:2; }
.iconStack .bossIcon:nth-child(3){ z-index:3; }

/* ===== Alarm buttons ===== */
.alarmBtn{
  appearance:none;
  border: 1px solid rgba(34,50,71,.9);
  background: rgba(11,15,20,.75);
  color: rgba(232,238,246,.92);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 900;
  cursor:pointer;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.alarmBtn:hover{ filter: brightness(1.08); }

.alarmBtnTopWrap{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

/* ===== Floating Tooltip (clickable) ===== */
#floatTip{
  position: fixed;
  left: 0; top: 0;
  transform: translate(-9999px, -9999px);
  background: rgba(8,12,18,.96);
  border: 1px solid rgba(34,50,71,.9);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  color: rgba(232,238,246,.96);
  font-size: 12px;
  line-height: 1.25;
  z-index: 9999;
  min-width: 280px;
  opacity: 0;
  transition: opacity .10s ease;
  pointer-events: auto;
}
#floatTip.show{ opacity: 1; }

.tipList{
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items:stretch;
  text-align:left;
  min-width: 280px;
}
.tipEntry{
  display:flex;
  gap: 10px;
  align-items:center;
}
.tipIcon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.14);
  background: rgba(16,23,35,.75);
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.tipIcon img{ width:100%; height:100%; object-fit: cover; display:block; }
.tipFallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-weight:1000; font-size: 20px;
}
.tipText{
  display:flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.tipTitle{
  font-weight: 1000;
  font-size: 13px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.tipMuted{ color: rgba(169,184,204,.95); font-weight: 800; }
.tipDivider{
  width: 100%;
  height: 1px;
  background: rgba(34,50,71,.85);
  opacity: .9;
  margin-top: 10px;
}
.tipActions{
  display:flex;
  justify-content:flex-end;
  flex: 0 0 auto;
}
.alarmBtnTip{
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 14px;
}

/* ===== Alarm Modal ===== */
#alarmModalBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display:none;
  z-index: 10000;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
#alarmModalBackdrop.show{ display:flex; }

.alarmModal{
  width: min(520px, 100%);
  background: rgba(10,14,20,.98);
  border: 1px solid rgba(34,50,71,.9);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.65);
  overflow:hidden;
}
.alarmModalHeader{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(34,50,71,.7);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.alarmModalHeader b{ font-weight: 1000; letter-spacing: .2px; }
.alarmClose{
  background: rgba(21,34,49,.9);
  border: 1px solid rgba(34,50,71,.9);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}
.alarmBody{ padding: 14px 16px 16px; }
.alarmMeta{
  color: rgba(169,184,204,.95);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.alarmOptions{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.optBtn{
  background: rgba(21,34,49,.92);
  border: 1px solid rgba(34,50,71,.92);
  color: rgba(232,238,246,.92);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 900;
  font-size: 12px;
}
.optBtn:disabled{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
}

.optBtn:hover{ filter: brightness(1.08); }
.optBtn.primary{
  background: rgba(49,193,107,.16);
  border-color: rgba(49,193,107,.55);
  color: rgba(191,242,214,1);
}

.alarmListTitle{
  margin-top: 10px;
  font-weight: 1000;
  opacity: .9;
  font-size: 12px;
}
.alarmList{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  max-height: 220px;
  overflow:auto;
  padding-right: 4px;
}
.alarmItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border: 1px solid rgba(34,50,71,.7);
  background: rgba(16,23,35,.55);
  border-radius: 12px;
  padding: 10px 10px;
}
.alarmItemLeft{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}
.alarmItemLeft .t1{ font-weight: 1000; font-size: 12px; }
.alarmItemLeft .t2{ color: rgba(169,184,204,.95); font-size: 11px; }
.alarmDel{
  background: rgba(210,85,85,.14);
  border: 1px solid rgba(210,85,85,.45);
  color: rgba(255,205,205,1);
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 1000;
  font-size: 12px;
  flex: 0 0 auto;
}
.alarmHint{
  margin-top: 10px;
  color: rgba(169,184,204,.95);
  font-size: 11px;
  line-height: 1.35;
}

/* ===== Alarm Popup centered, red blinking ===== */
@keyframes alarmPulseBorder {
  0%   { box-shadow: 0 0 0 0 rgba(210,85,85,.00), 0 22px 70px rgba(0,0,0,.65); border-color: rgba(210,85,85,.55); }
  50%  { box-shadow: 0 0 0 6px rgba(210,85,85,.16), 0 22px 70px rgba(0,0,0,.65); border-color: rgba(255,110,110,.95); }
  100% { box-shadow: 0 0 0 0 rgba(210,85,85,.00), 0 22px 70px rgba(0,0,0,.65); border-color: rgba(210,85,85,.55); }
}

.alarmToastBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(2px);
  display:none;
  z-index: 12000;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.alarmToastBackdrop.show{ display:flex; }

.alarmToast{
  width: min(520px, calc(100vw - 36px));
  background: rgba(8,12,18,.97);
  border: 3px solid rgba(210,85,85,.65);
  border-radius: 18px;
  padding: 14px 14px 12px;
  animation: alarmPulseBorder 1.1s ease-in-out infinite;
}

.alarmTop{ display:flex; align-items:center; gap:12px; }
.alarmIcon{
  width:64px; height:64px;
  border-radius: 50%;
  border: 3px solid rgba(210,85,85,.85);
  background: rgba(16,23,35,.7);
  overflow:hidden;
  flex: 0 0 auto;
}
.alarmIcon img{ width:100%; height:100%; object-fit: cover; display:block; }
.alarmIconFallback{
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  font-size:18px;
  color: rgba(232,238,246,.95);
}
.alarmTexts{ display:flex; flex-direction: column; gap:4px; min-width: 0; }
.alarmTitle{
  font-weight: 1000;
  font-size: 16px;
  color: rgba(232,238,246,.98);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.alarmSub{
  color: rgba(169,184,204,.95);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.25;
}
.alarmActions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 12px;
}
.alarmBtnToast{
  background: rgba(21,34,49,.9);
  border: 1px solid rgba(34,50,71,.9);
  color: rgba(232,238,246,.92);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 1000;
  cursor:pointer;
}
.alarmBtnToast:hover{ filter: brightness(1.08); }
.alarmBtnStop{
  background: rgba(210,85,85,.18);
  border-color: rgba(210,85,85,.65);
  color: rgba(255,215,215,.95);
}
.alarmBtnOk{
  background: rgba(49,193,107,.14);
  border-color: rgba(49,193,107,.55);
  color: rgba(191,242,214,1);
}

/* ===== Filter Bar (falls vorhanden) ===== */
.filterBar{
  margin-top: 14px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:center;
}
.filterBtn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: rgba(16,23,35,.55);
  border: 1px solid rgba(34,50,71,.85);
  color: rgba(232,238,246,.92);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
}
.filterBtn:hover{ filter: brightness(1.08); }
.filterBtn.off{
  opacity: .45;
  filter: saturate(.7);
}
.filterBtn .ico{
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.filterBtn .ico img{ width:100%; height:100%; object-fit:cover; display:block; }
/* =========================
   Community note + heart
   ========================= */

.communityNote{
  position: relative;
  margin: 14px 0 18px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 900;
  letter-spacing: .25px;
  color: rgba(232,238,246,.9);
  border-radius: 16px;
  isolation: isolate;
  transition: transform .18s ease, filter .18s ease;
}

.communityNote:hover{
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* soft glow background on hover */
.communityNote::before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 20px;
  background:
    radial-gradient(520px 140px at 50% 40%, rgba(74,163,255,.20), transparent 60%),
    radial-gradient(420px 120px at 35% 65%, rgba(49,193,107,.18), transparent 65%),
    radial-gradient(360px 120px at 65% 65%, rgba(255,110,110,.14), transparent 70%);
  filter: blur(14px);
  opacity: .7;
  transition: opacity .18s ease;
  z-index: -1;
}

.communityNote:hover::before{
  opacity: 1;
}

.communityNote .muted{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(169,184,204,.95);
  font-weight: 800;
}

/* ===== Pulsing heart ===== */

@keyframes heartPulse{
  0%   { transform: scale(1) translateY(2px); filter: drop-shadow(0 0 0 rgba(255,90,106,0)); }
  50%  { transform: scale(1.25) translateY(2px); filter: drop-shadow(0 0 12px rgba(255,90,106,.6)); }
  100% { transform: scale(1) translateY(2px); filter: drop-shadow(0 0 0 rgba(255,90,106,0)); }
}

.heart{
  display: inline-block;
  margin-left: 6px;
  font-size: 1.45em;
  color: rgba(255,90,106,.95);
  animation: heartPulse 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .heart{
    animation: none;
  }
}
/* =========================
   Page top bar + channel switch
   ========================= */

.pageTopBar{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Buttons rechts */
  margin-bottom: 6px;
  min-height: 48px;
}

/* Titel wirklich zentrieren (unabhängig von Buttons) */
.pageTopBar .pageTitle{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

/* Channel Switch bleibt rechts */
.channelSwitchTop{
  display: flex;
  gap: 8px;
}

/* responsive */
@media (max-width: 640px){
  .pageTopBar{
    flex-direction: column;
    gap: 10px;
  }
}
/* =========================
   PvP Channel 4 background
   Smooth crossfade
   ========================= */

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  /* Blut-Hintergrund immer vorhanden */
  background:
    radial-gradient(900px 360px at 50% -10%, rgba(180,20,20,.28), transparent 60%),
    radial-gradient(700px 320px at 20% 30%, rgba(120,10,10,.22), transparent 65%),
    radial-gradient(700px 320px at 80% 35%, rgba(120,10,10,.22), transparent 65%),
    linear-gradient(180deg,
      rgba(40,5,5,.65),
      rgba(15,2,2,.85)
    );

  opacity: 0;
  filter: blur(6px) saturate(0.6);
  transition:
    opacity 1.2s ease,
    filter 1.4s ease;
}

/* Kanal 4 aktiv */
body.channel-ch4::before{
  opacity: 1;
  filter: blur(0px) saturate(1.05);
  animation: bloodFlow 18s ease-in-out infinite alternate;
}

/* Bewegung */
@keyframes bloodFlow{
  0%{
    background-position:
      50% -10%,
      20% 30%,
      80% 35%,
      0% 0%;
  }
  100%{
    background-position:
      50% 6%,
      18% 38%,
      82% 42%,
      0% 100%;
  }
}
/* =========================
   PvP Ambient Glow – Header only
   ========================= */

.pageTitleWrap{
  position: relative;
  isolation: isolate;
}

/* roter Glow Layer */
.pageTitleWrap::after{
  content:"";
  position: absolute;
  inset: -60px -120px -50px -120px;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(60% 120% at 50% 0%,
      rgba(180,20,20,.45),
      rgba(120,10,10,.22),
      transparent 70%
    );

  opacity: 0;
  filter: blur(40px);
  transition:
    opacity 1.2s ease,
    filter 1.4s ease;
}

/* nur Kanal 4 */
body.channel-ch4 .pageTitleWrap::after{
  opacity: 1;
  filter: blur(26px);
  animation: headerBloodGlow 6s ease-in-out infinite alternate;
}

/* ganz leichte Pulsation */
@keyframes headerBloodGlow{
  0%{
    opacity: .75;
    transform: translateY(0);
  }
  100%{
    opacity: 1;
    transform: translateY(6px);
  }
}
/* =========================
   PvP Ambient Glow – Header only
   ========================= */

.pageTitleWrap{
  position: relative;
  isolation: isolate;
}

/* roter Glow Layer */
.pageTitleWrap::after{
  content:"";
  position: absolute;
  inset: -60px -120px -50px -120px;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(60% 120% at 50% 0%,
      rgba(180,20,20,.45),
      rgba(120,10,10,.22),
      transparent 70%
    );

  opacity: 0;
  filter: blur(40px);
  transition:
    opacity 1.2s ease,
    filter 1.4s ease;
}

/* nur Kanal 4 */
body.channel-ch4 .pageTitleWrap::after{
  opacity: 1;
  filter: blur(26px);
  animation: headerBloodGlow 6s ease-in-out infinite alternate;
}

/* ganz leichte Pulsation */
@keyframes headerBloodGlow{
  0%{
    opacity: .75;
    transform: translateY(0);
  }
  100%{
    opacity: 1;
    transform: translateY(6px);
  }
}
/* Filter temporär deaktiviert */
.filterBtn:disabled{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(0.3);
  pointer-events: none;
}
/* =========================
   Quinfall Companion Header
   ========================= */

.qcHeader{
  position: relative;
  padding: 14px 0 6px;
  margin-bottom: 14px;
}

.qcNav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  padding: 10px 8px 12px;
  border-radius: 16px;
  background: rgba(10,14,20,.22);
  border: 1px solid rgba(29,42,58,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.qcNavItem{
  text-decoration:none;
  color: rgba(232,238,246,.88);
  font-weight: 1000;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34,50,71,.7);
  background: rgba(21,34,49,.55);
  transition: transform .12s ease, filter .12s ease, background .18s ease, border-color .18s ease;
}

.qcNavItem:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.qcNavItem.active{
  background: rgba(49,193,107,.16);
  border-color: rgba(49,193,107,.55);
  color: rgba(191,242,214,1);
}

.qcNavItem.disable{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
}

/* Brand title */
.qcBrand{
  display:flex;
  justify-content:center;
  margin-top: 0px;
  margin-bottom: 6px;
}

.qcBrandTitle{
  font-family: "Ringbearer", serif;
  font-size: 60px;
  letter-spacing: 2px;
  color: rgba(232,238,246,.95);
  text-shadow:
    0 2px 6px rgba(0,0,0,.6),
    0 0 18px rgba(120,40,40,.35);
}

/* Community note stays centered */
.communityNote{
  text-align:center;
  margin: 4px 0 8px;
  padding-bottom: 20px;
}

/* Put Event title + channel switch under community */
.qcPageRow{
  position: relative;
  min-height: 44px;
  display:flex;
  align-items:center;
  justify-content:flex-end; /* keeps buttons right */
}

/* Center the title */
.pageTitleWrap{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  isolation:isolate; /* your glow can live here */
}

/* Make sure it really centers */
.pageTitle{
  text-align:center;
  margin: 0;
  top: -15px;
}

/* Channel buttons top-right */
.channelSwitchTop{
  margin-left:auto;
  padding-top: 25px;
}
/* Responsive: stack channel switch under title if narrow */
@media (max-width: 720px){
  .qcPageRow{
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    padding-top: 6px;
  }
  .pageTitleWrap{
    position: relative;
    left:auto;
    transform:none;
    width:100%;
  }
  .channelSwitchTop{
    width:100%;
    justify-content:center;
  }
}
/* =========================
   Map Layout – clean edge
   ========================= */

.mapWrap{
  padding: 0;                /* ❌ kein weißer Rand */
  background: #0b0f14;       /* dunkler Hintergrund */
}

#map{
  height: 740px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(29,42,58,.75);
  background: #0b0f14;       /* falls Bild kleiner ist */
}
.catBar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.catBtnWrap{
  position: relative;
  display:inline-block;
}

/* Hover-Puffer zwischen Button und Menü */
.catBtnWrap::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:10px;
}

/* =========================
   Category Button
   ========================= */
.catBtn{
  background: rgba(21,34,49,.9);
  border: 1px solid rgba(34,50,71,.9);
  color: rgba(232,238,246,.92);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 1000;
  cursor:pointer;
  user-select:none;
}

.catBtn:hover{ filter: brightness(1.08); }

.catBtn.off{
  opacity: .40;
  filter: grayscale(.2);
}

/* =========================
   Dropdown Menu (stable hover)
   ========================= */
.catMenu{
  position:absolute;
  left:0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: rgba(10,14,20,.96);
  border: 1px solid rgba(34,50,71,.92);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.65);
  padding: 10px;
  z-index: 12000;

  /* 👇 statt display:none */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity .15s ease,
    transform .15s ease,
    visibility .15s ease;
}

/* ✅ bleibt offen beim Hover auf Button ODER Menü */
.catBtnWrap:hover .catMenu,
.catBtnWrap:focus-within .catMenu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.catBtnWrap::after{
  content:"";
  position:absolute;
  left:-6px;
  right:-6px;
  top:100%;
  height:14px;       /* füllt die Lücke zwischen Button und Menü */
}


/* =========================
   Menu Rows
   ========================= */
.catMenu .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 7px 6px;
  border-radius: 10px;
}

.catMenu .row:hover{
  background: rgba(21,34,49,.55);
}

.catMenu label{
  font-weight: 900;
  font-size: 13px;
  color: rgba(232,238,246,.92);
  display:flex;
  align-items:center;
  gap:8px;
}

.catMenu input{
  transform: scale(1.1);
}
/* Context Menu */
    .mapCtx{
      position: fixed;
      z-index: 20000;
      width: min(210px, calc(100vw - 24px));
      background: rgba(10,14,20,.96);
      border: 1px solid rgba(34,50,71,.92);
      border-radius: 14px;
      box-shadow: 0 18px 55px rgba(0,0,0,.65);
      padding: 8px;
      display: none;
    }
    .mapCtx.show{ display:block; }
    .mapCtx button{
      width: 100%;
      text-align: left;
      background: rgba(21,34,49,.88);
      border: 1px solid rgba(34,50,71,.88);
      color: rgba(232,238,246,.95);
      border-radius: 12px;
      padding: 10px 10px;
      font-weight: 900;
      cursor: pointer;
    }
    .mapCtx button:hover{ filter: brightness(1.10); }
    .mapCtx .sep{
      height: 1px;
      background: rgba(34,50,71,.85);
      margin: 8px 2px;
      opacity: .9;
    }

    /* Hide Leaflet.Draw left toolbar completely */
    .leaflet-draw-toolbar,
    .leaflet-draw-actions{
      display:none !important;
    }

    /* Coordinates (top-right, Quinfall-style) */
    .coordHud{
      position:absolute;
      right: 14px;
      top: 10px;
      z-index: 5000;
      display:flex;
      gap:8px;
      align-items:center;
      font-weight: 900;
      font-size: 12px;
      color: rgba(232,238,246,.9);
      background: rgba(9,13,18,.55);
      border: 1px solid rgba(29,42,58,.75);
      padding: 6px 10px;
      border-radius: 999px;
      box-shadow: 0 10px 30px rgba(0,0,0,.35);
      user-select:none;
    }
    .coordHud code{
      background: rgba(11,15,20,.65);
      border: 1px solid rgba(34,50,71,.8);
      padding: 2px 8px;
      border-radius: 999px;
      color: rgba(207,226,255,.95);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
    }

    /* Modal (Marker) */
    .qcModalBackdrop{
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.70);
      display:none;
      z-index: 25000;
      align-items:center;
      justify-content:center;
      padding: 18px;
    }
    .qcModalBackdrop.show{ display:flex; }
    .qcModal{
      width: min(560px, 100%);
      background: rgba(10,14,20,.98);
      border: 1px solid rgba(34,50,71,.9);
      border-radius: 18px;
      box-shadow: 0 18px 55px rgba(0,0,0,.65);
      overflow:hidden;
    }
    .qcModalHeader{
      padding: 14px 16px;
      border-bottom: 1px solid rgba(34,50,71,.7);
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 12px;
    }
    .qcModalHeader b{ font-weight: 1000; letter-spacing: .2px; }
    .qcModalClose{
      background: rgba(21,34,49,.9);
      border: 1px solid rgba(34,50,71,.9);
      color: rgba(232,238,246,.92);
      padding: 8px 10px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 900;
    }
    .qcModalBody{ padding: 14px 16px 16px; }
    .qcGrid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .qcField label{
      display:block;
      font-weight: 900;
      font-size: 12px;
      color: rgba(169,184,204,.95);
      margin-bottom: 6px;
    }
    .qcField input, .qcField select{
      width:100%;
      background: rgba(21,34,49,.92);
      border: 1px solid rgba(34,50,71,.92);
      color: rgba(232,238,246,.92);
      border-radius: 12px;
      padding: 10px 10px;
      font-weight: 900;
      outline: none;
    }
    .qcActions{
      display:flex;
      justify-content:flex-end;
      gap: 10px;
      margin-top: 12px;
    }
    .qcBtn{
      background: rgba(21,34,49,.9);
      border: 1px solid rgba(34,50,71,.9);
      color: rgba(232,238,246,.92);
      padding: 10px 12px;
      border-radius: 12px;
      font-weight: 1000;
      cursor:pointer;
    }
    .qcBtn.primary{
      background: rgba(49,193,107,.16);
      border-color: rgba(49,193,107,.55);
      color: rgba(191,242,214,1);
    }
    .qcBtn.danger{
      background: rgba(210,85,85,.14);
      border: 1px solid rgba(210,85,85,.45);
      color: rgba(255,205,205,1);
    }
    