/* jkreact 1.2.4 — free-standing mascot (blur back + sharp front, local rotate), glossy ball skin, Heiti UI */
.jkreact-root {
  --jk-ink: #0f172a;
  --jk-muted: #64748b;
  --jk-line: #e2e8f0;
  --jk-card: #ffffff;
  --jk-accent: #4f46e5;
  --jk-bubble-a: 0.9;
  --jk-ball-size: 88px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", SimHei, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.jkreact-root *, .jkreact-root *::before, .jkreact-root *::after { box-sizing: border-box; }

/* ========== Fixed bar ========== */
.jkreact-fixed { margin: 1.25rem 0 0.5rem; }
.jkreact-card {
  background: var(--jk-card);
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.jkreact-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--jk-ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.jkreact-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.jkreact-btn {
  appearance: none;
  border: 1px solid var(--jk-line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--jk-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jkreact-btn:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); transform: translateY(-1px); }
.jkreact-btn.is-voted { border-color: #c7d2fe; background: #eef2ff; }
.jkreact-emoji { font-size: 1.25rem; line-height: 1; display: inline-block; }
.jkreact-count { font-size: 0.78rem; font-weight: 700; color: var(--jk-muted); min-width: 1em; }
.jkreact-count[hidden] { display: none !important; }

.jkreact-root.is-inview .jkreact-browse-bounce .jkreact-emoji { animation: jkreact-idle-float 2.4s ease-in-out infinite; }
.jkreact-root.is-inview .jkreact-browse-hearts .jkreact-emoji { animation: jkreact-idle-pulse 2.2s ease-in-out infinite; }
.jkreact-root.is-inview .jkreact-browse-wobble .jkreact-emoji { animation: jkreact-idle-sway 2.8s ease-in-out infinite; }
.jkreact-root.is-inview .jkreact-browse-confetti .jkreact-emoji { animation: jkreact-idle-shimmer 2.6s ease-in-out infinite; }
.jkreact-root.is-inview .jkreact-browse-flash .jkreact-emoji { animation: jkreact-idle-tick 3s ease-in-out infinite; }
.jkreact-root.is-inview .jkreact-browse-flame .jkreact-emoji { animation: jkreact-idle-glow 2s ease-in-out infinite; }

@keyframes jkreact-idle-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
@keyframes jkreact-idle-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes jkreact-idle-sway { 0%,100%{transform:rotate(0)} 50%{transform:rotate(-8deg)} }
@keyframes jkreact-idle-shimmer { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.15)} }
@keyframes jkreact-idle-tick { 0%,100%{transform:scale(1)} 40%{transform:scale(1.05)} }
@keyframes jkreact-idle-glow { 0%,100%{filter:drop-shadow(0 0 0 transparent)} 50%{filter:drop-shadow(0 0 4px #f97316)} }

.jkreact-btn.is-enter { animation: jkreact-btn-in 0.45s ease both; }
@keyframes jkreact-btn-in {
  0% { transform: translateY(8px) scale(0.6); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.jkreact-btn.fx-bounce .jkreact-emoji { animation: jkreact-fx-bounce 0.55s ease; }
.jkreact-btn.fx-hearts .jkreact-emoji { animation: jkreact-fx-hearts 0.7s ease; }
.jkreact-btn.fx-wobble .jkreact-emoji { animation: jkreact-fx-wobble 0.6s ease; }
.jkreact-btn.fx-confetti .jkreact-emoji { animation: jkreact-fx-confetti 0.7s ease; }
.jkreact-btn.fx-flash .jkreact-emoji { animation: jkreact-fx-flash 0.5s ease; }
.jkreact-btn.fx-flame .jkreact-emoji { animation: jkreact-fx-flame 0.6s ease; }
@keyframes jkreact-fx-bounce { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-10px) scale(1.15)} }
@keyframes jkreact-fx-hearts { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
@keyframes jkreact-fx-wobble { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-18deg)} 75%{transform:rotate(18deg)} }
@keyframes jkreact-fx-confetti { 0%{transform:scale(1) rotate(0)} 50%{transform:scale(1.2) rotate(20deg)} 100%{transform:none} }
@keyframes jkreact-fx-flash { 0%,100%{filter:brightness(1)} 40%{filter:brightness(1.6)} }
@keyframes jkreact-fx-flame { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px) scale(1.1)} }

.jkreact-greet {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 8px 10px;
  background: #f1f5f9; border-radius: 10px;
  font-size: 0.88rem; color: #334155; font-weight: 500;
}
.jkreact-rec { margin-top: 12px; }
.jkreact-rec-hd { font-size: 0.8rem; font-weight: 700; color: var(--jk-muted); margin-bottom: 6px; }
.jkreact-rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.jkreact-rec-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--jk-ink);
  padding: 6px 8px; border-radius: 8px;
}
.jkreact-rec-link:hover { background: #f8fafc; }
.jkreact-rec-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 6px;
  background: #e2e8f0; font-size: 0.72rem; font-weight: 700; color: #475569; flex-shrink: 0;
}
.jkreact-rec-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; font-weight: 500; }
.jkreact-rec-views { font-size: 0.72rem; color: var(--jk-muted); }
.jkreact-rec-views::after { content: " 阅"; }

