/* ═══ FETİH game-v5 UI overhaul ═══ */
:root {
  --chat-w: 400px;
  --chat-h: 360px;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .floaters, .map-fx, .new-msg-pill, .sel-card, .toast { transition: none !important; animation: none !important; }
}

/* ── HUD resource tweens ── */
.res { position: relative; }
.res b {
  font-variant-numeric: tabular-nums;
  transition: color .25s var(--ease-soft);
}
.res.bump b { color: #fff; }
.res.bump { animation: resBump .45s var(--ease-out); }
@keyframes resBump {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.income-badge {
  display: inline-block; margin-left: 6px; font-style: normal;
  font-size: 10px; font-family: var(--mono); opacity: .75;
  border: 1px solid rgba(255,255,255,.35); padding: 1px 5px;
}
.income-badge.neg { opacity: .9; border-color: rgba(255,120,120,.5); color: #fca5a5; }
.floaters {
  position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; z-index: 5;
}
.floater {
  position: absolute; left: 0; top: 0; transform: translate(-50%, 0);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: #86efac; text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.8);
  animation: floaterUp 1.15s var(--ease-out) forwards;
  white-space: nowrap;
}
.floater.neg { color: #fca5a5; }
@keyframes floaterUp {
  0% { opacity: 0; transform: translate(-50%, 4px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -28px); }
}
.income-tip {
  position: fixed; z-index: 40; background: #fff; color: #000; border: 1px solid #000;
  padding: 10px 12px; font-size: 12px; font-family: var(--mono); min-width: 200px;
  box-shadow: 4px 4px 0 #000;
}
.income-tip .row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.income-tip .row.total { border-top: 1px solid #000; margin-top: 6px; padding-top: 6px; font-weight: 700; }

/* ── Right dock: players + full-height chat (never overlaps left rail) ── */
:root {
  --dock-w: 400px;
}
#screen-game .hud-right,
#screen-game #hud-right-dock {
  position: absolute;
  right: 0; top: 56px; bottom: 0;
  width: var(--dock-w, 400px);
  max-width: min(520px, 42vw);
  z-index: 12;
  display: flex; flex-direction: column; gap: 0;
  pointer-events: none;
  background: transparent;
  overflow: visible;
  max-height: none;
}
#screen-game .hud-right > *,
#screen-game #hud-right-dock > * { pointer-events: auto; }

/* Players strip at top of dock */
#screen-game #panel-players {
  order: 1;
  flex: 0 0 auto;
  max-height: 38%;
  margin: 8px 10px 0;
  background: #000 !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 4px 0 rgba(0,0,0,.35);
}
#screen-game #panel-players .hp-head {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
#screen-game #panel-players .hp-head .chev {
  margin-left: auto; transition: transform .2s var(--ease-soft);
}
#screen-game #panel-players.collapsed .hp-head .chev { transform: rotate(-90deg); }
#screen-game #panel-players .hp-body {
  flex: 1; min-height: 0; overflow: auto; padding: 8px 10px;
  max-height: 220px;
}
#screen-game #panel-players.collapsed .hp-body,
#screen-game #panel-players.collapsed #players-panel-body {
  display: none !important;
}
#screen-game #panel-players .players-panel-list { color: #fff; }

