/* club388 support chat (2026-10-06) — the member centre B look: navy header, light body, the site's
   metallic gold for the launcher / send. Full-screen sheet on phones, a card on wider screens. */
#jpr-chat{--jc-navy:#1a3046;--jc-navy2:#0f1d2b;--jc-text:#152433;--jc-text2:#4f5d6e;--jc-line:#d3deea;--jc-bg:#f3f7fb;
  --jc-gold:linear-gradient(180deg,#fff1c9 0%,#f3cd6e 46%,#dcaa3f 54%,#f0c865 100%);
  --jc-header-bg:linear-gradient(180deg,var(--jc-navy),var(--jc-navy2));--jc-header-ink:#fff;
  --jc-bot-bg:#fff;--jc-user-bg:var(--jc-navy);--jc-user-ink:#fff;
  --jc-launcher-bg:var(--jc-gold);--jc-launcher-ink:var(--jc-navy2);--jc-accent:#e2a332;
  position:fixed;z-index:1000000;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));
  font:400 15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans Myanmar","Myanmar Text","Myanmar Sangam MN",Padauk,sans-serif;
  color:var(--jc-text);text-align:left}
#jpr-chat[hidden]{display:none}
#jpr-chat *{box-sizing:border-box}
/* Host themes often add margins to every button, including close/send controls. */
#jpr-chat button{margin:0!important}
#jpr-chat svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#jpr-chat .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* launcher */
#jpr-chat .jc-fab{position:relative;width:58px;height:58px;border:0;border-radius:50%;padding:0;cursor:pointer;display:grid;place-items:center;
  background:var(--jc-launcher-bg)!important;color:var(--jc-launcher-ink)!important;box-shadow:inset 0 -2px 0 rgba(120,72,0,.3),0 6px 18px rgba(0,0,0,.35);transition:transform .15s ease}
/* Jimmy 10-06: the bubble keeps gently zooming in and out so players notice it */
#jpr-chat .jc-fab{animation:jcPulse 1.6s ease-in-out infinite;will-change:transform}
#jpr-chat .jc-fab:active{animation:none;transform:scale(.95)}
/* no ring around the bubble after a tap / when focus comes back to it (Jimmy 10-06) */
#jpr-chat .jc-fab,#jpr-chat .jc-fab:focus,#jpr-chat .jc-fab:focus-visible{outline:none!important;-webkit-tap-highlight-color:transparent}
#jpr-chat .jc-fab svg{width:28px;height:28px}
#jpr-chat .jc-fab.jc-double-bubble{background:var(--jc-launcher-bg)!important}
#jpr-chat .jc-fab .jc-mark{position:relative;display:block;width:38px;height:38px;background:var(--jc-launcher-ink);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
#jpr-chat .jc-mark-dot{position:absolute;top:40%;left:35%;width:3.5px;height:3.5px;border-radius:50%;background:var(--jc-launcher-bg);animation:jcMarkBounce 1.35s ease-in-out infinite;pointer-events:none}
#jpr-chat .jc-mark-dot:nth-of-type(2){left:46%;animation-delay:.18s}
#jpr-chat .jc-mark-dot:nth-of-type(3){left:57%;animation-delay:.36s}
@keyframes jcMarkBounce{0%,40%,100%{transform:translateY(0)}20%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){#jpr-chat .jc-mark-dot{animation:none}}
#jpr-chat .jc-fab .jc-mark img{display:block;width:100%;height:100%;opacity:0;pointer-events:none}
#jpr-chat .jc-fab svg[hidden]{display:none}
#jpr-chat .jc-fab .ln{stroke-width:2.2}
#jpr-chat .jc-dot{position:absolute;top:4px;right:4px;width:13px;height:13px;border-radius:50%;background:#e5484d;border:2px solid #fff}
#jpr-chat.on .jc-fab{display:none}

/* Optional per-site eye-catcher. Independent of the host theme's buttons. */
#jpr-chat .jc-eye{position:fixed;z-index:1;max-width:calc(100vw - 24px)}
#jpr-chat .jc-eye[hidden]{display:none!important}
#jpr-chat .jc-eye-open{display:block;width:100%;padding:0!important;margin:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;cursor:pointer;line-height:0}
#jpr-chat .jc-eye-open img{display:block;width:100%;height:auto;max-height:45vh;object-fit:contain;border:0;border-radius:0}
#jpr-chat .jc-eye-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:0!important;border:0;border-radius:50%;background:#fff!important;color:#263342!important;box-shadow:0 1px 6px #0003;cursor:pointer;line-height:0}
#jpr-chat .jc-eye-close svg{width:16px;height:16px}

/* panel */
#jpr-chat .jc-panel{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--jc-bg);animation:jcUp .25s cubic-bezier(.2,.8,.2,1)}
#jpr-chat .jc-panel[hidden]{display:none}
#jpr-chat .jc-head{position:relative!important;flex:none;display:flex;align-items:center;gap:12px;padding:12px 8px 12px 16px;padding-top:calc(12px + env(safe-area-inset-top));
  background:var(--jc-header-bg);color:var(--jc-header-ink)}
