/* ===== ساحة الدردشة — Fight King chat ===== */
@font-face{font-family:"FK Emoji";src:local("Apple Color Emoji"),local("Segoe UI Emoji"),local("Noto Color Emoji");unicode-range:U+231A-231B,U+23E9-23FA,U+2600-27BF,U+2B00-2BFF,U+1F000-1FAFF,U+FE0F,U+200D,U+20E3}

/* ---------- tokens: light (site default) ---------- */
.fc,.fc-lb{
  --fc-ink:var(--bg);--fc-card:var(--surface);--fc-line:var(--line);--fc-text:var(--text);--fc-muted:var(--muted);
  --fc-gold:var(--gold);--fc-gold-bg:var(--gold-bg);--fc-danger:var(--red);--fc-live:var(--green);
  --fc-bub:#fbf8ed;--fc-bub-line:rgba(80,70,30,.13);--fc-own:#ecdcae;--fc-own-line:rgba(176,122,16,.4);--fc-own-meta:#7b6a35;
  --fc-raise:#f7f2e2;--fc-raise-2:#ebe3c7;--fc-line-2:#b8ad80;--fc-faint:#7a7250;
  --fc-gold-hi:#c58b1b;--fc-on-gold:#0d0f08;--fc-gold-wash:rgba(176,122,16,.13);
  --fc-mention:#6b4700;--fc-mention-bg:rgba(176,122,16,.16);--fc-mention-me:rgba(176,122,16,.32);
  --fc-link:#1f5f99;--fc-spoil:#cdc4a0;--fc-spoil-h:#c3b994;
  --fc-king-a:#f6e8bb;--fc-king-b:#efe1b2;--fc-king-line:rgba(176,122,16,.62);--fc-mine-bg:#f4e7bf;
  --fc-scrim:rgba(40,34,15,.45);--fc-toast-bg:#1d1a10;--fc-toast-text:#f1ecd9;--fc-day-bg:rgba(241,236,217,.92);
  --fc-shadow:rgba(60,50,20,.28);--fc-glow:rgba(176,122,16,.09);--fc-hover:rgba(29,26,16,.05);
  --fc-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fc-n0:#ad472c;--fc-n1:#26745d;--fc-n2:#5944b0;--fc-n3:#a03b6f;--fc-n4:#2b5d99;--fc-n5:#706a12;--fc-n6:#a9561f;--fc-n7:#1c7480;
  --fc-a0:#e6d2bd;--fc-a1:#d1d9c5;--fc-a2:#d9d1d2;--fc-a3:#e4d0c8;--fc-a4:#d1d5cf;--fc-a5:#dcd7b9;--fc-a6:#e5d4bb;--fc-a7:#cfd9cb;
}
/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .fc,:root:not([data-theme="light"]) .fc-lb{
    --fc-bub:#1d2113;--fc-bub-line:rgba(236,230,204,.06);--fc-own:#332d12;--fc-own-line:rgba(224,168,46,.24);--fc-own-meta:#a5955c;
    --fc-raise:#1d2113;--fc-raise-2:#262b19;--fc-line-2:#3c4329;--fc-faint:#85826a;
    --fc-gold-hi:#f3c65b;--fc-on-gold:#1b1404;--fc-gold-wash:rgba(224,168,46,.12);
    --fc-mention:#f3c65b;--fc-mention-bg:rgba(224,168,46,.14);--fc-mention-me:rgba(224,168,46,.3);
    --fc-link:#8fc3e8;--fc-spoil:#3a3f2a;--fc-spoil-h:#444a31;
    --fc-king-a:#2b240e;--fc-king-b:#1c1a0d;--fc-king-line:rgba(224,168,46,.45);--fc-mine-bg:#2a2611;
    --fc-scrim:rgba(6,7,3,.62);--fc-toast-bg:#ece6cc;--fc-toast-text:#0d0f08;--fc-day-bg:rgba(23,26,14,.88);
    --fc-shadow:rgba(0,0,0,.7);--fc-glow:rgba(224,168,46,.06);--fc-hover:rgba(236,230,204,.04);
    --fc-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .88 0 0 0 0 .66 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --fc-n0:#e58266;--fc-n1:#7fbfa8;--fc-n2:#ab9cf0;--fc-n3:#e092b5;--fc-n4:#8fb6e8;--fc-n5:#cfc86e;--fc-n6:#eda57f;--fc-n7:#72c3cc;
    --fc-a0:#3e2c1c;--fc-a1:#293929;--fc-a2:#323237;--fc-a3:#3d302b;--fc-a4:#2d3736;--fc-a5:#393a1d;--fc-a6:#3f3321;--fc-a7:#273930;
  }
}
:root[data-theme="dark"] .fc,:root[data-theme="dark"] .fc-lb{
  --fc-bub:#1d2113;--fc-bub-line:rgba(236,230,204,.06);--fc-own:#332d12;--fc-own-line:rgba(224,168,46,.24);--fc-own-meta:#a5955c;
  --fc-raise:#1d2113;--fc-raise-2:#262b19;--fc-line-2:#3c4329;--fc-faint:#85826a;
  --fc-gold-hi:#f3c65b;--fc-on-gold:#1b1404;--fc-gold-wash:rgba(224,168,46,.12);
  --fc-mention:#f3c65b;--fc-mention-bg:rgba(224,168,46,.14);--fc-mention-me:rgba(224,168,46,.3);
  --fc-link:#8fc3e8;--fc-spoil:#3a3f2a;--fc-spoil-h:#444a31;
  --fc-king-a:#2b240e;--fc-king-b:#1c1a0d;--fc-king-line:rgba(224,168,46,.45);--fc-mine-bg:#2a2611;
  --fc-scrim:rgba(6,7,3,.62);--fc-toast-bg:#ece6cc;--fc-toast-text:#0d0f08;--fc-day-bg:rgba(23,26,14,.88);
  --fc-shadow:rgba(0,0,0,.7);--fc-glow:rgba(224,168,46,.06);--fc-hover:rgba(236,230,204,.04);
  --fc-noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .88 0 0 0 0 .66 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fc-n0:#e58266;--fc-n1:#7fbfa8;--fc-n2:#ab9cf0;--fc-n3:#e092b5;--fc-n4:#8fb6e8;--fc-n5:#cfc86e;--fc-n6:#eda57f;--fc-n7:#72c3cc;
  --fc-a0:#3e2c1c;--fc-a1:#293929;--fc-a2:#323237;--fc-a3:#3d302b;--fc-a4:#2d3736;--fc-a5:#393a1d;--fc-a6:#3f3321;--fc-a7:#273930;
}

