/* ============================================================
   COMMUNITY ("Werkstatt") — Seite neu gebaut (Oktober 2026).
   Alles unter .comm gescoped. Vokabular wie Startseite/Play-Seite:
   gleitende Gold-Markierung, Eckwinkel, Rauten-Avatare, ruhige
   Bewegungen, die nur auf eine Handlung hin starten (nie bei Hover
   oder Neuaufbau). Ambient-Glow kommt von body.mode-community.
   ============================================================ */
.comm {
  --c-gold: var(--mp-gold-1);
  --c-line: rgba(216, 177, 90, 0.14);
  --c-line-strong: rgba(216, 177, 90, 0.34);
  --c-teal: var(--mp-teal-1);
  --c-ease: cubic-bezier(.22, .8, .24, 1);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  color: var(--mp-bone);
  font-family: var(--mp-sans);
}

.comm-head { margin-bottom: 28px; }

/* ====== Projekt-Puls: zuletzt ausgeliefert / in Arbeit / Zähler ======
   Die Zellen sind Knöpfe und springen in den passenden Reiter. */
.comm-pulse {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(13, 16, 22, 0.62), rgba(8, 9, 13, 0.84));
  border: 1px solid rgba(216, 177, 90, 0.2);
}
.comm-pulse::before, .comm-pulse::after,
.comm .chat::before, .comm .chat::after,
.comm .mit-card::before, .comm .mit-card::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--mp-gold-2);
  pointer-events: none;
}
.comm-pulse::before, .comm .chat::before, .comm .mit-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.comm-pulse::after, .comm .chat::after, .comm .mit-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.comm .cp-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 22px;
  text-align: left;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: var(--mp-cur-pointer);
  transition: background 200ms ease;
}
.comm .cp-cell + .cp-cell { border-left: 1px solid rgba(216, 177, 90, 0.12); }
.comm .cp-cell:hover { background: rgba(216, 177, 90, 0.045); }
.comm .cp-cell:focus-visible { outline: 1px solid var(--c-gold); outline-offset: -1px; }
.comm .cp-dot {
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 10px var(--c-teal);
  animation: commBreathe 3.2s ease-in-out infinite;
}
.comm .cp-dot.ghost {
  background: transparent;
  border: 1px solid var(--mp-gold-2);
  box-shadow: none;
  animation: none;
}
.comm .cp-text { min-width: 0; flex: 1; }
.comm .cp-k {
  display: block;
  font-size: 9.5px;
  letter-spacing: 2.5px;
  color: var(--mp-ink-dim);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.comm .cp-v {
  display: block;
  font-family: var(--mp-serif-body);
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--mp-bone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm .cp-v .ver { font-family: var(--mp-mono); font-size: 12px; color: var(--c-teal); margin-right: 8px; }
.comm .cp-v em { font-style: normal; color: var(--mp-ink); }
.comm .cp-arrow {
  display: inline-flex;
  color: var(--mp-ink-faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 260ms var(--c-ease), color 200ms ease;
}
.comm .cp-cell:hover .cp-arrow { opacity: 1; transform: none; color: var(--c-gold); }
.comm .cp-count {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 16px 22px;
  text-align: right;
  border-left: 1px solid rgba(216, 177, 90, 0.12);
  background: rgba(216, 177, 90, 0.03);
}
.comm .cp-count .num {
  font-family: var(--mp-serif);
  font-size: 38px;
  line-height: 0.9;
  color: var(--c-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.comm .cp-count .lbl {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--mp-ink-dim);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.5;
}

/* ====== Hauptraster: Inhalt + Chat-Rail ====== */
.comm-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}
.comm-content { min-width: 0; display: flex; flex-direction: column; }

/* ====== Reiter mit gleitender Gold-Markierung ====== */
.comm-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}
.comm-tab {
  position: relative;
  z-index: 1;
  padding: 11px 16px 13px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  background: transparent;
  border: 0;
  cursor: var(--mp-cur-pointer);
  transition: color 220ms ease;
}
.comm-tab:hover { color: var(--mp-bone); }
.comm-tab.active { color: var(--c-gold); }
.comm-tab:focus-visible { outline: 1px solid var(--c-gold); outline-offset: -4px; }
.comm-tabs-glide {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--c-gold) 18%, var(--c-gold) 82%, transparent);
  box-shadow: 0 0 12px rgba(216, 177, 90, 0.5);
  transition: translate 420ms var(--c-ease), width 420ms var(--c-ease), opacity 200ms ease;
  pointer-events: none;
}

