/* Community: Glocke + Benachrichtigungen, Kommentare mit Antworten, Aktivität, Moderation */
.strong { font-weight: 700; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: var(--panel-3);
  color: var(--muted); font: 700 0.7rem/1.4 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase;
}
.chip-owner { background: rgba(245, 210, 70, 0.14); color: var(--bolt); }
.chip-hidden { background: rgba(235, 70, 70, 0.14); color: #ff8a8a; }
.text-button.danger:hover { color: var(--red); }

/* Glocke */
.bell {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; flex: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bell:hover, .bell[aria-expanded='true'] { border-color: var(--line-2); background: var(--panel-2); color: var(--bone); }
.bell .icon { width: 20px; height: 20px; }
.bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--red); color: #fff; font: 700 0.72rem/1 var(--font-text);
  box-shadow: 0 0 0 2px var(--arena); animation: pop 0.3s ease-out;
}
.notice-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 24px)); z-index: 61; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; max-height: min(600px, calc(100vh - var(--header-h) - 24px));
}
.notice-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.notice-head strong { font: 800 1.25rem/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.notice-read-all {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--muted); font: 600 0.82rem/1 var(--font-text); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.notice-read-all .icon { width: 15px; height: 15px; color: var(--green); }
.notice-read-all:hover { background: var(--panel-3); color: var(--bone); }
.notice-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.notice-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 8px 11px; border: 0; background: none; white-space: nowrap;
  color: var(--muted); font: 600 0.88rem/1 var(--font-text); cursor: pointer; transition: color 0.15s;
}
.notice-tab::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0;
  background: var(--bolt); transform: scaleX(0); transition: transform 0.2s;
}
.notice-tab:hover { color: var(--bone); }
.notice-tab[aria-selected='true'] { color: var(--bone); }
.notice-tab[aria-selected='true']::after { transform: scaleX(1); }
.notice-tab-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font: 700 0.7rem/1 var(--font-text);
}
.notice-list { overflow-y: auto; padding: 4px 6px 8px; display: grid; gap: 1px; align-content: start; min-height: 120px; }
.notice-list.switching { opacity: 0.45; pointer-events: none; }
.notice-list { transition: opacity 0.15s; }
.notice-day { padding: 12px 10px 4px; font: 700 0.7rem/1.4 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.notice-item { position: relative; }
.notice-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 40px 10px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.35; transition: background 0.15s, color 0.15s;
}
.notice-link:hover { background: var(--panel-3); color: var(--bone); }
.notice-item.unread .notice-link { color: var(--bone); background: color-mix(in srgb, var(--bolt) 4%, transparent); }
.notice-item.unread .notice-link:hover { background: var(--panel-3); }
.notice-who { position: relative; align-self: start; }
.notice-who .avatar { width: 38px; height: 38px; }
.notice-kind {
  position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 28%, var(--panel-2)); color: var(--c); box-shadow: 0 0 0 2px var(--panel-2);
}
.notice-kind .icon { width: 12px; height: 12px; stroke-width: 2.8; }
.notice-body { display: grid; gap: 4px; min-width: 0; }
.notice-quote {
  padding: 6px 10px; border-radius: 4px 10px 10px 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.85rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.notice-time { color: var(--dim); font-size: 0.78rem; }
.notice-item.unread .notice-time { color: var(--bolt); }
.notice-dot { position: absolute; right: 16px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--bolt); pointer-events: none; transition: opacity 0.15s; }
.notice-mark {
  position: absolute; right: 6px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: var(--panel-2); color: var(--green); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.notice-mark .icon { width: 16px; height: 16px; }
.notice-mark:hover { background: color-mix(in srgb, var(--green) 18%, var(--panel-2)); }
.notice-item:hover .notice-mark, .notice-mark:focus-visible { opacity: 1; }
.notice-item:hover .notice-dot { opacity: 0; }
.notice-empty { display: grid; justify-items: center; gap: 10px; padding: 28px 24px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.notice-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-3); color: var(--dim); }
.notice-empty-icon .icon { width: 22px; height: 22px; }
.notice-more { margin: 4px auto 10px; }
.notice-foot { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel); }
.notice-foot:empty { display: none; }
@media (hover: none) {
  .notice-mark { opacity: 1; }
  .notice-dot { display: none; }
}
.notice-popup {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: min(380px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--bolt); box-shadow: var(--shadow);
  color: var(--bone); text-decoration: none; font-size: 0.92rem; line-height: 1.35;
  transform: translateY(20px); opacity: 0; transition: transform 0.3s, opacity 0.3s;
}
.notice-popup.show { transform: none; opacity: 1; }

/* Schalter */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--muted); }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); flex: none; transition: background 0.15s; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.switch-input:checked + .switch-track { background: rgba(70, 200, 110, 0.3); border-color: var(--green); }
.switch-input:checked + .switch-track::after { transform: translateX(16px); background: var(--green); }
.switch-input:focus-visible + .switch-track { outline: 2px solid var(--bolt); outline-offset: 2px; }

/* Kommentare */
.comment-form .row-actions { display: flex; gap: 8px; }
.comment-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 0.84rem; }
.comment-actions .text-button { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 0.84rem; margin: 0; }
.comment-like {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; border: 1px solid var(--line);
  background: none; color: var(--muted); font: 600 0.82rem/1 var(--font-text); cursor: default;
}
button.comment-like { cursor: pointer; }
button.comment-like:hover { border-color: var(--red); color: #ff8080; }
.comment-like.liked { background: rgba(235, 70, 70, 0.16); border-color: rgba(235, 70, 70, 0.5); color: #ff8080; }
.comment-like.liked .icon { fill: currentColor; }
.comment-slot:not(:empty) { margin-top: 10px; }
.reply-list { display: grid; gap: 8px; margin-top: 10px; }
.reply-list:empty { display: none; }
.comment.reply { padding: 10px 12px; background: var(--panel-2); border-color: var(--line); }
.comment.reply .avatar { width: 28px; height: 28px; }
.comment.is-hidden > .min0 > .comment-text { opacity: 0.6; }
.comment:target { border-color: var(--bolt); box-shadow: 0 0 0 1px var(--bolt); }
.mention { color: var(--bolt); font-weight: 600; text-decoration: none; }
.mention:hover { text-decoration: underline; }
.report-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input-small { padding: 6px 10px; font-size: 0.88rem; width: auto; }
.mention-wrap { position: relative; }
.mention-list {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow);
}
.mention-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.mention-list li.active, .mention-list li:hover { background: var(--panel-3); color: var(--bolt); }

/* Detailseiten Map/Track */
.map-stage .level-svg { aspect-ratio: 16 / 9; }
.track-stage { background: none; }
.track-stage .track-head { padding: 34px 24px 28px; border-bottom: 0; }
.clip-info .track-preview { margin-top: 4px; }

/* Aktivität */
.friends-main { display: grid; gap: 24px; min-width: 0; }
.activity-list { display: grid; gap: 4px; }
.activity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; font-size: 0.92rem; }
.activity:hover { background: var(--panel-2); }
.activity.fresh { animation: pop 0.35s ease-out; }
.activity-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* Moderation */
.mod-list { display: grid; gap: 14px; }
.mod-item { display: grid; gap: 10px; }
.mod-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-reports { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .notice-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); width: auto; }
}