/* ========== Float widget ========== */
.jkreact-float {
  position: fixed !important;
  z-index: 2147482500 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: max-content;
  max-width: min(92vw, 240px);
  touch-action: none;
  pointer-events: none;
  isolation: isolate;
}
.jkreact-float .jkreact-bubble,
.jkreact-float .jkreact-ball-wrap,
.jkreact-float .jkreact-dock-tools {
  pointer-events: auto;
}

.jkreact-float:not(.is-placed).jkreact-corner-br { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: auto; top: auto; }
.jkreact-float:not(.is-placed).jkreact-corner-bl { left: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); right: auto; top: auto; align-items: flex-start; }
.jkreact-float:not(.is-placed).jkreact-corner-tr { right: 16px; top: 64px; left: auto; bottom: auto; }
.jkreact-float:not(.is-placed).jkreact-corner-tl { left: 16px; top: 64px; right: auto; bottom: auto; align-items: flex-start; }

.jkreact-float.jkreact-side-right { align-items: flex-end; }
.jkreact-float.jkreact-side-left { align-items: flex-start; }

.jkreact-float.is-dragging { opacity: 0.94; cursor: grabbing; }
.jkreact-float.is-dragging .jkreact-bubble { pointer-events: none; opacity: 0.35; }

.jkreact-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

/* No outer ring / light gray frame — clean avatar only */
.jkreact-ball-wrap {
  position: relative;
  width: min(var(--jk-ball-size, 56px), 96px);
  height: min(var(--jk-ball-size, 56px), 96px);
  cursor: grab;
  flex-shrink: 0;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.jkreact-ball-wrap::before { content: none !important; display: none !important; }
.jkreact-float.jkreact-skin-ball .jkreact-ball-wrap::after { content: none !important; display: none !important; }
.jkreact-float.is-dragging .jkreact-ball-wrap { cursor: grabbing; }

.jkreact-ball {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: block;
}
.jkreact-ball:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.7);
  outline-offset: 3px;
}

/* Glossy textured black ball (skin=ball) — no outer ring */
.jkreact-skin-ball .jkreact-ball-wrap {
  border-radius: 50%;
}
.jkreact-skin-ball .jkreact-ball--engine {
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 22%, transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(0,0,0,0.55) 0%, transparent 45%),
    linear-gradient(160deg, #3a3a42 0%, #151518 42%, #0a0a0c 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 14px rgba(0, 0, 0, 0.35);
}

/* Swordsman / arbitrary character — FREE-STANDING cutout (no sphere shell) */
/* Soft Gaussian-blur back plate + sharp front; layers rotate independently */
.jkreact-skin-swordsman .jkreact-ball-wrap {
  border-radius: 0;
  width: var(--jk-ball-size);
  height: var(--jk-ball-size);
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}
.jkreact-ball--mascot {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  cursor: grab;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.jkreact-mascot-stage {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 420px;
}
/* Soft character-feature back: larger, blurred, lower opacity — trails on local spin */
.jkreact-mascot-back {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 138%;
  height: 138%;
  max-width: none;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: 48% 58%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  filter: blur(0.4px) saturate(1.15) brightness(1.05);
  will-change: transform, opacity, filter;
}
/* Sharp front cutout — face / sword / body features */
.jkreact-mascot-front {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.jkreact-mascot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 0;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.32)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
  transform-origin: 48% 62%;
  will-change: transform;
}
/* Idle: front face/eyes stay fixed (tiny breathe only); motion on gaussian-blur BACK */
.jkreact-float.jkreact-skin-swordsman:not(.is-spinning):not(.is-bounce):not(.is-dragging):not(.is-celebrate) .jkreact-mascot-front {
  animation: jkreact-front-idle 3.6s ease-in-out infinite;
}
.jkreact-float.jkreact-skin-swordsman:not(.is-spinning):not(.is-bounce):not(.is-dragging):not(.is-celebrate) .jkreact-mascot-back {
  animation: jkreact-back-idle 5.2s ease-in-out infinite;
}
@keyframes jkreact-front-idle {
  /* Eyes/face locked — no rotate; only soft scale/lift so pupils stay put */
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.012); }
}
@keyframes jkreact-back-idle {
  0%,100% { transform: translate(-50%, -50%) scale(1.08) rotate(3deg); opacity: 0.68; filter: blur(0.4px) saturate(1.15) brightness(1.05); }
  50% { transform: translate(-50%, -50%) scale(1.16) rotate(-8deg); opacity: 0.84; filter: blur(1.2px) saturate(1.25) brightness(1.1); }
}