/* Chat fills remaining dock height */
#screen-game #panel-chat {
  order: 2;
  position: relative !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  flex: 1 1 auto;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 220px;
  margin: 8px 10px 10px;
  z-index: 12;
  background: #0a0a0a !important; color: #fff !important;
  border: 1px solid #fff !important;
  display: flex; flex-direction: column;
  box-shadow: -6px 6px 0 rgba(0,0,0,.45);
  transition: opacity .2s var(--ease-soft), transform .25s var(--ease-out);
}
#screen-game #panel-chat.dock-right { /* legacy no-op */ }
#screen-game #hud-right-dock.chat-collapsed #panel-chat {
  display: none !important;
}
#screen-game #panel-chat .chat-resize {
  position: absolute; left: -6px; top: 0; bottom: 0; width: 10px;
  cursor: ew-resize; z-index: 3;
  background: transparent;
}
#screen-game #panel-chat .chat-resize::after {
  content: ''; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 36px; border-radius: 2px;
  background: rgba(255,255,255,.35);
}
#screen-game #panel-chat .hp-head {
  flex-wrap: wrap; gap: 6px; padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  flex: 0 0 auto;
}
#screen-game #panel-chat .chat-tabs { margin-left: auto; margin-right: 2px; gap: 2px; flex-wrap: wrap; }
#screen-game #panel-chat .seg-b {
  color: rgba(255,255,255,.5); border: 1px solid transparent;
  background: none; font-size: 11px; padding: 4px 8px; letter-spacing: .04em; cursor: pointer;
}
#screen-game #panel-chat .seg-b.active {
  color: #000; background: #fff; text-decoration: none; border-color: #fff;
}
#screen-game #panel-chat .hp-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px 10px;
}
#screen-game #panel-chat .ctab {
  flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative;
}
#screen-game #panel-chat .ctab.hidden { display: none !important; }
#screen-game #panel-chat .chat-log {
  flex: 1; overflow: auto; border: 0; background: transparent;
  font-family: var(--font); font-size: 13px; padding: 4px 2px 8px;
  scroll-behavior: smooth;
}
#screen-game #panel-chat .chat-form {
  display: flex; border: 1px solid rgba(255,255,255,.4); margin-top: 6px; flex: 0 0 auto;
}
#screen-game #panel-chat .chat-form input {
  flex: 1; background: transparent; color: #fff; border: 0; padding: 10px 12px; font-size: 13px;
}
#screen-game #panel-chat .chat-form input::placeholder { color: rgba(255,255,255,.4); }
#screen-game #panel-chat .send-btn {
  background: #fff; color: #000; border: 0; border-left: 1px solid rgba(255,255,255,.35);
  width: 44px; display: grid; place-items: center; cursor: pointer;
}
#screen-game #panel-chat .send-btn:hover { background: #e8e8e8; }
#screen-game #panel-chat .send-btn.cooling { position: relative; }
#screen-game #panel-chat .send-btn.cooling svg { visibility: hidden; }
#screen-game #panel-chat .send-btn.cooling::after {
  content: attr(data-wait);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
#screen-game #panel-chat .report-toolbar {
  display: flex; justify-content: flex-end; margin-bottom: 6px;
}
#screen-game #panel-chat .event-log {
  flex: 1; overflow: auto; font-size: 12px; font-family: var(--mono);
  color: rgba(255,255,255,.85);
}
#screen-game #panel-report { display: none !important; }

/* Collapsed chat FAB — bottom-right of dock area, clear of left rail */
.chat-fab {
  position: absolute; right: 14px; bottom: 14px; z-index: 13;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000; border: 2px solid #000;
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: 4px 4px 0 #000;
  pointer-events: auto;
}
.chat-fab.hidden { display: none !important; }
.chat-fab .badge {
  background: #000; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 99px;
}
/* Chat can collapse; players strip stays visible */
#screen-game #hud-right-dock.chat-collapsed {
  width: min(300px, 34vw) !important;
  max-width: min(300px, 34vw) !important;
  overflow: visible;
  pointer-events: none;
}
#screen-game #hud-right-dock.chat-collapsed > * { pointer-events: none; }
#screen-game #hud-right-dock.chat-collapsed #panel-players {
  display: flex !important;
  pointer-events: auto;
  margin: 8px 10px 10px;
  max-height: none;
}
#screen-game #hud-right-dock.chat-collapsed #panel-players .hp-body,
#screen-game #hud-right-dock.chat-collapsed #panel-players #players-panel-body {
  display: block !important;
  max-height: min(220px, 36vh);
}
#screen-game #hud-right-dock.chat-collapsed .chat-fab {
  pointer-events: auto; display: inline-flex !important;
  position: absolute; right: 14px; bottom: 14px;
}

