/* Chaos-Chat – klassisches Chat-Layout: Channels | Chatfenster | Nutzerliste */
.section-chat .site-main > .container { max-width: 1400px; }
.ch-app {
  --chc: var(--accent);
  position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; gap: 12px;
  height: clamp(460px, calc(100dvh - 190px), 900px);
}
.ch-app > .glass { min-height: 0; border-radius: 16px; }
.ch-pane-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Channel-Liste */
.ch-channels { display: flex; flex-direction: column; overflow: hidden; }
.ch-chlist { flex: 1; overflow-y: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.ch-chan {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 10px; border-radius: 10px; border: 1px solid transparent;
  background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: .92rem; text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.ch-chan:hover { background: var(--surface-hover); color: var(--text); }
.ch-chan.active { color: var(--text); background: color-mix(in srgb, var(--chc) 22%, transparent); border-color: color-mix(in srgb, var(--chc) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--chc) 30%, transparent); }
.ch-chan-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--chc, var(--accent)); box-shadow: 0 0 8px var(--chc, var(--accent)); flex-shrink: 0; }
.ch-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .72rem; text-align: center; color: var(--text); letter-spacing: 0; }
.ch-badge.empty { opacity: .45; }
.ch-help-link { padding: 10px; border-top: 1px solid var(--border); }