/* Reiterwechsel: Inhalt steigt weich auf, Karten gestaffelt (nur bei Wechsel). */
.comm-panel { flex: 1; min-width: 0; }
.comm-panel.is-enter { animation: commPanelIn 260ms ease both; }
.comm-panel.is-enter [style*="--i"] { animation: commRise 420ms var(--c-ease) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
@keyframes commPanelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes commRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes commBreathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.comm-empty {
  padding: 28px;
  color: var(--mp-ink);
  border: 1px dashed rgba(216, 177, 90, 0.22);
  background: rgba(11, 13, 18, 0.6);
  font-family: var(--mp-serif-body);
  font-size: 16px;
}

/* ====== FEED ====== */
.comm .feed-list { display: flex; flex-direction: column; gap: 14px; }
.comm .feed-card {
  position: relative;
  padding: 22px 26px 24px;
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.62), rgba(11, 13, 18, 0.82));
  border: 1px solid var(--c-line);
  transition: border-color 220ms ease, background 220ms ease, transform 260ms var(--c-ease);
}
/* Linker Lichtstreifen: ruhig gold, angepinnt teal, bei Hover wird er teal. */
.comm .feed-card::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(216, 177, 90, 0.5) 20%, rgba(216, 177, 90, 0.5) 80%, transparent);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.comm .feed-card:hover {
  border-color: rgba(77, 208, 196, 0.26);
  background: linear-gradient(180deg, rgba(24, 28, 38, 0.8), rgba(14, 17, 23, 0.9));
  transform: translateX(3px);
}
.comm .feed-card:hover::before,
.comm .feed-card.pinned::before {
  background: linear-gradient(180deg, transparent, var(--mp-teal-2) 20%, var(--mp-teal-2) 80%, transparent);
  box-shadow: 0 0 10px rgba(77, 208, 196, 0.35);
}
.comm .feed-card.pinned {
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(77, 208, 196, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(18, 23, 30, 0.7), rgba(11, 13, 18, 0.85));
}
.comm .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.comm .fc-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.comm .fc-cat { color: var(--c-teal); }
.comm .fc-cat.gold { color: var(--c-gold); }
.comm .fc-date { color: var(--mp-ink-dim); font-family: var(--mp-mono); letter-spacing: 1px; }
.comm .fc-pin { color: var(--mp-teal-2); display: grid; place-items: center; }
.comm .fc-title { font-family: var(--mp-serif); font-size: 25px; letter-spacing: 0.6px; color: var(--mp-bone); margin: 0 0 10px; font-weight: 600; }
.comm .fc-text { font-family: var(--mp-serif-body); font-size: 16.5px; line-height: 1.55; color: var(--mp-ink); margin: 0; max-width: 720px; }
.comm .fc-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  background: none;
  border: 0;
  padding: 0;
  cursor: var(--mp-cur-pointer);
  font-family: inherit;
  transition: color 160ms;
}
.comm .feed-card:hover .fc-link { color: var(--c-teal); }
.comm .fc-link .arrow { display: inline-flex; transition: transform 200ms var(--c-ease); }
.comm .fc-link:hover .arrow { transform: translateX(3px); }
.comm .fc-media { margin-top: 14px; display: grid; gap: 10px; }
.comm .fc-media.is-grid { grid-template-columns: repeat(2, 1fr); }
.comm .fc-shot { margin: 0; overflow: hidden; border: 1px solid var(--c-line); }
.comm .fc-shot img { display: block; width: 100%; height: auto; }