/* message grouping */
#panel-chat .chat-log .msg {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 10px; animation: msgIn .28s var(--ease-out);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
#panel-chat .chat-log .msg.grouped { margin-top: -6px; }
#panel-chat .chat-log .msg.grouped .avatar { visibility: hidden; }
#panel-chat .chat-log .msg.grouped .meta { display: none; }
#panel-chat .chat-log .msg.mine { flex-direction: row-reverse; }
#panel-chat .chat-log .msg .avatar {
  width: 28px; height: 28px; min-width: 28px; border-radius: 3px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.4); color: #000;
}
#panel-chat .chat-log .msg .bubble {
  flex: 1; min-width: 0; max-width: 92%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 10px; border-radius: 3px;
}
#panel-chat .chat-log .msg.mine .bubble {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3);
}
#panel-chat .chat-log .msg .meta {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  font-size: 11px; margin-bottom: 3px;
}
#panel-chat .chat-log .msg .meta time { color: rgba(255,255,255,.4); font-family: var(--mono); font-size: 10px; }
#panel-chat .chat-log .msg .txt {
  font-size: 13px; line-height: 1.4; color: #fff; word-break: break-word;
  white-space: pre-wrap;
}
#panel-chat .chat-log .msg.sys {
  display: block; font-size: 12px; color: rgba(255,255,255,.62);
  border-left: 2px solid rgba(255,255,255,.35); padding: 6px 10px; margin: 8px 0;
  background: rgba(255,255,255,.04); font-family: var(--mono);
  animation: msgIn .28s var(--ease-out);
}
#panel-chat .chat-log .msg.ally-tag .bubble { border-color: rgba(134,239,172,.45); }
.new-msg-pill {
  position: absolute; bottom: 54px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #000; border: 1px solid #000;
  font-size: 11px; padding: 6px 12px; cursor: pointer; z-index: 3;
  box-shadow: 2px 2px 0 #000; animation: pillPop .3s var(--ease-out);
}
@keyframes pillPop {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.chat-unread, #ally-badge, #dm-badge {
  background: #fff; color: #000; font-size: 10px; padding: 1px 6px; border-radius: 99px;
  font-family: var(--mono); font-weight: 700;
}
.dm-players { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 72px; overflow: auto; }
.dm-p {
  border: 1px solid rgba(255,255,255,.35); padding: 5px 9px; font-size: 11px; color: #fff;
  display: inline-flex; align-items: center; gap: 6px; background: transparent; cursor: pointer;
}
.dm-p.active, .dm-p.on { background: #fff; color: #000; }

/* ── Selection card slide-in ── */
#screen-game .sel-card {
  position: absolute; right: calc(var(--dock-w, 400px) + 12px); top: 60px; width: 300px; z-index: 11;
  background: #fff !important; color: #000 !important; border: 1px solid #000 !important;
  padding: 16px; max-height: calc(100% - 160px); overflow: auto;
  transform: translateX(12px); opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-out), opacity .28s var(--ease-soft), right .2s var(--ease-soft);
}
#screen-game.dock-collapsed .sel-card,
#screen-game:has(#hud-right-dock.chat-collapsed) .sel-card {
  right: 12px;
}
#screen-game .sel-card:not(.hidden) {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}
#screen-game .sel-card .sc-actions .btn kbd,
.kbd-chip {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  border: 1px solid currentColor; padding: 1px 5px; opacity: .55;
}

/* ── Map FX ── */
.map-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.fx-ripple {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 2px solid #fff; border-radius: 50%;
  animation: ripple 700ms var(--ease-out) forwards;
}
@keyframes ripple {
  to { width: 80px; height: 80px; margin: -40px 0 0 -40px; opacity: 0; border-width: 1px; }
}
.fx-burst {
  position: absolute; width: 8px; height: 8px; margin: -4px;
  background: #fff; border-radius: 50%;
  animation: burst 550ms var(--ease-out) forwards;
  box-shadow: 0 0 12px #fff, 0 0 24px currentColor;
}
@keyframes burst {
  0% { transform: scale(.4); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}
#cells path.cell {
  transition: fill .35s var(--ease-soft), filter .2s, stroke-width .2s;
}
#cells path.cell.capture-flash {
  animation: captureSweep .9s var(--ease-out);
}
@keyframes captureSweep {
  0% { filter: brightness(2.8) saturate(1.4); stroke: #fff; stroke-width: 2.4px; }
  35% { filter: brightness(1.6) saturate(1.2); }
  100% { filter: brightness(1) saturate(1); stroke-width: 0.4px; }
}
#cells path.cell:hover {
  filter: brightness(1.12);
}
#screen-game.overview-on #cells path.cell:hover { filter: none; }
.sel-ring {
  stroke-width: 2.4 !important;
  animation: selGlow 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.85));
}
@keyframes selGlow {
  0%,100% { stroke-opacity: 1; }
  50% { stroke-opacity: .55; }
}
.march-line {
  stroke-width: 1.6 !important;
  stroke-dasharray: 6 4;
  animation: marchDash 1s linear infinite;
}
@keyframes marchDash { to { stroke-dashoffset: -20; } }
.march-dot {
  r: 4.2 !important;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.7));
}
.fort-icon {
  font-size: 9px; fill: #fff; stroke: #000; stroke-width: 2.5px;
  paint-order: stroke; pointer-events: none;
}