/* Chatfenster */
.ch-main { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ch-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, color-mix(in srgb, var(--chc) 45%, transparent), transparent 85%);
}
.ch-head-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ch-head-text strong { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.ch-topictext { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mobile-btn { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.ch-log {
  flex: 1; overflow-y: auto; padding: 12px 16px; font-size: .95rem; line-height: 1.5; overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--chc) 14%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 14px, transparent 14px 28px);
}
.ch-msg { position: relative; padding: 3px 28px 3px 6px; border-radius: 8px; overflow-wrap: anywhere; }
.ch-msg:hover { background: rgba(255,255,255,.03); }
.ch-time { display: inline-block; min-width: 40px; margin-right: 6px; font-size: .7rem; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; }
.ch-nick { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; cursor: pointer; color: inherit; }
.ch-nick:hover { text-decoration: underline; }
.ch-colon { margin-right: 6px; font-weight: 800; color: var(--muted); }
.ch-body img { max-height: 1.4em; }
.ch-body a { color: var(--accent-2); text-decoration: underline; }
.ch-mention { color: #ffd166; font-weight: 700; }
.ch-me .ch-body, .ch-me .ch-star { font-style: italic; color: color-mix(in srgb, var(--text) 85%, var(--chc)); }
.ch-star { margin-right: 4px; font-weight: 800; }
.ch-me .ch-nick { margin-right: 5px; }
.ch-whisper { background: rgba(124, 92, 255, .12); border-left: 3px solid #a48bff; font-style: italic; margin: 3px 0; }
.ch-wlabel { color: #c8b8ff; margin-right: 6px; font-size: .88rem; }
.ch-sys, .ch-join, .ch-leave, .ch-msg.ch-topic, .ch-knuddel { color: var(--muted); font-size: .84rem; font-style: italic; }
.ch-sysicon { margin-right: 6px; font-style: normal; }
.ch-join .ch-sysicon { color: var(--success); }
.ch-leave .ch-sysicon { color: var(--danger); }
.ch-knuddel { color: #ffb4d0; font-weight: 600; }
.ch-hl { background: rgba(255, 196, 0, .1); box-shadow: inset 3px 0 0 #ffd166; }
.ch-err { color: var(--danger); font-size: .86rem; }
.ch-welcome, .ch-empty { text-align: center; padding: 10px; margin: 6px 0; }
.ch-help { font-style: normal; background: var(--surface); border: 1px solid var(--border); padding: 10px 14px; margin: 8px 0; line-height: 1.8; }
.ch-help code { background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.ch-del { position: absolute; right: 4px; top: 3px; display: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; }
.ch-msg:hover .ch-del { display: block; }
.ch-del:hover { color: var(--danger); }
.ch-status { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer; z-index: 3; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ch-status-new { background: var(--accent); color: #fff; }
.ch-status-error { background: color-mix(in srgb, var(--danger) 85%, #000); color: #fff; }

/* Eingabe */
.ch-input { position: relative; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: rgba(0,0,0,.18); }
.ch-input input { flex: 1; min-width: 0; font-size: 1rem; }
.ch-tool { width: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 1.25rem; cursor: pointer; }
.ch-tool:hover { border-color: var(--chc); }
.ch-smileys { position: absolute; bottom: 64px; left: 12px; display: grid; grid-template-columns: repeat(6, 38px); gap: 4px; padding: 8px; border-radius: 14px; z-index: 5; background: var(--bg-2); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.ch-smileys button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; font-size: 1.35rem; cursor: pointer; }
.ch-smileys button:hover { background: var(--surface-hover); transform: scale(1.12); }

/* Nutzerliste */
.ch-users { display: flex; flex-direction: column; overflow: hidden; }
.ch-ulist { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; flex: 1; }
.ch-user { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; min-width: 0; }
.ch-user:hover { background: var(--surface-hover); }
.ch-user.is-me { background: color-mix(in srgb, var(--chc) 12%, transparent); }
.ch-user.is-away { opacity: .55; }
.ch-user .ch-nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ch-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,.12); }
.ch-av-letter { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.ch-uicons { font-size: .85rem; white-space: nowrap; }

/* Namens-Menü */
.ch-menu { position: absolute; z-index: 20; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.ch-menu-head { display: flex; flex-direction: column; padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.ch-menu a, .ch-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.ch-menu a:hover, .ch-menu button:hover { background: var(--surface-hover); color: var(--text); }
.ch-menu .ch-danger { color: var(--danger); }
.ch-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 75; }

/* Startseite & Hinweis */
.ch-teaser { max-width: 620px; margin: 30px auto; text-align: center; }
.ch-teaser-icon { font-size: 3.4rem; filter: drop-shadow(0 0 18px var(--accent-glow)); }

/* Mittlere Bildschirme: Channels als Leiste oben */
@media (max-width: 1100px) {
  .ch-app { grid-template-columns: minmax(0, 1fr) 210px; }
  .ch-channels { display: none; }
  .ch-head .ch-mobile-btn[data-toggle="channels"] { display: inline-block; }
}
/* Handy: nur das Chatfenster, Channels und Nutzer klappen seitlich herein */
@media (max-width: 720px) {
  .section-chat .site-main { padding-top: 10px; }
  .ch-app { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 84px); gap: 0; }
  .ch-users { display: none; }
  .ch-mobile-btn { display: inline-block; }
  .ch-app.show-channels .ch-channels, .ch-app.show-users .ch-users {
    display: flex; position: fixed; top: 0; bottom: 0; width: min(280px, 82vw); z-index: 80; border-radius: 0; background: var(--bg-2); padding-top: env(safe-area-inset-top);
  }
  .ch-app.show-channels .ch-channels { left: 0; }
  .ch-app.show-users .ch-users { right: 0; }
  .ch-log { padding: 10px; font-size: .92rem; }
  .ch-time { min-width: 34px; }
  .ch-input .btn { padding-left: 12px; padding-right: 12px; }
  .ch-smileys { grid-template-columns: repeat(6, 1fr); right: 12px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .ch-app.show-channels .ch-channels { display: flex; position: absolute; left: 0; top: 0; bottom: 0; width: 230px; z-index: 40; background: var(--bg-2); }
}
@media (prefers-reduced-motion: reduce) { .ch-smileys button:hover { transform: none; } }
.ch-app [hidden] { display: none !important; }
.section-chat .ol-here { display: none; }   /* der Chat hat seine eigene Nutzerliste */

/* Chaosbot */
.ch-botmsg { background: linear-gradient(90deg, rgba(34, 211, 238, .08), transparent 70%); }
.ch-botnick::before { content: "🤖 "; }
.ch-user.is-bot { background: rgba(34, 211, 238, .07); }
.ch-user.is-bot .ch-av { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 10px rgba(34, 211, 238, .35); }
.ch-body strong { color: #fff; }

/* =====================================================================
   🔥 Feuer-Look (1.2.0) – knackiger, heißer, lebendiger
   ===================================================================== */
.ch-app { --fire1: #ff2d2d; --fire2: #ff7a18; --fire3: #ffd23f; --ember: color-mix(in srgb, var(--chc) 60%, var(--fire2)); }
.ch-app > .glass { border-color: color-mix(in srgb, var(--chc) 22%, var(--border)); }
.ch-main { box-shadow: 0 0 0 1px color-mix(in srgb, var(--chc) 25%, transparent), 0 18px 50px -18px color-mix(in srgb, var(--ember) 55%, transparent); }

/* Kopf: Channelname glüht, Flammenlinie läuft */
.ch-head { position: relative; padding: 13px 16px; background:
  radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--chc) 55%, transparent), transparent 60%),
  linear-gradient(90deg, color-mix(in srgb, var(--chc) 30%, transparent), transparent 80%); border-bottom: 0; }
.ch-head-text strong { font-size: 1.35rem; font-weight: 900; letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--fire3) 70%, var(--fire2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ember) 55%, transparent)); }
.ch-flame-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--fire1), var(--fire2), var(--fire3), var(--fire2), var(--fire1), transparent);
  background-size: 200% 100%; animation: ch-flow 3.5s linear infinite; box-shadow: 0 0 12px var(--fire2), 0 0 2px var(--fire3); }
@keyframes ch-flow { to { background-position: -200% 0; } }
.ch-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--fire1) 45%, transparent); color: #ffd9cf; white-space: nowrap; }
.ch-live b { color: #fff; font-variant-numeric: tabular-nums; }
.ch-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire1); box-shadow: 0 0 0 0 var(--fire1); animation: ch-pulse 1.6s ease-out infinite; }
@keyframes ch-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fire1) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.ch-sound { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: rgba(0,0,0,.3); cursor: pointer; font-size: 1rem; transition: .15s; }
.ch-sound:hover { border-color: var(--fire2); }
.ch-sound.on { border-color: var(--fire2); box-shadow: 0 0 12px color-mix(in srgb, var(--fire2) 45%, transparent); }