/* ====== DEVLOG als Zeitstrahl: Linie links, Rauten-Knoten je Eintrag ====== */
.comm .devlog-list { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 30px; }
.comm .devlog-list::before {
  content: "";
  position: absolute;
  left: 7px; top: 24px; bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-gold), rgba(216, 177, 90, 0.35) 30%, rgba(216, 177, 90, 0.12) 85%, transparent);
}
.comm .devlog-entry {
  position: relative;
  padding: 22px 26px 24px 28px;
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.6), rgba(10, 12, 17, 0.82));
  border: 1px solid var(--c-line);
}
.comm .de-node {
  position: absolute;
  left: -27px; top: 26px;
  width: 8px; height: 8px;
  background: var(--mp-panel-2);
  border: 1px solid var(--mp-gold-2);
  transform: rotate(45deg);
}
.comm .devlog-entry.is-latest .de-node {
  background: var(--c-gold);
  border-color: #f0d27a;
  box-shadow: 0 0 10px var(--mp-gold-glow), 0 0 2px #f0d27a;
}
/* Fäßchen am Kartenrand: teal fuer Features/Updates, gold fuer Balance/Meilenstein */
.comm .devlog-entry::before {
  content: "";
  position: absolute;
  left: -1px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--mp-teal-2) 20%, var(--mp-teal-2) 80%, transparent);
  box-shadow: 0 0 10px rgba(77, 208, 196, 0.3);
}
.comm .devlog-entry.gold::before { background: linear-gradient(180deg, transparent, var(--mp-gold-2) 20%, var(--mp-gold-2) 80%, transparent); box-shadow: 0 0 10px var(--mp-gold-glow); }
.comm .de-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.comm .de-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comm .de-badge {
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  color: var(--c-teal);
  border: 1px solid rgba(77, 208, 196, 0.3);
  background: rgba(77, 208, 196, 0.07);
}
.comm .devlog-entry.gold .de-badge { color: var(--c-gold); border-color: rgba(216, 177, 90, 0.35); background: rgba(216, 177, 90, 0.07); }
.comm .de-ver { font-family: var(--mp-mono); font-size: 11px; color: var(--mp-gold-2); letter-spacing: 1px; }
.comm .de-new {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 4px 7px;
  color: #0c0e13;
  background: linear-gradient(180deg, #f0d27a, #c89a3e);
}
.comm .de-date { font-family: var(--mp-mono); font-size: 10.5px; color: var(--mp-ink-dim); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.comm .de-title { font-family: var(--mp-serif); font-size: 27px; letter-spacing: 0.8px; color: var(--mp-bone); margin: 0 0 12px; font-weight: 600; }
.comm .de-intro { font-family: var(--mp-serif-body); font-size: 17px; line-height: 1.55; color: var(--mp-ink); margin: 0 0 18px; max-width: 760px; }
.comm .de-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comm .de-points li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--mp-ink); letter-spacing: 0.1px; max-width: 820px; }
.comm .de-points li b { color: var(--mp-bone); font-weight: 600; }
.comm .de-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 6px; height: 6px;
  background: var(--c-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--mp-gold-glow);
}

/* ====== ROADMAP ====== */
.comm .roadmap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.comm .rm-col {
  position: relative;
  padding: 20px 20px 22px;
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.6), rgba(10, 12, 17, 0.82));
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--rm-c, var(--mp-teal-2));
}
.comm .rm-col.c-now    { --rm-c: #6ee7d8; }
.comm .rm-col.c-next   { --rm-c: #d8b15a; }
.comm .rm-col.c-vision { --rm-c: #b69cf0; }
.comm .rm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.comm .rm-num { font-family: var(--mp-mono); font-size: 11px; color: var(--mp-ink-dim); letter-spacing: 1px; }
.comm .rm-label { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 700; color: var(--rm-c); }
.comm .rm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rm-c); box-shadow: 0 0 8px var(--rm-c); animation: commBreathe 3.2s ease-in-out infinite; }
.comm .rm-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.comm .rm-items li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--mp-ink); }
.comm .rm-items li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 5px; height: 5px;
  background: var(--rm-c);
  transform: rotate(45deg);
  opacity: 0.85;
}
.comm .rm-shipped { position: relative; padding: 18px 22px 20px; background: rgba(11, 13, 18, 0.55); border: 1px solid rgba(216, 177, 90, 0.1); }
.comm .rm-shipped-head,
.comm .mit-ways-head,
.comm .mit-credits-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  margin-bottom: 16px;
}
.comm .rm-shipped-head .line, .comm .mit-credits-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(216,177,90,0.18), transparent); }
.comm .rm-ship-row { display: flex; gap: 14px; flex-wrap: wrap; }
.comm .rm-ship {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 9px 14px;
  background: rgba(7, 8, 11, 0.5);
  border: 1px solid rgba(216, 177, 90, 0.12);
  flex: 1 1 200px;
  min-width: 0;
}
.comm .rm-ship .v { font-family: var(--mp-mono); font-size: 11px; color: var(--c-teal); letter-spacing: 0.5px; }
.comm .rm-ship .t { font-size: 13px; color: var(--mp-bone); letter-spacing: 0.2px; flex: 1 1 140px; min-width: 0; line-height: 1.35; }
.comm .rm-ship .d { margin-left: auto; font-family: var(--mp-mono); font-size: 9.5px; color: var(--mp-ink-faint); white-space: nowrap; }