/* ── Overview mode ── */
#screen-game.overview-on #map-wrap { /* cursor via cursors.css */ }
#screen-game.overview-on #map-wrap.dragging { /* cursor via cursors.css */ }
#screen-game.overview-on #labels text.nm.emp-label,
#screen-game.overview-on #labels text.nm { display: none !important; }
#screen-game.overview-on.ov-labels-far #labels text.ov-label { display: block !important; }
#screen-game.overview-on:not(.ov-labels-far) #labels text.ov-label { display: none !important; }
#labels text.ov-label {
  display: none; fill: #fff; font-family: var(--font); font-weight: 650;
  font-size: 8px; paint-order: stroke; stroke: #000; stroke-width: 2.2px;
  pointer-events: none; opacity: .88;
}
#labels text.ov-label-sub { font-weight: 500; font-size: 6.5px !important; opacity: .7; }
.overview-badge {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%);
  z-index: 9; background: #fff; color: #000; border: 1px solid #000;
  padding: 6px 12px; font-size: 12px; display: flex; align-items: center; gap: 8px;
  box-shadow: 3px 3px 0 #000; pointer-events: none;
  animation: msgIn .35s var(--ease-out);
}
.overview-badge kbd {
  font-family: var(--mono); font-size: 10px; border: 1px solid #000; padding: 1px 5px;
}
#btn-overview.on, #zoom-overview.on { background: #fff; color: #000; }

/* ── Diplomacy modal polish ── */
.diplo-modal-card { max-height: min(80vh, 720px); overflow: auto; }
.diplo-modal-list .dcard {
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.diplo-modal-list .dcard.pending-in {
  animation: propPulse 1.2s ease-in-out infinite;
  border-color: #000; box-shadow: 0 0 0 2px #000;
}
@keyframes propPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}
.diplo-modal-list .dcard.accept-flash { animation: acceptFlash .5s var(--ease-out); }
.diplo-modal-list .dcard.deny-flash { animation: denyFlash .45s var(--ease-out); }
@keyframes acceptFlash {
  0% { background: #dcfce7; }
  100% { background: #fff; }
}
@keyframes denyFlash {
  0% { background: #fee2e2; }
  100% { background: #fff; }
}

/* ── Toasts / timeline — top-center below HUD, above rail/dock ── */
.toasts {
  position: fixed !important;
  top: var(--toast-top, 64px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  z-index: 90 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  pointer-events: none;
  box-sizing: border-box;
}
.toasts .toast { pointer-events: auto; width: 100%; max-width: none; min-width: 0; box-sizing: border-box; }
.toast {
  animation: toastIn .35s var(--ease-out);
  box-shadow: 4px 4px 0 #000 !important;
}
.toast.out { animation: toastOut .26s var(--ease-soft) forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px); }
}
.toast-timeline {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: var(--toast-top, 64px) !important;
  transform: translateX(-50%);
  z-index: 88 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  pointer-events: none;
  box-sizing: border-box;
}
/* When both stacks show, push timeline under toasts via JS offset; CSS gap via padding-top if toasts present */
#screen-game:has(#toasts:not(:empty)) .toast-timeline {
  top: calc(var(--toast-top, 64px) + var(--toast-stack-h, 0px)) !important;
}
.tl-item {
  background: rgba(0,0,0,.92); color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  padding: 8px 12px; font-size: 12px; line-height: 1.35;
  font-family: var(--mono);
  text-align: center;
  word-break: break-word;
  animation: tlIn .32s var(--ease-out);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.tl-item.fade { opacity: .4; transition: opacity .6s; }
.toast.tl-toast {
  background: rgba(0,0,0,.92) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.45) !important;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}
.toast.tl-toast .tl-txt { flex: 1; word-break: break-word; }
@keyframes tlIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .toasts, .toast-timeline {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    left: 50% !important;
    padding: 0;
  }
}

/* ── Keyboard hint ── */
.kbd-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 7; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: rgba(0,0,0,.75); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 10px; color: rgba(255,255,255,.7); font-size: 11px; font-family: var(--mono);
}
#map-wrap { touch-action: none; /* cursor via cursors.css */ }
#map-wrap.dragging { /* cursor via cursors.css */ }
#map-wrap.selecting { /* cursor via cursors.css */ }