/* Glut steigt im Hintergrund auf */
.ch-embers { position: absolute; inset: 60px 0 70px; overflow: hidden; pointer-events: none; z-index: 0; }
.ch-embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--fire3);
  box-shadow: 0 0 6px 2px var(--fire2); opacity: 0; animation: ch-ember 9s linear infinite; }
.ch-embers i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.ch-embers i:nth-child(2) { left: 22%; animation-delay: 3.2s; animation-duration: 11s; }
.ch-embers i:nth-child(3) { left: 37%; animation-delay: 6s; width: 3px; height: 3px; }
.ch-embers i:nth-child(4) { left: 51%; animation-delay: 1.5s; animation-duration: 12s; }
.ch-embers i:nth-child(5) { left: 66%; animation-delay: 4.6s; width: 5px; height: 5px; }
.ch-embers i:nth-child(6) { left: 78%; animation-delay: 7.4s; animation-duration: 10s; }
.ch-embers i:nth-child(7) { left: 90%; animation-delay: 2.4s; width: 3px; height: 3px; }
.ch-embers i:nth-child(8) { left: 44%; animation-delay: 8.4s; animation-duration: 13s; }
@keyframes ch-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: .55; }
  50% { transform: translate(14px, -45vh) scale(.8); opacity: .35; }
  100% { transform: translate(-10px, -90vh) scale(.3); opacity: 0; }
}
.ch-log { position: relative; z-index: 1; background:
  radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--ember) 18%, transparent), transparent 70%),
  radial-gradient(ellipse at top right, color-mix(in srgb, var(--chc) 10%, transparent), transparent 60%);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fire2) 55%, transparent) transparent; }
.ch-log::-webkit-scrollbar { width: 8px; }
.ch-log::-webkit-scrollbar-thumb { background: linear-gradient(var(--fire1), var(--fire2)); border-radius: 8px; }