/* ====== MITMACHEN ====== */
.comm .mit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.comm .mit-card {
  position: relative;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.62), rgba(11, 13, 18, 0.82));
  border: 1px solid rgba(216, 177, 90, 0.15);
  display: flex;
  flex-direction: column;
}
.comm .mit-card.teal::before, .comm .mit-card.teal::after { border-color: var(--mp-teal-2); }
.comm .mit-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(216, 177, 90, 0.3);
  color: var(--c-gold);
  margin-bottom: 18px;
}
.comm .mit-card.teal .mit-ico { border-color: rgba(77, 208, 196, 0.4); color: var(--c-teal); }
.comm .mit-card .mc-title { font-family: var(--mp-serif); font-size: 22px; letter-spacing: 0.8px; color: var(--mp-bone); margin: 0 0 10px; font-weight: 600; }
.comm .mit-card .mc-text { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.55; color: var(--mp-ink); margin: 0 0 18px; max-width: 460px; }
.comm .mit-card .mc-foot { margin-top: auto; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mp-ink-dim); font-weight: 700; }
.comm .mc-btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-bone);
  border: 1px solid rgba(216, 177, 90, 0.4);
  background: rgba(18, 21, 28, 0.6);
  cursor: var(--mp-cur-pointer);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 200ms var(--c-ease);
}
.comm .mc-btn:hover { border-color: var(--c-gold); color: var(--c-gold); box-shadow: 0 0 18px rgba(216,177,90,0.16); transform: translateY(-1px); }
.comm .mit-card.teal .mc-btn:hover { border-color: var(--c-teal); color: var(--c-teal); box-shadow: 0 0 18px rgba(77,208,196,0.18); }
.comm .mc-btn.disabled { opacity: 0.6; cursor: var(--mp-cur-no); }
.comm .mc-btn.disabled:hover { border-color: rgba(216, 177, 90, 0.4); color: var(--mp-bone); box-shadow: none; transform: none; }