/* Spin / turn / celebrate: rotation mainly on blur BACK; front stays eye-stable */
.jkreact-float.is-spinning .jkreact-mascot-front,
.jkreact-float.is-celebrate .jkreact-mascot-front {
  animation: jkreact-front-stable-pop 0.95s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.jkreact-float.is-spinning .jkreact-mascot-back,
.jkreact-float.is-celebrate .jkreact-mascot-back {
  animation: jkreact-back-turn-spin 1.25s cubic-bezier(0.18, 0.7, 0.25, 1) both;
}
.jkreact-float.is-spinning .jkreact-ball--engine,
.jkreact-float.is-celebrate .jkreact-ball--engine {
  animation: jkreact-spin 0.85s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.jkreact-float.is-bounce .jkreact-mascot-front {
  animation: jkreact-front-stable-pop 0.58s ease both;
}
.jkreact-float.is-bounce .jkreact-mascot-back {
  animation: jkreact-back-sway 0.72s ease both;
}

/* Front: pop/lift only — eyes stay visually fixed */
@keyframes jkreact-front-stable-pop {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-3px) scale(1.05); }
  70%  { transform: translateY(-1px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
/* Back: turn / orbit / blur trail (人物转身在高斯模糊层) */
@keyframes jkreact-back-turn-spin {
  0%   { transform: translate(-50%, -50%) scale(1.08) rotate(0deg); filter: blur(0.4px) saturate(1.15); opacity: 0.7; }
  25%  { transform: translate(-50%, -50%) scale(1.22) rotate(-42deg); filter: blur(2.8px) saturate(1.35) brightness(1.12); opacity: 0.92; }
  55%  { transform: translate(-50%, -50%) scale(1.32) rotate(200deg); filter: blur(4.2px) saturate(1.4) brightness(1.15); opacity: 0.88; }
  100% { transform: translate(-50%, -50%) scale(1.08) rotate(360deg); filter: blur(0.4px) saturate(1.15); opacity: 0.72; }
}
@keyframes jkreact-back-sway {
  0%,100% { transform: translate(-50%, -50%) scale(1.08) rotate(0deg); opacity: 0.7; filter: blur(0.4px) saturate(1.15); }
  45% { transform: translate(-50%, -52%) scale(1.24) rotate(22deg); opacity: 0.9; filter: blur(2.6px) saturate(1.3) brightness(1.1); }
}
@keyframes jkreact-spin {
  from { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(200deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1); }
}

/* Mission-complete confetti / ribbons around free-standing mascot */
.jkreact-fx-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.jkreact-fx-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 1.5px;
  background: var(--jk-c, #fbbf24);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
  animation: jkreact-fx-fly 1.15s cubic-bezier(0.15, 0.75, 0.25, 1) both;
  animation-delay: var(--jk-delay, 0ms);
  transform: rotate(var(--jk-a, 0deg)) translateY(0) scale(0.4);
  opacity: 0;
}
.jkreact-fx-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 16px;
  margin: -8px 0 0 -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--jk-c, #f472b6), transparent);
  opacity: 0;
  animation: jkreact-fx-ribbon 1.25s ease-out both;
  animation-delay: var(--jk-delay, 0ms);
  transform-origin: 50% 100%;
}
@keyframes jkreact-fx-fly {
  0% { opacity: 0; transform: rotate(var(--jk-a, 0deg)) translateY(0) scale(0.3) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--jk-a, 0deg)) translateY(calc(var(--jk-d, 36px) * -1)) scale(1) rotate(var(--jk-rot, 180deg)); }
}
@keyframes jkreact-fx-ribbon {
  0% { opacity: 0; transform: rotate(var(--jk-a, 0deg)) translateY(0) scaleY(0.4); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: rotate(calc(var(--jk-a, 0deg) + 40deg)) translateY(-42px) scaleY(1.1); }
}
.jkreact-float.is-celebrate .jkreact-ball-wrap {
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
}

.jkreact-dock-tools {
  pointer-events: auto;
}