/* Nachrichten: knackig und klar */
.ch-msg { padding: 4px 30px 4px 8px; margin-top: 3px; transition: background .15s; }
.ch-msg.ch-cont { margin-top: 0; padding-top: 1px; }
.ch-msg.ch-cont .ch-time { visibility: hidden; }
.ch-msg.ch-cont:hover .ch-time { visibility: visible; }
.ch-msg:hover { background: linear-gradient(90deg, rgba(255,255,255,.05), transparent 80%); }
.ch-nick { font-weight: 900; letter-spacing: .005em; text-shadow: 0 0 10px currentColor; text-shadow: 0 0 12px color-mix(in srgb, currentColor 40%, transparent); }
.ch-own { background: linear-gradient(90deg, color-mix(in srgb, var(--fire1) 13%, transparent), transparent 75%); box-shadow: inset 3px 0 0 var(--fire2); }
.ch-own:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--fire1) 20%, transparent), transparent 80%); }
.ch-mention { color: #1a0b00; background: linear-gradient(90deg, var(--fire3), var(--fire2)); padding: 0 6px; border-radius: 6px; font-weight: 800; }
.ch-hl { background: linear-gradient(90deg, color-mix(in srgb, var(--fire2) 22%, transparent), transparent 85%); box-shadow: inset 3px 0 0 var(--fire3), 0 0 18px -6px var(--fire2); }
.ch-whisper { background: linear-gradient(90deg, rgba(164,139,255,.18), transparent 85%); border-left: 0; box-shadow: inset 3px 0 0 #a48bff; }
.ch-knuddel { position: relative; color: #ffc2d9; }
.ch-new { animation: ch-in .35s cubic-bezier(.2,.9,.3,1.3) both; }
.ch-new.ch-own, .ch-new.ch-hl { animation: ch-in .35s cubic-bezier(.2,.9,.3,1.3) both, ch-flash 1.2s ease-out .1s; }
@keyframes ch-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ch-flash { 0% { filter: brightness(1.8) saturate(1.4); } 100% { filter: none; } }
.ch-spark { position: absolute; bottom: 4px; font-size: 1.1rem; pointer-events: none; animation: ch-spark 1.3s ease-out both; }
@keyframes ch-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -70px) scale(1.2) rotate(20deg); } }

/* Eingabe: glüht beim Tippen, Senden zündet */
.ch-input { position: relative; z-index: 2; padding: 12px; gap: 8px; border-top: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ember) 14%, rgba(0,0,0,.35)), rgba(0,0,0,.25)); }
.ch-input::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fire2) 60%, transparent), transparent); }
.ch-input input { border-radius: 12px; background: rgba(0,0,0,.45); border-color: color-mix(in srgb, var(--fire1) 25%, var(--border)); }
.ch-input input:focus { border-color: var(--fire2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fire2) 22%, transparent), 0 0 24px -4px color-mix(in srgb, var(--fire1) 60%, transparent); }
.ch-tool { border-radius: 12px; background: rgba(0,0,0,.35); transition: .15s; }
.ch-tool:hover { border-color: var(--fire2); transform: rotate(-8deg) scale(1.06); }
.ch-send { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
  background: linear-gradient(135deg, var(--fire1), var(--fire2) 60%, var(--fire3)); background-size: 160% 160%; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: 0 6px 20px -6px var(--fire1), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .12s, box-shadow .2s, background-position .4s; }