/* ---------- neutralise site-wide element styles inside the chat ---------- */
:where(.fc,.fc-lb) button{margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;box-shadow:none;cursor:pointer;-webkit-appearance:none;appearance:none}
:where(.fc,.fc-lb) button:disabled{cursor:default}
:where(.fc) h3,:where(.fc) p,:where(.fc) ul,:where(.fc) figure{margin:0}
.fc [hidden],.fc-lb[hidden],.fc-lb [hidden]{display:none!important}
.fc :focus-visible,.fc-lb :focus-visible{outline:2px solid var(--fc-gold);outline-offset:2px}
.fc svg.fc-i,.fc-lb svg.fc-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
html[dir="rtl"] .fc .fc-flip{transform:scaleX(-1)}
.fc bdi,.fc-lb bdi{unicode-bidi:isolate}
.panel2.fc-panel{padding:0;background:none;border:0;border-radius:0}

/* ---------- frame ---------- */
.fc{--av:32px;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;height:640px;height:clamp(460px,calc(100vh - 170px),720px);height:clamp(460px,calc(100dvh - 170px),720px);background:var(--fc-card);color:var(--fc-text);border:1px solid var(--fc-line);border-radius:20px;overflow:hidden;font-family:"Cairo","FK Emoji","Segoe UI",Tahoma,sans-serif;font-size:15.5px;line-height:1.55;text-align:start;box-shadow:0 30px 70px -45px var(--fc-shadow);-webkit-tap-highlight-color:transparent}
.fc.fc-full{position:fixed;inset:0;z-index:1000;height:100%;max-height:none;border:0;border-radius:0}
html.fc-locked,html.fc-locked body{overflow:hidden}

/* ---------- header ---------- */
.fc .fc-head{flex:none;display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--fc-line)}
.fc.fc-full .fc-head{padding-top:calc(11px + env(safe-area-inset-top,0px))}
.fc .fc-head-main{flex:1;min-width:0;display:flex;align-items:center;gap:11px}
.fc .fc-mark{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--fc-gold-wash);color:var(--fc-gold);border:1px solid var(--fc-gold-wash)}
.fc .fc-mark svg{width:22px;height:22px}
.fc .fc-head-text{min-width:0}
.fc .fc-title{margin:0;font-family:"Amiri","Traditional Arabic",serif;font-size:1.3rem;font-weight:700;line-height:1.2;color:var(--fc-text)}
html[lang="en"] .fc .fc-title{font-size:1.2rem}
.fc .fc-sub{display:inline-flex;align-items:center;gap:7px;margin-top:2px;color:var(--fc-muted);font-size:12.5px;line-height:1.3;white-space:nowrap;max-width:100%;overflow:hidden}
.fc .fc-sub:disabled{cursor:default}
.fc .fc-sub:not(:disabled):hover{color:var(--fc-text)}
.fc .fc-sub.fc-typing-on{color:var(--fc-gold)}
.fc .fc-sub.fc-typing-on .fc-stack,.fc .fc-sub.fc-typing-on .fc-live{display:none}
.fc .fc-sub-text{overflow:hidden;text-overflow:ellipsis}
.fc .fc-live{flex:none;width:7px;height:7px;border-radius:50%;background:var(--fc-live);animation:fcLive 2.4s ease-out infinite}
@keyframes fcLive{0%{box-shadow:0 0 0 0 rgba(116,208,106,.45)}70%,100%{box-shadow:0 0 0 7px rgba(116,208,106,0)}}
.fc .fc-stack{display:inline-flex;align-items:center}
.fc .fc-stack .fc-av{--s:20px;border:2px solid var(--fc-card);margin-inline-start:-6px}
.fc .fc-stack .fc-av:first-child{margin-inline-start:0}
.fc .fc-dots{display:inline-flex;gap:3px;margin-inline-end:5px}
.fc .fc-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:fcDot 1.2s infinite ease-in-out}
.fc .fc-dots i:nth-child(2){animation-delay:.15s}
.fc .fc-dots i:nth-child(3){animation-delay:.3s}
@keyframes fcDot{0%,60%,100%{opacity:.25;transform:none}30%{opacity:1;transform:translateY(-2px)}}
.fc .fc-actions{flex:none;display:flex;gap:6px}
.fc .fc-hbtn,.fc-lb .fc-hbtn{width:38px;height:38px;border-radius:12px;border:1px solid var(--fc-line);color:var(--fc-muted);display:grid;place-items:center;transition:color .15s,border-color .15s,background-color .15s}
.fc .fc-hbtn:hover,.fc-lb .fc-hbtn:hover{color:var(--fc-text);border-color:var(--fc-line-2);background:var(--fc-hover)}
@media (max-width:400px){.fc .fc-hbtn{width:34px;height:34px;border-radius:11px}.fc .fc-mark{display:none}.fc .fc-head{gap:8px;padding-inline:12px}}