#jpr-chat .jc-av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--jc-gold);color:var(--jc-navy2)}
#jpr-chat .jc-av svg{width:22px;height:22px}
#jpr-chat .jc-av-logo{width:auto;max-width:132px;height:44px;border-radius:0;background:transparent;padding:0}
#jpr-chat .jc-av-logo img{display:block;width:auto;max-width:132px;height:auto;max-height:44px;object-fit:contain}
#jpr-chat .jc-head div{flex:1;min-width:0}
#jpr-chat .jc-head strong{display:block;font-size:16px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#jpr-chat .jc-head small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:inherit;opacity:.85}
#jpr-chat .jc-head small::before{content:"";width:8px;height:8px;border-radius:50%;background:#3ccf7a}
#jpr-chat .jc-x{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:transparent!important;color:inherit!important;display:grid;place-items:center;cursor:pointer;padding:0}
#jpr-chat .jc-x:hover{background:rgba(255,255,255,.08)}
#jpr-chat .jc-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:var(--jc-bg);padding:16px 12px 8px}
#jpr-chat .jc-list{display:flex;flex-direction:column;gap:8px}
#jpr-chat .jc-m{max-width:84%;display:flex;flex-direction:column;gap:6px}
#jpr-chat .jc-m p{margin:0;padding:9px 13px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere}
#jpr-chat .jc-m.them{align-self:flex-start}
#jpr-chat .jc-m.them p{background:var(--jc-bot-bg);border:1px solid var(--jc-line);border-bottom-left-radius:5px;color:var(--jc-text)}
#jpr-chat .jc-m.me{align-self:flex-end;align-items:flex-end}
#jpr-chat .jc-m.me p{background:var(--jc-user-bg);color:var(--jc-user-ink);text-shadow:var(--jc-user-shadow,none);border-bottom-right-radius:5px}
#jpr-chat .jc-m.pending{opacity:.6}
#jpr-chat .jc-m a{color:inherit;text-decoration:underline;word-break:break-all}
#jpr-chat .jc-m.me a{color:inherit}
#jpr-chat .jc-m img{display:block;max-width:220px;max-height:260px;border-radius:12px;border:1px solid var(--jc-line);background:#fff}
#jpr-chat .jc-m b{font-weight:700}
#jpr-chat .jc-note{align-self:center;font-size:12.5px;color:var(--jc-text2);background:var(--jc-bot-bg);border-radius:999px;padding:4px 12px;margin:4px 0}
#jpr-chat .jc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 4px;margin-inline-start:20px;max-width:calc(100% - 20px)}
#jpr-chat .jc-chips button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;border:1px solid var(--jc-accent);background:var(--jc-bot-bg)!important;color:var(--jc-text)!important;border-radius:999px;padding:7px 12px;font:inherit;font-size:14px;cursor:pointer;text-align:left}
#jpr-chat .jc-chips button:active{filter:brightness(.95)}
#jpr-chat .jc-typing p{display:flex;gap:4px;align-items:center;height:38px}
#jpr-chat .jc-typing i{width:7px;height:7px;border-radius:50%;background:#9aa8b6;animation:jcDot 1.2s infinite ease-in-out}
#jpr-chat .jc-typing i:nth-child(2){animation-delay:.15s}#jpr-chat .jc-typing i:nth-child(3){animation-delay:.3s}

/* composer */
#jpr-chat .jc-form{flex:none;display:flex;align-items:flex-end;gap:8px;padding:10px 10px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--jc-line);background:var(--jc-bg)}
#jpr-chat .jc-cam{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--jc-text2);cursor:pointer}
#jpr-chat .jc-cam:hover{background:var(--jc-bg)}
#jpr-chat textarea{flex:1;min-width:0;min-height:44px;resize:none;border:1px solid var(--jc-line);border-radius:22px;padding:11px 14px;font:inherit;font-size:16px;line-height:1.35;
  max-height:120px;background:var(--jc-bg)!important;color:var(--jc-text)!important;-webkit-text-fill-color:var(--jc-text)!important;caret-color:var(--jc-text)!important;outline:none;margin:0;box-shadow:none}
#jpr-chat textarea::placeholder{color:var(--jc-text2)!important;-webkit-text-fill-color:var(--jc-text2)!important;opacity:1}
#jpr-chat textarea:focus{border-color:var(--jc-accent);background:var(--jc-bot-bg)!important}
#jpr-chat .jc-send{flex:none;width:44px;height:44px;border:0;border-radius:50%;padding:0;display:grid;place-items:center;cursor:pointer;
  background:var(--jc-launcher-bg)!important;color:var(--jc-launcher-ink)!important;box-shadow:inset 0 -2px 0 rgba(120,72,0,.3)}
#jpr-chat .jc-send:disabled{background:#e3e9f0!important;color:#9aa8b6!important;box-shadow:none;cursor:default}
#jpr-chat .jc-send svg{width:20px;height:20px;margin-left:-2px}

html.jc-lock,html.jc-lock body{overflow:hidden}
@media (min-width:600px){
  html.jc-lock,html.jc-lock body{overflow:visible}
  #jpr-chat .jc-panel{inset:auto 20px calc(20px + env(safe-area-inset-bottom)) auto;width:380px;height:min(640px,calc(100vh - 40px));border-radius:18px;overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.35);animation:jcIn .2s ease-out}
  #jpr-chat .jc-head{padding-top:12px}
}
@keyframes jcPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes jcUp{from{transform:translateY(100%)}}
@keyframes jcIn{from{opacity:0;transform:translateY(12px)}}
@keyframes jcDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){#jpr-chat .jc-panel,#jpr-chat .jc-typing i,#jpr-chat .jc-fab{animation:none}}