/* minimap clear of chat */
#screen-game .minimap {
  right: 12px; bottom: 12px; z-index: 10;
}
#screen-game .zoom-ctl { right: 248px; bottom: 12px; z-index: 10; }

@media (min-width: 1366px) and (max-width: 1600px) {
  :root { --chat-w: 380px; --chat-h: 340px; }
}
@media (min-width: 1601px) {
  :root { --chat-w: 420px; --chat-h: 380px; }
}
@media (max-width: 1100px) {
  #screen-game #panel-chat { width: min(360px, calc(100vw - 24px)); height: 300px; }
  #screen-game .sel-card { width: 280px; }
  .kbd-hint { display: none; }
}
@media (max-width: 900px) {
  #screen-game #panel-report { display: none; }
  /* keep dock — do not hide .hud-right */
  #screen-game .sel-card {
    left: 8px; right: auto; width: min(260px, 42vw); top: auto; bottom: 12px;
    max-height: 36vh;
  }
}


@media (max-width: 900px) {
  #screen-game .hud-right, #screen-game #hud-right-dock {
    width: min(360px, 48vw);
  }
  #screen-game .sel-card { right: calc(min(360px, 48vw) + 8px); width: 260px; }
}
@media (max-width: 720px) {
  #screen-game .hud-right, #screen-game #hud-right-dock {
    left: 8px; right: 8px; top: auto; bottom: 0; width: auto !important; max-width: none;
    max-height: 46vh; z-index: 20;
  }
  #screen-game #panel-players { max-height: 28%; margin: 6px 6px 0; }
  #screen-game #panel-chat { margin: 6px; min-height: 160px; }
  #screen-game .sel-card { right: 8px; left: 8px; width: auto; top: auto; bottom: calc(46vh + 8px); max-height: 40vh; }
  #screen-game #hud-right-dock.chat-collapsed { width: 0 !important; left: auto; }
}


/* ── Chat reply / mention ── */
.chat-reply-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 8px 6px; padding: 6px 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 11px;
}
.chat-reply-bar.hidden { display: none !important; }
.chat-reply-bar .crb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-reply-bar .crb-author { color: #fff; font-size: 11px; }
.chat-reply-bar .crb-snip {
  color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--mono); font-size: 10px;
}
.chat-reply-bar .lucide { width: 14px; height: 14px; opacity: .7; flex-shrink: 0; }
#panel-chat .chat-log .msg .reply-quote {
  display: block; margin: 0 0 6px; padding: 4px 8px;
  border-left: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7); font-size: 11px; cursor: pointer;
  max-width: 100%; overflow: hidden;
}
#panel-chat .chat-log .msg .reply-quote:hover { background: rgba(255,255,255,.12); color: #fff; }
#panel-chat .chat-log .msg .reply-quote b { color: #fff; margin-right: 4px; }
#panel-chat .chat-log .msg .mention {
  color: #7dd3fc; font-weight: 600; background: rgba(125,211,252,.12); padding: 0 3px;
}
#panel-chat .chat-log .msg.flash-msg .bubble {
  outline: 2px solid #fff; animation: msgFlash .9s ease;
}
@keyframes msgFlash {
  0%, 100% { outline-color: #fff; }
  50% { outline-color: #7dd3fc; }
}
#chat-unread.mention-pulse, #chat-fab-badge.mention-pulse {
  background: #e11 !important; animation: badgePulse 1s ease 3;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