/* ---------- pinned decree ---------- */
.fc .fc-pinned{flex:none;display:flex;align-items:center;gap:11px;width:100%;padding:9px 14px;border-bottom:1px solid var(--fc-line);background:linear-gradient(to left,var(--fc-gold-wash),transparent 80%);text-align:start}
html[dir="ltr"] .fc .fc-pinned{background:linear-gradient(to right,var(--fc-gold-wash),transparent 80%)}
.fc .fc-pinned .fc-seal{--s:30px}
.fc .fc-pin-body{flex:1;min-width:0;display:flex;flex-direction:column}
.fc .fc-pin-label{font-size:11.5px;font-weight:700;color:var(--fc-gold);line-height:1.35}
.fc .fc-pin-text{font-family:"Amiri","FK Emoji",serif;font-size:15.5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc .fc-pin-ico{color:var(--fc-faint)}

/* ---------- avatars & seal ---------- */
.fc .fc-av{--s:var(--av);width:var(--s);height:var(--s);border-radius:50%;flex:none;display:inline-grid;place-items:center;background:var(--cb,var(--fc-raise-2));color:var(--c,var(--fc-text));font-weight:800;font-size:calc(var(--s)*.44);line-height:1;-webkit-user-select:none;user-select:none}
.fc .fc-av.fc-av-e{font-size:calc(var(--s)*.54)}
.fc .fc-seal,.fc-lb .fc-seal{--s:var(--av);width:var(--s);height:var(--s);flex:none;display:inline-grid;place-items:center;filter:drop-shadow(0 2px 6px rgba(224,168,46,.28))}
.fc .fc-seal svg,.fc-lb .fc-seal svg{width:100%;height:100%}

/* ---------- log ---------- */
.fc .fc-logwrap{position:relative;flex:1;min-height:0;display:flex}
.fc .fc-log{flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 0 16px;background:radial-gradient(130% 55% at 50% 0%,var(--fc-glow),transparent 60%),var(--fc-noise),var(--fc-ink);scrollbar-width:thin;scrollbar-color:var(--fc-line-2) transparent}
.fc .fc-log:focus{outline:none}
.fc .fc-welcome{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 22px 12px;text-align:center}
.fc .fc-welcome .fc-seal{--s:60px;margin-bottom:6px}
.fc .fc-welcome h3{margin:0;font-family:"Amiri","Traditional Arabic",serif;font-size:1.45rem;font-weight:700;line-height:1.3;color:var(--fc-text)}
.fc .fc-welcome p{margin:0;max-width:36ch;color:var(--fc-muted);font-size:14px}
.fc .fc-link-btn{padding:2px 4px;color:var(--fc-gold);font-size:13.5px;font-weight:700;text-decoration:underline;text-decoration-color:var(--fc-gold-wash);text-underline-offset:4px}
.fc .fc-empty{margin:18px 22px 0;text-align:center;color:var(--fc-faint);font-size:13.5px}
.fc .fc-fail{display:flex;flex-direction:column;align-items:center;gap:10px;margin:26px 22px;text-align:center;color:var(--fc-muted);font-size:14px}
.fc .fc-day-sep{position:sticky;top:6px;z-index:4;display:flex;justify-content:center;padding:12px 0 2px;pointer-events:none}
.fc .fc-day-sep span{pointer-events:auto;padding:3px 12px;border-radius:999px;font-size:12px;font-weight:700;color:var(--fc-muted);background:var(--fc-day-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--fc-line);transition:opacity .35s}
.fc .fc-log:not(.fc-scrolling) .fc-day-sep.fc-stuck span{opacity:0;pointer-events:none}

/* ---------- messages: bubbles (default) ---------- */
.fc .fc-msg{position:relative;display:flex;align-items:flex-start;gap:8px;padding:2px 12px}
.fc .fc-msg.fc-first{margin-top:10px}
.fc .fc-msg.fc-own{justify-content:flex-end}
.fc .fc-msg:focus-visible{outline-offset:-2px;border-radius:12px}
.fc .fc-avs{flex:none;width:var(--av);display:flex;justify-content:center}
.fc.fc-bubbles .fc-msg.fc-own .fc-avs{display:none}
.fc .fc-body{min-width:0;max-width:min(80%,540px);display:flex;flex-direction:column;align-items:flex-start}
.fc .fc-msg.fc-own .fc-body{align-items:flex-end}
.fc .fc-bubble{position:relative;max-width:100%;padding:6px 12px 7px;background:var(--fc-bub);border:1px solid var(--fc-bub-line);border-radius:18px;border-start-start-radius:6px}
.fc .fc-msg.fc-own .fc-bubble{background:var(--fc-own);border-color:var(--fc-own-line);border-start-start-radius:18px;border-start-end-radius:6px}
.fc .fc-mh{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:1px}
.fc .fc-name{font-size:13.5px;font-weight:800;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc .fc-badge{flex:none;display:inline-flex;align-items:center;gap:3px;padding:1px 7px 1px 6px;border-radius:999px;background:var(--fc-gold-bg);color:var(--fc-on-gold);font-size:10.5px;font-weight:800;line-height:1.5}
.fc .fc-badge svg{width:11px;height:11px}
.fc .fc-htime{display:none;font-size:11.5px;color:var(--fc-faint);white-space:nowrap}
.fc.fc-bubbles .fc-msg.fc-own .fc-mh{display:none}
.fc .fc-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15.5px;line-height:1.6}
.fc.fc-bubbles .fc-text::after{content:"";display:inline-block;width:50px;height:1px}
html[lang="en"] .fc.fc-bubbles .fc-text::after{width:58px}
.fc .fc-meta{position:absolute;bottom:5px;inset-inline-end:11px;font-size:11px;line-height:1;color:var(--fc-faint);white-space:nowrap}
.fc .fc-msg.fc-own .fc-meta{color:var(--fc-own-meta)}
.fc .fc-mention{padding:0 3px;border-radius:5px;background:var(--fc-mention-bg);color:var(--fc-mention);font-weight:700}
.fc .fc-mention.fc-me-m{background:var(--fc-mention-me)}
.fc .fc-text a{color:var(--fc-link);text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px;direction:ltr;unicode-bidi:isolate}
.fc .fc-spoiler{padding:0 3px;border-radius:5px;background:var(--fc-spoil);color:transparent;cursor:pointer;transition:background-color .2s,color .2s}
.fc .fc-spoiler *{visibility:hidden}
.fc .fc-spoiler:hover{background:var(--fc-spoil-h)}
.fc .fc-spoiler.fc-revealed{background:var(--fc-hover);color:inherit;cursor:text}
.fc .fc-spoiler.fc-revealed *{visibility:visible}
.fc .fc-quote{display:block;width:100%;max-width:300px;margin:3px 0 5px;padding:4px 10px 5px;border-inline-start:3px solid var(--qc,var(--fc-gold));border-radius:8px;background:var(--fc-hover);color:var(--fc-muted);text-align:start;font-size:13px;line-height:1.45}
.fc button.fc-quote:hover{background:var(--fc-raise-2)}
.fc .fc-qn{display:block;color:var(--qc,var(--fc-gold));font-size:12.5px;font-weight:800}
.fc .fc-qt{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc .fc-quote.fc-gone{font-style:italic}
.fc .fc-media{position:relative;width:280px;max-width:100%;margin:3px -8px 6px;border-radius:13px;overflow:hidden;background:var(--fc-raise-2)}
.fc .fc-media img{display:block;width:100%;height:auto;aspect-ratio:auto 4/3;max-height:340px;object-fit:cover;cursor:zoom-in}
.fc .fc-gif{position:absolute;top:8px;inset-inline-start:8px;padding:3px 6px;border-radius:6px;background:rgba(0,0,0,.62);color:#fff;font:800 10.5px/1 system-ui,sans-serif;letter-spacing:.04em}
.fc .fc-msg.fc-imgonly .fc-bubble{padding:3px}
.fc .fc-msg.fc-imgonly .fc-media{margin:0;border-radius:15px}
.fc .fc-msg.fc-imgonly .fc-mh{padding:3px 9px 4px}
.fc .fc-msg.fc-imgonly .fc-meta{bottom:9px;inset-inline-end:10px;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff}
.fc .fc-msg.fc-jumbo .fc-bubble{padding:0 2px;background:none;border-color:transparent}
.fc .fc-msg.fc-jumbo .fc-text{font-size:40px;line-height:1.2}
.fc.fc-bubbles .fc-msg.fc-jumbo .fc-text::after{display:none}
.fc .fc-msg.fc-jumbo .fc-meta{position:static;display:block;margin-top:2px;text-align:end}
.fc .fc-msg.fc-king .fc-bubble{background:linear-gradient(160deg,var(--fc-king-a),var(--fc-king-b) 70%);border-color:var(--fc-king-line)}
.fc .fc-msg.fc-king .fc-name{color:var(--fc-gold)}
.fc .fc-msg.fc-king .fc-text{font-family:"Amiri","FK Emoji",serif;font-size:17.5px;line-height:1.75}
.fc.fc-bubbles .fc-msg.fc-mentions-me .fc-bubble{background:var(--fc-mine-bg);border-color:var(--fc-king-line)}
.fc .fc-msg.fc-sending .fc-meta{opacity:.5}

/* reactions */
.fc .fc-rxs{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.fc .fc-msg.fc-own .fc-rxs{justify-content:flex-end}
.fc .fc-rx,.fc .fc-rx-add{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:999px;border:1px solid var(--fc-line);background:var(--fc-bub);color:var(--fc-muted);font-size:13px;font-weight:700;line-height:1;transition:transform .12s,border-color .15s,background-color .15s}
.fc .fc-rx-e{font-size:15px}
.fc .fc-rx[aria-pressed="true"]{border-color:var(--fc-king-line);background:var(--fc-gold-wash);color:var(--fc-gold)}
.fc .fc-rx:hover,.fc .fc-rx-add:hover{border-color:var(--fc-line-2)}
.fc .fc-rx:active{transform:scale(.93)}
.fc .fc-rx-add{display:none;padding:0 7px;color:var(--fc-faint)}
.fc .fc-rx-add svg{width:16px;height:16px}
.fc .fc-rx.fc-pop{animation:fcPop .36s cubic-bezier(.3,1.6,.5,1)}
@keyframes fcPop{from{transform:scale(.55)}to{transform:scale(1)}}

/* hover toolbar (mouse) */
.fc .fc-tools{position:absolute;top:-14px;inset-inline-end:14px;z-index:5;display:none;gap:2px;padding:3px;border-radius:11px;background:var(--fc-raise-2);border:1px solid var(--fc-line-2);box-shadow:0 10px 24px -8px var(--fc-shadow)}
.fc .fc-tools button{width:32px;height:30px;border-radius:8px;color:var(--fc-muted);display:grid;place-items:center}
.fc .fc-tools button:hover{background:var(--fc-hover);color:var(--fc-text)}
.fc .fc-tools svg{width:18px;height:18px}
@media (hover:hover) and (pointer:fine){
  .fc .fc-msg:hover .fc-tools,.fc .fc-msg:focus-within .fc-tools{display:flex}
  .fc .fc-msg:hover .fc-rx-add,.fc .fc-msg:focus-within .fc-rx-add{display:inline-flex}
}
@media (pointer:coarse){.fc .fc-bubble{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
.fc .fc-msg.fc-enter{animation:fcEnter .22s ease-out}
@keyframes fcEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.fc .fc-msg.fc-leaving{opacity:0;transform:scale(.97);transition:opacity .18s,transform .18s}
.fc .fc-msg.fc-flash .fc-bubble{animation:fcFlash 1.4s ease-out}
@keyframes fcFlash{0%,35%{box-shadow:0 0 0 3px var(--fc-king-line)}100%{box-shadow:0 0 0 3px transparent}}

/* ---------- compact mode ---------- */
.fc.fc-compact{--av:38px}
.fc.fc-compact .fc-msg{gap:12px;padding:3px 16px}
.fc.fc-compact .fc-msg.fc-first{margin-top:12px;padding-top:5px}
.fc.fc-compact .fc-msg.fc-own{justify-content:flex-start}
.fc.fc-compact .fc-msg:hover{background:var(--fc-hover)}
.fc.fc-compact .fc-body,.fc.fc-compact .fc-msg.fc-own .fc-body{flex:1;max-width:none;align-items:stretch}
.fc.fc-compact .fc-msg .fc-bubble{padding:0;background:none!important;border:0;border-radius:0}
.fc.fc-compact .fc-msg.fc-own .fc-mh{display:flex}
.fc.fc-compact .fc-mh{margin-bottom:0}
.fc.fc-compact .fc-name{font-size:14.5px}
.fc.fc-compact .fc-htime{display:inline}
.fc.fc-compact .fc-msg .fc-meta{display:none}
.fc.fc-compact .fc-msg.fc-own .fc-rxs{justify-content:flex-start}
.fc.fc-compact .fc-media,.fc.fc-compact .fc-msg.fc-imgonly .fc-media{margin:4px 0 2px;border-radius:12px}
.fc.fc-compact .fc-msg.fc-imgonly .fc-mh{padding:0}
.fc.fc-compact .fc-msg:not(.fc-first) .fc-avs{align-self:center}
.fc.fc-compact .fc-msg:not(.fc-first) .fc-avs::before{content:attr(data-time);opacity:0;font-size:10.5px;color:var(--fc-faint);white-space:nowrap}
.fc.fc-compact .fc-msg:not(.fc-first):hover .fc-avs::before{opacity:1}
.fc.fc-compact .fc-msg.fc-mentions-me{background:var(--fc-gold-wash);box-shadow:inset -3px 0 0 var(--fc-gold)}
html[dir="ltr"] .fc.fc-compact .fc-msg.fc-mentions-me{box-shadow:inset 3px 0 0 var(--fc-gold)}
.fc.fc-compact .fc-msg.fc-flash{animation:fcFlashRow 1.4s ease-out}
.fc.fc-compact .fc-msg.fc-flash .fc-bubble{animation:none}
@keyframes fcFlashRow{0%,35%{background:var(--fc-gold-wash)}100%{background:transparent}}

/* ---------- skeleton ---------- */
.fc .fc-skel{display:flex;flex-direction:column;gap:20px;padding:22px 14px}
.fc .fc-sk-row{display:flex;gap:10px;align-items:flex-start}
.fc .fc-sk-row.fc-own{justify-content:flex-end}
.fc .fc-sk-lines{display:flex;flex-direction:column;gap:8px}
.fc .fc-sk-av{width:32px;height:32px;border-radius:50%}
.fc .fc-sk-line{height:12px;border-radius:6px}
.fc .fc-sk-av,.fc .fc-sk-line{background:linear-gradient(90deg,var(--fc-raise-2) 25%,var(--fc-bub) 50%,var(--fc-raise-2) 75%);background-size:200% 100%;animation:fcShimmer 1.2s linear infinite}
@keyframes fcShimmer{from{background-position:200% 0}to{background-position:-200% 0}}

/* ---------- jump & toast ---------- */
.fc .fc-jump{position:absolute;bottom:14px;inset-inline-end:14px;z-index:6;width:44px;height:44px;border-radius:50%;border:1px solid var(--fc-line-2);background:var(--fc-raise-2);color:var(--fc-text);display:grid;place-items:center;box-shadow:0 10px 24px -8px var(--fc-shadow);opacity:0;transform:translateY(8px) scale(.9);pointer-events:none;transition:opacity .18s,transform .18s}
.fc .fc-jump.fc-show{opacity:1;transform:none;pointer-events:auto}
.fc .fc-jump-n{position:absolute;top:-6px;inset-inline-start:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--fc-gold-bg);color:var(--fc-on-gold);font-size:11.5px;font-weight:800;display:grid;place-items:center}
.fc .fc-toast{position:absolute;bottom:16px;left:50%;z-index:40;max-width:calc(100% - 32px);padding:9px 16px;border-radius:999px;background:var(--fc-toast-bg);color:var(--fc-toast-text);font-size:13.5px;font-weight:800;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 12px 30px -10px var(--fc-shadow);opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .2s,transform .2s}
.fc .fc-toast.fc-show{opacity:1;transform:translate(-50%,0)}

/* ---------- composer ---------- */
.fc .fc-composer{position:relative;flex:none;padding:8px 12px 12px;border-top:1px solid var(--fc-line);background:var(--fc-card)}
.fc.fc-full .fc-composer{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.fc.fc-full.fc-ep-open .fc-composer{padding-bottom:12px}
.fc .fc-cmeta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.fc .fc-me{display:inline-flex;align-items:center;gap:7px;min-width:0;height:28px;padding-inline:4px 10px;border-radius:999px;border:1px solid var(--fc-line);color:var(--fc-muted);font-size:12.5px;font-weight:700}
.fc .fc-me .fc-av{--s:20px}
.fc .fc-me span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc .fc-me svg{width:14px;height:14px;color:var(--fc-faint)}
.fc .fc-me:hover{color:var(--fc-text);border-color:var(--fc-line-2)}
.fc .fc-me.fc-need{border-color:var(--fc-king-line);color:var(--fc-gold)}
.fc .fc-counter{font-size:12px;color:var(--fc-faint);font-variant-numeric:tabular-nums}
.fc .fc-counter.fc-warn{color:var(--fc-danger)}
.fc .fc-bar{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:7px;padding-inline-start:10px;border-radius:12px;background:var(--fc-bub);border:1px solid var(--fc-line)}
.fc .fc-reply{border-inline-start:3px solid var(--qc,var(--fc-gold))}
.fc .fc-bar-ico{display:grid;color:var(--qc,var(--fc-gold))}
.fc .fc-bar-body{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35;text-align:start}
.fc .fc-bar-body b{font-size:12.5px;color:var(--qc,var(--fc-text))}
.fc .fc-bar-body span{font-size:13px;color:var(--fc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc .fc-attach-bar img{flex:none;width:46px;height:46px;border-radius:9px;object-fit:cover}
.fc .fc-bar-x{flex:none;width:32px;height:32px;border-radius:9px;color:var(--fc-faint);display:grid;place-items:center}
.fc .fc-bar-x:hover{background:var(--fc-hover);color:var(--fc-text)}
.fc .fc-row{display:flex;align-items:flex-end;gap:8px}
.fc .fc-cbtn{flex:none;width:44px;height:46px;border-radius:14px;border:1px solid var(--fc-line);background:var(--fc-ink);color:var(--fc-muted);display:grid;place-items:center;transition:color .15s,border-color .15s}
.fc .fc-cbtn:hover{color:var(--fc-text);border-color:var(--fc-line-2)}
.fc .fc-field{flex:1;min-width:0;display:flex;align-items:flex-end;border-radius:14px;border:1px solid var(--fc-line);background:var(--fc-ink);transition:border-color .15s}
.fc .fc-field:focus-within{border-color:var(--fc-king-line)}
.fc .fc-input{flex:1;min-width:0;display:block;box-sizing:border-box;height:44px;min-height:0;max-height:140px;margin:0;padding:11px 12px;border:0;border-radius:0;outline:0;resize:none;background:none;color:var(--fc-text);font-family:inherit;font-size:16px;font-weight:400;line-height:1.45;overflow-y:auto;box-shadow:none}
.fc .fc-input::placeholder{color:var(--fc-faint)}
.fc .fc-emoji{flex:none;width:42px;height:44px;color:var(--fc-muted);display:grid;place-items:center}
.fc .fc-emoji:hover,.fc .fc-emoji[aria-expanded="true"]{color:var(--fc-gold)}
.fc .fc-send{flex:none;width:50px;height:46px;border-radius:14px;background:var(--fc-gold-bg);color:var(--fc-on-gold);display:grid;place-items:center;transition:background-color .15s,transform .1s,opacity .15s}
.fc .fc-send svg{width:21px;height:21px}
.fc .fc-send:hover:not(:disabled){background:var(--fc-gold-hi)}
.fc .fc-send:active:not(:disabled){transform:scale(.94)}
.fc .fc-send:disabled{background:var(--fc-raise-2);color:var(--fc-faint)}
.fc .fc-send.fc-busy{opacity:.7;animation:fcBusy 1s ease-in-out infinite}
@keyframes fcBusy{50%{opacity:.4}}
.fc .fc-mpop{position:absolute;bottom:calc(100% + 6px);inset-inline:12px;z-index:8;padding:5px;border-radius:14px;background:var(--fc-raise);border:1px solid var(--fc-line-2);box-shadow:0 -12px 30px -14px var(--fc-shadow)}
.fc .fc-mp-item{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;border-radius:10px;text-align:start;font-size:14px;font-weight:700}
.fc .fc-mp-item .fc-av,.fc .fc-mp-item .fc-seal{--s:26px}
.fc .fc-mp-item[aria-selected="true"],.fc .fc-mp-item:hover{background:var(--fc-raise-2)}
.fc .fc-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- emoji panel ---------- */
.fc .fc-emojis{flex:none;height:250px;display:flex;flex-direction:column;border-top:1px solid var(--fc-line);background:var(--fc-card)}
.fc.fc-full .fc-emojis{height:calc(250px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
.fc .fc-ep-tabs{display:flex;align-items:center;gap:2px;padding:6px 8px;border-bottom:1px solid var(--fc-line)}
.fc .fc-ep-tab{width:38px;height:34px;border-radius:10px;font-size:19px;line-height:1;opacity:.55;display:grid;place-items:center}
.fc .fc-ep-tab[aria-selected="true"]{background:var(--fc-raise-2);opacity:1}
.fc .fc-ep-spoil{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--fc-line);color:var(--fc-muted);font-size:12.5px;font-weight:700;white-space:nowrap}
.fc .fc-ep-spoil svg{width:16px;height:16px}
.fc .fc-ep-spoil:hover{color:var(--fc-text);border-color:var(--fc-line-2)}
.fc .fc-ep-grid,.fc .fc-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));align-content:start;gap:2px}
.fc .fc-ep-grid{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:6px 8px 10px}
.fc .fc-ep-grid button,.fc .fc-pick button{height:44px;border-radius:10px;font-size:25px;line-height:1;display:grid;place-items:center;transition:transform .1s}
.fc .fc-ep-grid button:hover,.fc .fc-pick button:hover{background:var(--fc-hover)}
.fc .fc-ep-grid button:active,.fc .fc-pick button:active{transform:scale(.86)}
.fc .fc-pick{max-height:310px;overflow-y:auto;margin-top:8px}
.fc .fc-pick button.fc-on{background:var(--fc-gold-wash)}

/* ---------- sheets ---------- */
.fc .fc-scrim{position:absolute;inset:0;z-index:30;background:var(--fc-scrim);opacity:0;transition:opacity .2s}
.fc .fc-scrim.fc-show{opacity:1}
.fc .fc-sheet{position:absolute;bottom:0;inset-inline:0;z-index:31;width:100%;max-width:540px;max-height:86%;margin-inline:auto;overflow-y:auto;overscroll-behavior:contain;padding:6px 16px 16px;border-radius:22px 22px 0 0;background:var(--fc-raise);border:1px solid var(--fc-line-2);border-bottom:0;box-shadow:0 -20px 50px -20px var(--fc-shadow);transform:translateY(102%);transition:transform .26s cubic-bezier(.2,.85,.25,1)}
.fc .fc-sheet:focus{outline:none}
.fc.fc-full .fc-sheet{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.fc .fc-sheet.fc-show{transform:none}
.fc .fc-grab{width:40px;height:4px;margin:4px auto 12px;border-radius:2px;background:var(--fc-line-2)}
.fc .fc-sh-title{margin:0 0 4px;font-family:inherit;font-size:17px;font-weight:800;line-height:1.4;color:var(--fc-text)}
.fc .fc-sh-body{margin:0 0 14px;color:var(--fc-muted);font-size:14.5px}
.fc .fc-sh-msg{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:10px 12px;border-radius:14px;background:var(--fc-card);border:1px solid var(--fc-line)}
.fc .fc-sh-msg .fc-av,.fc .fc-sh-msg .fc-seal{--s:30px}
.fc .fc-sh-msg b{display:block;font-size:13px}
.fc .fc-sh-msg p{margin:2px 0 0;color:var(--fc-muted);font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fc .fc-qr-row{display:flex;justify-content:space-between;gap:2px;margin-bottom:10px;padding:5px;border-radius:999px;background:var(--fc-card);border:1px solid var(--fc-line)}
.fc .fc-qr{flex:1 1 0;min-width:0;max-width:48px;aspect-ratio:1;border-radius:50%;font-size:23px;line-height:1;display:grid;place-items:center;transition:transform .12s,background-color .15s}
.fc .fc-qr:hover{background:var(--fc-hover)}
.fc .fc-qr:active{transform:scale(.86)}
.fc .fc-qr.fc-on{background:var(--fc-gold-wash);box-shadow:inset 0 0 0 1.5px var(--fc-king-line)}
.fc .fc-qr.fc-qr-more{color:var(--fc-muted)}
.fc .fc-acts{display:flex;flex-direction:column;overflow:hidden;border-radius:14px;border:1px solid var(--fc-line);background:var(--fc-card)}
.fc .fc-act{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;color:var(--fc-text);text-align:start;font-size:15px;font-weight:700}
.fc .fc-act + .fc-act{border-top:1px solid var(--fc-line)}
.fc button.fc-act:hover{background:var(--fc-hover)}
.fc .fc-act svg{color:var(--fc-muted)}
.fc .fc-act.fc-danger,.fc .fc-act.fc-danger svg{color:var(--fc-danger)}
.fc .fc-act.fc-done{color:var(--fc-faint);font-weight:500;cursor:default}
.fc .fc-btns{display:flex;gap:8px;margin-top:6px}
.fc .fc-btn{flex:1;height:46px;border-radius:13px;border:1px solid var(--fc-line-2);color:var(--fc-text);font-size:15px;font-weight:800;display:grid;place-items:center}
.fc .fc-btn:hover{border-color:var(--fc-faint)}
.fc .fc-btn.fc-primary{background:var(--fc-gold-bg);border-color:var(--fc-gold-bg);color:var(--fc-on-gold)}
.fc .fc-btn.fc-primary:hover{background:var(--fc-gold-hi)}
.fc .fc-btn.fc-btn-danger{background:var(--fc-danger);border-color:var(--fc-danger);color:#fff}
.fc .fc-label{display:block;margin:14px 0 7px;color:var(--fc-muted);font-size:13px;font-weight:700}
.fc .fc-txt{display:block;width:100%;box-sizing:border-box;height:46px;margin:0;padding:0 12px;border-radius:12px;border:1px solid var(--fc-line-2);background:var(--fc-ink);color:var(--fc-text);font-family:inherit;font-size:16px;font-weight:500;line-height:1.3}
.fc .fc-txt:focus{outline:none;border-color:var(--fc-king-line)}
.fc .fc-err{min-height:1.2em;margin:6px 0 0;color:var(--fc-danger);font-size:13px}
.fc .fc-pf{display:flex;align-items:center;gap:12px;padding:8px 0 2px}
.fc .fc-pf .fc-av{--s:52px}
.fc .fc-pf b{font-size:17px}
.fc .fc-opts{display:flex;flex-wrap:wrap;gap:8px}
.fc .fc-opts.fc-colors{gap:7px}
.fc .fc-opt{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--fc-line-2);background:var(--fc-card);color:var(--fc-text);font-size:21px;font-weight:800;display:grid;place-items:center}
.fc .fc-opt[aria-checked="true"]{border-color:var(--fc-gold);box-shadow:0 0 0 3px var(--fc-gold-wash)}
.fc .fc-sw{width:34px;height:34px;border-radius:50%;border:2px solid transparent;background:var(--c)}
.fc .fc-sw[aria-checked="true"]{border-color:var(--fc-text);box-shadow:0 0 0 3px var(--fc-gold-wash)}
.fc .fc-rules{list-style:none;margin:8px 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.fc .fc-rules li{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:12px;background:var(--fc-card);border:1px solid var(--fc-line);font-size:14.5px;line-height:1.55}
.fc .fc-r-ico{font-size:18px;line-height:1.35}
.fc .fc-sh-sub{margin:0 0 8px;font-size:14px;font-weight:800}
.fc .fc-fmt{display:grid;gap:8px;margin:0 0 16px;color:var(--fc-muted);font-size:14px}
.fc .fc-fmt code{padding:1px 7px;border-radius:6px;background:var(--fc-card);border:1px solid var(--fc-line);color:var(--fc-text);font-family:inherit}
.fc .fc-ol{list-style:none;margin:8px 0 4px;padding:0}
.fc .fc-ol li{display:flex;align-items:center;gap:11px;padding:9px 2px;font-size:14.5px;font-weight:700}
.fc .fc-ol li + li{border-top:1px solid var(--fc-line)}
.fc .fc-ol .fc-av{--s:32px}
.fc .fc-ol small{color:var(--fc-faint);font-size:12.5px;font-weight:500}
.fc .fc-dot{width:8px;height:8px;margin-inline-start:auto;border-radius:50%;background:var(--fc-live)}
.fc .fc-ol-more{margin:6px 0 12px;color:var(--fc-faint);font-size:13px}
.fc .fc-decree{display:flex;flex-direction:column;align-items:center;gap:10px;padding:6px 4px 10px;text-align:center}
.fc .fc-decree .fc-seal{--s:56px}
.fc .fc-decree b{color:var(--fc-gold);font-size:13px}
.fc .fc-decree p{font-family:"Amiri","FK Emoji",serif;font-size:19px;line-height:1.8;color:var(--fc-text)}
.fc .fc-orig{margin-bottom:14px;padding:12px;border-radius:14px;background:var(--fc-card);border:1px solid var(--fc-line)}
.fc .fc-orig .fc-mh{margin-bottom:6px}
.fc .fc-orig .fc-media{margin:6px 0}
.fc .fc-orig .fc-text::after{display:none}

/* ---------- lightbox ---------- */
.fc-lb{position:fixed;inset:0;z-index:1100;display:flex;flex-direction:column;background:rgba(5,6,3,.95);color:#ece6cc;opacity:0;transition:opacity .2s;font-family:"Cairo","FK Emoji","Segoe UI",Tahoma,sans-serif;line-height:1.5}
.fc-lb.fc-show{opacity:1}
.fc-lb .fc-lb-bar{display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px}
.fc-lb .fc-lb-who{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.fc-lb .fc-lb-who div{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.fc-lb .fc-lb-who b{font-size:15px}
.fc-lb .fc-lb-who span{font-size:12.5px;color:#b6b090}
.fc-lb .fc-hbtn{color:#ece6cc;border-color:#3c4329}
.fc-lb .fc-lb-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 12px calc(16px + env(safe-area-inset-bottom,0px))}
.fc-lb .fc-lb-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 30px 80px -30px #000}

@media (prefers-reduced-motion:reduce){
  .fc *,.fc *::before,.fc *::after,.fc-lb{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* ---------- inline delete / report ---------- */
.fc .fc-bubble{box-sizing:border-box}
.fc .fc-side{flex:none;align-self:center;display:none;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--fc-faint);transition:background .15s,color .15s}
.fc .fc-side svg{width:16px;height:16px}
.fc button.fc-side:active{background:var(--fc-hover);color:var(--fc-text)}
.fc button.fc-side-del:active{color:var(--fc-danger)}
.fc .fc-side.fc-side-done{color:var(--fc-danger);opacity:.75}
.fc.fc-bubbles .fc-msg.fc-own .fc-side{order:-1}
.fc .fc-tools .fc-t-del:hover{color:var(--fc-danger)}
@media (pointer:coarse){.fc .fc-side{display:grid}}