/* Feedback direkt in der Karte „Feedback geben" (gleicher Kanal wie das Popup). */
.comm .mit-card--fb .mc-text { margin-bottom: 14px; }
.comm .mc-fb-wrap { position: relative; margin-top: auto; }
.comm .mc-fb { display: flex; flex-direction: column; gap: 10px; transition: opacity 220ms ease, transform 260ms var(--c-ease); }
/* Kategorien als gleich breite Kacheln: 2 Spalten in der schmalen Karte, mehr bei Platz. */
.comm .mc-fb-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.comm .mc-fb-cat {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 7px 11px 7px 9px;
  font-family: var(--mp-sans);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  background: rgba(11, 13, 18, 0.55);
  border: 1px solid rgba(216, 177, 90, 0.14);
  cursor: var(--mp-cur-pointer);
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.comm .mc-fb-cat .ico { display: grid; place-items: center; width: 16px; height: 16px; }
.comm .mc-fb-cat .ico svg { width: 15px; height: 15px; }
.comm .mc-fb-cat:hover { color: var(--mp-bone); border-color: rgba(216, 177, 90, 0.34); }
.comm .mc-fb-cat.active {
  color: var(--c-gold);
  border-color: rgba(216, 177, 90, 0.5);
  background: linear-gradient(180deg, rgba(216, 177, 90, 0.14), rgba(216, 177, 90, 0.04));
}
.comm .mc-fb-cat:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 1px; }
.comm .mc-fb-field { position: relative; }
.comm .mc-fb-text {
  display: block;
  width: 100%;
  min-height: 88px;
  resize: vertical;
  box-sizing: border-box;
  padding: 11px 14px 18px;
  font-family: var(--mp-serif-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mp-bone);
  background: rgba(7, 8, 11, 0.6);
  border: 1px solid rgba(216, 177, 90, 0.18);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.comm .mc-fb-text::placeholder { color: var(--mp-ink-faint); font-style: italic; }
.comm .mc-fb-text:focus { border-color: rgba(216, 177, 90, 0.5); box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.12), 0 0 14px rgba(216, 177, 90, 0.08); }
/* Leer abgeschickt: das Feld schüttelt kurz den Kopf (kein Textbalken). */
.comm .mc-fb-field.is-empty .mc-fb-text { animation: commFbShake 360ms var(--c-ease); border-color: rgba(224, 92, 92, 0.6); }
@keyframes commFbShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.comm .mc-fb-count {
  position: absolute;
  right: 10px; bottom: 8px;
  font-family: var(--mp-mono);
  font-size: 9.5px;
  color: var(--mp-ink-dim);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.comm .mc-fb-count.on { opacity: 1; }
.comm .mc-fb-count.warn { color: var(--mp-danger); }
.comm .mc-fb-send { position: relative; margin-top: 2px; gap: 10px; }
.comm .mc-fb-send:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; border-color: rgba(216, 177, 90, 0.4); color: var(--mp-bone); }
.comm .mc-fb-send svg { transition: transform 200ms var(--c-ease); }
.comm .mc-fb-send:hover svg { transform: translateX(3px); }
/* Abschicken: derselbe Lichtring wie beim Chat-Senden. */
.comm .mc-fb-send.is-sent::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #f0d27a;
  animation: commSendRing 520ms ease-out forwards;
  pointer-events: none;
}
/* Danke-Zustand: das Formular weicht, die Katze freut sich (wie im Popup). */
.comm .mc-fb-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms var(--c-ease);
}
.comm .mc-fb-doneCat { display: block; width: 68px; flex-shrink: 0; color: var(--c-gold); }
.comm .mc-fb-doneCat .coachCat { display: block; width: 68px; height: auto; }
.comm .mc-fb-doneText { display: flex; flex-direction: column; gap: 4px; max-width: 300px; }
.comm .mc-fb-doneText b { font-family: var(--mp-serif); font-size: 19px; letter-spacing: 0.6px; color: var(--mp-bone); font-weight: 600; }
.comm .mc-fb-doneText span { font-family: var(--mp-serif-body); font-size: 14px; line-height: 1.45; color: var(--mp-ink); }
.comm .mit-card.is-sent .mc-fb { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.comm .mit-card.is-sent .mc-fb-done { opacity: 1; transform: translateY(0); transition-delay: 120ms; }

.comm .mit-ways { padding: 20px 24px 22px; background: rgba(11, 13, 18, 0.5); border: 1px solid rgba(216, 177, 90, 0.1); }
.comm .mit-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comm .mw { display: flex; gap: 12px; align-items: flex-start; }
.comm .mw .mw-ico { color: var(--mp-gold-2); flex-shrink: 0; margin-top: 2px; display: inline-flex; }
.comm .mw .mw-name { font-size: 13px; color: var(--mp-bone); font-weight: 600; letter-spacing: 0.3px; margin-bottom: 4px; }
.comm .mw .mw-desc { font-size: 12px; line-height: 1.45; color: var(--mp-ink-dim); }
.comm .mit-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.comm .mit-social .soc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink);
  border: 1px solid rgba(216, 177, 90, 0.16);
  background: rgba(11, 13, 18, 0.55);
  text-decoration: none;
  transition: color 160ms, border-color 160ms;
}
.comm .mit-social .soc:hover { color: var(--c-teal); border-color: rgba(77, 208, 196, 0.4); }
.comm .mit-social .soc .tag { font-family: var(--mp-mono); font-size: 9px; color: var(--mp-ink-faint); letter-spacing: 1px; }

