/* thejungle2 (05-11-2026): The Jungle, bascdao.com/jungle (templates/jungle.html, jungle_post.html,
   components/_jungle_post.html, _jungle_side.html, _jungle_menu.html; static/js/jungle.js). The look of the approved mockup. */
:root { --jg: #8ee53f; --jg2: #d6f54c; --jg-ink: #0f1a02; --jg-line: rgba(255,255,255,0.08); --jg-bg: #0f0624; --jg-pink: #ff4fa3; --jg-mag: #d61f7a; --jg-slime: #e4f55a; --jg-plum: #2a0820; }   /* the colours of the jungle header art (3e3) */
.jg-svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-jg] [hidden], .jg-pop[hidden], .jg-pop [hidden], .jg-toast[hidden], .jg-new[hidden] { display: none !important; }

/* ---------- hero ---------- */
.page-head .jg-live { margin-top: 18px; }
.jg-live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; font-size: 0.88rem; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--jg-line); }
.jg-live b { color: var(--text); }
.jg-live .faces, .jg-new .faces, .jg-ev .faces { display: inline-flex; }
.jg-live .faces img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--jg-bg); margin-left: -8px; object-fit: cover; }
.jg-live .faces img:first-child, .jg-new .faces img:first-child, .jg-ev .faces img:first-child { margin-left: 0; }
.jg-live > i { width: 8px; height: 8px; border-radius: 50%; background: var(--jg); box-shadow: 0 0 10px var(--jg); animation: jg-pulse 2.4s ease-in-out infinite; }
@keyframes jg-pulse { 50% { opacity: 0.45; } }

/* ---------- layout ---------- */
.jg { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding: 22px 0 80px; align-items: start; }
.jg-main { min-width: 0; }
.jg-card { border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)); border: 1px solid var(--jg-line); }

/* ---------- tabs ---------- */
.jg-tabs { position: sticky; top: 84px; z-index: 6; display: flex; gap: 4px; padding: 5px; border-radius: 16px; margin-bottom: 14px;
  background: rgba(18,7,40,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--jg-line); }
.jg-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 12px; font-weight: 800;
  font-size: 0.93rem; color: var(--muted); white-space: nowrap; text-decoration: none; transition: color 0.15s, background 0.15s; }
.jg-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.jg-tab.on { color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 8px 22px -10px rgba(142,229,63,0.85); }

