/* ══════════════════════════════════════════════════════════════════
   WITNESS SYSTEM CSS — Tiers 1-3 + Token Queue
   ══════════════════════════════════════════════════════════════════ */

/* ── Witness Prompt (post-witness floating panel) ─────────────── */
.vc-witness-prompt {
  position: fixed; bottom: -220px; right: 20px; width: 340px;
  background: #1a1020; border: 1px solid rgba(160,100,240,.5);
  border-radius: 10px; padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 0 1px rgba(160,100,240,.15);
  z-index: 9999; transition: bottom .35s cubic-bezier(.2,.8,.3,1);
}
.vc-witness-prompt.visible { bottom: 20px; }
.vc-wp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vc-wp-title { font-size: 13px; color: rgba(255,255,255,.9); }
.vc-wp-title em { color: #c084fc; font-style: normal; }
.vc-wp-close { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: 14px; padding: 2px 5px; }
.vc-wp-close:hover { color: rgba(255,255,255,.8); }
.vc-wp-score-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.vc-wp-score-label { font-size: 11px; color: rgba(255,255,255,.5); margin-right: 4px; }
.vc-wp-star {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: rgba(255,255,255,.2); padding: 0 2px;
  transition: color .1s, transform .1s;
}
.vc-wp-star.lit, .vc-wp-star:hover { color: rgba(255,200,50,.7); }
.vc-wp-star.active { color: #ffc832; transform: scale(1.1); }
.vc-wp-note-row { margin-bottom: 12px; }
.vc-wp-note {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: #e2d8f0; font-size: 12px; padding: 7px 10px;
  outline: none; box-sizing: border-box;
}
.vc-wp-note:focus { border-color: rgba(160,100,240,.6); }
.vc-wp-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Modal Witness Zone ────────────────────────────────────────── */
.vc-modal-witness-zone {
  margin: 12px 0 0 0;
  display: flex; flex-direction: column; gap: 12px;
}

/* ── Witness Presence Row ──────────────────────────────────────── */
.vc-modal-witnesses {
  background: rgba(120,80,200,.08); border: 1px solid rgba(120,80,200,.2);
  border-radius: 8px; padding: 10px 14px;
}
.vc-mw-label { font-size: 11px; color: rgba(160,120,220,.8); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.vc-mw-members { display: flex; flex-wrap: wrap; gap: 10px; }
.vc-mw-member { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: default; }
.vc-mw-avatar { width: 28px; height: 28px; border-radius: 5px; overflow: hidden; background: rgba(160,100,240,.2); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.vc-mw-name { font-size: 10px; color: rgba(255,255,255,.6); text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-mw-score { font-size: 10px; color: #ffc832; }
.vc-mw-note { font-size: 10px; color: rgba(255,255,255,.45); font-style: italic; max-width: 80px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Session card in activity feed ────────────────────────────── */
.vc-act-row--session { border-left: 2px solid rgba(120,80,200,.5); background: rgba(120,80,200,.06); }
.vc-act-session-witnesses {
  display: flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: 11px; color: rgba(180,140,255,.8);
}
.vc-sess-eye { font-size: 12px; }
.vc-sess-wit-av { width: 20px; height: 20px; border-radius: 3px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: rgba(120,80,200,.2); font-size: 11px; vertical-align: middle; }
.vc-sess-wit-label { font-size: 11px; color: rgba(180,140,255,.7); }

/* ── Witness Panel — Most Watched shelf ───────────────────────── */
.vc-wit-most-shelf { margin-bottom: 18px; }
.vc-wit-shelf-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(160,120,220,.8); margin-bottom: 10px; }
.vc-wit-shelf-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.vc-wit-shelf-row::-webkit-scrollbar { height: 3px; }
.vc-wit-shelf-row::-webkit-scrollbar-thumb { background: rgba(160,100,240,.3); border-radius: 3px; }
.vc-wit-shared-card {
  flex-shrink: 0; width: 80px; cursor: pointer; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(160,100,240,.25); background: rgba(255,255,255,.03);
  transition: transform .15s, border-color .15s; position: relative;
}
.vc-wit-shared-card:hover { transform: translateY(-3px); border-color: rgba(160,100,240,.6); }
.vc-wit-shared-card img { width: 80px; height: 107px; object-fit: cover; display: block; }
.vc-wit-cover-empty { width: 80px; height: 107px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: rgba(255,255,255,.15); }
.vc-wit-shared-viewers {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  background: rgba(0,0,0,.65); font-size: 9px; color: rgba(180,140,255,.9); padding: 2px;
}
.vc-wit-card-name { font-size: 9px; color: rgba(255,255,255,.55); padding: 3px 4px 4px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Witness Leaderboard ───────────────────────────────────────── */
.vc-wit-lb { margin-bottom: 22px; }
.vc-wit-lb-title { font-size: 13px; font-weight: 600; color: rgba(200,170,255,.9); margin-bottom: 10px; }
.vc-wit-lb-rows { display: flex; flex-direction: column; gap: 6px; }
.vc-wit-lb-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px; cursor: default;
}
.vc-wit-lb-row.vc-lb-row--me { border-color: rgba(160,100,240,.35); background: rgba(160,100,240,.07); }
.vc-wit-lb-medal { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.vc-lb-rank-num { font-size: 12px; color: rgba(255,255,255,.4); }
.vc-wit-lb-av { width: 24px; height: 24px; border-radius: 4px; overflow: hidden; background: rgba(160,100,240,.2); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-wit-lb-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.vc-wit-lb-name { font-size: 12px; color: rgba(255,255,255,.85); }
.vc-wit-rank-title { font-size: 10px; color: rgba(160,120,220,.75); font-style: italic; }
.vc-wit-lb-stats { display: flex; gap: 10px; font-size: 11px; color: rgba(255,255,255,.5); }
.vc-wit-lb-stats span { display: flex; align-items: center; gap: 2px; }

/* ── Per-member sections ───────────────────────────────────────── */
.vc-wit-members { display: flex; flex-direction: column; gap: 20px; }
.vc-wit-member-section { }
.vc-wit-member-header {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07); border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}
.vc-wit-avatar { width: 28px; height: 28px; border-radius: 5px; overflow: hidden; background: rgba(160,100,240,.2); font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-wit-member-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.vc-wit-member-name { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }
.vc-wit-member-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; }
.vc-wit-role-badge { background: rgba(120,80,200,.25); border: 1px solid rgba(120,80,200,.4); border-radius: 4px; padding: 1px 7px; font-size: 10px; color: rgba(180,140,255,.9); }
.vc-wit-count { color: rgba(255,255,255,.4); }
.vc-wit-tokens { color: rgba(200,160,100,.8); }
.vc-wit-faithful-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.vc-wit-faithful-badge {
  font-size: 10px; background: rgba(200,150,50,.15); border: 1px solid rgba(200,150,50,.3);
  border-radius: 20px; padding: 2px 8px; color: rgba(220,180,80,.9);
}
.vc-wit-game-row {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
  border-top: none; border-radius: 0 0 8px 8px;
}
.vc-wit-game-card {
  width: 70px; cursor: pointer; border-radius: 5px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
  transition: transform .15s, border-color .15s; position: relative;
}
.vc-wit-game-card:hover { transform: translateY(-2px); border-color: rgba(160,100,240,.5); }
.vc-wit-game-card img { width: 70px; height: 93px; object-fit: cover; display: block; }
.vc-wit-game-card--shared { border-color: rgba(160,100,240,.35); }
.vc-wit-shared-pip {
  position: absolute; top: 3px; right: 3px; width: 16px; height: 16px;
  background: rgba(120,80,200,.85); border-radius: 3px; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Witness Record (in game modal) ────────────────────────────── */
.vc-witness-record-wrap { padding: 0; }
.vc-wr-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(160,120,220,.8); margin-bottom: 10px; }
.vc-wr-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.03);
}
.vc-wr-card--sealed {
  border-color: rgba(180,120,60,.4);
  background: linear-gradient(135deg, rgba(80,40,0,.15), rgba(120,60,20,.08));
}
.vc-wr-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vc-wr-card-date { font-size: 11px; color: rgba(255,255,255,.45); }
.vc-wr-sealed-badge { font-size: 10px; background: rgba(180,120,50,.2); border: 1px solid rgba(180,120,50,.4); border-radius: 4px; padding: 1px 7px; color: rgba(220,170,80,.9); }
.vc-wr-open-badge { font-size: 10px; color: rgba(120,200,120,.6); }
.vc-wr-players { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.vc-wr-reactions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.vc-wr-reaction { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; }
.vc-wr-react-av { width: 18px; height: 18px; border-radius: 3px; overflow: hidden; background: rgba(160,100,240,.2); font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-wr-react-name { color: rgba(255,255,255,.6); flex-shrink: 0; }
.vc-wr-react-content { color: rgba(255,255,255,.45); font-style: italic; }
.vc-wr-empty-reactions { font-size: 11px; color: rgba(255,255,255,.25); font-style: italic; margin-bottom: 10px; }
.vc-wr-sigs { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(220,170,80,.8); margin-bottom: 8px; flex-wrap: wrap; }
.vc-wr-seal-icon { font-size: 14px; }
.vc-wr-sig { background: rgba(180,120,50,.15); border: 1px solid rgba(180,120,50,.3); border-radius: 10px; padding: 1px 8px; }
.vc-wr-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ── Witness Reviews ────────────────────────────────────────────── */
.vc-witness-review-section {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 12px;
}
.vc-wrev-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: rgba(160,120,220,.8); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.vc-wrev-avg { font-size: 11px; color: #ffc832; text-transform: none; letter-spacing: 0; }
.vc-wrev-entry { display: flex; gap: 8px; margin-bottom: 10px; }
.vc-wrev-av { width: 20px; height: 20px; border-radius: 3px; overflow: hidden; background: rgba(160,100,240,.2); font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-wrev-body { flex: 1; }
.vc-wrev-name { font-size: 11px; color: rgba(255,255,255,.65); font-weight: 500; display: block; margin-bottom: 3px; }
.vc-wrev-text { font-size: 12px; color: rgba(255,255,255,.55); margin: 0; line-height: 1.5; }
.vc-wrev-empty { font-size: 11px; color: rgba(255,255,255,.25); font-style: italic; margin-bottom: 10px; }
.vc-wrev-compose { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.vc-wrev-input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: #e2d8f0; font-size: 12px; padding: 8px 10px;
  resize: vertical; outline: none; box-sizing: border-box; font-family: inherit;
}
.vc-wrev-input:focus { border-color: rgba(160,100,240,.5); }
.vc-wrev-submit { align-self: flex-end; }

/* ── Curiosity Nudge ────────────────────────────────────────────── */
.vc-wit-curiosity-nudge {
  background: rgba(80,160,100,.1); border: 1px solid rgba(80,200,120,.25);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; color: rgba(160,230,180,.85);
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.vc-wit-curiosity-nudge strong { color: rgba(200,240,200,.9); }

/* ── Watch Queue Panel ──────────────────────────────────────────── */
.vc-wv-header { margin-bottom: 16px; }
.vc-wv-title { font-size: 15px; font-weight: 600; color: rgba(200,170,255,.95); margin-bottom: 4px; }
.vc-wv-subtitle { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.vc-wv-my-tokens { font-size: 12px; color: rgba(220,180,80,.85); }
.vc-wv-list { display: flex; flex-direction: column; gap: 8px; }
.vc-wv-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 10px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.vc-wv-item:hover { border-color: rgba(160,100,240,.35); background: rgba(160,100,240,.06); }
.vc-wv-item--top { border-color: rgba(160,100,240,.4); background: rgba(160,100,240,.08); }
.vc-wv-cover { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.vc-wv-cover-empty { width: 44px; height: 58px; background: rgba(255,255,255,.06); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.vc-wv-info { flex: 1; }
.vc-wv-top-badge { font-size: 10px; color: rgba(180,140,255,.9); background: rgba(120,80,200,.2); border: 1px solid rgba(120,80,200,.3); border-radius: 4px; padding: 1px 6px; display: inline-block; margin-bottom: 4px; }
.vc-wv-game-name { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }
.vc-wv-nominator { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.vc-wv-vote-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.vc-wv-token-count { font-size: 14px; font-weight: 600; color: rgba(200,160,80,.9); }
.vc-wv-no-tokens { font-size: 10px; color: rgba(255,255,255,.3); }
.vc-wv-loading { color: rgba(255,255,255,.4); font-size: 12px; padding: 20px; text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   IDENTITY CARDS — coven member cards v2
   ══════════════════════════════════════════════════════════════════ */

/* Grid — wider cards */
.vc-coven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Base card */
.vc-coven-member-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
  overflow: visible;
  min-height: 200px;
  display: flex; flex-direction: column; align-items: center;
}
.vc-coven-member-card:hover { transform: translateY(-3px); }

/* ── Avatar ── */
.vc-coven-member-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 10px;
  background: rgba(201,151,58,.1);
  border: 2px solid rgba(201,151,58,.25);
  overflow: hidden;
  flex-shrink: 0;
}
.vc-coven-member-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }

/* ── Name ── */
.vc-coven-member-name {
  font-family: var(--font-display,'Cinzel',serif);
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.vc-coven-you { font-size: 9px; color: var(--gold); opacity: .7; }

/* ── Quote ── */
.vc-coven-member-quote {
  font-size: 10px; color: var(--dust);
  font-style: italic; margin: 4px 0 8px;
  line-height: 1.4; opacity: .8;
  max-width: 180px;
}

/* ── Stats sub ── */
.vc-coven-member-sub {
  font-size: 10px; color: var(--dust);
  margin-bottom: 10px; line-height: 1.5;
}

/* ── Pinned games ── */
.vc-coven-pinned-games {
  display: flex; gap: 6px; justify-content: center;
  margin-top: auto; padding-top: 8px;
}
.vc-coven-pinned-cover {
  width: 36px; height: 48px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  flex-shrink: 0; position: relative;
}
.vc-coven-pinned-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.vc-coven-pinned-cover-empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:12px; }
.vc-coven-pinned-cover[title]:hover::after {
  content: attr(title);
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: rgba(10,8,16,.95); color: var(--text); font-size: 9px;
  padding: 3px 6px; border-radius: 4px; white-space: nowrap;
  pointer-events: none; z-index: 10;
  font-family: var(--font-mono, monospace);
}

/* ── Edit button (own card only) ── */
.vc-coven-card-edit-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(201,151,58,.2); border: 1px solid rgba(201,151,58,.5);
  color: var(--gold); border-radius: 5px;
  font-size: 10px; padding: 3px 9px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
  font-family: var(--font-mono,monospace); letter-spacing: .5px;
  z-index: 10; pointer-events: all;
}
.vc-coven-member-card:hover .vc-coven-card-edit-btn { opacity: 1; }

/* ════════════════════════════════════
   RARITY EFFECTS
   clip-path on fx-layer prevents ANY bleed outside card border
   CSS variables per-card control intensity/speed from JS
   ════════════════════════════════════ */

/* fx-layer: strictly clipped to card shape using clip-path (clips transforms too) */
.vc-member-card .vc-card-fx-layer {
  position: absolute; inset: 0; border-radius: inherit;
  overflow: hidden;
  /* contain:paint is the definitive fix — creates a paint containment boundary
     that clips ALL painting (including transformed children) to the element's box */
  contain: paint;
  pointer-events: none; z-index: 1;
}
.vc-member-card .vc-card-fx-layer::before,
.vc-member-card .vc-card-fx-layer::after {
  content: ''; position: absolute;
  /* Stay strictly inside — never negative offsets */
  inset: 0;
  pointer-events: none;
}
/* Card content above fx-layer */
.vc-member-card > *:not(.vc-card-fx-layer):not(.vc-member-edit-btn) { position: relative; z-index: 2; }
.vc-member-edit-btn { z-index: 20; }

/* CSS variable defaults (overridden inline per card) */
.vc-member-card {
  --fx-shimmer-opacity: .5; --fx-shimmer-duration: 4s;
  --fx-holo-opacity: .5;    --fx-holo-duration: 4s;
  --fx-pulse-opacity: .5;   --fx-pulse-duration: 4s; --fx-pulse-scale: .8;
  --fx-foil-opacity: .5;    --fx-foil-duration: 4s;
  --fx-particles-opacity: .5; --fx-particles-duration: 4s;
  --fx-scanlines-opacity: .5;
}

/* ── Shimmer — diagonal light sweep ── */
.vc-card-shimmer .vc-card-fx-layer::before {
  background: linear-gradient(105deg,
    transparent 25%, rgba(255,255,255,.0) 40%,
    rgba(255,255,255,.35) 50%, rgba(255,255,255,.0) 60%, transparent 75%);
  background-size: 300% 100%;
  opacity: var(--fx-shimmer-opacity);
  animation: vc-shimmer var(--fx-shimmer-duration) ease-in-out infinite;
}
@keyframes vc-shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

/* ── Holo — colour-cycling gradient ── */
.vc-card-holo .vc-card-fx-layer::before {
  background: linear-gradient(125deg,
    rgba(255,0,128,1) 0%, rgba(255,210,0,1) 20%,
    rgba(0,255,160,1) 40%, rgba(0,120,255,1) 65%,
    rgba(210,0,255,1) 85%, rgba(255,0,128,1) 100%);
  background-size: 400% 400%;
  opacity: calc(var(--fx-holo-opacity) * 0.35);
  mix-blend-mode: screen;
  animation: vc-holo var(--fx-holo-duration) ease infinite;
}
.vc-card-holo { border-color: rgba(180,120,255,.5) !important; box-shadow: none !important; }
@keyframes vc-holo {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ── Pulse — glow breathe ── */
.vc-card-pulse {
  animation: vc-pulse-glow var(--fx-pulse-duration) ease-in-out infinite;
  border-color: rgba(201,151,58,.55) !important;
}
@keyframes vc-pulse-glow {
  0%,100% { box-shadow: 0 0 2px rgba(201,151,58,.1); }
  50%     { box-shadow:
      0 0 calc(8px * var(--fx-pulse-scale)) rgba(201,151,58, calc(var(--fx-pulse-opacity) * .7)),
      inset 0 0 calc(12px * var(--fx-pulse-scale)) rgba(201,151,58, calc(var(--fx-pulse-opacity) * .08)); }
}

/* ── Foil — prismatic spin INSIDE clip ── */
.vc-card-foil .vc-card-fx-layer::before {
  /* inset:0 keeps element inside overflow:hidden boundary */
  /* scale via transform — overflow:hidden clips the result correctly */
  background: conic-gradient(
    rgba(255,0,80,1), rgba(255,200,0,1), rgba(0,255,120,1),
    rgba(0,150,255,1), rgba(200,0,255,1), rgba(255,0,80,1));
  opacity: calc(var(--fx-foil-opacity) * 0.28);
  transform-origin: 50% 50%;
  animation: vc-foil-spin var(--fx-foil-duration) linear infinite;
}
.vc-card-foil .vc-card-fx-layer::after {
  background: linear-gradient(135deg,
    transparent 25%, rgba(255,255,255,.25) 45%,
    rgba(255,255,255,.35) 50%, rgba(255,255,255,.25) 55%, transparent 75%);
  background-size: 300% 300%;
  opacity: calc(var(--fx-foil-opacity) * 0.7);
  animation: vc-foil-shine calc(var(--fx-foil-duration) * 0.6) ease infinite;
}
.vc-card-foil { border-color: rgba(220,120,255,.6) !important; box-shadow: none !important; }
@keyframes vc-foil-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes vc-foil-shine {
  0%,100% { background-position: -100% -100%; }
  50%     { background-position: 100% 100%; }
}

/* ── Particles — ember drift upward ── */
.vc-card-particles .vc-card-fx-layer::after {
  background-image:
    radial-gradient(circle, rgba(255,180,60,1) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(201,151,58,1) 1px,   transparent 1px),
    radial-gradient(circle, rgba(255,220,80,1) 2px,   transparent 2px),
    radial-gradient(circle, rgba(255,140,30,1) 1px,   transparent 1px),
    radial-gradient(circle, rgba(201,151,58,1) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,200,50,1) 1px,   transparent 1px);
  background-size:
    33% 40%, 28% 35%, 40% 50%,
    25% 30%, 35% 45%, 30% 38%;
  background-position:
    15% 95%, 55% 90%, 30% 98%,
    72% 92%, 85% 96%, 48% 93%;
  background-repeat: no-repeat;
  opacity: var(--fx-particles-opacity);
  animation: vc-embers var(--fx-particles-duration) ease-in-out infinite;
  filter: blur(0.4px);
}
.vc-card-particles .vc-card-fx-layer::before {
  background-image:
    radial-gradient(circle, rgba(255,160,40,1) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(201,151,58,1) 1px,   transparent 1px),
    radial-gradient(circle, rgba(255,210,70,1) 2px,   transparent 2px),
    radial-gradient(circle, rgba(255,120,20,1) 1px,   transparent 1px),
    radial-gradient(circle, rgba(201,151,58,1) 1.5px, transparent 1.5px);
  background-size:
    30% 38%, 25% 32%, 38% 48%, 22% 28%, 32% 42%;
  background-position:
    40% 95%, 20% 92%, 65% 98%, 80% 90%, 10% 94%;
  background-repeat: no-repeat;
  opacity: var(--fx-particles-opacity);
  animation: vc-embers var(--fx-particles-duration) ease-in-out infinite;
  animation-delay: calc(var(--fx-particles-duration) * -0.5);
  filter: blur(0.4px);
}
@keyframes vc-embers {
  0%   { background-position-y: 95%, 90%, 98%, 92%, 96%, 93%; opacity: 0; }
  8%   { opacity: var(--fx-particles-opacity); }
  85%  { opacity: calc(var(--fx-particles-opacity) * 0.4); }
  100% { background-position-y: -20%, -15%, -25%, -18%, -22%, -10%; opacity: 0; }
}

/* ── Scanlines — CRT ── */
/* Scanlines use a dedicated child element so they never conflict with ::before/::after */
.vc-card-scanlines .vc-card-fx-layer .vc-scanlines-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,1) 3px, rgba(0,0,0,1) 4px);
  opacity: calc(var(--fx-scanlines-opacity) * 0.25);
  border-radius: inherit;
}

/* ── Color accent themes ── */
.vc-card-accent-gold   { border-color: rgba(201,151,58,.5) !important; background: linear-gradient(160deg, rgba(201,151,58,.06) 0%, var(--panel) 60%) !important; }
.vc-card-accent-blood  { border-color: rgba(160,30,30,.6) !important; background: linear-gradient(160deg, rgba(160,30,30,.1) 0%, var(--panel) 60%) !important; }
.vc-card-accent-arcane { border-color: rgba(120,80,200,.5) !important; background: linear-gradient(160deg, rgba(120,80,200,.08) 0%, var(--panel) 60%) !important; }
.vc-card-accent-toxic  { border-color: rgba(80,200,80,.4) !important; background: linear-gradient(160deg, rgba(80,200,80,.06) 0%, var(--panel) 60%) !important; }
.vc-card-accent-void   { border-color: rgba(60,60,80,.8) !important; background: linear-gradient(160deg, rgba(20,20,30,.5) 0%, var(--panel) 60%) !important; }
.vc-card-accent-frost  { border-color: rgba(100,180,255,.4) !important; background: linear-gradient(160deg, rgba(100,180,255,.06) 0%, var(--panel) 60%) !important; }
.vc-card-accent-rose   { border-color: rgba(220,80,150,.4) !important; background: linear-gradient(160deg, rgba(220,80,150,.07) 0%, var(--panel) 60%) !important; }

/* ════════════════════════════════════
   CARD EDITOR MODAL
   ════════════════════════════════════ */
.vc-card-editor-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(4,3,9,.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.vc-card-editor {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; width: 480px; max-width: 95vw;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.vc-card-editor-title {
  font-family: var(--font-display,'Cinzel',serif);
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; letter-spacing: 1px;
}
.vc-card-editor-section {
  margin-bottom: 18px;
}
.vc-card-editor-label {
  font-size: 10px; font-family: var(--font-mono,monospace);
  letter-spacing: 1px; color: var(--gold); opacity: .8;
  margin-bottom: 8px; text-transform: uppercase;
}
.vc-card-editor-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.vcce-effects-list { display: flex; flex-direction: column; gap: 8px; }
.vcce-effect-row { display: flex; flex-direction: column; gap: 6px; }
.vcce-sliders { padding: 8px 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; }
.vcce-slider-row { display: flex; align-items: center; gap: 8px; }
.vcce-slider-row label { font-family: var(--font-mono,monospace); font-size: 9px; color: var(--dust); letter-spacing: .5px; width: 54px; flex-shrink: 0; text-transform: uppercase; }
.vcce-slider { flex: 1; height: 3px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.12); border-radius: 2px; outline: none; cursor: pointer; }
.vcce-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold,#c9973a); cursor: pointer; border: none; }
.vcce-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold,#c9973a); cursor: pointer; border: none; }
.vcce-slider-val { font-family: var(--font-mono,monospace); font-size: 9px; color: var(--gold); width: 22px; text-align: right; flex-shrink: 0; }

.vc-card-editor-chip {
  font-size: 10px; font-family: var(--font-mono,monospace);
  padding: 4px 10px; border-radius: 5px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--dust); cursor: pointer; transition: all .12s;
  letter-spacing: .3px;
}
.vc-card-editor-chip:hover { border-color: rgba(201,151,58,.4); color: var(--gold); }
.vc-card-editor-chip.active { background: rgba(201,151,58,.15); border-color: rgba(201,151,58,.5); color: var(--gold); }
.vc-card-editor-chip.danger.active { background: rgba(160,30,30,.2); border-color: rgba(200,60,60,.5); color: #e06060; }
.vc-card-editor-chip.arcane.active { background: rgba(120,80,200,.15); border-color: rgba(120,80,200,.5); color: #b090ff; }
.vc-card-editor-chip.toxic.active { background: rgba(80,200,80,.1); border-color: rgba(80,200,80,.4); color: #80e080; }
.vc-card-editor-chip.frost.active { background: rgba(100,180,255,.1); border-color: rgba(100,180,255,.4); color: #90d0ff; }
.vc-card-editor-chip.rose.active { background: rgba(220,80,150,.12); border-color: rgba(220,80,150,.4); color: #f080c0; }
.vc-card-editor-input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; color: var(--text);
  font-family: var(--font-mono,monospace); font-size: 11px;
  box-sizing: border-box; outline: none;
  transition: border-color .15s;
}
.vc-card-editor-input:focus { border-color: rgba(201,151,58,.4); }
.vc-card-editor-game-list { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; }
.vc-card-editor-game-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border-radius: 5px; border: 1px solid transparent;
  cursor: pointer; font-size: 11px; color: var(--dust);
  transition: all .12s;
}
.vc-card-editor-game-item:hover { background: rgba(255,255,255,.04); border-color: var(--border); }
.vc-card-editor-game-item.pinned { background: rgba(201,151,58,.1); border-color: rgba(201,151,58,.3); color: var(--gold); }
.vc-card-editor-game-mini-cover { width: 24px; height: 32px; border-radius: 3px; object-fit: cover; background: rgba(255,255,255,.05); flex-shrink:0; }
.vc-card-editor-actions { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; }
.vc-card-editor-preview { 
  border: 1px dashed rgba(201,151,58,.2); border-radius: 10px;
  padding: 12px; margin-bottom: 18px; text-align: center;
  font-size: 9px; font-family: var(--font-mono,monospace);
  color: var(--dust); letter-spacing: 1px; opacity: .6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WITNESS LIVE FEED PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.vc-live-feed {
  position: fixed;
  bottom: -620px;
  right: 20px;
  width: 380px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  background: #110d1e;
  border: 1px solid rgba(120,80,240,.5);
  border-radius: 14px;
  box-shadow: 0 16px 60px rgba(0,0,0,.85), 0 0 0 1px rgba(120,80,240,.12);
  z-index: 10000;
  transition: bottom .38s cubic-bezier(.2,.8,.3,1);
  overflow: hidden;
}
.vc-live-feed.visible { bottom: 20px; }
.vc-live-feed.minimized { max-height: 48px; }
.vc-live-feed.minimized > *:not(.vc-lf-header) { display: none !important; }

/* ── Header ── */
.vc-lf-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(120,80,240,.2);
  background: rgba(120,80,240,.09);
  flex-shrink: 0;
}
.vc-lf-eye { font-size: 14px; flex-shrink: 0; }
.vc-lf-header-mid {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.vc-lf-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(220,200,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .02em;
}
.vc-lf-title em { color: #c084fc; font-style: normal; }
.vc-lf-witness-count {
  font-size: 10px;
  color: rgba(180,140,255,.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.vc-lf-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: vc-lf-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes vc-lf-pulse {
  0%,100% { opacity:1; box-shadow: 0 0 6px #4ade80; }
  50%      { opacity:.5; box-shadow: 0 0 2px #4ade80; }
}
.vc-lf-minimize, .vc-lf-close {
  background: none; border: none;
  color: rgba(255,255,255,.3); cursor: pointer;
  font-size: 13px; padding: 2px 5px; line-height: 1;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.vc-lf-minimize:hover, .vc-lf-close:hover {
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
}

/* ── Stamp area ── */
.vc-lf-stamp-area {
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.18);
  flex-shrink: 0;
}
.vc-lf-stamp-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vc-lf-stamp-tabs::-webkit-scrollbar { display: none; }
.vc-lf-stamp-tab {
  background: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  color: rgba(200,180,255,.55);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
  flex-shrink: 0;
}
.vc-lf-stamp-tab:hover { background: rgba(120,80,240,.12); color: rgba(200,180,255,.8); }
.vc-lf-stamp-tab.active {
  background: rgba(120,80,240,.22);
  border-color: rgba(120,80,240,.5);
  color: #c084fc;
}
.vc-lf-gif-tab { color: rgba(100,220,160,.6) !important; }
.vc-lf-gif-tab.active { color: #4ade80 !important; border-color: rgba(74,222,128,.5) !important; background: rgba(74,222,128,.12) !important; }

.vc-lf-stamp-grid {
  display: none;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px 8px 7px;
}
.vc-lf-stamp-grid.active { display: flex; }
.vc-lf-stamp {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
  padding: 3px 5px;
  line-height: 1;
  transition: transform .1s, background .1s, border-color .1s;
  user-select: none;
}
.vc-lf-stamp:hover {
  background: rgba(120,80,240,.2);
  border-color: rgba(120,80,240,.4);
  transform: scale(1.2);
}
.vc-lf-stamp.bounced { animation: vc-stamp-bounce .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes vc-stamp-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5) rotate(-8deg); }
  60%  { transform: scale(.88) rotate(4deg); }
  100% { transform: scale(1); }
}

/* GIF panel */
.vc-lf-gif-panel { flex-direction: column; gap: 6px; max-height: 170px; }
.vc-lf-gif-panel.active { display: flex; }
.vc-lf-gif-search-row { padding: 0 2px 2px; }
.vc-lf-gif-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 6px;
  color: #e2f5ea;
  font-size: 11px;
  padding: 5px 9px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.vc-lf-gif-input:focus { border-color: rgba(74,222,128,.5); }
.vc-lf-gif-input::placeholder { color: rgba(255,255,255,.3); }
.vc-lf-gif-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  overflow-y: auto;
  max-height: 120px;
  padding-bottom: 4px;
}
.vc-lf-gif-results::-webkit-scrollbar { width: 3px; }
.vc-lf-gif-results::-webkit-scrollbar-thumb { background: rgba(74,222,128,.3); border-radius: 3px; }
.vc-lf-gif-hint {
  grid-column: 1/-1;
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,.25);
  padding: 10px 0 4px;
  font-style: italic;
}
.vc-lf-gif-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .12s, transform .1s;
}
.vc-lf-gif-thumb:hover { border-color: rgba(74,222,128,.5); transform: scale(1.04); }

/* ── Feed area ── */
.vc-lf-feed {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  scroll-behavior: smooth;
}
.vc-lf-feed::-webkit-scrollbar { width: 3px; }
.vc-lf-feed::-webkit-scrollbar-thumb { background: rgba(120,80,240,.3); border-radius: 3px; }
.vc-lf-empty {
  font-size: 11px; color: rgba(255,255,255,.28);
  text-align: center; padding: 20px 10px; font-style: italic;
}

/* ── Message rows ── */
.vc-lf-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.045);
  transition: opacity .3s, background .15s;
}
.vc-lf-row:hover { background: rgba(255,255,255,.045); }
.vc-lf-row--mine {
  background: rgba(120,80,240,.1);
  border-color: rgba(120,80,240,.22);
}
.vc-lf-row--stamp {
  background: rgba(255,255,255,.018);
  border-style: dashed;
}
.vc-lf-row--milestone {
  background: rgba(255,190,50,.07);
  border-color: rgba(255,190,50,.3);
  border-radius: 8px;
}
.vc-lf-row--spoiler .vc-lf-row-text { display: none; } /* handled via class */
.vc-lf-row--new { animation: vc-lf-row-pop .3s ease-out; }
@keyframes vc-lf-row-pop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.vc-lf-row-av { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.vc-lf-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vc-lf-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.vc-lf-row-name {
  font-size: 10px; font-weight: 700;
  color: rgba(180,140,255,.9); letter-spacing: .02em;
}
.vc-lf-row--mine .vc-lf-row-name { color: #c084fc; }
.vc-lf-row-time { font-size: 9px; color: rgba(255,255,255,.22); }
.vc-lf-reply-btn, .vc-lf-row-del {
  background: none; border: none;
  color: rgba(255,255,255,.2); cursor: pointer;
  font-size: 10px; padding: 1px 3px; border-radius: 3px;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
  line-height: 1;
}
.vc-lf-row:hover .vc-lf-reply-btn,
.vc-lf-row:hover .vc-lf-row-del { opacity: 1; }
.vc-lf-reply-btn:hover { color: #c084fc; background: rgba(120,80,240,.15); }
.vc-lf-row-del:hover { color: #ff7a7a; background: rgba(255,80,80,.12); }

/* Message content types */
.vc-lf-row-text {
  font-size: 12.5px; color: rgba(230,220,255,.88);
  line-height: 1.45; word-break: break-word;
}
.vc-lf-row-stamp-emoji { font-size: 22px; line-height: 1; }
.vc-lf-gif-msg {
  max-width: 200px; max-height: 150px;
  border-radius: 7px; display: block;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}

/* Milestone */
.vc-lf-milestone-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 8px;
  width: 100%; padding: 2px 0;
}
.vc-lf-milestone-text {
  font-size: 12px; font-weight: 700;
  color: rgba(255,210,80,.9); text-align: center;
  letter-spacing: .03em;
}

/* Spoiler */
.vc-lf-spoiler-text {
  font-size: 12.5px; line-height: 1.45; word-break: break-word;
  background: rgba(120,80,240,.35);
  border-radius: 4px; padding: 2px 6px;
  cursor: pointer; user-select: none;
  color: transparent; filter: blur(4px);
  transition: filter .25s, color .25s, background .25s;
}
.vc-lf-spoiler-text.revealed {
  color: rgba(230,220,255,.88);
  filter: none; background: rgba(120,80,240,.12);
}
.vc-lf-spoiler-text::before { content: '🙈 Spoiler — click to reveal'; color: rgba(200,160,255,.7); }
.vc-lf-spoiler-text.revealed::before { display: none; }

/* Reply quote */
.vc-lf-quote {
  display: flex; gap: 5px; align-items: baseline;
  padding: 3px 7px; border-left: 2px solid rgba(120,80,240,.5);
  background: rgba(120,80,240,.08); border-radius: 0 5px 5px 0;
  margin-bottom: 2px;
}
.vc-lf-quote-name { font-size: 9px; font-weight: 700; color: #c084fc; flex-shrink: 0; }
.vc-lf-quote-text { font-size: 10px; color: rgba(200,180,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Message reactions */
.vc-lf-msg-reacts {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 3px; min-height: 0;
}
.vc-lf-react-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; cursor: pointer;
  font-size: 11px; padding: 1px 6px;
  color: rgba(220,210,255,.7);
  transition: background .12s, border-color .12s;
  line-height: 1.3;
}
.vc-lf-react-pill:hover { background: rgba(120,80,240,.2); border-color: rgba(120,80,240,.4); }
.vc-lf-react-pill.mine { background: rgba(120,80,240,.22); border-color: rgba(120,80,240,.55); color: #c084fc; }
.vc-lf-react-add {
  background: none; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; cursor: pointer;
  font-size: 11px; padding: 1px 6px;
  color: rgba(255,255,255,.25);
  transition: background .12s, color .12s;
  line-height: 1.3;
}
.vc-lf-react-add:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }

/* Reaction picker popup */
.vc-lf-react-picker {
  background: #1a1030;
  border: 1px solid rgba(120,80,240,.45);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.7);
  display: flex; gap: 3px;
  padding: 6px 8px;
  z-index: 10100;
}
.vc-lf-react-opt {
  background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 3px 4px; border-radius: 5px;
  transition: background .1s, transform .1s;
  line-height: 1;
}
.vc-lf-react-opt:hover { background: rgba(120,80,240,.2); transform: scale(1.25); }

/* ── Typing indicator ── */
.vc-lf-typing {
  font-size: 10px; color: rgba(180,140,255,.5);
  padding: 0 12px 4px; min-height: 14px;
  font-style: italic; flex-shrink: 0;
}

/* ── Reply bar ── */
.vc-lf-reply-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(120,80,240,.1);
  border-top: 1px solid rgba(120,80,240,.2);
  flex-shrink: 0;
}
.vc-lf-reply-label { font-size: 10px; color: rgba(180,140,255,.6); flex-shrink: 0; }
.vc-lf-reply-name { font-size: 10px; font-weight: 700; color: #c084fc; flex-shrink: 0; }
.vc-lf-reply-preview {
  font-size: 10px; color: rgba(200,180,255,.5);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-lf-reply-cancel {
  background: none; border: none; color: rgba(255,255,255,.3);
  cursor: pointer; font-size: 11px; padding: 2px 4px;
  border-radius: 3px; flex-shrink: 0;
  transition: color .12s;
}
.vc-lf-reply-cancel:hover { color: rgba(255,255,255,.7); }

/* ── Compose bar ── */
.vc-lf-compose {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.22);
  flex-shrink: 0;
}
.vc-lf-milestone-btn, .vc-lf-spoiler-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px; cursor: pointer;
  font-size: 14px; padding: 5px 6px; line-height: 1;
  flex-shrink: 0;
  transition: background .12s, border-color .12s, transform .1s;
}
.vc-lf-milestone-btn:hover { background: rgba(255,190,50,.15); border-color: rgba(255,190,50,.3); }
.vc-lf-milestone-btn.active { background: rgba(255,190,50,.2); border-color: rgba(255,190,50,.5); }
.vc-lf-spoiler-btn:hover { background: rgba(120,80,240,.15); border-color: rgba(120,80,240,.3); }
.vc-lf-spoiler-btn.active { background: rgba(120,80,240,.25); border-color: rgba(120,80,240,.55); }

.vc-lf-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(120,80,240,.22);
  border-radius: 8px; color: #e2d8f0;
  font-size: 12px; padding: 7px 10px;
  outline: none; transition: border-color .15s;
}
.vc-lf-input:focus { border-color: rgba(160,100,240,.55); }
.vc-lf-input::placeholder { color: rgba(255,255,255,.28); }
.vc-lf-send {
  background: rgba(120,80,240,.25);
  border: 1px solid rgba(120,80,240,.45);
  border-radius: 7px; color: #c084fc;
  font-size: 14px; font-weight: 700;
  padding: 6px 10px; cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0; line-height: 1;
}
.vc-lf-send:hover { background: rgba(120,80,240,.4); border-color: rgba(160,100,240,.7); }

/* ── Witness prompt / record buttons ── */
.vc-wp-livefeed-btn {
  color: rgba(180,140,255,.8) !important;
  border-color: rgba(120,80,240,.3) !important;
}
.vc-wp-livefeed-btn:hover { background: rgba(120,80,240,.12) !important; }
.vc-wr-livefeed-btn {
  color: rgba(180,140,255,.8) !important;
  border-color: rgba(120,80,240,.3) !important;
}
.vc-wr-livefeed-btn:hover { background: rgba(120,80,240,.12) !important; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .vc-live-feed {
    width: calc(100vw - 16px);
    right: 8px;
    max-height: 65vh;
  }
}

/* ── Live Feed: Now Playing card button ─────────────────────────── */
.vc-np-livefeed-btn {
  margin-top: 6px;
  background: rgba(120,80,240,.15);
  border: 1px solid rgba(120,80,240,.35);
  border-radius: 6px;
  color: rgba(180,140,255,.9);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  width: 100%;
  letter-spacing: .02em;
}
.vc-np-livefeed-btn:hover {
  background: rgba(120,80,240,.3);
  border-color: rgba(160,100,240,.6);
  color: #c084fc;
}

/* ── Live Feed: Dashboard featured row button ───────────────────── */
.vc-dash-livefeed-btn {
  display: inline-block;
  margin-top: 4px;
  background: rgba(120,80,240,.12);
  border: 1px solid rgba(120,80,240,.3);
  border-radius: 5px;
  color: rgba(180,140,255,.85);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  letter-spacing: .02em;
}
.vc-dash-livefeed-btn:hover {
  background: rgba(120,80,240,.25);
  border-color: rgba(160,100,240,.55);
  color: #c084fc;
}

/* ── Live Feed: Active session notification banner ──────────────── */
.vc-livefeed-notif {
  position: fixed;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1030;
  border: 1px solid rgba(120,80,240,.55);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 0 1px rgba(120,80,240,.1);
  z-index: 10001;
  transition: top .38s cubic-bezier(.2,.8,.3,1);
  max-width: min(480px, 92vw);
  white-space: nowrap;
}
.vc-livefeed-notif.visible { top: 16px; }

.vc-lfn-eye { font-size: 16px; flex-shrink: 0; }
.vc-lfn-text {
  font-size: 12px;
  color: rgba(220,200,255,.85);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc-lfn-text strong { color: #c084fc; }
.vc-lfn-open {
  background: rgba(120,80,240,.25);
  border: 1px solid rgba(120,80,240,.5);
  border-radius: 6px;
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.vc-lfn-open:hover { background: rgba(120,80,240,.4); }
.vc-lfn-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.vc-lfn-dismiss:hover { color: rgba(255,255,255,.7); }

/* ── Now Playing: Witness + Chat action buttons ─────────────────── */
.vc-np-witness-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.vc-np-witness-btn,
.vc-np-chat-btn {
  flex: 1;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
  border: 1px solid;
  transition: background .15s, border-color .15s, transform .1s;
  letter-spacing: .02em;
  line-height: 1;
}
.vc-np-witness-btn {
  background: rgba(120,80,240,.18);
  border-color: rgba(120,80,240,.45);
  color: #c084fc;
}
.vc-np-witness-btn:hover {
  background: rgba(120,80,240,.32);
  border-color: rgba(160,100,255,.7);
  transform: translateY(-1px);
}
.vc-np-witness-btn.active {
  background: rgba(120,80,240,.35);
  border-color: #c084fc;
  color: #e0c0ff;
}
.vc-np-chat-btn {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  color: rgba(220,210,255,.7);
}
.vc-np-chat-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: #e2d8f0;
}

/* ── Live feed row: delete button ───────────────────────────────── */
.vc-lf-row-del {
  position: absolute;
  top: 5px; right: 5px;
  background: none;
  border: none;
  color: rgba(255,255,255,.2);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .15s, color .15s, background .15s;
  line-height: 1;
}
.vc-lf-row:hover .vc-lf-row-del { opacity: 1; }
.vc-lf-row-del:hover {
  color: #ff7a7a;
  background: rgba(255,80,80,.12);
}

/* ── Witness Record: Live feed history block ────────────────────── */
.vc-wr-feed-block {
  margin: 8px 0 4px;
}
.vc-wr-feed-toggle {
  background: rgba(120,80,240,.08);
  border: 1px solid rgba(120,80,240,.2);
  border-radius: 6px;
  color: rgba(180,140,255,.8);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s;
  letter-spacing: .02em;
}
.vc-wr-feed-toggle:hover {
  background: rgba(120,80,240,.16);
  color: #c084fc;
}
.vc-wr-feed-chevron {
  font-size: 9px;
  color: rgba(180,140,255,.5);
  transition: transform .2s;
}
.vc-wr-feed-history {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px 4px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(120,80,240,.12);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: rgba(0,0,0,.15);
}
.vc-wr-feed-history.open { display: flex; }
.vc-wr-feed-history::-webkit-scrollbar { width: 3px; }
.vc-wr-feed-history::-webkit-scrollbar-thumb { background: rgba(120,80,240,.3); border-radius: 3px; }

.vc-wr-feed-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 11px;
}
.vc-wr-feed-row:hover { background: rgba(255,255,255,.03); }
.vc-wr-feed-av { flex-shrink: 0; }
.vc-wr-feed-name { color: rgba(180,140,255,.85); font-weight: 600; flex-shrink: 0; }
.vc-wr-feed-text { color: rgba(220,210,255,.75); flex: 1; word-break: break-word; }
.vc-wr-feed-stamp { font-size: 16px; line-height: 1; }
.vc-wr-feed-time { color: rgba(255,255,255,.2); font-size: 9px; flex-shrink: 0; margin-left: auto; }

/* ── Live Feed History button (on witness record card) ───────────── */
.vc-wr-feed-history-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  background: rgba(120,80,240,.1);
  border: 1px solid rgba(120,80,240,.25);
  border-radius: 7px;
  color: rgba(180,140,255,.85);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  letter-spacing: .02em;
}
.vc-wr-feed-history-btn:hover {
  background: rgba(120,80,240,.22);
  border-color: rgba(160,100,255,.5);
  color: #c084fc;
}
.vc-wr-feed-history-btn:disabled {
  opacity: .5;
  cursor: wait;
}

/* ── Live Feed History Modal ─────────────────────────────────────── */
.vc-fh-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.vc-fh-modal.visible { opacity: 1; }

.vc-fh-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}

.vc-fh-panel {
  position: relative;
  background: #150e24;
  border: 1px solid rgba(120,80,240,.35);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(120,80,240,.1);
  width: min(600px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.vc-fh-modal.visible .vc-fh-panel { transform: translateY(0); }

.vc-fh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.vc-fh-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vc-fh-eye { font-size: 22px; }
.vc-fh-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2d8f5;
  letter-spacing: .01em;
}
.vc-fh-subtitle {
  font-size: 11px;
  color: rgba(180,140,255,.6);
  margin-top: 2px;
}
.vc-fh-close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 9px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.vc-fh-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.vc-fh-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}
.vc-fh-feed::-webkit-scrollbar { width: 4px; }
.vc-fh-feed::-webkit-scrollbar-track { background: transparent; }
.vc-fh-feed::-webkit-scrollbar-thumb { background: rgba(120,80,240,.3); border-radius: 4px; }

.vc-fh-empty {
  text-align: center;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  padding: 40px 0;
}

.vc-fh-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.vc-fh-row:hover { background: rgba(255,255,255,.055); }
.vc-fh-row--stamp {
  background: rgba(120,80,240,.06);
  border-color: rgba(120,80,240,.15);
}

.vc-fh-av { flex-shrink: 0; }
.vc-fh-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.vc-fh-name {
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
  flex-shrink: 0;
}
.vc-fh-text {
  font-size: 13px;
  color: rgba(225,215,255,.85);
  word-break: break-word;
  flex: 1;
  min-width: 100px;
}
.vc-fh-stamp { font-size: 20px; line-height: 1; }
.vc-fh-time {
  font-size: 10px;
  color: rgba(255,255,255,.22);
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .vc-fh-panel { max-height: 90vh; border-radius: 14px 14px 0 0; }
}