/* ====== Unterstützer-Wand ====== */
.comm .mit-credits { margin-top: 16px; padding: 22px 24px 24px; background: rgba(11, 13, 18, 0.5); border: 1px solid rgba(216, 177, 90, 0.12); }
.comm .mit-credits-head { margin-bottom: 8px; }
.comm .mit-credits-sub { font-family: var(--mp-serif-body); font-size: 14.5px; line-height: 1.5; color: var(--mp-ink-dim); margin: 0 0 18px; }
.comm .mit-credits-group { margin-top: 16px; }
.comm .mcg-label { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.comm .mcg-label .mcg-ico { display: inline-flex; }
.comm .mcg-label .mcg-ico svg { width: 14px; height: 14px; }
.comm .mcg-label.is-patron { color: var(--c-gold); }
.comm .mcg-label.is-supporter { color: var(--c-teal); }
.comm .mcg-label .mcg-count { font-family: var(--mp-mono); font-size: 10px; color: var(--mp-ink-faint); border: 1px solid rgba(216, 177, 90, 0.18); padding: 1px 6px; letter-spacing: 0; }
.comm .mcg-names { display: flex; flex-wrap: wrap; gap: 8px; }
.comm .mc-name {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-family: var(--mp-serif);
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--mp-bone);
  border: 1px solid rgba(216, 177, 90, 0.16);
  background: rgba(7, 8, 11, 0.5);
}
.comm .mc-name.is-patron { color: var(--c-gold); border-color: rgba(216, 177, 90, 0.42); background: linear-gradient(180deg, rgba(216, 177, 90, 0.12), rgba(216, 177, 90, 0.03)); }
.comm .mc-name.is-supporter { color: var(--c-teal); border-color: rgba(77, 208, 196, 0.32); background: rgba(35, 155, 149, 0.07); }
.comm .mc-name--link { cursor: var(--mp-cur-pointer); transition: transform 160ms var(--c-ease), box-shadow 160ms ease; }
.comm .mc-name--link:hover { transform: translateY(-1px); }
.comm .mc-name.is-patron.mc-name--link:hover { box-shadow: 0 4px 14px rgba(216, 177, 90, 0.2); }
.comm .mc-name.is-supporter.mc-name--link:hover { box-shadow: 0 4px 14px rgba(77, 208, 196, 0.18); }
.comm .mit-credits-loading { font-family: var(--mp-serif-body); font-size: 14px; color: var(--mp-ink-dim); padding: 8px 0; }
.comm .mit-credits-empty { font-family: var(--mp-serif-body); font-size: 15px; line-height: 1.55; color: var(--mp-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comm .mit-credits-empty b { color: var(--mp-bone); font-weight: 600; }
.comm .mc-credits-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: var(--mp-sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0c0e13;
  background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%);
  border: 1px solid #f0d27a;
  cursor: var(--mp-cur-pointer);
  transition: transform 160ms var(--c-ease), box-shadow 160ms;
}
.comm .mc-credits-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(216,177,90,0.35); }
.comm .mc-credits-cta svg { width: 12px; height: 12px; }

/* ====== Chat-Rail (rechts, klebt beim Scrollen) ====== */
.comm-rail {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 78px;
  align-self: start;
  max-height: calc(100vh - 96px);
}
.comm .chat {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--mp-panel-2);
  border: 1px solid rgba(216, 177, 90, 0.22);
}
.comm .chat-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.comm .chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}
.comm .chat-head .ch-title { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink); }
.comm .chat-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--c-teal);
  padding: 3px 8px;
  border: 1px solid rgba(77, 208, 196, 0.3);
  background: rgba(77, 208, 196, 0.08);
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}
.comm .chat-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 7px var(--c-teal); animation: commBreathe 2.4s ease-in-out infinite; }
.comm .chat-live.off { color: var(--mp-ink-dim); border-color: rgba(132, 123, 101, 0.3); background: rgba(132, 123, 101, 0.06); }
.comm .chat-live.off .dot { background: var(--mp-ink-faint); box-shadow: none; animation: none; }

/* Inhaltsgross bis zur Kappe: so bleibt der Composer beim Oeffnen sichtbar,
   ein voller Chat scrollt innen. */
.comm .chat-body {
  flex: 1;
  min-height: 200px;
  max-height: clamp(220px, 46vh, 520px);
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216,177,90,0.2) transparent;
}
.comm .chat-body::-webkit-scrollbar { width: 6px; }
.comm .chat-body::-webkit-scrollbar-thumb { background: rgba(216,177,90,0.2); border-radius: 3px; }

/* Die Hausherrin: Katze in Gold, oben im Chat. Gold-Verlauf auf den Linien
   (chat-defs), warmer Schein, Teal-Stern bleibt. Mikro-Regungen via
   startMascotIdle; Streicheln/Klick wie überall. */