/* ---------- avatars: the Ape XP ring + level ---------- */
.jg-av { position: relative; display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; text-decoration: none;
  background: conic-gradient(var(--rc, #3ddc84) calc(var(--p, 60) * 1%), rgba(255,255,255,0.12) 0); }
.jg-av img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--jg-bg); display: block; background: #1a0f36; }
.jg-av b { position: absolute; right: -5px; bottom: -3px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 900; line-height: 1; color: #0b0520; background: var(--rc, #3ddc84); border: 2px solid var(--jg-bg); font-variant-numeric: tabular-nums; font-style: normal; }
.jg-av.sm { width: 36px; height: 36px; } .jg-av.sm img { width: 31px; height: 31px; } .jg-av.sm b { display: none; }
.jg-av--gone { background: rgba(255,255,255,0.06); }

/* ---------- buttons ---------- */
.jg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; border-radius: 99px; font: inherit; font-weight: 900;
  font-size: 0.92rem; white-space: nowrap; border: 0; cursor: pointer; text-decoration: none; color: var(--text); background: rgba(255,255,255,0.06);
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s, background 0.15s; }
.jg-btn:active { transform: scale(0.97); }
.jg-btn.go { color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 10px 24px -12px rgba(142,229,63,0.9); }
.jg-btn.go:disabled { opacity: 0.42; box-shadow: none; cursor: default; transform: none; }
.jg-btn.white { color: #0b0520; background: #fff; }
.jg-btn.white[aria-pressed="true"] { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.jg-btn.gm { color: #2a1700; background: linear-gradient(135deg, #fde68a, #fbbf24); box-shadow: 0 10px 22px -12px rgba(251,191,36,0.9); padding: 8px 14px; }
.jg-btn:focus-visible, .jg-act:focus-visible, .jg-tab:focus-visible, .jg-t:focus-visible { outline: 2px solid var(--jg); outline-offset: 2px; }

/* ---------- composer ---------- */
.jg-compose { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 16px 12px; margin-bottom: 14px; border-color: rgba(142,229,63,0.30);
  box-shadow: 0 0 0 1px rgba(142,229,63,0.05), 0 22px 44px -26px rgba(142,229,63,0.55); }
.jg-cbody { min-width: 0; position: relative; }
.jg-compose textarea { display: block; width: 100%; min-height: 58px; max-height: 340px; padding: 10px 2px 8px; resize: none; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.15rem; line-height: 1.45; color: var(--text); overflow-y: auto; }
.jg-compose textarea::placeholder { color: #8f9bb3; }
.jg-ctools { display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.jg-t { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--jg); background: none; border: 0; cursor: pointer; transition: background 0.15s; }
.jg-t:hover { background: rgba(142,229,63,0.12); }
.jg-chint { margin-left: 8px; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.jg-chint b { color: var(--text); }
.jg-chint.is-out b { color: #fda4af; }
.jg-compose .jg-btn.go { margin-left: 8px; }
.jg-err { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 0.86rem; color: #fecdd3; background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.3); }
.jg-emojis { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; padding: 6px; border-radius: 14px; background: rgba(10,4,24,0.6); border: 1px solid var(--jg-line); }
.jg-emojis button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; line-height: 1; font-style: normal; }
.jg-emojis button:hover { background: rgba(255,255,255,0.08); }
.jg-compose.is-busy .jg-btn.go { opacity: 0.6; pointer-events: none; }
.jg-compose--reply { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 12px 10px; margin: 8px 0 4px; border-radius: 16px; box-shadow: none; background: rgba(255,255,255,0.03); }
.jg-compose--reply textarea { min-height: 40px; font-size: 1rem; padding: 6px 2px; }
.jg-compose--reply .jg-ctools { padding-top: 8px; }
.jg-compose--reply .jg-btn.go { padding: 7px 16px; font-size: 0.86rem; }
.jg-to { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 0.84rem; color: var(--muted); }
.jg-to a, .jg-to b { color: var(--jg); font-weight: 700; text-decoration: none; }
.jg-to button { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; color: var(--muted); background: rgba(255,255,255,0.06); cursor: pointer; }
.jg-to button .jg-svg { width: 12px; height: 12px; }

/* the small bar + the sheet (phones) */
.jg-cmini { display: none; }
.jg-sheet-top { display: none; }
.jg-fab { display: none; }

/* ---------- locked / join ---------- */
.jg-locked, .jg-join { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; margin-bottom: 14px; }
.jg-locked { border: 1px dashed rgba(142,229,63,0.4); background: linear-gradient(110deg, rgba(142,229,63,0.08), rgba(255,255,255,0.015) 60%); }
.jg-locked .lk, .jg-join .lk { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--jg); background: rgba(142,229,63,0.12); font-size: 1.5rem; }
.jg-locked .lk .jg-svg { width: 24px; height: 24px; }
.jg-locked b, .jg-join b { display: block; font-size: 1.02rem; }
.jg-locked small, .jg-join small { color: var(--muted); font-size: 0.86rem; }
.jg-locked .bar { position: relative; height: 7px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.jg-locked .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9aa4b2, var(--jg)); }
.jg-locked .lvls { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.jg-locked .lvls span:last-child { color: var(--jg); }
.jg-locked .jg-btn { color: var(--jg); border: 1px solid rgba(142,229,63,0.45); background: transparent; }

/* ---------- feed ---------- */
.jg-feed { display: grid; gap: 12px; }
.jg-new { position: sticky; top: 146px; z-index: 5; justify-self: center; display: flex; align-items: center; gap: 8px; margin: 0 auto 12px; padding: 7px 16px 7px 8px;
  border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.86rem; color: var(--jg-ink);
  background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 12px 26px -12px rgba(142,229,63,0.9); animation: jg-drop 0.35s cubic-bezier(.2,.9,.3,1.3); }
.jg-new .faces img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2fd17a; margin-left: -7px; object-fit: cover; }
@keyframes jg-drop { from { transform: translateY(-12px); opacity: 0; } }

.jg-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 16px 8px; transition: border-color 0.2s; }
.jg-post.hot { border-color: rgba(249,115,22,0.32); box-shadow: 0 18px 40px -30px rgba(249,115,22,0.7); }
.jg-post.is-new { animation: jg-in 0.5s cubic-bezier(.2,.9,.3,1); border-color: rgba(142,229,63,0.45); }
@keyframes jg-in { from { transform: translateY(-8px); opacity: 0; } }
.jg-body { min-width: 0; }
.jg-meta { position: relative; min-width: 0; padding-right: 30px; color: var(--muted); }
.jg-meta .l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.jg-meta .l2 { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 1px; font-size: 0.86rem; line-height: 1.3; }
.jg-meta .n { flex: 0 1 auto; min-width: 0; max-width: 100%; color: var(--text); font-weight: 800; font-size: 0.99rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.jg-meta .n:hover { text-decoration: underline; text-underline-offset: 3px; }
.jg-meta .xp-tag { margin: 0; flex: none; }
.jg-meta .h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jg-meta .ago, .jg-meta .ed { white-space: nowrap; flex: none; color: var(--muted); text-decoration: none; }
.jg-meta .ago:hover { text-decoration: underline; text-underline-offset: 3px; }
.jg-meta .ed[hidden] { display: none; }
.jg-meta .tr { width: 18px; height: 18px; flex: none; object-fit: contain; filter: drop-shadow(0 0 4px var(--tc)); }
.jg-meta .more { position: absolute; top: -5px; right: -6px; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: none; color: var(--muted); cursor: pointer; }
.jg-meta .more:hover { color: var(--jg); background: rgba(142,229,63,0.1); }
.jg-text { margin: 4px 0 8px; font-size: 1.03rem; line-height: 1.52; white-space: pre-line; overflow-wrap: anywhere; }
.jg-text a { color: #7dd3fc; text-decoration: none; } .jg-text a:hover { text-decoration: underline; }
.jg-text .cm-mention { color: var(--jg); font-weight: 700; cursor: pointer; }
.jg-fire { white-space: nowrap; }
.jg-gone { margin: 10px 0 12px; color: var(--muted); font-style: italic; }
.jg-acts { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.jg-act { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border-radius: 99px; border: 0; background: none; font: inherit; cursor: pointer;
  font-size: 0.86rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; transition: color 0.15s, background 0.15s; }
.jg-act span:empty { display: none; }
.jg-act[data-jg-reply]:hover { color: #7dd3fc; background: rgba(125,211,252,0.1); }
.jg-act.jg-like:hover { color: var(--jg-pink); background: rgba(255,79,163,0.1); }
.jg-act.jg-like.on { color: var(--jg-pink); }
.jg-act.jg-like.on .jg-svg { fill: currentColor; }
.jg-act[data-jg-copy]:hover { color: var(--jg); background: rgba(142,229,63,0.1); }
.jg-act.end { margin-left: auto; }
.jg-act .lbl { font-weight: 700; }

/* replies */
.jg-thread { display: grid; gap: 2px; margin: 2px 0 6px; }
.jg-r { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 12px 2px; border-radius: 16px; background: rgba(255,255,255,0.035); }
.jg-r + .jg-r { margin-top: 6px; }
.jg-r .jg-text { font-size: 0.97rem; margin: 2px 0 4px; }
.jg-r .jg-meta { font-size: 0.85rem; } .jg-r .jg-meta .n { font-size: 0.93rem; }
.jg-r .jg-act { min-height: 32px; padding: 5px 9px; font-size: 0.82rem; }
.jg-r .jg-act .jg-svg { width: 16px; height: 16px; }
.jg-r .jg-act.end { display: none; }
.jg-r.is-target { box-shadow: inset 0 0 0 1px rgba(142,229,63,0.55); background: rgba(142,229,63,0.07); }
.jg-r.is-new { animation: jg-in 0.45s cubic-bezier(.2,.9,.3,1); }
.jg-more { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 0.86rem; font-weight: 800; color: var(--jg); }
.jg-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.jg-rule { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.86rem; color: var(--muted); }
.jg-rule .jg-svg { width: 15px; height: 15px; }
.jg-rule a { color: var(--jg); font-weight: 800; }

/* the club's cards */
.jg-ev { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--ec) 11%, transparent), rgba(255,255,255,0.012) 70%); border: 1px solid color-mix(in srgb, var(--ec) 24%, transparent);
  transition: border-color 0.2s, transform 0.2s; }
.jg-ev:hover { border-color: color-mix(in srgb, var(--ec) 50%, transparent); }
.jg-ev .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-style: normal; background: color-mix(in srgb, var(--ec) 18%, transparent); }
.jg-ev p { margin: 0; font-size: 0.93rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.jg-ev p b { font-weight: 800; }
.jg-ev small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.jg-ev .faces img { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--jg-bg); margin-left: -6px; object-fit: cover; }
.jg-ev .go { font-size: 0.82rem; font-weight: 800; color: var(--ec); white-space: nowrap; }

.jg-empty { display: grid; justify-items: center; gap: 6px; padding: 42px 24px; text-align: center; }
.jg-empty > span { font-size: 2.2rem; } .jg-empty b { font-size: 1.1rem; } .jg-empty p { margin: 0; max-width: 380px; color: var(--muted); }
.jg-sentinel { display: grid; place-items: center; padding: 22px 0; }
.jg-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(142,229,63,0.2); border-top-color: var(--jg); animation: jg-spin 0.8s linear infinite; }
@keyframes jg-spin { to { transform: rotate(360deg); } }
.jg-end { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- one post ---------- */
.jg-back { position: sticky; top: 84px; z-index: 6; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 8px 10px; border-radius: 16px;
  background: rgba(18,7,40,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--jg-line); }
.jg-back a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 800; font-size: 0.9rem; }
.jg-back a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.jg-back b { font-size: 1.05rem; }
.jg--post .jg-post { padding-bottom: 10px; }
.jg--post .jg-post .jg-text { font-size: 1.16rem; }
.jg-threadbox { margin-top: 12px; padding: 12px 14px 14px; }
.jg-threadbox .jg-compose--reply { margin: 0 0 10px; }
.jg-thread--open { gap: 0; }
.jg-none { margin: 8px 4px 2px; color: var(--muted); font-size: 0.9rem; }

/* ---------- side ---------- */
.jg-side { display: grid; gap: 14px; position: sticky; top: 84px; }
.jg-box { padding: 16px; }
.jg-box h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.jg-box h3 a { letter-spacing: 0; text-transform: none; font-size: 0.82rem; color: var(--jg); text-decoration: none; }
.jg-me { display: block; padding: 0; overflow: hidden; }
.jg-me .bn { display: block; height: 74px; background: radial-gradient(260px 90px at 20% 120%, rgba(142,229,63,0.5), transparent 70%), linear-gradient(135deg, #0f3d2a, #1a0b3a);
  background-size: cover; background-position: center 35%; }
.jg-me .bd { display: block; padding: 0 16px 16px; margin-top: -26px; }
.jg-me .jg-av { width: 58px; height: 58px; } .jg-me .jg-av img { width: 51px; height: 51px; }
.jg-me .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.jg-me .nm > a { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.jg-me .nm > a:hover { color: var(--jg); }
.jg-me .nm .xp-tag { margin: 0; }
.jg-me .nm .tr { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 0 4px var(--tc)); }
.jg-me .hd { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.jg-me .st { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px; font-size: 0.84rem; font-weight: 700; color: #7dd3fc; text-decoration: none; }
.jg-me .st span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-me .st .jg-svg { width: 15px; height: 15px; flex: none; }
.jg-me .st:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* thejungle2b: the team pill (anti scam), same look as next to comments; never shrinks or hides */
.jg-team { flex: none; font-size: 0.66rem; padding: 0 7px; letter-spacing: 0.05em; line-height: 1.6; cursor: help; }
.jg-who small .jg-team { display: table; margin: 3px 0 2px; }
.jg-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.jg-counts b { color: var(--text); font-weight: 900; margin-right: 4px; font-variant-numeric: tabular-nums; }
.jg-gm { display: flex; align-items: center; gap: 12px; }
.jg-gm .sun { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem;
  background: radial-gradient(circle at 50% 45%, rgba(251,191,36,0.45), rgba(251,191,36,0.08) 70%); box-shadow: 0 0 22px rgba(251,191,36,0.35); }
.jg-gm > div { min-width: 0; flex: 1; }
.jg-gm b { display: block; } .jg-gm small { color: var(--muted); font-size: 0.82rem; }
.jg-gm b em { font-style: normal; color: #4ade80; }
.jg-who { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; }
.jg-who > div { min-width: 0; }
.jg-who b { display: flex; align-items: center; gap: 5px; font-size: 0.93rem; white-space: nowrap; min-width: 0; }
.jg-who b a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.jg-who b .xp-tag { font-size: 0.68rem; margin: 0; flex: none; }
.jg-who small { display: block; color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-who .jg-btn { padding: 6px 14px; font-size: 0.8rem; }
.jg-now { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); text-decoration: none; color: var(--text); }
.jg-box h3 + .jg-now { border-top: 0; padding-top: 0; }
.jg-now i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; background: color-mix(in srgb, var(--ec) 16%, transparent); }
.jg-now span { min-width: 0; }
.jg-now small { display: block; color: var(--muted); font-size: 0.76rem; }
.jg-now small .live { font-style: normal; font-weight: 900; color: #fb7185; }
.jg-now b { display: block; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-now:hover b { color: var(--ec); }
.jg-rules { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; padding: 0 4px; }

/* ---------- menu + toast ---------- */
.jg-pop { position: absolute; z-index: 60; min-width: 200px; padding: 6px; border-radius: 16px; background: #1a0d38; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.75); animation: jg-pop 0.16s ease-out; }
@keyframes jg-pop { from { transform: translateY(-4px) scale(0.98); opacity: 0; } }
.jg-pop > button, .jg-pop > a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 0; background: none;
  font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; text-decoration: none; }
.jg-pop > button:hover, .jg-pop > a:hover { background: rgba(255,255,255,0.06); }
.jg-pop .danger { color: #fb7185; }
.jg-pop-confirm { padding: 8px 10px 6px; }
.jg-pop-confirm p { margin: 0 0 10px; font-size: 0.86rem; color: var(--muted); max-width: 220px; }
.jg-pop-confirm div { display: flex; gap: 6px; justify-content: flex-end; }
.jg-pop-confirm button { padding: 7px 14px; border-radius: 99px; border: 0; font: inherit; font-weight: 800; font-size: 0.84rem; cursor: pointer; color: var(--text); background: rgba(255,255,255,0.07); }
.jg-pop-confirm button.danger { color: #fff; background: #e11d48; }
.jg-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%); padding: 11px 18px; border-radius: 99px; font-weight: 800; font-size: 0.9rem;
  color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 16px 36px -14px rgba(0,0,0,0.8); animation: jg-drop 0.3s ease-out; white-space: nowrap; }
.jg-toast.bad { color: #fff; background: #be123c; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1000px) {
  .jg { grid-template-columns: minmax(0, 1fr); }
  .jg-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jg-side .jg-rules { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .jg-live { font-size: 0.82rem; padding: 6px 12px 6px 6px; }
  .jg { padding-top: 14px; gap: 18px; }
  .jg-side { grid-template-columns: minmax(0, 1fr); }
  .jg-side .jg-me { display: none; }
  .jg-tabs, .jg-back { top: 64px; border-radius: 14px; } .jg-tab { padding: 9px 4px; font-size: 0.88rem; }
  .jg-new { top: 120px; }
  .jg-post { grid-template-columns: 40px minmax(0, 1fr); padding: 13px 13px 6px; gap: 11px; border-radius: 18px; }
  .jg-post > .jg-av { width: 40px; height: 40px; } .jg-post > .jg-av img { width: 35px; height: 35px; } .jg-post > .jg-av b { font-size: 0.64rem; min-width: 18px; height: 16px; }
  .jg-meta .l2 { font-size: 0.82rem; } .jg-meta .n { font-size: 0.94rem; }
  .jg-text { font-size: 0.99rem; } .jg--post .jg-post .jg-text { font-size: 1.06rem; }
  .jg-act { padding: 6px 8px; font-size: 0.82rem; gap: 6px; }
  .jg-act .lbl { display: none; }
  .jg-r { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 9px 10px 2px; }
  .jg-r .jg-av.sm { width: 32px; height: 32px; } .jg-r .jg-av.sm img { width: 28px; height: 28px; }
  .jg-r .jg-meta .more { width: 28px; height: 28px; margin-right: -4px; }
  .jg-apefeed { padding-left: 16px; padding-right: 16px; } .jg-apefeed .jg-post { padding-left: 0; padding-right: 0; }
  .jg-ev { grid-template-columns: 36px minmax(0, 1fr); padding: 10px 12px; gap: 11px; } .jg-ev .ico { width: 36px; height: 36px; } .jg-ev .go { display: none; } .jg-ev p { font-size: 0.89rem; }
  .jg-locked, .jg-join { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; } .jg-locked .lk, .jg-join .lk { width: 44px; height: 44px; border-radius: 13px; }
  .jg-locked .jg-btn, .jg-join .jg-btn { grid-column: 1 / -1; }
  /* the post box becomes a bar that opens a full sheet */
  .jg-cmini { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 18px; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)); border: 1px solid rgba(142,229,63,0.3); }
  .jg-cmini .ph { color: #8f9bb3; font-size: 0.98rem; }
  .jg-cmini .jg-t { background: rgba(142,229,63,0.1); }
  .jg-sheet { display: none; }
  .jg-sheet.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 90; background: #0f0624; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .jg-sheet.is-open .jg-sheet-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--jg-line); }
  .jg-sheet-top b { font-size: 1.05rem; }
  .jg-x { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; color: var(--text); background: rgba(255,255,255,0.06); cursor: pointer; }
  .jg-sheet .jg-compose { flex: 1; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; grid-template-columns: 40px minmax(0, 1fr); align-content: start; padding: 14px; }
  .jg-sheet .jg-compose > .jg-av { width: 40px; height: 40px; } .jg-sheet .jg-compose > .jg-av img { width: 35px; height: 35px; }
  .jg-sheet .jg-compose textarea { min-height: 160px; font-size: 1.08rem; }
  .jg-sheet .jg-ctools { flex-wrap: wrap; row-gap: 8px; }
  .jg-sheet .jg-chint { order: 9; flex-basis: 100%; margin: 2px 0 0; }
  body.jg-lock { overflow: hidden; }
  .jg-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 14px 30px -10px rgba(142,229,63,0.95), 0 0 0 4px rgba(15,6,36,0.6); }
  .jg-fab .jg-svg { width: 24px; height: 24px; stroke-width: 2.4; }
  .jg-compose--reply .jg-t[data-jg-at] { display: none; }
  .jg-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .jg-tab { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jg-live > i, .jg-new, .jg-post.is-new, .jg-r.is-new, .jg-pop, .jg-toast, .jg-spin { animation: none; }
}

/* ---------- the Posts / Replies of /ape/<username> (thejungle2) ---------- */
.jg-apefeed { margin: 0 0 22px; padding-bottom: 10px; }
.ap-card > header.jg-apehead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 4px !important; border-bottom: 1px solid var(--jg-line); }
.jg-apehead h2 { margin: 0; }
.jg-apehead .jg-ptabs { margin: 0; border: 0; }
.jg-apefeed .jg-feed { gap: 0; }
.jg-apefeed .jg-post { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 0 8px; }
.jg-apefeed .jg-post + .jg-post { border-top: 1px solid var(--jg-line); }
.jg-apefeed .jg-post > div { max-width: 820px; }
.jg-apefeed .jg-pempty { margin-top: 14px; }
.jg-apefeed .jg-sentinel { margin-top: 6px; }
.jg-ptabs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--jg-line); }
.jg-ptabs button { position: relative; padding: 12px 16px; border: 0; background: none; font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.jg-ptabs button small { margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-size: 0.72rem; font-weight: 900; color: var(--jg); background: rgba(142,229,63,0.14); }
.jg-ptabs button:hover { color: var(--text); }
.jg-ptabs button.on { color: var(--text); }
.jg-ptabs button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--jg), var(--jg2)); }
.jg-ptabs-go { margin-left: auto; font-size: 0.86rem; font-weight: 800; color: var(--jg); text-decoration: none; white-space: nowrap; }
.jg-pempty { margin: 0; padding: 26px 20px; text-align: center; color: var(--muted); border-radius: 18px; border: 1px dashed rgba(255,255,255,0.14); }
.jg-pempty a { color: var(--jg); font-weight: 800; }
.jg-apefeed .jg-feed:empty { display: none; }
@media (max-width: 760px) { .ap-card > header.jg-apehead { gap: 2px 12px; } .jg-apehead .jg-ptabs-go { order: 2; margin-left: auto; } .jg-apehead .jg-ptabs { order: 3; flex: 1 0 100%; margin-left: -12px !important; } .jg-ptabs button { padding: 11px 12px; font-size: 0.9rem; } }

/* ---------- thejungle3a: photos, GIFs and videos (1 to 4 by rank), the tray while writing, editing, the locked card ---------- */
.jg-media { display: grid; gap: 3px; margin: 4px 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--jg-line); background: rgba(0,0,0,0.25); max-width: 560px; }
.jg-media.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.jg-media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.jg-media.n3 > :first-child { grid-row: 1 / 3; }
.jg-media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.jg-m { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: #0b0518; cursor: zoom-in; overflow: hidden; }
.jg-m img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease, filter 0.2s; }
.jg-m:hover img { transform: scale(1.025); filter: brightness(1.06); }
.jg-m:focus-visible { outline: 2px solid var(--jg); outline-offset: -2px; }
.jg-media.n1 .jg-m { aspect-ratio: var(--ar, 16 / 9); max-height: 520px; }
.jg-media.n1 .jg-m img { object-fit: contain; background: #07030f; }
.jg-m.is-video { cursor: default; }
.jg-m video { display: block; width: 100%; height: 100%; max-height: 520px; background: #000; object-fit: contain; }
.jg-media.n1 .jg-m.is-video { aspect-ratio: auto; }
.jg-m .gif { position: absolute; left: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; color: #fff; background: rgba(0,0,0,0.65); }
.jg-r .jg-media { max-width: 420px; border-radius: 14px; }

.jg-tray { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.jg-tray[hidden] { display: none; }
.jg-ti { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: #0b0518; border: 1px solid var(--jg-line); }
.jg-ti img, .jg-ti video { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-ti.is-up::after { content: ''; position: absolute; inset: 0; background: rgba(10,4,24,0.55) linear-gradient(90deg, transparent, rgba(142,229,63,0.35), transparent) no-repeat; background-size: 60% 100%; animation: jg-up 1.1s linear infinite; }
@keyframes jg-up { from { background-position: -120% 0; } to { background-position: 220% 0; } }
.jg-ti .x { position: absolute; top: 5px; right: 5px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; color: #fff; background: rgba(0,0,0,0.7); cursor: pointer; }
.jg-ti .x .jg-svg { width: 14px; height: 14px; }
.jg-ti .k { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 0 5px; border-radius: 5px; font-size: 0.64rem; font-weight: 900; color: #fff; background: rgba(0,0,0,0.65); }
.jg-tray-n { align-self: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); }

/* editing in place (5 minutes) */
.jg-edit { display: grid; gap: 8px; margin: 6px 0 10px; }
.jg-edit textarea { width: 100%; min-height: 72px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(142,229,63,0.45); background: rgba(0,0,0,0.25);
  color: var(--text); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
.jg-edit textarea:focus { outline: none; border-color: var(--jg); box-shadow: 0 0 0 3px rgba(142,229,63,0.15); }
.jg-edit-bar { display: flex; align-items: center; gap: 8px; }
.jg-edit-bar small { margin-right: auto; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.jg-btn.sm { padding: 7px 13px; font-size: 0.84rem; }
.jg-pop [data-jg-pop-edit] small { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* the locked card: two steps */
.jg-locked { grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
.jg-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.jg-steps > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--jg-line); }
.jg-steps > li > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 0.8rem; color: var(--muted); background: rgba(255,255,255,0.06); }
.jg-steps > li.ok > i { color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); }
.jg-steps > li.ok b { color: var(--jg); }
.jg-steps b { font-size: 0.94rem !important; }
.jg-steps small a { color: var(--jg); font-weight: 800; }
.jg-step-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* the photo viewer */
.jg-lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(5,2,12,0.94); animation: jg-fade 0.18s ease; }
.jg-lb img { max-width: min(96vw, 1600px); max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; }
.jg-lb button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,0.1); cursor: pointer; }
.jg-lb button:hover { background: rgba(255,255,255,0.2); }
.jg-lb .c { top: 16px; right: 16px; } .jg-lb .p { left: 16px; top: 50%; translate: 0 -50%; } .jg-lb .nx { right: 16px; top: 50%; translate: 0 -50%; }
.jg-lb .jg-svg { width: 22px; height: 22px; }
.jg-lb .p .jg-svg { rotate: -90deg; } .jg-lb .nx .jg-svg { rotate: 90deg; }
@keyframes jg-fade { from { opacity: 0; } }
@media (max-width: 760px) {
  .jg-media { border-radius: 14px; }
  .jg-ti { width: 76px; height: 76px; }
  .jg-locked .jg-steps { margin-left: -56px; }
}
@media (prefers-reduced-motion: reduce) { .jg-lb, .jg-ti.is-up::after { animation: none; } .jg-m img { transition: none; } }

/* =====================================================================
   thejungle3a2 (Mortimer, 05-11-2026): «un sistema ULTRA CÓMODO y a la última». The number left inside the ring; the
   «✎ 4:32 left to edit» pill as in /news; the tray (open big, drag to order, Ctrl+V, drop); replies set apart from their
   post with the /news line that bends into each picture; every icon in jungle green; a click on a block opens it.
   ===================================================================== */
/* the ring with what is left inside */
.jg-ring { margin-left: auto; position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; transition: transform 0.2s; }
.jg-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--rg, var(--jg)) calc(var(--rp, 0) * 1%), rgba(255,255,255,0.13) 0);
  -webkit-mask: radial-gradient(circle, transparent 12.5px, #000 13.5px); mask: radial-gradient(circle, transparent 12.5px, #000 13.5px); }
.jg-ring b { position: relative; font-size: 0.64rem; font-weight: 800; letter-spacing: -0.02em; color: #9aa6bd; font-variant-numeric: tabular-nums; line-height: 1; }
.jg-ring.warn { --rg: #fbbf24; transform: scale(1.1); } .jg-ring.warn b { color: #fbbf24; }
.jg-ring.over { --rg: #fb7185; transform: scale(1.1); } .jg-ring.over b { color: #fb7185; }

/* «✎ 4:32 left to edit», the pill of the /news comments (basc.css .cm-edit-timer) */
.jg-etimer { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 9px 1px 7px; border-radius: 999px; font: inherit; font-size: 0.74rem; font-weight: 700; line-height: 1.55;
  color: #a7f3d0; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background 0.15s; }
button.jg-etimer:hover { background: rgba(16,185,129,0.22); }
.jg-etimer .jg-svg { width: 12px; height: 12px; stroke-width: 2.2; }
.jg-etimer b { font-weight: 800; }
.jg-etimer.is-low { color: #fde68a; background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.45); }
.jg-etimer.is-static { margin-left: 0; cursor: default; }

/* the tray: order numbers, drag, drop */
.jg-tray { counter-reset: jgt; }
.jg-ti { counter-increment: jgt; cursor: zoom-in; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.jg-ti img { -webkit-user-drag: none; pointer-events: none; }
.jg-ti video { pointer-events: none; }
.jg-ti:hover, .jg-ti:focus-visible { border-color: rgba(142,229,63,0.6); outline: none; }
.jg-ti:focus-visible { box-shadow: 0 0 0 3px rgba(142,229,63,0.3); }
.jg-ti .n { position: absolute; left: 6px; top: 6px; z-index: 2; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 900; color: var(--jg-ink); background: var(--jg); box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.jg-ti .n::before { content: counter(jgt); }
.jg-ti:only-child .n { display: none; }
.jg-tray:has(.jg-ti + .jg-ti) .jg-ti { cursor: grab; }
.jg-ti.is-drag { z-index: 5; cursor: grabbing; transition: none; box-shadow: 0 18px 40px -8px rgba(0,0,0,0.8), 0 0 0 2px var(--jg); scale: 1.06; }
.jg-tray.is-sorting .jg-ti:not(.is-drag) { opacity: 0.75; }
.jg-compose.is-drop, .jg-edit.is-drop { box-shadow: 0 0 0 2px var(--jg), 0 0 40px -10px rgba(142,229,63,0.6); }

/* the edit form, with its tray */
.jg-edit { padding: 10px; border-radius: 16px; background: rgba(0,0,0,0.18); border: 1px solid rgba(142,229,63,0.25); }
.jg-edit textarea { min-height: 64px; border: 0; background: none; padding: 4px 4px; box-shadow: none; resize: none; }
.jg-edit textarea:focus { box-shadow: none; }
.jg-edit .jg-tray { margin: 0 4px 2px; }
.jg-edit-bar { flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.07); }
.jg-edit-bar .jg-etimer { margin-right: auto; }
.jg-edit-bar .jg-ring { margin-left: 0; margin-right: 4px; }
.jg-edit-bar .jg-t:disabled { opacity: 0.35; cursor: default; }
.jg-edit.is-busy { opacity: 0.7; pointer-events: none; }

/* the big view: photos and videos, «2 / 4» */
.jg-lb .st { display: grid; place-items: center; width: 100%; height: 100%; }
.jg-lb video { max-width: min(96vw, 1600px); max-height: 88vh; border-radius: 10px; background: #000; box-shadow: 0 30px 80px -20px #000; }
.jg-lb .ct { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; padding: 4px 12px; border-radius: 99px; font-size: 0.82rem; font-weight: 800; color: #fff; background: rgba(255,255,255,0.12); font-variant-numeric: tabular-nums; }

/* every action in jungle green */
.jg-act { color: color-mix(in srgb, var(--jg) 72%, #9aa6bd); }
.jg-act:hover, .jg-act[data-jg-reply]:hover, .jg-act.jg-like:hover, .jg-act[data-jg-share]:hover { color: var(--jg2); background: rgba(142,229,63,0.12); }
.jg-act.jg-like.on { color: var(--jg2); }
.jg-act.jg-like.on .jg-svg { fill: currentColor; filter: drop-shadow(0 0 6px rgba(214,245,76,0.55)); }
.jg-act[aria-expanded="true"] { color: var(--jg2); background: rgba(142,229,63,0.12); }
.jg-meta .more { color: color-mix(in srgb, var(--jg) 60%, #9aa6bd); }
.jg-pop > button .jg-svg, .jg-pop > a .jg-svg { color: var(--jg); }
.jg-pop .danger .jg-svg { color: inherit; }
.jg-r .jg-act.end { display: inline-flex; }
.jg-r .jg-act.end .lbl { display: none; }

/* a click on the block opens it */
.jg-post[data-jg-url]:not(.is-gone), .jg-r { cursor: pointer; }
.jg--post .jg-feed .jg-post { cursor: default; }
.jg-post .jg-text, .jg-r .jg-text { cursor: text; }
.jg-feed .jg-post:not(.is-gone):hover, .jg-apefeed .jg-post:hover { border-color: rgba(142,229,63,0.28); }
.jg-r { transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }

/* replies set apart from their post: «● Replies», then the line that bends into each picture (as on /news) */
.jg-thread:not(.jg-thread--open) { margin: 10px 0 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.jg-thread { position: relative; gap: 8px; padding-left: 22px; }
.jg-thread::before { content: 'Replies'; margin: 0 0 0 -22px; padding-left: 22px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; line-height: 16px;
  color: color-mix(in srgb, var(--jg) 70%, #cbd5e1); }
.jg-thread::after { content: ''; position: absolute; left: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--jg); box-shadow: 0 0 10px var(--jg); pointer-events: none; }
.jg-thread:not(.jg-thread--open)::after { top: 15px; }
.jg-thread--open::after { top: 3px; }
.jg-thread--open { padding-top: 2px; }
.jg-threadbox .jg-compose--reply { margin-bottom: 16px; }
.jg-thread .jg-r { position: relative; margin: 0; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.028); }
.jg-thread .jg-r:not(.is-gone):hover { background: rgba(255,255,255,0.045); border-color: rgba(142,229,63,0.22); }
.jg-thread > .jg-r::before, .jg-thread > .jg-node::before { content: ''; position: absolute; left: -17px; top: -9px; width: 15px; height: calc(9px + 10px + 18px); border-left: 2px solid var(--jg-rail);
  border-bottom: 2px solid var(--jg-rail); border-bottom-left-radius: 12px; pointer-events: none; }
.jg-thread > .jg-r:first-of-type::before, .jg-thread > .jg-node:first-of-type::before { top: -13px; height: calc(13px + 10px + 18px); }
.jg-thread > .jg-r:not(:last-child)::after, .jg-thread > .jg-node:not(:last-child)::after { content: ''; position: absolute; left: -17px; top: 0; bottom: -9px; width: 2px; background: var(--jg-rail); pointer-events: none; }
.jg-thread { --jg-rail: color-mix(in srgb, var(--jg) 42%, #2a1d44); }
.jg-thread .jg-r.is-target { border-color: rgba(142,229,63,0.55); background: rgba(142,229,63,0.08); box-shadow: 0 0 0 1px rgba(142,229,63,0.25), 0 10px 30px -18px rgba(142,229,63,0.6); }
.jg-thread ~ .jg-more { margin-left: 22px; }
.jg-post .jg-rbox .jg-compose--reply { margin-left: 22px; }

@media (max-width: 600px) {
  .jg-etimer .t { display: none; }
  .jg-thread { padding-left: 16px; }
  .jg-thread::before { margin-left: -16px; padding-left: 18px; }
  .jg-thread::after { left: 0; width: 9px; height: 9px; }
  .jg-thread > .jg-r::before, .jg-thread > .jg-node::before, .jg-thread > .jg-r:not(:last-child)::after, .jg-thread > .jg-node:not(:last-child)::after { left: -12px; }
  .jg-thread > .jg-r::before, .jg-thread > .jg-node::before { width: 10px; height: calc(9px + 9px + 16px); }
  .jg-thread > .jg-r:first-of-type::before, .jg-thread > .jg-node:first-of-type::before { height: calc(13px + 9px + 16px); }
  .jg-thread ~ .jg-more, .jg-post .jg-rbox .jg-compose--reply { margin-left: 16px; }
  .jg-ring { width: 30px; height: 30px; }
  .jg-ring::before { -webkit-mask: radial-gradient(circle, transparent 11.5px, #000 12.5px); mask: radial-gradient(circle, transparent 11.5px, #000 12.5px); }
}

/* the like burst (likefx.js reads --lk-1..3 from the button) in jungle green too */
[data-jg] { --lk-1: #ff4fa3; --lk-2: #d6f54c; --lk-3: #ffc2e0; }
/* the pills and the tribe of a name wrap together, never one by one (a narrow reply on a phone) */
.jg-meta .tg { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.jg-meta .l2 { flex-wrap: wrap; row-gap: 3px; }
.jg-meta .h { flex: 0 1 auto; }

.jg-meta .jg-etimer { margin-left: 2px; }
@media (max-width: 600px) {
  .jg-edit { padding: 8px; }
  .jg-edit-bar { gap: 6px 5px; }
  .jg-edit-bar .jg-btn.sm { padding: 7px 11px; font-size: 0.82rem; }
  .jg-edit-bar .jg-t { width: 32px; height: 32px; }
  .jg-edit-bar .jg-etimer { padding: 1px 7px 1px 6px; }
}
.jg-edit-go { display: inline-flex; gap: 8px; flex: none; }
@media (max-width: 600px) { .jg-edit-go { margin-left: auto; } }

/* =====================================================================
   thejungle3a3 (Mortimer, 05-11-2026: «un nivel de comentarios perfecto»): replies inside the one they answer, three
   levels, the /news way: the line starts under the parent's picture and bends into each of its replies' pictures.
   A reply with replies stands out a bit more. Sizes in --av (picture), --px/--py (padding) of each .jg-node.
   ===================================================================== */
.jg-node { --av: 36px; --px: 12px; --py: 10px; --in: 20px; position: relative; display: grid; }
.jg-node > .jg-r { position: relative; }
.jg-node.has-kids > .jg-r::after { content: ''; position: absolute; left: calc(var(--px) + var(--av) / 2 - 1px); top: calc(var(--py) + var(--av) + 6px); bottom: -9px;
  width: 2px; border-radius: 2px; background: var(--jg-rail); pointer-events: none; }
.jg-kids { position: relative; display: grid; gap: 8px; margin: 8px 0 0 calc(var(--px) + var(--av) / 2); padding-left: var(--in); }
.jg-kids > .jg-node::before { content: ''; position: absolute; left: calc(-1 * var(--in)); top: -8px; width: calc(var(--in) - 2px); height: calc(8px + var(--py) + var(--av) / 2 + 1px);
  border-left: 2px solid var(--jg-rail); border-bottom: 2px solid var(--jg-rail); border-bottom-left-radius: 12px; pointer-events: none; }
.jg-kids > .jg-node:not(:last-child)::after { content: ''; position: absolute; left: calc(-1 * var(--in)); top: 0; bottom: -8px; width: 2px; background: var(--jg-rail); pointer-events: none; }
.jg-thread .jg-r.is-parent { border-color: rgba(142,229,63,0.26); background: linear-gradient(160deg, rgba(142,229,63,0.07), rgba(255,255,255,0.025) 70%); }
.jg-thread .jg-r.is-parent > .jg-av { filter: drop-shadow(0 0 6px rgba(142,229,63,0.35)); }
.jg-thread .jg-r.is-gone { display: block; padding: 9px 14px; cursor: default; background: rgba(255,255,255,0.015); border-style: dashed; }
.jg-thread .jg-r.is-gone .jg-gone { margin: 0; font-size: 0.86rem; }
.jg-node.d1 .jg-r .jg-text, .jg-node.d2 .jg-r .jg-text { font-size: 0.95rem; }
@media (max-width: 600px) {
  .jg-node { --av: 32px; --px: 10px; --py: 9px; --in: 12px; }
  .jg-kids > .jg-node::before { border-bottom-left-radius: 9px; }
}


/* =====================================================================
   thejungle3a5 (Mortimer, 05-11-2026): the box at the top answers the post; a reply is answered in a box that opens right
   under it, drawn as its first reply (the rail bends into it) and lit like the reply it answers.
   ===================================================================== */
.jg-node--box > .jg-compose--inline { margin: 0; border: 1px solid rgba(142,229,63,0.42); background: linear-gradient(160deg, rgba(142,229,63,0.08), rgba(255,255,255,0.03) 70%);
  box-shadow: 0 12px 30px -20px rgba(142,229,63,0.7); animation: jgInlineIn 0.18s ease-out; }
.jg-compose--inline .jg-to { margin-bottom: 0; }
.jg-compose--inline textarea { min-height: 36px; }
.jg-compose--inline .jg-cancel { margin-left: 8px; padding: 7px 14px; font-size: 0.84rem; color: var(--muted); }
.jg-compose--inline .jg-cancel:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.jg-compose--inline .jg-btn.go { margin-left: 6px; }
.jg-thread .jg-r.is-answering { border-color: rgba(142,229,63,0.4); }
@keyframes jgInlineIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jg-node--box > .jg-compose--inline { animation: none; } }
@media (max-width: 600px) {
  .jg-compose--inline .jg-cancel { display: none; }   /* the ✕ next to «Replying to» closes it on a phone */
  .jg-compose--inline { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 10px 10px 8px; }
}

/* =====================================================================
   thejungle3b
   ===================================================================== */
/* Mortimer (05-11-2026): «este botón que dice lo de <- The Jungle estaría chulo en verde, como lo hacen los de For you,
   Following, Club»: the way back is the green pill of the active tab */
.jg-back a { color: var(--jg-ink); padding: 7px 15px 7px 10px; background: linear-gradient(135deg, var(--jg), var(--jg2)); box-shadow: 0 8px 22px -10px rgba(142,229,63,0.85);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.jg-back a:hover { color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); filter: brightness(1.08); box-shadow: 0 10px 26px -10px rgba(142,229,63,1); }
.jg-back a:active { transform: scale(0.97); }
.jg-back a:focus-visible { outline: 2px solid var(--jg); outline-offset: 2px; }

/* the conversation under a post in the feed (Mortimer: «los comentarios directos al post deben ocupar mas el ancho y
   siempre la caja de comentar justo debajo del post»): the whole card's width, the box to answer the post first */
.jg-convo { grid-column: 1 / -1; min-width: 0; }
.jg-convo:not(:has(> :not([hidden]))) { display: none; }
.jg-convo > .jg-rbox .jg-compose--reply, .jg-post .jg-convo > .jg-rbox .jg-compose--reply { margin: 2px 0 12px; }
.jg-convo > .jg-thread:not(.jg-thread--open) { margin-top: 4px; }
.jg-convo > .jg-thread ~ .jg-more { margin-left: 22px; }
.jg-topost { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em; color: color-mix(in srgb, var(--jg) 80%, #cbd5e1); }
.jg-topost .jg-svg { width: 15px; height: 15px; color: var(--jg); }
.jg-topost [data-jg-topost-by] { font-weight: 700; color: var(--muted); }
.jg-compose--reply:has(.jg-to:not([hidden])) .jg-topost { display: none; }
@media (max-width: 600px) { .jg-convo > .jg-thread ~ .jg-more { margin-left: 16px; } }

/* views */
.jg-views { cursor: default; }
.jg-views:hover { background: none !important; }
.jg-views .jg-svg { stroke-width: 2.1; }

/* the pinned post on a profile */
.jg-pinned { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin: -4px 0 -6px 34px; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.jg-pinned .jg-svg { width: 15px; height: 15px; color: var(--jg); }
@media (max-width: 600px) { .jg-pinned { margin-left: 26px; } }

/* the ape card (the mockup: picture, «BASC #1182», collection · rank, pills) */
.jg-ape { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 10px 0 4px; padding: 10px;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tc, var(--jg)) 32%, rgba(255,255,255,0.08));
  background: linear-gradient(120deg, color-mix(in srgb, var(--tc, var(--jg)) 12%, transparent), rgba(255,255,255,0.025) 60%); transition: border-color 0.15s, transform 0.15s; }
.jg-ape:has(.jg-ape-go):hover { border-color: color-mix(in srgb, var(--tc, var(--jg)) 60%, transparent); }
.jg-ape-go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.jg-ape-go:focus-visible { outline: 2px solid var(--jg); outline-offset: 2px; }
.jg-ape .pic { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc, var(--jg)) 55%, transparent), 0 10px 22px -14px var(--tc, var(--jg)); }
.jg-ape .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-ape .txt { display: grid; gap: 3px; min-width: 0; }
.jg-ape .txt b { font-size: 1rem; font-weight: 900; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-ape .txt small { font-size: 0.8rem; color: var(--muted); }
.jg-ape .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.jg-ape .p { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; font-style: normal;
  color: color-mix(in srgb, var(--pc, var(--tc, var(--jg))) 85%, #fff); background: color-mix(in srgb, var(--pc, var(--tc, var(--jg))) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc, var(--tc, var(--jg))) 45%, transparent); }
.jg-ape .p.tier { --pc: var(--tc, var(--jg)); }
.jg-ape .x { position: relative; z-index: 2; align-self: start; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  color: var(--text); background: rgba(0,0,0,0.45); }
.jg-ape.is-loading { opacity: 0.6; }
.jg-ape.is-loading .pic { animation: jg-pulse 1.2s ease-in-out infinite; }
.jg-apeslot .jg-ape { margin: 8px 0 2px; }
.jg-compose.has-ape [data-jg-add-media] { opacity: 0.35; }
@media (max-width: 600px) {
  .jg-ape { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 11px; padding: 8px; }
  .jg-ape .pic { width: 64px; height: 64px; border-radius: 10px; }
  .jg-ape .txt b { font-size: 0.94rem; }
  .jg-ape .p { font-size: 0.68rem; padding: 2px 8px; }
}

/* the ape picker */
.jg-apepick { margin: 8px 0 4px; padding: 10px; border-radius: 14px; border: 1px solid rgba(142,229,63,0.28); background: rgba(10,4,26,0.55); }
.jg-apepick-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 2px 8px; font-size: 0.86rem; }
.jg-apepick-h span { color: var(--muted); font-size: 0.78rem; }
.jg-apepick-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.jg-apeopt { position: relative; display: grid; gap: 5px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.jg-apeopt:hover, .jg-apeopt:focus-visible { border-color: rgba(142,229,63,0.6); background: rgba(142,229,63,0.08); outline: none; }
.jg-apeopt:active { transform: scale(0.97); }
.jg-apeopt img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,0.06); }
.jg-apeopt .n { font-size: 0.74rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-apeopt .h { position: absolute; top: 10px; left: 10px; padding: 1px 6px; border-radius: 99px; font-size: 0.62rem; font-weight: 800; font-style: normal;
  color: #fff; background: color-mix(in srgb, var(--pc) 70%, #000); }
.jg-apepick-none { grid-column: 1 / -1; margin: 6px 2px; font-size: 0.84rem; color: var(--muted); }
.jg-apepick-none a { color: var(--jg); font-weight: 800; }
/* rxcomments1 (Mortimer, 05-11-2026: «colorear los bordes de los apes estos dependiendo su rareza para saber de antemano qué
   rareza es»): in «Your apes» each ape with a rank wears its tier's colour (rarity.TIER_COLORS); Legendary and Mythic glow more */
.jg-apeopt.is-rx { border-color: color-mix(in srgb, var(--rc) 62%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 12%, transparent), rgba(255,255,255,0.02) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 28%, transparent), 0 0 14px -8px var(--rc);
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.2s; }
.jg-apeopt.is-rx.rx--legendary, .jg-apeopt.is-rx.rx--mythic { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent), 0 0 18px -5px var(--rc); }
.jg-apeopt.is-rx.rx--common { border-color: color-mix(in srgb, var(--rc) 38%, transparent); box-shadow: none; }
.jg-apeopt.is-rx:hover, .jg-apeopt.is-rx:focus-visible { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent);
  box-shadow: 0 0 0 1px var(--rc), 0 0 22px -4px var(--rc); }

/* the Report sheet */
.jg-report { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; color: var(--text);
  background: #160a30; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.jg-report::backdrop { background: rgba(5,2,14,0.66); backdrop-filter: blur(3px); }
.jg-report form { position: relative; display: grid; gap: 12px; padding: 20px; }
.jg-report h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.1rem; }
.jg-report h3 .jg-svg { color: var(--jg-pink); }
.jg-report .sub { margin: -6px 0 0; font-size: 0.84rem; color: var(--muted); }
.jg-report .x { position: absolute; top: 12px; right: 12px; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,0.06); }
.jg-report .rs { display: grid; gap: 6px; }
.jg-report .rs label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); font-weight: 700; font-size: 0.9rem; }
.jg-report .rs label:has(input:checked) { border-color: rgba(142,229,63,0.6); background: rgba(142,229,63,0.08); }
.jg-report .rs input { accent-color: var(--jg); width: 16px; height: 16px; margin: 0; }
.jg-report .dt { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 700; }
.jg-report .dt small { color: var(--muted); font-weight: 600; }
.jg-report textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.25);
  color: var(--text); font: inherit; font-size: 0.92rem; }
.jg-report textarea:focus { outline: none; border-color: rgba(142,229,63,0.6); }
.jg-report .go { display: flex; justify-content: flex-end; gap: 8px; }
.jg-report form.is-busy .jg-btn.go { opacity: 0.6; pointer-events: none; }
.jg-report .rs { grid-template-columns: 1fr 1fr; justify-items: stretch; text-align: left; }
.jg-report .rs label { justify-self: stretch; margin: 0; width: auto; min-width: 0; }
@media (max-width: 420px) { .jg-report .rs { grid-template-columns: 1fr; } }

/* thejungle3b (Mortimer, 05-11-2026: «demasiado hueco vacio a la derecha … una columna derecha … útiles»): /ape, The Jungle
   with a column on the right (their figures, the post most liked, who they talk with most, the pin hint). On a phone the
   column comes first and compact, because the posts keep loading as you scroll. */
.jg-apegrid.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 30px; align-items: start; }
.jg-apegrid.has-side .jg-apemain { grid-column: 1; grid-row: 1; min-width: 0; }
.jg-apegrid.has-side .jg-apefeed .jg-post > div, .jg-apegrid.has-side .jg-post > div { max-width: none; }
.jg-apeside { grid-column: 2; grid-row: 1; position: sticky; top: 96px; display: grid; gap: 12px; padding-top: 16px; }
.jg-as { display: grid; gap: 10px; margin: 0; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--jg-line);
    background: linear-gradient(160deg, rgba(142,229,63,0.05), rgba(255,255,255,0.02)); color: inherit; text-decoration: none; }
.jg-as h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.jg-as h3 .jg-svg { width: 14px; height: 14px; color: var(--jg-pink); fill: currentColor; }
.jg-as-figs dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.jg-as-figs dl > div { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; border-radius: 12px; background: rgba(0,0,0,0.22); }
.jg-as-figs dd { margin: 0; font-size: 1.12rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.jg-as-figs dt { font-size: 0.7rem; font-weight: 800; color: var(--muted); }
.jg-as-since { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.jg-as-top { transition: border-color 0.2s, background 0.2s; }
.jg-as-top p { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.jg-as-top:hover, .jg-as-top:focus-visible { border-color: rgba(142,229,63,0.45); background: linear-gradient(160deg, rgba(142,229,63,0.1), rgba(255,255,255,0.03)); }
.jg-as-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.jg-as-meta b, .jg-as-meta span { display: inline-flex; align-items: center; gap: 4px; }
.jg-as-meta b { color: var(--jg-pink); }
.jg-as-meta .jg-svg { width: 14px; height: 14px; }
.jg-as-meta b .jg-svg { fill: currentColor; }
.jg-as-meta time { margin-left: auto; font-weight: 700; }
.jg-as-talk ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.jg-as-talk a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; }
.jg-as-talk a:hover, .jg-as-talk a:focus-visible { background: rgba(255,255,255,0.05); }
.jg-as-talk a > span { display: grid; min-width: 0; }
.jg-as-talk b { font-size: 0.9rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-as-talk small { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-as-hint { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 0.84rem; line-height: 1.45; color: var(--muted);
    border-style: dashed; border-color: rgba(142,229,63,0.35); background: rgba(142,229,63,0.04); }
.jg-as-hint .jg-svg { width: 18px; height: 18px; color: var(--jg); margin-top: 1px; }
.jg-as-hint b { color: var(--text); }
@media (max-width: 1000px) {
  .jg-apegrid.has-side { grid-template-columns: minmax(0, 1fr); }
  .jg-apeside { grid-column: 1; grid-row: 1; position: static; grid-template-columns: 1fr 1fr; padding-top: 14px; }
  .jg-apegrid.has-side .jg-apemain { grid-row: 2; }
  .jg-as-figs { grid-column: 1 / -1; }
  .jg-as-hint { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .jg-apeside { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .jg-as { padding: 13px 14px; }
  .jg-as-talk ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .jg-as-talk li { flex: none; max-width: 70%; }
  .jg-as-talk a { margin: 0; padding: 6px 10px 6px 6px; background: rgba(0,0,0,0.22); }
}
@media (prefers-reduced-motion: reduce) { .jg-as-top { transition: none; } }
.jg-as { align-content: start; }
.jg-as-face { position: relative; flex: none; display: block; width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: var(--rc, #9aa4b2); }
.jg-as-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--jg-bg); box-sizing: border-box; }
.jg-as-face i { position: absolute; right: -5px; bottom: -4px; min-width: 18px; padding: 0 4px; border-radius: 99px; font-style: normal; font-size: 0.64rem; font-weight: 900; line-height: 16px; text-align: center; color: #0a0614; background: var(--rc, #9aa4b2); border: 2px solid var(--jg-bg); box-sizing: content-box; }

/* samecomments1 (Mortimer, 05-11-2026): the same row as under the comments of the BASC News and the Ape Sites:
   ❤ N · 💬 N Replies · Share, and the 👁 views pushed to the right; the words go on a narrow phone, never the numbers */
.jg-acts { flex-wrap: nowrap; min-width: 0; }
.jg-act.jg-like.on .heart-path { fill: currentColor; }
.jg-act .lbl, .jg-r .jg-act .lbl { display: inline; font-weight: 700; }
.jg-act [data-jg-rn] + .lbl { margin-left: -3px; }
.jg-act.jg-views { margin-left: auto; cursor: default; }
.jg-act.jg-views, .jg-act.jg-views:hover { color: color-mix(in srgb, var(--jg) 72%, #9aa6bd); background: none; }
@media (max-width: 480px) {
  .jg-act .lbl, .jg-r .jg-act .lbl { display: none; }
}

/* thejungle3c (Mortimer, 05-11-2026): «Your apes» with one tab per collection they hold (the club's first, then the
   partner ones, marked «Partner»), as the jungle tabs: a row that scrolls sideways on a phone, never wraps */
.jg-apetabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 2px 2px 4px; }
.jg-apetabs::-webkit-scrollbar { display: none; }
.jg-apetabs[hidden] { display: none; }
.jg-apetab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border-radius: 99px; font: inherit; font-size: 0.8rem; font-weight: 800;
  color: color-mix(in srgb, var(--jg) 55%, #c4cbe0); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; white-space: nowrap; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.jg-apetab .t { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.jg-apetab b { min-width: 20px; padding: 1px 6px; border-radius: 99px; font-size: 0.7rem; font-variant-numeric: tabular-nums; text-align: center; color: inherit; background: rgba(255,255,255,0.08); }
.jg-apetab i { padding: 1px 7px; border-radius: 99px; font-size: 0.62rem; font-style: normal; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #ddd6fe; background: rgba(167,139,250,0.18); border: 1px solid rgba(167,139,250,0.4); }
.jg-apetab:hover { color: #fff; border-color: rgba(142,229,63,0.45); }
.jg-apetab:focus-visible { outline: 2px solid var(--jg); outline-offset: 2px; }
.jg-apetab[aria-selected="true"] { color: var(--jg-ink); background: linear-gradient(135deg, var(--jg), var(--jg2)); border-color: transparent; box-shadow: 0 6px 18px rgba(214,245,76,0.22); }
.jg-apetab[aria-selected="true"] b { background: rgba(6,36,23,0.18); }
.jg-apetab[aria-selected="true"] i { color: #2e1065; background: rgba(255,255,255,0.55); border-color: transparent; }
/* an ape on a reply: the same card, a little smaller */
.jg-r .jg-ape { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 11px; padding: 8px; margin: 8px 0 2px; }
.jg-r .jg-ape .pic { width: 64px; height: 64px; border-radius: 10px; }
.jg-r .jg-ape .txt b { font-size: 0.94rem; }
@media (max-width: 760px) {
  /* on a phone the tabs are one row that scrolls sideways (the last one peeks in) */
  .jg-apetabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-right: -10px; padding-right: 10px; }
  /* an ape on a reply: picture and name side by side, the pills on their own row under them, never one per line */
  .jg-r .jg-ape { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: center; }
  .jg-r .jg-ape .pic { grid-row: 1 / span 2; width: 52px; height: 52px; }
  .jg-r .jg-ape .txt { display: contents; }
  .jg-r .jg-ape .txt b { grid-column: 2; align-self: end; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .jg-r .jg-ape .txt small { grid-column: 2; align-self: start; }
  .jg-r .jg-ape .pills { grid-column: 1 / -1; margin-top: 6px; }
}

/* =====================================================================
   thejungle3d (Mortimer, 05-11-2026: «se ve todo muy moradito … un fondo chulo pero muy discreto a lo que es el contenido
   del post? los comentarios están bien con esos colores … el bloque principal de What's happening … está bien así. hazlo
   PREMIUM, sutil, elegante, súper COOL»).
   1. In the feed and on its page the post itself (picture, name, text, photos, ape, buttons) sits on a deep night-jungle
      surface: near black with a green tint, a soft emerald light from the top left, faint contour lines from the top right
      and a fine light on its top edge. It is drawn behind the post's first grid row (a ::before placed in the grid), so the
      conversation under it keeps the card's colours. Not on /ape, not on «What's happening», not on a deleted post.
   2. Heat, as threadglow1 on /news (xe_threads.heat_level: 1, 3, 5, 8, 12 replies): the bigger the conversation, the wider
      and stronger the emerald light, the brighter the edge and an outer glow. A reply with replies glows the same way
      (stronger for a first reply), its lines brighten, and a first reply from heat 3 says «🔥 Hot · N replies».
      Text colours never change. No animation. «On fire» keeps its orange edge.
   ===================================================================== */
.jg-main > .jg-feed > .jg-post { --sp-t: 16px; --sp-x: 16px; --sp-b: 8px; --sp-g: 7px;
  --ha: 7%; --hx: 62%; --hl: 0%; --hr: 0%; --hbo: 0%; --hg: 0px; --hga: 0%; --hc: var(--jg);
  position: relative; isolation: isolate; border-color: rgba(140,255,200,0.08); }
.jg--post .jg-main > .jg-feed > .jg-post { --sp-b: 10px; }
.jg-main > .jg-feed > .jg-post:not(.is-gone)::before,
.jg-main > .jg-feed > .jg-post:not(.is-gone)::after { content: ''; position: absolute; z-index: -1; grid-column: 1 / -1; grid-row: 1 / 2; pointer-events: none;
  top: calc(-1 * var(--sp-t)); left: calc(-1 * var(--sp-x)); right: calc(-1 * var(--sp-x)); bottom: calc(-1 * var(--sp-b)); border-radius: 19px; }
.jg-main > .jg-feed > .jg-post:not(.is-gone)::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hc) var(--hl), transparent) 0%, transparent var(--hr)),
    radial-gradient(var(--hx) 135% at 0% 0%, color-mix(in srgb, var(--hc) var(--ha), transparent), transparent 72%),
    radial-gradient(55% 85% at 100% 100%, rgba(214,245,76,0.03), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.022), transparent 38%),
    linear-gradient(158deg, rgba(10,22,18,0.94) 0%, rgba(9,15,20,0.93) 52%, rgba(14,10,26,0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(170,255,215,0.07); }
.jg-main > .jg-feed > .jg-post:not(.is-gone)::after {   /* faint contour lines, only in the top right corner */
  background: repeating-radial-gradient(circle at 100% 0%, transparent 0 25px, rgba(150,255,205,0.045) 25px 26px);
  -webkit-mask-image: radial-gradient(60% 95% at 100% 0%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
  mask-image: radial-gradient(60% 95% at 100% 0%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%); }
.jg-main > .jg-feed > .jg-post.is-pinned::before, .jg-main > .jg-feed > .jg-post.is-pinned::after { grid-row: 1 / 3; }
/* with its conversation under it: the surface ends half way through the gap, square below, a hairline as the divider */
.jg-main > .jg-feed > .jg-post:has(> .jg-convo > :not([hidden]))::before,
.jg-main > .jg-feed > .jg-post:has(> .jg-convo > :not([hidden]))::after { bottom: calc(-1 * var(--sp-g)); border-radius: 19px 19px 0 0; }
.jg-main > .jg-feed > .jg-post:has(> .jg-convo > :not([hidden]))::before { box-shadow: inset 0 1px 0 rgba(170,255,215,0.07), inset 0 -1px 0 rgba(140,255,200,0.09); }
.jg-main > .jg-feed > .jg-post > .jg-convo { padding-top: 6px; }
.jg-main > .jg-feed > .jg-post > .jg-convo > .jg-thread:not(.jg-thread--open) { border-top: 0; padding-top: 4px; margin-top: 0; }
.jg-main > .jg-feed > .jg-post > .jg-convo > .jg-thread:not(.jg-thread--open)::after { top: 7px; }
.jg-main > .jg-feed > .jg-post:hover { border-color: rgba(142,229,63,0.26); }
/* heat of a post */
.jg-main > .jg-feed > .jg-post.jg-heat1 { --ha: 9%;  --hx: 76%;  --hl: 2%;  --hr: 16%; --hbo: 14%; }
.jg-main > .jg-feed > .jg-post.jg-heat2 { --ha: 11%; --hx: 94%;  --hl: 3%;  --hr: 28%; --hbo: 20%; --hg: 16px; --hga: 6%; }
.jg-main > .jg-feed > .jg-post.jg-heat3 { --ha: 13%; --hx: 116%; --hl: 5%;  --hr: 42%; --hbo: 26%; --hg: 24px; --hga: 9%; }
.jg-main > .jg-feed > .jg-post.jg-heat4 { --ha: 15%; --hx: 142%; --hl: 6%;  --hr: 58%; --hbo: 33%; --hg: 30px; --hga: 12%; }
.jg-main > .jg-feed > .jg-post.jg-heat5 { --ha: 18%; --hx: 172%; --hl: 8%;  --hr: 76%; --hbo: 42%; --hg: 38px; --hga: 16%; }
.jg-main > .jg-feed > .jg-post.jg-heat:not(.hot):not(.is-new) { border-color: color-mix(in srgb, var(--hc) var(--hbo), rgba(140,255,200,0.08));
  box-shadow: 0 0 var(--hg) color-mix(in srgb, var(--hc) var(--hga), transparent), 0 18px 40px -32px rgba(0,0,0,0.8); }
.jg-main > .jg-feed > .jg-post.jg-heat:not(.hot):not(.is-new):hover { border-color: color-mix(in srgb, var(--hc) calc(var(--hbo) + 14%), transparent); }
.jg-main > .jg-feed > .jg-post.jg-heat::before { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hc) calc(var(--hbo) + 8%), rgba(170,255,215,0.07)); }
.jg-main > .jg-feed > .jg-post.jg-heat:has(> .jg-convo > :not([hidden]))::before {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hc) calc(var(--hbo) + 8%), rgba(170,255,215,0.07)), inset 0 -1px 0 rgba(140,255,200,0.09); }

/* heat of a reply with replies: a wash from the left, a corner light, a bar on the left edge */
.jg-r.jg-heat:not(.is-target) { --hc: var(--jg);
  border-color: color-mix(in srgb, var(--hc) var(--hbo), transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc) var(--hl), transparent) 0%, transparent var(--hr)),
    radial-gradient(var(--hx) 150% at 0% 0%, color-mix(in srgb, var(--hc) var(--ha), transparent), transparent 72%), rgba(255,255,255,0.028);
  box-shadow: inset var(--hb) 0 0 color-mix(in srgb, var(--hc) 80%, transparent), 0 0 var(--hg) color-mix(in srgb, var(--hc) var(--hga), transparent); }
.jg-r.jg-heat:not(.is-target):hover { border-color: color-mix(in srgb, var(--hc) calc(var(--hbo) + 14%), transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc) var(--hl), transparent) 0%, transparent var(--hr)),
    radial-gradient(var(--hx) 150% at 0% 0%, color-mix(in srgb, var(--hc) var(--ha), transparent), transparent 72%), rgba(255,255,255,0.045); }
/* a first reply */
.jg-node.d0 > .jg-r.jg-heat1 { --hx: 70%;  --ha: 12%; --hl: 5%;  --hr: 18%; --hb: 2px; --hg: 0px;  --hga: 0%;  --hbo: 30%; }
.jg-node.d0 > .jg-r.jg-heat2 { --hx: 92%;  --ha: 15%; --hl: 7%;  --hr: 32%; --hb: 3px; --hg: 12px; --hga: 8%;  --hbo: 36%; }
.jg-node.d0 > .jg-r.jg-heat3 { --hx: 118%; --ha: 18%; --hl: 9%;  --hr: 48%; --hb: 3px; --hg: 18px; --hga: 12%; --hbo: 44%; }
.jg-node.d0 > .jg-r.jg-heat4 { --hx: 150%; --ha: 21%; --hl: 11%; --hr: 66%; --hb: 4px; --hg: 24px; --hga: 15%; --hbo: 52%; }
.jg-node.d0 > .jg-r.jg-heat5 { --hx: 185%; --ha: 25%; --hl: 13%; --hr: 86%; --hb: 4px; --hg: 32px; --hga: 19%; --hbo: 62%; }
/* a reply to a reply: the same steps, softer, so the first reply always leads */
.jg-node:not(.d0) > .jg-r.jg-heat1 { --hx: 55%;  --ha: 8%;  --hl: 3%;  --hr: 12%; --hb: 2px; --hg: 0px;  --hga: 0%;  --hbo: 22%; }
.jg-node:not(.d0) > .jg-r.jg-heat2 { --hx: 72%;  --ha: 10%; --hl: 4%;  --hr: 22%; --hb: 2px; --hg: 0px;  --hga: 0%;  --hbo: 28%; }
.jg-node:not(.d0) > .jg-r.jg-heat3 { --hx: 90%;  --ha: 12%; --hl: 6%;  --hr: 34%; --hb: 2px; --hg: 8px;  --hga: 6%;  --hbo: 34%; }
.jg-node:not(.d0) > .jg-r.jg-heat4 { --hx: 112%; --ha: 14%; --hl: 7%;  --hr: 46%; --hb: 3px; --hg: 12px; --hga: 9%;  --hbo: 40%; }
.jg-node:not(.d0) > .jg-r.jg-heat5 { --hx: 135%; --ha: 17%; --hl: 9%;  --hr: 58%; --hb: 3px; --hg: 16px; --hga: 12%; --hbo: 46%; }
/* its lines: brighter as it grows */
.jg-node.jg-node--heat3, .jg-node.jg-node--heat3 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, var(--jg) 58%, #2a1d44); }
.jg-node.jg-node--heat4, .jg-node.jg-node--heat4 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, var(--jg) 72%, #2a1d44); }
.jg-node.jg-node--heat5, .jg-node.jg-node--heat5 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, var(--jg) 86%, #2a1d44); }
/* «🔥 Hot · N replies» on a first reply from heat 3 */
.jg-hot { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; font-style: normal;
  letter-spacing: 0.02em; white-space: nowrap; cursor: default; color: color-mix(in srgb, var(--jg) 40%, #fff);
  background: color-mix(in srgb, var(--jg) 16%, rgba(0,0,0,0.3)); border: 1px solid color-mix(in srgb, var(--jg) 46%, transparent); }
.jg-hot--5 { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--jg) 50%, #000), color-mix(in srgb, var(--jg) 26%, #000));
  box-shadow: 0 0 14px color-mix(in srgb, var(--jg) 32%, transparent); }

@media (max-width: 600px) {
  .jg-main > .jg-feed > .jg-post { --sp-t: 13px; --sp-x: 13px; --sp-b: 6px; --sp-g: 5.5px; }
  .jg--post .jg-main > .jg-feed > .jg-post { --sp-b: 10px; }
  .jg-main > .jg-feed > .jg-post:not(.is-gone)::before, .jg-main > .jg-feed > .jg-post:not(.is-gone)::after { border-radius: 17px; }
  .jg-main > .jg-feed > .jg-post:has(> .jg-convo > :not([hidden]))::before,
  .jg-main > .jg-feed > .jg-post:has(> .jg-convo > :not([hidden]))::after { border-radius: 17px 17px 0 0; }
  .jg-hot { padding: 1px 7px; font-size: 0.68rem; }
}

/* =====================================================================
   thejungle3e (Mortimer, 05-11-2026: «falta la B para la negrita y la I para la Italic … delante de esos iconos, y despues
   de la @ de mention el icono para hacer un link … total libertad a los usuarios para poner links … quiero usar el panel
   que usamos en /news para los iconos»). B and I before the icons, the link after @, a row to paste the link, the icons
   panel of /news (club-icons.js) and the box that shows the club icons as pictures (.ci-field, it replaces the textarea).
   ===================================================================== */
.jg-fmt b, .jg-fmt i { display: block; font-size: 1.06rem; line-height: 1; color: currentColor; }
.jg-fmt b { font-weight: 900; }
.jg-fmt i { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 1.16rem; }
.jg-compose .ci-field { width: 100%; min-height: 58px; max-height: 340px; padding: 10px 2px 8px; border: 0; outline: 0; background: transparent;
  font-size: 1.15rem; line-height: 1.45; color: var(--text); overflow-y: auto; }
.jg-compose .ci-field.is-empty::before { color: #8f9bb3; opacity: 1; }
.jg-compose--reply .ci-field { min-height: 40px; font-size: 1rem; padding: 6px 2px; }
.jg-compose--inline .ci-field { min-height: 36px; }
.jg-edit .ci-field { width: 100%; min-height: 64px; max-height: 300px; padding: 4px; overflow-y: auto; outline: 0; color: var(--text); font-size: 1rem; line-height: 1.5; }
.jg-text strong { font-weight: 800; color: #fff; }
.jg-text em { font-style: italic; }
.jg-text a { overflow-wrap: anywhere; }
/* the row to paste a link */
.jg-linkrow { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 6px 6px 6px 12px; border-radius: 14px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(142,229,63,0.38); box-shadow: 0 0 0 3px rgba(142,229,63,0.08); animation: jg-in 0.2s ease-out; }
.jg-linkrow > .jg-svg { color: var(--jg); width: 17px; height: 17px; }
.jg-linkrow input { flex: 1; min-width: 0; padding: 7px 4px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.95rem; }
.jg-linkrow input::placeholder { color: #8f9bb3; }
.jg-linkrow .jg-btn.go { margin: 0; padding: 7px 14px; font-size: 0.84rem; white-space: nowrap; }
.jg-linkrow .jg-t { width: 32px; height: 32px; color: var(--muted); }
.jg-t[aria-expanded="true"] { background: rgba(142,229,63,0.16); }
@media (max-width: 600px) {
  .jg-ctools .jg-t { width: 32px; height: 32px; border-radius: 10px; }
  /* the tools on the first line; the count, the posts left and the button on a second one */
  .jg-ctools, .jg-sheet .jg-ctools { flex-wrap: wrap; gap: 2px; row-gap: 8px; }
  .jg-ctools::before { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .jg-ctools > .jg-chint, .jg-sheet .jg-ctools > .jg-chint { order: 2; flex: 0 1 auto; flex-basis: auto; margin: 0 0 0 4px; }
  .jg-ctools > .jg-ring, .jg-ctools > .jg-cancel, .jg-ctools > .jg-btn.go { order: 2; }
  .jg-ctools > .jg-ring { margin-left: auto; margin-right: 6px; }
  .jg-linkrow .jg-btn.go { padding: 7px 11px; }
  .jg-sheet .jg-compose .ci-field { min-height: 160px; font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) { .jg-linkrow { animation: none; } }
/* thejungle3e (Mortimer, 05-11-2026: «donde pone esto de REPLIES debería poner N REPLIES»): the total over the conversation */
.jg-thread[data-jg-label]::before { content: attr(data-jg-label); }

/* thejungle3e2 (Mortimer, 05-11-2026: «en el pie del header, las stats globales/totales»): a band across the foot of the
   header, inside it: posts, replies, likes (posts + replies) and views of The Jungle. */
.page-head .jg-totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; margin: 20px 0 0; padding: 0; }
.jg-tot { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
.jg-tot + .jg-tot::before { content: ''; order: 9; align-self: center; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: rgba(255,255,255,0.32); }
.jg-tot dd { margin: 0; font-size: 1.12rem; font-weight: 900; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.jg-tot dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .page-head .jg-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 18px; }
  .jg-tot { flex-direction: column-reverse; align-items: flex-start; gap: 1px; }
  .jg-tot + .jg-tot::before { display: none; }
  .jg-tot dd { font-size: 1.15rem; }
  .jg-tot dt { font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* thejungle3e3 (Mortimer, 05-11-2026: «este es el fondo para el header … podemos usar esos colores para mejorar la estética de
   todo el sistema de /jungle ??? … los #hashtags … con un color y con negrita automáticamente … lo mismo para los textos
   negrita y lo mismo para los textos italic y links … hazlo PREMIUM al máximo»): the palette of the header art (lime, slime,
   magenta, plum) everywhere in The Jungle, one fixed look for bold, italic, links, @mentions and #hashtags, and the ❤ 💬 Share
   of a post as pills that are always there, as under a BASC News post. */
.page-head.jg-head { --cyan: var(--jg2); position: relative; overflow: hidden; isolation: isolate; background: #170410;
  border-color: rgba(142,229,63,0.26);
  box-shadow: 0 0 0 1px rgba(214,31,122,0.12), 0 24px 70px -30px rgba(214,31,122,0.55), 0 0 60px -26px rgba(142,229,63,0.5); }
.jg-head-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.jg-head-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 14%; }
.jg-head-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,4,16,0.95) 0%, rgba(23,4,16,0.86) 28%, rgba(23,4,16,0.42) 56%, rgba(23,4,16,0.04) 80%),
              linear-gradient(0deg, rgba(18,3,13,0.9) 0%, rgba(18,3,13,0.35) 26%, rgba(18,3,13,0) 46%),
              radial-gradient(60% 90% at 0% 0%, rgba(214,31,122,0.22), transparent 70%); }
.page-head.jg-head .eyebrow { background: rgba(23,4,16,0.62); border-color: rgba(214,245,76,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.page-head.jg-head h1, .page-head.jg-head > p { text-shadow: 0 2px 18px rgba(0,0,0,0.65); }
.page-head.jg-head h1 .o, .page-head.jg-head h1 .c { color: transparent; text-shadow: none; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #b4f03a 0%, #e1f752 52%, #fff07a 100%); filter: drop-shadow(0 3px 16px rgba(142,229,63,0.38)); }
.page-head.jg-head > p { color: #f3e8ef; max-width: 46ch; }
.page-head.jg-head .jg-live { background: rgba(23,4,16,0.62); border-color: rgba(142,229,63,0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.page-head.jg-head .jg-live .faces img { border-color: #170410; }
.page-head.jg-head .jg-tot dt { color: #e2d0dc; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.page-head.jg-head .jg-tot dd { text-shadow: 0 2px 14px rgba(0,0,0,0.7); }
@media (max-width: 760px) {
  .jg-head-art img { object-position: 70% 18%; }
  .jg-head-art::after { background: linear-gradient(180deg, rgba(23,4,16,0.5) 0%, rgba(23,4,16,0.78) 46%, rgba(18,3,13,0.94) 100%),
                                    radial-gradient(80% 60% at 0% 0%, rgba(214,31,122,0.25), transparent 70%); }
}

/* the words of a post: each style always looks the same */
.jg-text strong { font-weight: 800; color: #fff; }   /* thejungle3f (Mortimer: «quita también el color ese … detras abajo de los textos negrita») */
.jg-text em { font-style: italic; color: #ffb8dc; }
.jg-text a { color: var(--jg-slime); font-weight: 600; text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }   /* thejungle3f (Mortimer: «quita la linea en los links … que salga cuando se haga mouseover») */
.jg-text a:hover { text-decoration: underline; }
.jg-text .cm-mention, .jg-text a.cm-mention { color: var(--jg); font-weight: 700; text-decoration: none; }
.jg-text .cm-mention:hover { color: #c7f77e; }
.jg-text .jg-hash { color: var(--jg-pink); font-weight: 800; letter-spacing: 0.005em; text-shadow: 0 0 14px rgba(255,79,163,0.28); }
.jg-text a.jg-hash { text-decoration: none; }

/* ❤ 💬 Share of a post: pills, as under a BASC News post (.nf-pill); the 👁 stays plain on the right */
.jg-acts.is-pills { gap: 8px; margin-left: 0; }
.jg-acts.is-pills .jg-act:not(.jg-views) { height: 34px; min-height: 34px; padding: 0 13px; gap: 7px; border-radius: 999px; font-size: 0.86rem; font-weight: 700;
  color: #e9f5d8; background: color-mix(in srgb, var(--jg) 9%, rgba(255,255,255,0.03)); border: 1px solid color-mix(in srgb, var(--jg) 38%, transparent);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.jg-acts.is-pills .jg-act:not(.jg-views) .jg-svg { width: 16px; height: 16px; }
.jg-acts.is-pills .jg-act:not(.jg-views):hover { color: #fff; background: color-mix(in srgb, var(--jg) 22%, transparent); border-color: color-mix(in srgb, var(--jg) 62%, transparent); }
.jg-acts.is-pills .jg-act[aria-expanded="true"] { color: #fff; background: color-mix(in srgb, var(--jg) 28%, transparent); border-color: var(--jg); }
.jg-acts.is-pills .jg-like:hover { color: #fff; background: rgba(255,79,163,0.14); border-color: rgba(255,79,163,0.6); }
.jg-acts.is-pills .jg-like.on, .jg-acts.is-pills .jg-like.on:hover { color: #fff; background: rgba(255,79,163,0.2); border-color: rgba(255,79,163,0.7);
  box-shadow: 0 6px 18px -10px rgba(255,79,163,0.9); }
.jg-act.jg-like.on { color: var(--jg-pink); }
.jg-acts.is-pills .jg-like.on { color: #fff; }
.jg-act.jg-like.on .jg-svg { color: var(--jg-pink); filter: drop-shadow(0 0 6px rgba(255,79,163,0.55)); }
.jg-act.jg-like:not(.on):hover .jg-svg { color: var(--jg-pink); }
@media (max-width: 760px) {
  .jg-acts.is-pills { gap: 6px; }
  .jg-acts.is-pills .jg-act:not(.jg-views) { height: 32px; min-height: 32px; padding: 0 11px; font-size: 0.82rem; }
}

/* the tabs, the buttons and the ring in the colours of the art */
.jg-tab.on, .jg-btn.go, .jg-apetab[aria-selected="true"] { background: linear-gradient(120deg, #9be83e 0%, #c9f24a 55%, #e9f763 100%); color: var(--jg-ink); }
.jg-tab.on { box-shadow: 0 8px 24px -10px rgba(142,229,63,0.85), inset 0 1px 0 rgba(255,255,255,0.35); }
.jg-btn.go:not(:disabled):hover { box-shadow: 0 12px 28px -10px rgba(214,245,76,0.85), inset 0 1px 0 rgba(255,255,255,0.35); }
.jg-ring.warn { --rg: var(--jg2); } .jg-ring.warn b { color: var(--jg2); }
.jg-ring.over { --rg: var(--jg-pink); } .jg-ring.over b { color: var(--jg-pink); }

/* thejungle3f (Mortimer, 05-11-2026: «como hace twitter, coje la OG card del link (el usuario la puede quitar presionando una X
   de cerrar)»): the card of the first link. Big picture on top (a wide picture), a small one on the left, or text only. */
.jg-lcard { position: relative; margin: 10px 0 6px; max-width: 560px; }
.jg-lcard-go { display: block; overflow: hidden; border-radius: 16px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(42,8,32,0.55), rgba(16,4,14,0.7)); border: 1px solid rgba(142,229,63,0.2);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.jg-lcard-go:hover { border-color: rgba(214,245,76,0.5); box-shadow: 0 14px 34px -18px rgba(142,229,63,0.55); transform: translateY(-1px); }
.jg-lcard-go:focus-visible { outline: 2px solid var(--jg); outline-offset: 2px; }
.jg-lcard .pic { display: block; background: #12040e; }
.jg-lcard .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jg-lcard.is-big .pic { aspect-ratio: 1.91 / 1; border-bottom: 1px solid rgba(255,255,255,0.06); }
.jg-lcard .txt { display: grid; gap: 3px; padding: 11px 14px 12px; min-width: 0; }
.jg-lcard small { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; color: #c9b6c3; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jg-lcard small .jg-svg { width: 13px; height: 13px; color: var(--jg-slime); flex: none; }
.jg-lcard b { font-size: 0.97rem; font-weight: 800; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.jg-lcard .d { font-size: 0.87rem; line-height: 1.4; color: #b9a9b5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.jg-lcard.is-small .jg-lcard-go { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
.jg-lcard.is-small .pic { min-height: 100px; border-right: 1px solid rgba(255,255,255,0.06); }
.jg-lcard.is-small .txt { align-content: center; }
.jg-lcard.is-text .txt { padding: 12px 14px; }
.jg-lcard .x { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: rgba(12,3,10,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,0.18); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.jg-lcard .x:hover { background: rgba(214,31,122,0.85); transform: scale(1.06); }
.jg-lcard .x .jg-svg { width: 15px; height: 15px; }
.jg-lslot { margin: 2px 0 4px; }
.jg-lslot .jg-lcard { margin: 6px 0 2px; animation: jg-lcard-in 0.28s ease both; }
.jg-lslot .jg-lcard-go { cursor: default; }
.jg-lslot .jg-lcard-go:hover { transform: none; box-shadow: none; }
@keyframes jg-lcard-in { from { opacity: 0; transform: translateY(4px); } }
.jg-r .jg-lcard { max-width: 460px; }
.jg-r .jg-lcard.is-big .pic { aspect-ratio: 2.2 / 1; }
@media (max-width: 600px) {
  .jg-lcard.is-small .jg-lcard-go { grid-template-columns: 88px minmax(0, 1fr); }
  .jg-lcard.is-small .pic { min-height: 88px; }
  .jg-lcard .txt { padding: 10px 12px 11px; }
}
@media (prefers-reduced-motion: reduce) { .jg-lslot .jg-lcard { animation: none; } .jg-lcard-go:hover { transform: none; } }

/* thejungle3f (Mortimer, 05-11-2026: «las líneas conectoras de los posts a los comentarios vayan cambiando a amarillo conforme
   los comentarios tomen fama»): the lines go from lime to gold with the fame of the conversation (xe_threads.heat_level:
   1, 3, 5, 8, 12 replies). The trunk from the post follows the post; each branch follows its own reply. */
.jg-thread { --jg-gold: #ffd83d; --jg-trunk: var(--jg-rail); --jg-dot: var(--jg); }
.jg-thread--heat1 { --jg-dot: color-mix(in srgb, var(--jg-gold) 20%, var(--jg)); --jg-trunk: color-mix(in srgb, var(--jg-dot) 54%, #2a1d44); }
.jg-thread--heat2 { --jg-dot: color-mix(in srgb, var(--jg-gold) 40%, var(--jg)); --jg-trunk: color-mix(in srgb, var(--jg-dot) 64%, #2a1d44); }
.jg-thread--heat3 { --jg-dot: color-mix(in srgb, var(--jg-gold) 60%, var(--jg)); --jg-trunk: color-mix(in srgb, var(--jg-dot) 74%, #2a1d44); }
.jg-thread--heat4 { --jg-dot: color-mix(in srgb, var(--jg-gold) 80%, var(--jg)); --jg-trunk: color-mix(in srgb, var(--jg-dot) 84%, #2a1d44); }
.jg-thread--heat5 { --jg-dot: var(--jg-gold); --jg-trunk: color-mix(in srgb, var(--jg-gold) 94%, #2a1d44); }
.jg-thread > .jg-r::before, .jg-thread > .jg-node::before { border-left-color: var(--jg-trunk); border-bottom-color: var(--jg-trunk); }
.jg-thread > .jg-r:not(:last-child)::after, .jg-thread > .jg-node:not(:last-child)::after { background: var(--jg-trunk); }
.jg-thread::after { background: var(--jg-dot); box-shadow: 0 0 10px var(--jg-dot); }
.jg-thread::before { color: color-mix(in srgb, var(--jg-dot) 72%, #cbd5e1); }
.jg-thread--heat5::after { box-shadow: 0 0 14px var(--jg-gold), 0 0 2px #fff inset; }
.jg-node.jg-node--heat1, .jg-node.jg-node--heat1 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, color-mix(in srgb, #ffd83d 20%, var(--jg)) 52%, #2a1d44); }
.jg-node.jg-node--heat2, .jg-node.jg-node--heat2 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, color-mix(in srgb, #ffd83d 40%, var(--jg)) 62%, #2a1d44); }
.jg-node.jg-node--heat3, .jg-node.jg-node--heat3 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, color-mix(in srgb, #ffd83d 60%, var(--jg)) 72%, #2a1d44); }
.jg-node.jg-node--heat4, .jg-node.jg-node--heat4 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, color-mix(in srgb, #ffd83d 80%, var(--jg)) 82%, #2a1d44); }
.jg-node.jg-node--heat5, .jg-node.jg-node--heat5 > .jg-kids > .jg-node { --jg-rail: color-mix(in srgb, #ffd83d 92%, #2a1d44); }

/* ---------- thejungle3g (Mortimer, 05-11-2026: «#hashtags (→ /jungle?tag, Ctrl+K)»): every #tag opens its posts ---------- */
.jg-text a.jg-hash { color: var(--jg-pink); font-weight: 800; text-decoration: none; border-radius: 4px; transition: color .15s ease, text-shadow .15s ease; }
.jg-text a.jg-hash:hover { color: #ff7dbd; text-decoration: underline; text-shadow: 0 0 18px rgba(255,79,163,0.45); }
.jg-text a.jg-hash:focus-visible { outline: 2px solid var(--jg-pink); outline-offset: 2px; }
.jg-tagbar { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 14px; padding: 14px 16px; overflow: hidden;
  background: radial-gradient(420px 140px at 0% 0%, rgba(255,79,163,0.22), transparent 70%), radial-gradient(360px 140px at 100% 100%, rgba(142,229,63,0.12), transparent 70%), linear-gradient(180deg, rgba(42,8,32,0.9), rgba(20,6,22,0.9));
  border-color: rgba(255,79,163,0.32); }
.jg-tagbar .hs { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.7rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--jg-pink), var(--jg-mag)); box-shadow: 0 8px 24px rgba(214,31,122,0.4), inset 0 1px 0 rgba(255,255,255,0.25); }
.jg-tagbar h2 { margin: 0; font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.jg-tagbar small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.jg-tagbar .x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); transition: background .15s ease, color .15s ease; }
.jg-tagbar .x:hover { color: #fff; background: rgba(255,79,163,0.28); }
.jg-tagbar .x svg { width: 18px; height: 18px; }
.jg-trend { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background .15s ease; }
.jg-trend b { min-width: 0; color: var(--jg-pink); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-trend small { flex: none; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.jg-trend:hover, .jg-trend.on { background: rgba(255,79,163,0.1); }
.jg-trend:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .jg-tagbar { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .jg-tagbar .hs { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 14px; }
  .jg-tagbar h2 { font-size: 1.15rem; }
}

/* =====================================================================
   jgglow1 (Mortimer, 05-11-2026: «un poco mas de glow al hacer hover en los bloques de los posts de jungle, le dará un toque
   chulo»): with a mouse, a post in the feed lights up on hover: a lime edge, a soft lime halo around the card and a brighter
   light on its top edge. Heat keeps its own colour and grows a little; «On fire» glows orange. Nothing moves, text colours
   never change; touch screens and reduced motion keep the quiet look.
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  .jg-main > .jg-feed > .jg-post:not(.is-gone) { transition: border-color 0.25s ease, box-shadow 0.35s ease; }
  .jg-main > .jg-feed > .jg-post:not(.is-gone)::before { transition: box-shadow 0.35s ease; }
  .jg-main > .jg-feed > .jg-post:not(.is-gone):hover,
  .jg-main > .jg-feed > .jg-post.jg-heat:not(.hot):not(.is-new):not(.is-gone):hover { --hv: var(--hc);
    border-color: color-mix(in srgb, var(--hv) calc(var(--hbo) + 46%), transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hv) 16%, transparent),
                0 0 calc(var(--hg) + 44px) -6px color-mix(in srgb, var(--hv) calc(var(--hga) + 32%), transparent),
                0 28px 60px -34px color-mix(in srgb, var(--hv) 65%, transparent); }
  .jg-main > .jg-feed > .jg-post.hot:not(.is-gone):hover { --hv: #f97316; }
  .jg-main > .jg-feed > .jg-post:not(.is-gone):hover::before {
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hv, var(--jg)) calc(var(--hbo) + 30%), transparent),
                inset 0 0 56px -24px color-mix(in srgb, var(--hv, var(--jg)) 40%, transparent); }
  .jg-main > .jg-feed > .jg-post:not(.is-gone):has(> .jg-convo > :not([hidden])):hover::before {
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hv, var(--jg)) calc(var(--hbo) + 30%), transparent),
                inset 0 0 56px -24px color-mix(in srgb, var(--hv, var(--jg)) 40%, transparent), inset 0 -1px 0 rgba(140,255,200,0.12); }
  /* a reply in the conversation: the same light, smaller */
  .jg-thread .jg-r:not(.is-gone):not(.is-target):hover { box-shadow: 0 0 22px -8px color-mix(in srgb, var(--hc, var(--jg)) 34%, transparent),
                inset 0 1px 0 color-mix(in srgb, var(--hc, var(--jg)) 22%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .jg-main > .jg-feed > .jg-post:not(.is-gone), .jg-main > .jg-feed > .jg-post:not(.is-gone)::before { transition: none; }
}