.ch-send:hover { background-position: 100% 100%; box-shadow: 0 8px 26px -4px var(--fire2), inset 0 1px 0 rgba(255,255,255,.45); transform: translateY(-1px); }
.ch-send:active { transform: translateY(1px) scale(.97); }
.ch-send-ico { display: inline-block; transform-origin: 50% 90%; }
.ch-send:hover .ch-send-ico { animation: ch-flicker .5s ease-in-out infinite alternate; }
.ch-send.fire .ch-send-ico { animation: ch-launch .5s ease-out; }
@keyframes ch-flicker { from { transform: scale(1) rotate(-6deg); } to { transform: scale(1.18) rotate(6deg); } }
@keyframes ch-launch { 0% { transform: none; } 40% { transform: translateY(-14px) scale(1.5); opacity: 0; } 41% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ch-smileys { border: 1px solid color-mix(in srgb, var(--fire2) 35%, var(--border)); animation: ch-pop .18s ease-out; }
@keyframes ch-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* Channel-Liste & Nutzer */
.ch-pane-title { color: color-mix(in srgb, var(--fire3) 45%, var(--muted)); }
.ch-chan { transition: background .15s, color .15s, transform .12s; }
.ch-chan:hover { transform: translateX(3px); }
.ch-chan.active { background: linear-gradient(90deg, color-mix(in srgb, var(--chc) 40%, transparent), color-mix(in srgb, var(--chc) 8%, transparent)); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--chc) 60%, transparent), inset 3px 0 0 var(--chc); }
.ch-chan.active .ch-dot { animation: ch-pulse 1.6s ease-out infinite; }
.ch-badge.hot { background: linear-gradient(135deg, var(--fire1), var(--fire2)); border-color: transparent; color: #fff; font-weight: 800; box-shadow: 0 0 10px -2px var(--fire2); }
.ch-user { transition: background .15s, transform .12s; }
.ch-user:hover { transform: translateX(-2px); }
.ch-user .ch-av { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px color-mix(in srgb, var(--success, #22c55e) 80%, transparent); border: 0; }
.ch-user.is-away .ch-av { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px rgba(255,255,255,.2); }
.ch-user.is-me { background: linear-gradient(90deg, color-mix(in srgb, var(--fire1) 18%, transparent), transparent); box-shadow: inset 3px 0 0 var(--fire2); }
.ch-status-new { background: linear-gradient(135deg, var(--fire1), var(--fire2)); animation: ch-in .3s ease-out; }

@media (max-width: 720px) {
  .ch-head { padding: 10px 12px; gap: 8px; }
  .ch-head-text strong { font-size: 1.1rem; }
  .ch-live { padding: 3px 8px; font-size: .7rem; }
  .ch-sound { width: 32px; height: 32px; }
  .ch-send-txt { display: none; }
  .ch-send { padding: 0 14px; font-size: 1.2rem; }
}
@media (max-width: 420px) { .ch-live { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ch-flame-line, .ch-live-dot, .ch-chan.active .ch-dot, .ch-embers i, .ch-new, .ch-send:hover .ch-send-ico, .ch-send.fire .ch-send-ico { animation: none !important; }
  .ch-embers { display: none; }
}
.ch-msg { border-radius: 6px; }
.ch-own, .ch-hl, .ch-whisper { border-radius: 2px 8px 8px 2px; }
.ch-own { box-shadow: inset 2px 0 0 var(--fire2); }
.ch-msg.ch-cont { border-top-left-radius: 0; border-top-right-radius: 0; }
.ch-mention { padding: 0 5px; font-size: .95em; }

/* 1.3.0: Knopf „Verlassen“ */
.ch-leave {
  flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, rgba(0,0,0,.3)); color: var(--text); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; transition: background .15s, transform .15s;
}
.ch-leave:hover { background: color-mix(in srgb, var(--danger) 35%, rgba(0,0,0,.3)); transform: translateY(-1px); }
@media (max-width: 720px) { .ch-leave span { display: none; } .ch-leave { padding: 0 9px; } }

/* 1.4.0: feste Channel-Nachricht beim Betreten */
.ch-msg.ch-notice {
  margin: 8px 0; padding: 12px 14px 12px 16px; border-radius: 12px; font-style: normal;
  background: linear-gradient(90deg, color-mix(in srgb, #22d3ee 16%, transparent), color-mix(in srgb, var(--chc) 8%, transparent));
  border: 1px solid color-mix(in srgb, #22d3ee 40%, transparent); box-shadow: inset 4px 0 0 #22d3ee, 0 8px 22px -14px #22d3ee;
}
.ch-notice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ch-notice-pin { font-size: 1.05rem; }
.ch-notice-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(34, 211, 238, .16); color: #a5f3fc; }
.ch-notice-head .ch-time { margin-left: auto; }
.ch-notice .ch-body { display: block; color: var(--text); line-height: 1.55; }