.comm .chat-host {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 12px;
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(216, 177, 90, 0.12), transparent 70%),
    rgba(216, 177, 90, 0.045);
  border: 1px solid rgba(216, 177, 90, 0.32);
}
.comm .chat-host .cs-cat { flex-shrink: 0; display: block; color: var(--c-gold); }
.comm .chat-host .cs-cat .coachCat {
  width: 66px;
  margin: -9px -7px -9px -5px;
  display: block;
  stroke: url(#commGoldStroke) var(--mp-gold-1);
  stroke-width: 3.3;
  filter: drop-shadow(0 0 7px rgba(232, 200, 121, 0.42)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.comm .chat-host .cs-cat .coachCat .coachCat-eyeL,
.comm .chat-host .cs-cat .coachCat .coachCat-eyeR,
.comm .chat-host .cs-cat .coachCat path[fill="currentColor"] { fill: url(#commGoldStroke) var(--mp-gold-1); }
.comm .chat-host .cs-cat .coachCat .coachCat-sparkles { display: none; }
.comm .chat-host .cs-body { font-size: 13px; line-height: 1.45; color: var(--mp-bone); font-family: var(--mp-serif-body); }

.comm .chat-empty { margin: auto 0; text-align: center; padding: 20px 14px; color: var(--mp-ink-dim); }
.comm .chat-empty .ce-ico { color: var(--mp-gold-3); margin-bottom: 12px; display: inline-flex; }
.comm .chat-empty .ce-text { font-size: 13px; line-height: 1.5; font-family: var(--mp-serif-body); color: var(--mp-ink); max-width: 220px; margin: 0 auto; }

.comm .chat-msg { display: flex; gap: 10px; }
.comm .chat-msg.is-new { animation: commMsgIn 260ms var(--c-ease) both; }
@keyframes commMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.comm .chat-msg .cm-av {
  width: 30px; height: 30px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a313e, #14171f);
  border: 1px solid var(--mp-gold-3);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  margin: 2px 2px 0;
}
.comm .chat-msg.mine .cm-av { border-color: var(--c-gold); }
.comm .chat-msg .cm-av span { transform: rotate(-45deg); font-family: var(--mp-serif); font-size: 10px; font-weight: 700; color: var(--c-gold); }
/* Mit Bild bleibt die Raute: Bild zurueckgedreht, mittig und ~sqrt(2) gross. */
.comm .chat-msg .cm-av.has-img { position: relative; overflow: hidden; }
.comm .chat-msg .cm-av.has-img img {
  position: absolute;
  left: 50%; top: 50%;
  width: 142%; height: 142%;
  object-fit: cover;
  display: block;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.comm .chat-msg .cm-main { min-width: 0; flex: 1; }
.comm .chat-msg .cm-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.comm .chat-msg .cm-name { font-family: var(--mp-serif); font-size: 12px; letter-spacing: 0.6px; color: var(--c-teal); font-weight: 600; }
.comm .chat-msg.mine .cm-name { color: var(--c-gold); }
.comm .chat-msg .cm-name.chat-author--link { cursor: var(--mp-cur-pointer); text-decoration: underline dotted transparent; transition: text-decoration-color 160ms; }
.comm .chat-msg .cm-name.chat-author--link:hover { text-decoration-color: currentColor; }
.comm .chat-msg .cm-time { font-family: var(--mp-mono); font-size: 9.5px; color: var(--mp-ink-faint); }
.comm .chat-msg .cm-text { font-size: 13.5px; line-height: 1.45; color: var(--mp-bone); font-family: var(--mp-serif-body); word-break: break-word; }

.comm .chat-status { padding: 0 16px; font-size: 11px; color: var(--mp-gold-2); font-family: var(--mp-sans); letter-spacing: 0.3px; }
.comm .chat-status:empty, .comm .chat-status:not(.on) { display: none; }
.comm .chat-status.on { padding: 8px 16px 0; animation: commPanelIn 200ms ease; }

.comm .chat-input { position: relative; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line); }
.comm .chat-input input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(7, 8, 11, 0.6);
  border: 1px solid rgba(216, 177, 90, 0.18);
  color: var(--mp-bone);
  font-family: var(--mp-serif-body);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.comm .chat-input input::placeholder { color: var(--mp-ink-faint); font-style: italic; }
.comm .chat-input input:focus { border-color: rgba(216, 177, 90, 0.5); box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.12), 0 0 14px rgba(216, 177, 90, 0.08); }
.comm .chat-input input:disabled { opacity: 0.6; }
/* Restzeichen erscheinen erst, wenn es knapp wird (ab 400 von 500). */
.comm .chat-count {
  position: absolute;
  right: 72px; top: -8px;
  padding: 1px 6px;
  font-family: var(--mp-mono);
  font-size: 9.5px;
  color: var(--mp-ink-dim);
  background: var(--mp-panel-2);
  border: 1px solid var(--c-line);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.comm .chat-count.on { opacity: 1; }
.comm .chat-count.warn { color: var(--mp-danger); }
.comm .chat-send {
  position: relative;
  width: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #0c0e13;
  background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%);
  border: 1px solid #f0d27a;
  cursor: var(--mp-cur-pointer);
  transition: box-shadow 160ms, transform 200ms var(--c-ease);
}
.comm .chat-send:hover { box-shadow: 0 0 16px rgba(216, 177, 90, 0.4); transform: translateY(-1px); }
.comm .chat-send svg { transition: transform 200ms var(--c-ease); }
.comm .chat-send:hover svg { transform: translateX(2px); }
/* Abschicken: ein Lichtring loest sich vom Knopf (einmal, nach dem Klick). */
.comm .chat-send.is-sent::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #f0d27a;
  animation: commSendRing 520ms ease-out forwards;
  pointer-events: none;
}
@keyframes commSendRing { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

.comm .chat-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--c-line);
  color: var(--mp-ink);
  font-family: var(--mp-serif-body);
  font-size: 13.5px;
  line-height: 1.45;
}
.comm .chat-login {
  flex-shrink: 0;
  padding: 9px 14px;
  font-family: var(--mp-sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-gold);
  background: rgba(216, 177, 90, 0.06);
  border: 1px solid rgba(216, 177, 90, 0.4);
  cursor: var(--mp-cur-pointer);
  transition: background 180ms ease, box-shadow 180ms ease, transform 200ms var(--c-ease);
}
.comm .chat-login:hover { background: rgba(216, 177, 90, 0.12); box-shadow: 0 0 16px rgba(216, 177, 90, 0.18); transform: translateY(-1px); }

/* ====== Responsive ====== */
@media (max-width: 1240px) {
  .comm-main { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
}
@media (max-width: 1040px) {
  .comm-main { grid-template-columns: minmax(0, 1fr); }
  .comm-rail { position: static; height: auto; max-height: none; min-height: 0; }
  .comm .chat { max-height: 520px; min-height: 380px; }
  .comm .roadmap-cols { grid-template-columns: 1fr; }
  .comm .mit-grid { grid-template-columns: 1fr; }
  .comm .mit-ways-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .comm-pulse { grid-template-columns: 1fr; }
  .comm .cp-cell + .cp-cell { border-left: none; border-top: 1px solid rgba(216, 177, 90, 0.12); }
  .comm .cp-count { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; text-align: left; border-left: none; border-top: 1px solid rgba(216, 177, 90, 0.12); }
  .comm .cp-count .lbl { margin-top: 0; }
  .comm-tabs { gap: 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .comm-tabs::-webkit-scrollbar { display: none; }
  .comm-tab { flex-shrink: 0; padding: 10px 8px 12px; font-size: 10px; letter-spacing: 1.6px; }
  .comm .devlog-list { padding-left: 22px; }
  .comm .de-node { left: -19px; }
  .comm .devlog-list::before { left: 3px; }
  .comm .feed-card, .comm .devlog-entry { padding: 18px 18px 20px; }
  .comm .fc-title { font-size: 21px; }
  .comm .de-title { font-size: 22px; }
}

/* Handy (body.mp-phone, main-13.css setzt die Seitenbreite) */
body.mp-phone .comm { min-width: 0; max-width: 100%; }
body.mp-phone .comm-main { grid-template-columns: minmax(0, 1fr); }
body.mp-phone .comm .cp-cell { min-width: 0; }
body.mp-phone .comm .chat { max-height: 70vh; }

@media (prefers-reduced-motion: reduce) {
  .comm-tabs-glide { transition: none; }
  .comm-panel.is-enter, .comm-panel.is-enter [style*="--i"], .comm .chat-msg.is-new { animation: none; }
  .comm .cp-dot, .comm .rm-dot, .comm .chat-live .dot { animation: none; }
  .comm .feed-card, .comm .mc-btn, .comm .chat-send, .comm .chat-login { transition: none; }
  .comm .mc-fb, .comm .mc-fb-done, .comm .mc-fb-cat, .comm .mc-fb-text { transition: none; }
  .comm .mc-fb-field.is-empty .mc-fb-text, .comm .mc-fb-send.is-sent::after { animation: none; }
}