.jkreact-float:not(.is-placed).jkreact-corner-br { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: auto; top: auto; }
.jkreact-float:not(.is-placed).jkreact-corner-bl { left: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); right: auto; top: auto; align-items: flex-start; }
.jkreact-float:not(.is-placed).jkreact-corner-tr { right: 16px; top: 64px; left: auto; bottom: auto; }
.jkreact-float:not(.is-placed).jkreact-corner-tl { left: 16px; top: 64px; right: auto; bottom: auto; align-items: flex-start; }

.jkreact-float.jkreact-side-right { align-items: flex-end; }
.jkreact-float.jkreact-side-left { align-items: flex-start; }

.jkreact-float.is-dragging { opacity: 0.94; cursor: grabbing; }
.jkreact-float.is-dragging .jkreact-bubble { pointer-events: none; opacity: 0.35; }

.jkreact-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

/* No outer ring / light gray frame — clean avatar only */
.jkreact-ball-wrap {
  position: relative;
  width: min(var(--jk-ball-size, 56px), 96px);
  height: min(var(--jk-ball-size, 56px), 96px);
  cursor: grab;
  flex-shrink: 0;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.jkreact-ball-wrap::before { content: none !important; display: none !important; }
.jkreact-float.jkreact-skin-ball .jkreact-ball-wrap::after { content: none !important; display: none !important; }
.jkreact-float.is-dragging .jkreact-ball-wrap { cursor: grabbing; }

.jkreact-ball {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: block;
}
.jkreact-ball:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.7);
  outline-offset: 3px;
}

/* Glossy textured black ball (skin=ball) — no outer ring */
.jkreact-skin-ball .jkreact-ball-wrap {
  border-radius: 50%;
}
.jkreact-skin-ball .jkreact-ball--engine {
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 22%, transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(0,0,0,0.55) 0%, transparent 45%),
    linear-gradient(160deg, #3a3a42 0%, #151518 42%, #0a0a0c 100%);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 14px rgba(0, 0, 0, 0.35);
}

/* Swordsman mascot — 2D cutout recomposed onto glossy 3D sphere (no outer gray ring) */
.jkreact-skin-swordsman .jkreact-ball-wrap {
  border-radius: 50%;
  width: var(--jk-ball-size);
  height: var(--jk-ball-size);
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}
.jkreact-ball--mascot {
  border-radius: 50%;
  overflow: visible;
  background: transparent;
  cursor: grab;
  border: none;
  padding: 0;
}
.jkreact-mascot-pic,
.jkreact-mascot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 50%;
  /* soft contact shadow only — asset already has specular + depth */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.38)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.22));
  transform-origin: 50% 50%;
}
/* Front img must NOT full-spin (keeps eyes fixed); engine spin handled above for ball skin */
.jkreact-float.is-bounce .jkreact-mascot-img {
  animation: jkreact-mascot-bounce 0.55s ease;
}
@keyframes jkreact-mascot-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-6px) scale(1.04); }
}

.jkreact-dock-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.jkreact-reset-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 20, 0.88);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.jkreact-float.is-placed:hover .jkreact-reset-btn,
.jkreact-float.is-open .jkreact-reset-btn,
.jkreact-float.is-away .jkreact-reset-btn {
  opacity: 1;
  pointer-events: auto;
}
.jkreact-reset-btn:hover { background: rgba(30, 34, 48, 0.95); color: #fff; }

/* White translucent frosted bubble — one sentence only (Heiti) */
.jkreact-bubble {
  position: relative;
  width: min(78vw, 200px);
  animation: jkreact-bubble-in 0.28s ease both;
}
.jkreact-bubble--lite { width: min(72vw, 180px); }
.jkreact-bubble[hidden] { display: none !important; }
.jkreact-bubble-glass {
  position: relative;
  border-radius: 16px;
  padding: 10px 28px 10px 12px;
  color: #1f2937;
  font-family: "PingFang SC", "Heiti SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, calc(var(--jk-bubble-a, 0.9) * 0.72)) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.jkreact-bubble-tail {
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
  display: block;
}
.jkreact-corner-bl .jkreact-bubble-tail,
.jkreact-corner-tl .jkreact-bubble-tail,
.jkreact-side-left .jkreact-bubble-tail {
  right: auto;
  left: 22px;
}

.jkreact-bubble-toolbar { display: none; }
.jkreact-bubble-hd { display: none; }
.jkreact-bubble-close {
  appearance: none;
  border: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
}
.jkreact-bubble-close:hover { background: rgba(15, 23, 42, 0.12); color: #334155; }

.jkreact-bubble-greet {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
  margin: 0;
}
.jkreact-bubble-greet-txt {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* tip replaces the one-liner visually */
.jkreact-bubble-tip {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  animation: jkreact-tip-in 0.22s ease both;
}
.jkreact-bubble-tip[hidden] { display: none !important; }
.jkreact-bubble:has(.jkreact-bubble-tip:not([hidden])) .jkreact-bubble-greet { display: none; }
/* hide crowded extras by default */
.jkreact-bubble--lite .jkreact-bubble-rec,
.jkreact-bubble--lite .jkreact-mini-bar { display: none !important; }

.jkreact-bubble-rec { margin-top: 4px; }
.jkreact-bubble-rec-hd {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.jkreact-chips { display: flex; flex-direction: column; gap: 4px; }
.jkreact-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #f1f5f9;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 500;
}
.jkreact-chip:hover { background: rgba(255, 255, 255, 0.1); }
.jkreact-chip-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  color: #e0e7ff;
  flex-shrink: 0;
}
.jkreact-chip-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jkreact-mini-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.jkreact-mini-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.78rem;
}
.jkreact-mini-btn:hover { background: rgba(255, 255, 255, 0.12); }
.jkreact-mini-btn.is-voted { border-color: rgba(129, 140, 248, 0.45); background: rgba(99, 102, 241, 0.25); }
.jkreact-mini-cnt { font-size: 0.68rem; font-weight: 700; color: #cbd5e1; }
.jkreact-mini-cnt[hidden] { display: none !important; }

@keyframes jkreact-bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes jkreact-tip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .jkreact-float { max-width: min(94vw, 220px); }
  .jkreact-bubble { width: min(84vw, 230px); }
}

@media (prefers-reduced-motion: reduce) {
  .jkreact-float.is-spinning .jkreact-mascot-front,
  .jkreact-float.is-spinning .jkreact-mascot-back,
  .jkreact-float.is-spinning .jkreact-ball--engine,
  .jkreact-float.is-celebrate .jkreact-mascot-front,
  .jkreact-float.is-celebrate .jkreact-mascot-back,
  .jkreact-float.is-celebrate .jkreact-ball--engine,
  .jkreact-float.is-bounce .jkreact-mascot-front,
  .jkreact-float.is-bounce .jkreact-mascot-back,
  .jkreact-float.jkreact-skin-swordsman:not(.is-spinning):not(.is-celebrate) .jkreact-mascot-front,
  .jkreact-float.jkreact-skin-swordsman:not(.is-spinning):not(.is-celebrate) .jkreact-mascot-back,
  .jkreact-fx-piece,
  .jkreact-fx-ribbon,
  .jkreact-btn.is-enter,
  .jkreact-bubble,
  .jkreact-bubble-tip { animation: none !important; }
}

/* 害羞(14) slightly smaller */
.jkreact-float.is-shy .jkreact-ball-wrap {
  transform: scale(0.86);
  transform-origin: 50% 100%;
}
.jkreact-float.is-sleeping .jkreact-mascot-front {
  opacity: 0.92;
  filter: brightness(0.96);
}
.jkreact-float.is-researching .jkreact-mascot-back {
  animation: jkreact-back-idle 2.4s ease-in-out infinite !important;
  filter: blur(1.6px) saturate(1.3) brightness(1.08);
}

/* 1.2.5：球/人物以全黑为主，白色仅用于眼睛/高光必要处 */
.jkreact-float.jkreact-skin-ball .jkreact-ball--engine,
.jkreact-float.jkreact-skin-ball .jkreact-ball-wrap {
  filter: none;
}
.jkreact-float.jkreact-skin-swordsman .jkreact-mascot-front .jkreact-mascot-img,
.jkreact-float.jkreact-skin-swordsman .jkreact-mascot-img {
  /* keep silhouette dark; asset may already be dark — boost black, preserve specular whites via contrast */
  filter:
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25))
    brightness(0.42) contrast(1.25) saturate(0.35);
}
.jkreact-float.jkreact-skin-swordsman .jkreact-mascot-back {
  filter: blur(0.5px) brightness(0.28) contrast(1.15) saturate(0.25);
  opacity: 0.78;
}
.jkreact-float.jkreact-skin-swordsman.is-spinning .jkreact-mascot-back,
.jkreact-float.jkreact-skin-swordsman.is-celebrate .jkreact-mascot-back {
  /* celebrate still on dark back */
}
.jkreact-float.jkreact-skin-swordsman .jkreact-ball-wrap {
  background: transparent;
}
/* soft white specular dot overlay (necessary highlight only) */
.jkreact-float.jkreact-skin-swordsman .jkreact-ball-wrap::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 28%;
  top: 18%;
  width: 18%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0.85;
}
