/**
 * OJ Bot — floating onboarding helper (customers + tradies + public showroom)
 */
.oj-bot-root {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

/* ——— Public showroom (marketing pages: comedy + CTA, no AI) ——— */
.oj-bot-root.is-showroom .oj-bot-ask-card {
  max-width: 22rem;
}
.oj-bot-showroom-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.oj-bot-showroom-btn {
  display: block;
  text-align: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
  pointer-events: auto;
}
.oj-bot-showroom-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.oj-bot-showroom-btn--primary {
  background: var(--oj-pub-accent, #dc2626);
  color: #fff !important;
}
.oj-bot-showroom-btn--secondary {
  background: #0f172a;
  color: #fff !important;
}
.oj-bot-showroom-btn--ghost {
  background: #f1f5f9;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
}
.oj-bot-root.is-showroom-open .oj-bot-ask-panel {
  pointer-events: auto;
}
/* Showroom: never show product tour chrome */
.oj-bot-root.is-showroom [data-oj-bot-skip],
.oj-bot-root.is-showroom [data-oj-bot-next] {
  display: none !important;
}


/* ——— Showroom ODDJOBS digger (public only) ——— */
.oj-fx-jcb {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Never re-show while [hidden] — beats parade display:block during teardown */
.oj-fx-jcb[hidden],
.oj-bot-root:not(.is-showroom-parade-jcb) .oj-fx-jcb {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-showroom-parade .oj-bot-speech {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.oj-bot-root.is-showroom-parade-jcb .oj-bot-stage {
  width: 240px !important;
  height: 150px !important;
  overflow: visible !important;
  will-change: left, top;
}
.oj-bot-root.is-showroom-parade-jcb .oj-fx-jcb:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 240px !important;
  height: 140px !important;
  z-index: 2;
  pointer-events: none !important;
  overflow: visible !important;
}
.oj-bot-root.is-showroom-jcb-flip .oj-fx-jcb {
  transform: scaleX(-1);
  transform-origin: 120px 70px;
}
.oj-fx-jcb-chassis {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Yellow body */
.oj-fx-jcb-body {
  position: absolute;
  left: 54px;
  bottom: 28px;
  width: 100px;
  height: 42px;
  background: linear-gradient(180deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
  border: 3px solid #0f172a;
  border-radius: 12px 16px 10px 10px;
  box-shadow:
    inset 0 -8px 0 rgba(0,0,0,0.12),
    0 6px 0 rgba(15,23,42,0.15);
}
.oj-fx-jcb-counter {
  position: absolute;
  left: 38px;
  bottom: 34px;
  width: 28px;
  height: 28px;
  background: #a16207;
  border: 3px solid #0f172a;
  border-radius: 6px;
  z-index: 1;
}
/* Cab */
.oj-fx-jcb-cab {
  position: absolute;
  left: 72px;
  bottom: 58px;
  width: 56px;
  height: 48px;
  background: linear-gradient(180deg, #38bdf8, #0369a1);
  border: 3px solid #0f172a;
  border-radius: 10px 10px 4px 4px;
  z-index: 4;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.oj-fx-jcb-roof {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  height: 10px;
  background: #0f172a;
  border-radius: 6px 6px 0 0;
}
.oj-fx-jcb-glass {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 18px;
  background: linear-gradient(180deg, #e0f2fe, #7dd3fc);
  border: 2px solid #0c4a6e;
  border-radius: 4px;
}
.oj-fx-jcb-seat {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}
/* OJ in the seat */
.oj-bot-root.is-showroom-parade-jcb .oj-bot-char.is-showroom-jcb-driver {
  position: relative !important;
  width: 48px !important;
  height: 50px !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  animation: ojJcbBounce 0.5s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)) !important;
  transform: none !important;
  z-index: 6;
}
.oj-bot-root.is-showroom-parade-jcb .oj-bot-char .oj-bot-svg {
  width: 100%;
  height: 100%;
}
/* Digging arm */
.oj-fx-jcb-arm {
  position: absolute;
  left: 140px;
  bottom: 48px;
  width: 90px;
  height: 70px;
  transform-origin: 6px 50px;
  animation: ojJcbArm 1.6s ease-in-out infinite;
  z-index: 3;
}
.oj-fx-jcb-boom {
  position: absolute;
  left: 0;
  top: 36px;
  width: 62px;
  height: 12px;
  background: linear-gradient(180deg, #facc15, #a16207);
  border: 2px solid #0f172a;
  border-radius: 5px;
  transform: rotate(-32deg);
  transform-origin: 4px 6px;
}
.oj-fx-jcb-stick {
  position: absolute;
  left: 48px;
  top: 6px;
  width: 12px;
  height: 44px;
  background: linear-gradient(90deg, #eab308, #a16207);
  border: 2px solid #0f172a;
  border-radius: 4px;
  transform: rotate(22deg);
}
.oj-fx-jcb-bucket {
  position: absolute;
  left: 54px;
  top: -2px;
  width: 28px;
  height: 20px;
  background: #78350f;
  border: 2px solid #0f172a;
  border-radius: 3px 10px 6px 3px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}
/* Wheels */
.oj-fx-jcb-wheel {
  position: absolute;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94a3b8 0 18%, #1e293b 19% 55%, #020617 56%);
  border: 3px solid #020617;
  animation: ojJcbWheel 0.85s linear infinite;
  z-index: 5;
}
.oj-fx-jcb-wheel--f { left: 64px; }
.oj-fx-jcb-wheel--r { left: 118px; }
.oj-fx-jcb-wheel i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  display: block;
}
.oj-fx-jcb-plate {
  position: absolute;
  left: 72px;
  bottom: 36px;
  z-index: 6;
  font: 900 7px/1 Impact, Arial Black, sans-serif;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #fef08a;
  border: 2px solid #0f172a;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.oj-fx-jcb-exhaust {
  position: absolute;
  left: 48px;
  bottom: 72px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
  animation: ojJcbSmoke 1.2s ease-out infinite;
  z-index: 1;
}
.oj-fx-jcb-exhaust::after {
  content: '';
  position: absolute;
  left: -6px;
  top: -10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  animation: ojJcbSmoke 1.2s ease-out 0.25s infinite;
}
@keyframes ojJcbBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ojJcbArm {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-16deg); }
}
@keyframes ojJcbWheel {
  to { transform: rotate(360deg); }
}
@keyframes ojJcbSmoke {
  0% { opacity: 0.85; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0; transform: translate(-10px, -22px) scale(1.5); }
}

/* ——— Alert siren (ops “bad shit” flash on his head) ——— */
.oj-bot-siren {
  display: none;
  position: absolute;
  left: 50%;
  top: -0.35rem;
  width: 2.1rem;
  height: 1.85rem;
  margin-left: -1.05rem;
  z-index: 30;
  pointer-events: none;
  transform-origin: 50% 90%;
}
.oj-bot-root.is-siren .oj-bot-siren {
  display: block;
  animation: ojSirenBob 0.35s ease-in-out infinite alternate;
}
.oj-bot-siren-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.85));
}
.oj-bot-root.is-siren-amber .oj-bot-siren-svg {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9));
}
.oj-bot-root.is-siren-amber .oj-bot-siren-dome {
  fill: #f59e0b;
  stroke: #b45309;
}
.oj-bot-root.is-siren-amber .oj-bot-siren-beam {
  stroke: #fbbf24;
}
.oj-bot-root.is-siren-amber .oj-bot-siren-shine {
  fill: #fef3c7;
}
.oj-bot-root.is-siren .oj-bot-siren-dome {
  animation: ojSirenFlash 0.28s steps(2) infinite;
}
.oj-bot-root.is-siren .oj-bot-siren-bulb {
  animation: ojSirenBulb 0.28s steps(2) infinite;
}
.oj-bot-root.is-siren .oj-bot-siren-beam-l {
  animation: ojSirenBeam 0.4s ease-in-out infinite alternate;
}
.oj-bot-root.is-siren .oj-bot-siren-beam-r {
  animation: ojSirenBeam 0.4s ease-in-out infinite alternate-reverse;
}
.oj-bot-root.is-siren .oj-bot-char {
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.55)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
.oj-bot-root.is-siren-amber .oj-bot-char {
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.5)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
/* Soft screen edge wash for high severity */
.oj-bot-root.is-siren-red::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 80px 20px rgba(239, 68, 68, 0.12);
  animation: ojSirenWash 0.55s ease-in-out infinite alternate;
}
@keyframes ojSirenFlash {
  0% { fill: #ef4444; opacity: 1; }
  100% { fill: #fca5a5; opacity: 0.75; }
}
@keyframes ojSirenBulb {
  0% { fill: #fef08a; opacity: 1; }
  100% { fill: #fff; opacity: 0.55; }
}
@keyframes ojSirenBeam {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@keyframes ojSirenBob {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(8deg) translateY(-2px); }
}
@keyframes ojSirenWash {
  from { opacity: 0.35; }
  to { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .oj-bot-root.is-siren .oj-bot-siren,
  .oj-bot-root.is-siren .oj-bot-siren-dome,
  .oj-bot-root.is-siren .oj-bot-siren-bulb,
  .oj-bot-root.is-siren .oj-bot-siren-beam-l,
  .oj-bot-root.is-siren .oj-bot-siren-beam-r,
  .oj-bot-root.is-siren-red::before {
    animation: none !important;
  }
  .oj-bot-root.is-siren .oj-bot-siren {
    display: block;
  }
}

/* ——— Admin / Ops nerd skin (glasses + buck teeth + SYS badge) ——— */
.oj-bot-root.is-admin-nerd .oj-bot-speech-name {
  color: #a78bfa;
  letter-spacing: 0.06em;
}
.oj-bot-root.is-admin-nerd .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #0e7490, #6d28d9) !important;
  border-color: #22d3ee !important;
}
.oj-bot-root.is-admin-nerd .oj-bot-char {
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
/* Sit siren on top of OPS beanie */
.oj-bot-root.is-admin-nerd.is-siren .oj-bot-siren {
  top: -0.95rem;
  width: 2.25rem;
  height: 2rem;
  margin-left: -1.12rem;
}
.oj-bot-root.is-admin-nerd .oj-bot-nerd-glasses {
  /* sit above eyes */
}
.oj-bot-root.is-admin-nerd .oj-bot-hivis,
.oj-bot-root.is-admin-nerd .oj-bot-toolbelt,
.oj-bot-root.is-admin-nerd .oj-bot-goggles,
.oj-bot-root.is-admin-nerd .oj-bot-hardhat {
  display: none !important;
}
/* Admin ops ask skin (light theme only — dark/envisage overrides below) */
.oj-bot-root.is-admin-nerd .oj-bot-ask-card {
  border-color: #7c3aed;
  box-shadow: 4px 6px 0 rgba(124, 58, 237, 0.2), 0 20px 50px -20px rgba(15, 23, 42, 0.5);
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-head {
  color: #6d28d9;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #a78bfa;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label {
  color: #5b21b6;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text {
  color: #0f172a;
}
.oj-bot-root * {
  box-sizing: border-box;
}
.oj-bot-root.is-active,
.oj-bot-root.is-docked {
  pointer-events: auto;
}

/* Dim + spotlight (spotlight alone punches a hole — no extra full scrim over it) */
.oj-bot-scrim {
  display: none; /* spotlight box-shadow provides dim + hole */
}
.oj-bot-spotlight {
  position: fixed;
  z-index: 9989;
  border-radius: 1rem;
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.95),
    0 0 0 9999px rgba(15, 23, 42, 0.55),
    0 12px 40px -10px rgba(14, 165, 233, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.oj-bot-root.is-touring .oj-bot-spotlight.is-on {
  opacity: 1 !important; /* beat any stale inline opacity */
}

/* Character shell — wide enough that bubble can sit without parent clip */
.oj-bot-stage {
  position: fixed;
  z-index: 9991;
  width: 7.25rem;
  overflow: visible;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  left: auto;
  right: 1rem;
  bottom: 1rem;
  top: auto;
}
.oj-bot-root.is-touring .oj-bot-stage,
.oj-bot-root.is-companion .oj-bot-stage,
.oj-bot-root.is-tipping .oj-bot-stage {
  right: auto;
  bottom: auto;
}
/* Movable companion after tour */
.oj-bot-root.is-companion .oj-bot-char {
  cursor: grab;
  touch-action: none;
}
.oj-bot-root.is-dragging .oj-bot-char {
  cursor: grabbing;
}
.oj-bot-root.is-dragging .oj-bot-stage {
  transition: none !important;
  z-index: 9995;
}

/* Classic comic speech bubble */
.oj-bot-speech {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  right: 0;
  left: auto;
  width: min(16.5rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.25rem);
  overflow: visible;
  background: #fff;
  color: #0f172a;
  border: 2.5px solid #0f172a;
  border-radius: 1.35rem;
  padding: 0.8rem 0.95rem 0.75rem;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
  /* avoid clipping multi-line tips */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  /* transform reserved for JS viewport clamp — don't set scale here */
}
/* Tail pointing down to bot (comic bubble) */
.oj-bot-speech::after {
  content: '';
  position: absolute;
  bottom: -11px;
  right: 1.85rem;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2.5px solid #0f172a;
  border-bottom: 2.5px solid #0f172a;
  transform: rotate(45deg);
  z-index: 1;
}
.oj-bot-speech-tip {
  display: none; /* replaced by ::after tail */
}
/* Flip speech under the bot when near the top of the viewport */
.oj-bot-speech.oj-bot-speech--below {
  bottom: auto;
  top: calc(100% + 0.85rem);
}
.oj-bot-speech.oj-bot-speech--below::after {
  bottom: auto;
  top: -11px;
  border-right: none;
  border-bottom: none;
  border-left: 2.5px solid #0f172a;
  border-top: 2.5px solid #0f172a;
}
.oj-bot-root.is-touring .oj-bot-speech,
.oj-bot-root.is-tipping .oj-bot-speech,
.oj-bot-root.is-farewell .oj-bot-speech,
.oj-bot-root.is-docked .oj-bot-speech.is-visible {
  opacity: 1 !important; /* beat stale inline opacity from companion/comedy */
  pointer-events: auto;
}
/* Tip / tour speech sits above the bot so buttons are easy to hit */
.oj-bot-root.is-tipping .oj-bot-speech,
.oj-bot-root.is-touring .oj-bot-speech {
  z-index: 20;
}
.oj-bot-root.is-tipping .oj-bot-speech-actions,
.oj-bot-root.is-touring .oj-bot-speech-actions {
  pointer-events: auto;
}
.oj-bot-speech-name {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0.25rem;
}
.oj-bot-speech-text {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
}
.oj-bot-speech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.oj-bot-speech-actions button {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.38rem 0.7rem;
  border: 2px solid #0f172a;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
}
.oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: #0f172a;
  color: #fff;
}
.oj-bot-speech-actions button:hover {
  filter: brightness(1.05);
}

/* Robot body (pure CSS/SVG) */
.oj-bot-char {
  position: relative;
  width: 5.75rem;
  height: 6rem;
  margin-left: auto;
  cursor: grab;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
  animation: ojBotFloat 3.2s ease-in-out infinite;
  user-select: none;
}
.oj-bot-char:active {
  cursor: grabbing;
}
@keyframes ojBotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ojBotWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
.oj-bot-char.is-wiggle {
  animation: ojBotWiggle 0.35s ease-in-out 2, ojBotFloat 3.2s ease-in-out infinite;
}
.oj-bot-char svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Antenna bob */
.oj-bot-antenna {
  transform-origin: 48px 20px;
  animation: ojBotAntenna 2.4s ease-in-out infinite;
}
@keyframes ojBotAntenna {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); }
}

/* Blink */
.oj-bot-eyes {
  transform-origin: 48px 33.5px;
  animation: ojBotBlink 4.2s ease-in-out infinite;
}
@keyframes ojBotBlink {
  0%, 42%, 46%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(0.08); }
}

/* Mouths: default smile; grin / yawn swap in */
.oj-bot-mouth { opacity: 0; }
.oj-bot-mouth-default { opacity: 1; }
.oj-bot-char.is-grin .oj-bot-mouth-default,
.oj-bot-char.is-yawn .oj-bot-mouth-default,
.oj-bot-char.is-silly .oj-bot-mouth-default,
.oj-bot-char.is-laugh .oj-bot-mouth-default,
.oj-bot-char.is-swat .oj-bot-mouth-default,
.oj-bot-char.is-tracking .oj-bot-mouth-default,
.oj-bot-char.is-pissed .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-grin .oj-bot-mouth-grin { opacity: 1; }
.oj-bot-char.is-yawn .oj-bot-mouth-yawn { opacity: 1; }
.oj-bot-char.is-silly .oj-bot-mouth-default { opacity: 0; }

/* Tongue */
.oj-bot-tongue {
  opacity: 0;
  transform: translateY(-4px) scaleY(0.2);
  transform-origin: 48px 42px;
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-char.is-silly .oj-bot-tongue {
  opacity: 1;
  transform: translateY(2px) scaleY(1);
}
.oj-bot-char.is-silly .oj-bot-eyes {
  transform: scaleY(0.55);
  animation: none;
}
.oj-bot-char.is-yawn .oj-bot-eyes {
  transform: scaleY(0.25);
  animation: none;
}
.oj-bot-char.is-grin .oj-bot-eyes {
  transform: scaleY(0.85);
}

.oj-bot-badge-text {
  pointer-events: none;
}

/* ——— Arms: idle sway + pointing (right arm intentionally longer) ——— */
.oj-bot-arm-left {
  transform-origin: 30px 57px;
  animation: ojArmIdleLeft 3.5s ease-in-out infinite;
}
@keyframes ojArmIdleLeft {
  0%, 100% { transform: rotate(6deg); }
  40% { transform: rotate(-14deg); }
  70% { transform: rotate(2deg); }
}
.oj-bot-arm {
  transform-origin: 66px 56px;
  /* idle sway around the pointing angle (default slightly raised) */
  animation: ojArmIdleRight 3.1s ease-in-out infinite;
}
/* Default idle: arm hangs slightly down (positive deg), gentle sway — not stuck pointing up */
.oj-bot-char:not(.is-point):not(.is-wave):not(.is-swat):not(.is-cheer):not(.is-tradie):not(.is-arm-seize):not(.is-arm-loose):not(.is-arm-fall):not(.is-arm-reattach):not(.is-wd40):not(.is-easter-cheer):not(.is-easter-giant):not(.is-hold-board):not(.is-hold-placard):not(.is-showroom-jcb-driver) {
  --oj-bot-arm-deg: 22deg;
}
@keyframes ojArmIdleRight {
  0%, 100% { transform: rotate(calc(var(--oj-bot-arm-deg, 22deg) + 0deg)); }
  35% { transform: rotate(calc(var(--oj-bot-arm-deg, 22deg) + 10deg)); }
  65% { transform: rotate(calc(var(--oj-bot-arm-deg, 22deg) - 8deg)); }
}
/* Pupils glance with pointing */
.oj-bot-pupils {
  transition: transform 0.25s ease;
}
.oj-bot-char.is-point .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0px), var(--oj-pupil-y, 0px));
  animation: none;
}
/* Hold a clear point pose at a UI target */
.oj-bot-char.is-point .oj-bot-arm {
  animation: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform: rotate(var(--oj-bot-arm-deg, -36deg));
  transform-origin: 66px 56px;
}
.oj-bot-char.is-point .oj-bot-arm-left {
  animation: none;
  transform: rotate(12deg);
}
.oj-bot-char.is-point .oj-bot-hand-default {
  /* slightly jab the finger */
  transform-origin: 85px 56px;
  animation: ojPointJab 1.1s ease-in-out infinite;
}
@keyframes ojPointJab {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.5px, -0.5px); }
}
/* Friendly wave */
@keyframes ojBotWave {
  0%, 100% { transform: rotate(10deg); }
  25% { transform: rotate(-55deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-50deg); }
}
.oj-bot-char.is-wave .oj-bot-arm {
  animation: ojBotWave 0.45s ease-in-out 3;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-wave .oj-bot-arm-left {
  animation: ojBotWaveLeft 0.45s ease-in-out 3;
  transform-origin: 30px 57px;
}
@keyframes ojBotWaveLeft {
  0%, 100% { transform: rotate(8deg); }
  25% { transform: rotate(40deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(35deg); }
}

/* Stump + WD-40 defaults (hidden) */
.oj-bot-arm-stump {
  opacity: 0;
  pointer-events: none;
}
.oj-bot-wd40 {
  opacity: 0;
  pointer-events: none;
  transform-origin: 6px 55px;
}
.oj-bot-wd40-spray {
  opacity: 0;
}
.oj-bot-arm-label {
  position: absolute;
  left: 70%;
  top: 42%;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0f172a;
  background: #fbbf24;
  border: 2px solid #0f172a;
  border-radius: 0.3rem;
  padding: 0.05rem 0.3rem;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  font-family: Impact, "Arial Black", sans-serif;
  transform: rotate(-8deg) scale(0.8);
}

/* 1) Seized arm struggle */
@keyframes ojArmSeize {
  0%, 100% { transform: rotate(18deg); }
  15% { transform: rotate(8deg); }
  30% { transform: rotate(22deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(24deg); }
  75% { transform: rotate(10deg); }
  88% { transform: rotate(20deg); }
}
.oj-bot-char.is-arm-seize .oj-bot-arm {
  animation: ojArmSeize 0.55s ease-in-out infinite !important;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-arm-seize .oj-bot-arm-label {
  opacity: 1;
  animation: ojVirusBadge 0.35s ease-in-out infinite alternate;
}
.oj-bot-char.is-arm-seize .oj-bot-steam {
  opacity: 0.85;
}

/* 2) Look at seized arm */
.oj-bot-char.is-look-arm .oj-bot-pupils {
  transform: translate(2.2px, 1.4px);
  animation: none;
}
.oj-bot-char.is-look-arm .oj-bot-eyes {
  transform: scaleY(0.92);
  animation: none;
}

/* 3) WD-40 spray under armpit */
.oj-bot-char.is-wd40 .oj-bot-wd40 {
  opacity: 1;
  animation: ojWd40Pop 0.35s cubic-bezier(0.34, 1.55, 0.64, 1) both;
}
@keyframes ojWd40Pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-30deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.oj-bot-char.is-wd40 .oj-bot-arm-left {
  animation: ojWd40Reach 0.7s ease-in-out infinite !important;
  transform-origin: 30px 57px;
}
@keyframes ojWd40Reach {
  0%, 100% { transform: rotate(-8deg) translate(2px, -1px); }
  50% { transform: rotate(-22deg) translate(6px, -3px); }
}
.oj-bot-char.is-wd40 .oj-bot-wd40-spray {
  opacity: 1;
  animation: ojSprayMist 0.45s ease-out infinite;
}
@keyframes ojSprayMist {
  0% { opacity: 0; transform: translate(-4px, 2px) scale(0.4); }
  40% { opacity: 0.85; transform: translate(2px, -1px) scale(1); }
  100% { opacity: 0; transform: translate(10px, -4px) scale(1.25); }
}
.oj-bot-char.is-wd40 .oj-bot-arm {
  animation: ojArmSeize 0.9s ease-in-out infinite !important;
}

/* 4) Arm loosens after spray */
@keyframes ojArmLoose {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-25deg); }
}
.oj-bot-char.is-arm-loose .oj-bot-arm {
  animation: ojArmLoose 0.55s ease-in-out 2 !important;
}
.oj-bot-char.is-arm-loose .oj-bot-arm-label {
  opacity: 0;
}

/* 5) Arm falls off */
@keyframes ojArmFallOff {
  0%   { transform: rotate(12deg) translate(0, 0); opacity: 1; }
  25%  { transform: rotate(40deg) translate(6px, 10px); opacity: 1; }
  55%  { transform: rotate(95deg) translate(4px, 28px); opacity: 1; }
  100% { transform: rotate(125deg) translate(2px, 52px); opacity: 0.95; }
}
.oj-bot-char.is-arm-fall .oj-bot-arm {
  animation: ojArmFallOff 0.85s cubic-bezier(0.45, 0.05, 0.7, 0.2) forwards !important;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-arm-fall .oj-bot-arm-stump {
  opacity: 1;
  animation: ojStumpPop 0.3s ease-out both;
}
@keyframes ojStumpPop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}
.oj-bot-char.is-arm-fall .oj-bot-arm-label {
  opacity: 1;
  content: 'CLUNK';
  top: 70%;
  left: 75%;
  animation: ojVirusBadge 0.4s ease-in-out infinite alternate;
}

/* 6) Massive cartoon eyes staring at fallen arm */
.oj-bot-char.is-eyes-pop .oj-bot-eyes {
  animation: none !important;
  transform: scale(1.65) translateY(1px);
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-eyes-pop .oj-bot-pupil {
  transform-origin: center;
  transform: scale(0.55);
}
.oj-bot-char.is-eyes-pop .oj-bot-mouth-default,
.oj-bot-char.is-eyes-pop .oj-bot-mouth-grin,
.oj-bot-char.is-eyes-pop .oj-bot-mouth-grumpy {
  opacity: 0 !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-mouth-gulp {
  opacity: 1 !important;
}
.oj-bot-char.is-eyes-pop.is-look-arm .oj-bot-pupils {
  transform: translate(2.4px, 2.6px) scale(0.75);
}

/* 7) Snap arm back on */
@keyframes ojArmReattach {
  0%   { transform: rotate(100deg) translate(0, 40px); opacity: 0.6; }
  55%  { transform: rotate(-8deg) translate(0, -2px); opacity: 1; }
  75%  { transform: rotate(14deg) translate(0, 1px); }
  100% { transform: rotate(var(--oj-bot-arm-deg, 12deg)) translate(0, 0); }
}
.oj-bot-char.is-arm-reattach .oj-bot-arm {
  animation: ojArmReattach 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
}
.oj-bot-char.is-arm-reattach .oj-bot-arm-stump {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.oj-bot-char.is-arm-reattach .oj-bot-arm-label {
  opacity: 0;
}

/* Arm bit speech bubble */
.oj-bot-root.is-arm-show:not(.is-arm-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef3c7 !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(251, 191, 36, 0.3),
    0 14px 36px -14px rgba(15, 23, 42, 0.28) !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech::after {
  background: #fef3c7 !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech-name {
  color: #b45309 !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
}
.oj-bot-root.is-arm-say .oj-bot-speech-actions {
  display: none !important;
}

/* ——— Easter egg: full Coyote/Road Runner ACME sketch ——— */
.oj-bot-easter {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  overflow: visible;
}
.oj-bot-root.is-easter .oj-bot-stage {
  z-index: 9999;
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1), top 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
/* After he parks for the sketch, stop all stage sliding (no flitting) */
.oj-bot-root.is-easter.is-easter-parked .oj-bot-stage {
  transition: none !important;
  /* Glued to the true bottom — beats .is-companion { bottom: auto } */
  top: auto !important;
  bottom: 10px !important;
  right: auto !important;
}
/* Kill idle float hop during the easter skit so he sits on the ground */
.oj-bot-root.is-easter .oj-bot-char {
  animation: none !important;
  /* Not draggable mid-egg */
  pointer-events: none !important;
  cursor: default !important;
}
.oj-bot-root.is-easter .oj-bot-char:active {
  cursor: default !important;
}
.oj-bot-char.is-easter-walk {
  animation: ojEasterWaddle 0.42s ease-in-out infinite !important;
}
@keyframes ojEasterWaddle {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

/* Screen flash on boom — brighter, longer, double-pulse */
.oj-bot-fw-flash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95), rgba(251, 191, 36, 0.45) 28%, rgba(244, 114, 182, 0.2) 48%, transparent 72%),
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.35), transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(167, 139, 250, 0.35), transparent 42%);
  opacity: 0;
  z-index: 9995;
  pointer-events: none;
}
.oj-bot-fw-flash.is-on {
  animation: ojFwFlash 1.35s ease-out both;
}
.oj-bot-easter.is-boom-mega .oj-bot-fw-flash.is-on {
  animation: ojFwFlashMega 1.6s ease-out both;
}
@keyframes ojFwFlash {
  0% { opacity: 1; }
  25% { opacity: 0.7; }
  55% { opacity: 0.35; }
  100% { opacity: 0; }
}
@keyframes ojFwFlashMega {
  0% { opacity: 1; filter: brightness(1.4); }
  12% { opacity: 0.55; }
  22% { opacity: 1; filter: brightness(1.6); }
  45% { opacity: 0.65; }
  100% { opacity: 0; filter: brightness(1); }
}

/* Rocket */
.oj-bot-rocket {
  position: fixed;
  width: 4.1rem;
  height: 8.2rem;
  opacity: 0;
  z-index: 9997;
  transform: translate(-50%, 0) scale(0.2) rotate(-25deg);
  transform-origin: 50% 90%;
}
.oj-bot-rocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.4));
}
.oj-bot-rocket-flame { opacity: 0; transform-origin: 28px 90px; }
.oj-bot-rocket-spark { opacity: 0; }
.oj-bot-rocket-tag {
  position: absolute;
  left: 50%;
  top: -0.35rem;
  transform: translateX(-50%) rotate(-6deg);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: #fef08a;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 0.2rem;
  padding: 0.05rem 0.3rem;
  opacity: 0;
  white-space: nowrap;
}
.oj-bot-rocket-trail {
  position: absolute;
  left: 50%;
  top: 88%;
  width: 12px;
  height: 0;
  margin-left: -6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.2), transparent);
  opacity: 0;
  pointer-events: none;
}

/* Struggle: pull rocket from hammerspace */
.oj-bot-easter.is-rocket-pull .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketPull 1s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes ojRocketPull {
  0% { opacity: 0; transform: translate(-50%, 40px) scale(0.15) rotate(-80deg); }
  40% { opacity: 1; transform: translate(-30%, -10px) scale(1.15) rotate(25deg); }
  70% { transform: translate(-60%, 8px) scale(0.95) rotate(-30deg); }
  100% { transform: translate(-50%, 0) scale(1) rotate(12deg); }
}
/* Drop it */
.oj-bot-easter.is-rocket-drop .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketDrop 0.85s cubic-bezier(0.55, 0.05, 0.7, 0.3) both;
}
@keyframes ojRocketDrop {
  0% { transform: translate(-50%, 0) scale(1) rotate(12deg); }
  40% { transform: translate(-40%, 18px) scale(1.05) rotate(-20deg); }
  100% { transform: translate(-50%, 36px) scale(1) rotate(70deg); }
}
/* Planted upright */
.oj-bot-easter.is-rocket-ready .oj-bot-rocket {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(-3deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-easter.is-rocket-ready .oj-bot-rocket-tag {
  opacity: 1;
  animation: ojVirusBadge 0.5s ease-in-out infinite alternate;
}

/* Match struggle */
.oj-bot-match {
  position: fixed;
  width: 1.6rem;
  height: 3.2rem;
  opacity: 0;
  z-index: 9998;
  transform: translate(-50%, 0) rotate(-20deg);
  pointer-events: none;
}
.oj-bot-match-svg { width: 100%; height: 100%; overflow: visible; }
.oj-bot-match-flame { opacity: 0; }
.oj-bot-easter.is-match-try .oj-bot-match,
.oj-bot-easter.is-match-try-2 .oj-bot-match,
.oj-bot-easter.is-match-lit .oj-bot-match {
  opacity: 1;
}
.oj-bot-easter.is-match-try .oj-bot-match {
  animation: ojMatchScritch 0.35s ease-in-out infinite;
}
.oj-bot-easter.is-match-try-2 .oj-bot-match {
  animation: ojMatchScritch 0.22s ease-in-out infinite;
}
@keyframes ojMatchScritch {
  0%, 100% { transform: translate(-50%, 0) rotate(-25deg); }
  50% { transform: translate(-30%, -6px) rotate(15deg); }
}
.oj-bot-easter.is-match-lit .oj-bot-match-flame {
  opacity: 1;
  animation: ojRocketFlame 0.2s ease-in-out infinite alternate;
}
.oj-bot-easter.is-match-lit .oj-bot-match {
  animation: ojMatchHold 0.5s ease-in-out infinite;
}
@keyframes ojMatchHold {
  0%, 100% { transform: translate(-50%, 0) rotate(-8deg); }
  50% { transform: translate(-50%, -3px) rotate(6deg); }
}

/* Fuse lit + long burn */
.oj-bot-easter.is-fuse .oj-bot-rocket-spark,
.oj-bot-easter.is-fuse-burn .oj-bot-rocket-spark {
  opacity: 1;
  animation: ojFuseSpark 0.22s ease-in-out infinite alternate;
}
@keyframes ojFuseSpark {
  0% { fill: #fbbf24; transform: scale(0.8); }
  100% { fill: #ef4444; transform: scale(1.5); }
}
.oj-bot-easter.is-fuse .oj-bot-rocket,
.oj-bot-easter.is-fuse-burn .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketWobble 0.45s ease-in-out infinite;
}
@keyframes ojRocketWobble {
  0%, 100% { transform: translate(-50%, 0) scale(1) rotate(-4deg); }
  50% { transform: translate(-50%, 2px) scale(1.03) rotate(5deg); }
}
.oj-bot-easter.is-fuse-burn .oj-bot-rocket-fuse-line {
  animation: ojFuseShrink 2.8s linear forwards;
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
}
@keyframes ojFuseShrink {
  0% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 36; opacity: 0.4; }
}

/* LAUNCH */
.oj-bot-easter.is-launch .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketLaunch 2.6s cubic-bezier(0.2, 0.05, 0.15, 1) forwards !important;
}
.oj-bot-easter.is-launch .oj-bot-rocket-flame {
  opacity: 1;
  animation: ojRocketFlame 0.15s ease-in-out infinite alternate;
}
.oj-bot-easter.is-launch .oj-bot-rocket-fuse,
.oj-bot-easter.is-launch .oj-bot-match,
.oj-bot-easter.is-launch .oj-bot-rocket-tag {
  opacity: 0 !important;
}
.oj-bot-easter.is-launch .oj-bot-rocket-trail {
  opacity: 1;
  animation: ojRocketTrail 2.6s ease-out forwards;
}
@keyframes ojRocketFlame {
  0% { transform: scaleY(0.8) scaleX(0.85); opacity: 0.85; }
  100% { transform: scaleY(1.4) scaleX(1.15); opacity: 1; }
}
@keyframes ojRocketTrail {
  0% { height: 24px; opacity: 0.95; }
  60% { height: 220px; opacity: 0.8; }
  100% { height: 50px; opacity: 0; }
}
@keyframes ojRocketLaunch {
  0% { transform: translate(-50%, 0) scale(1) rotate(-3deg); opacity: 1; }
  8% { transform: translate(-50%, 6px) scale(1.08) rotate(2deg); }
  15% { transform: translate(-50%, -6vh) scale(1.12) rotate(-2deg); }
  35% { transform: translate(calc(-50% + 5vw), -38vh) scale(1) rotate(-8deg); }
  55% { transform: translate(calc(-50% - 3vw), -58vh) scale(0.85) rotate(6deg); }
  78% { transform: translate(-50%, -78vh) scale(0.55) rotate(-3deg); }
  100% { transform: translate(-50%, -95vh) scale(0.2) rotate(0deg); opacity: 0; }
}

/* Firework sky — over-the-top ACME extravaganza */
.oj-bot-fw-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 9996;
}
.oj-bot-fw-sky.is-on { opacity: 1; }
.oj-bot-fw-burst {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}
/* Wave 1 — centre mega + flanks */
.oj-bot-easter.is-boom .oj-bot-fw-burst--a {
  left: 50%; top: 10%;
  background: #fbbf24;
  animation: ojFwBurstXL 1.85s ease-out 0.02s both;
  box-shadow:
    0 -72px 0 4px #fbbf24, 52px -52px 0 3px #f87171, 72px 0 0 4px #38bdf8,
    52px 52px 0 3px #a78bfa, 0 72px 0 4px #f472b6, -52px 52px 0 3px #4ade80,
    -72px 0 0 4px #fde047, -52px -52px 0 3px #fb923c,
    0 -42px 0 2px #fff, 30px -30px 0 2px #fecaca, 42px 0 0 2px #bae6fd,
    -30px 30px 0 2px #bbf7d0, 0 42px 0 2px #fce7f3, -42px 0 0 2px #fef08a,
    18px -60px 0 1px #fff, -18px -60px 0 1px #fff, 60px -18px 0 1px #e0f2fe, -60px 18px 0 1px #fde68a;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--b {
  left: 18%; top: 18%;
  background: #f472b6;
  animation: ojFwBurstXL 1.9s ease-out 0.18s both;
  box-shadow:
    0 -64px 0 4px #f472b6, 46px -46px 0 3px #fbbf24, 64px 0 0 4px #a78bfa,
    46px 46px 0 3px #38bdf8, 0 64px 0 4px #4ade80, -46px 46px 0 3px #fb923c,
    -64px 0 0 4px #f87171, -46px -46px 0 3px #fde047,
    0 -36px 0 2px #fff, 24px -24px 0 1px #fecdd3;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--c {
  left: 82%; top: 14%;
  background: #38bdf8;
  animation: ojFwBurstXL 1.85s ease-out 0.28s both;
  box-shadow:
    0 -66px 0 4px #38bdf8, 48px -48px 0 3px #fbbf24, 66px 0 0 4px #f472b6,
    48px 48px 0 3px #a78bfa, 0 66px 0 4px #4ade80, -48px 48px 0 3px #fde047,
    -66px 0 0 4px #fb923c, -48px -48px 0 3px #f87171,
    0 -38px 0 2px #fff;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--h {
  left: 50%; top: 28%;
  background: #fff;
  animation: ojFwBurst 1.5s ease-out 0.45s both;
  box-shadow:
    0 -38px 0 2px #fff, 28px -28px 0 2px #fde047, 38px 0 0 2px #f472b6,
    28px 28px 0 1px #38bdf8, 0 38px 0 2px #a78bfa, -28px 28px 0 1px #4ade80,
    -38px 0 0 2px #fb923c, -28px -28px 0 2px #fbbf24;
}
/* Wave 2 */
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--d {
  left: 36%; top: 6%;
  background: #a78bfa;
  animation: ojFwBurstXL 2s ease-out 0.05s both;
  box-shadow:
    0 -78px 0 4px #a78bfa, 55px -55px 0 3px #fbbf24, 78px 0 0 4px #38bdf8,
    55px 55px 0 3px #f472b6, 0 78px 0 4px #4ade80, -55px 55px 0 3px #fb923c,
    -78px 0 0 4px #fde047, -55px -55px 0 3px #f87171,
    0 -44px 0 2px #fff, 22px -66px 0 1px #ede9fe, -22px -66px 0 1px #e0f2fe;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--e {
  left: 68%; top: 22%;
  background: #4ade80;
  animation: ojFwBurstXL 1.9s ease-out 0.22s both;
  box-shadow:
    0 -58px 0 4px #4ade80, 40px -40px 0 3px #fbbf24, 58px 0 0 4px #f472b6,
    40px 40px 0 3px #38bdf8, 0 58px 0 4px #a78bfa, -40px 40px 0 3px #fb923c,
    -58px 0 0 4px #fde047, -40px -40px 0 3px #f87171;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--i {
  left: 12%; top: 32%;
  background: #fb7185;
  animation: ojFwBurst 1.7s ease-out 0.35s both;
  box-shadow:
    0 -50px 0 3px #fb7185, 36px -36px 0 2px #fde047, 50px 0 0 3px #38bdf8,
    36px 36px 0 2px #a78bfa, 0 50px 0 3px #4ade80, -36px 36px 0 2px #fbbf24,
    -50px 0 0 3px #f87171, -36px -36px 0 2px #fff;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--j {
  left: 88%; top: 30%;
  background: #facc15;
  animation: ojFwBurst 1.75s ease-out 0.4s both;
  box-shadow:
    0 -52px 0 3px #facc15, 38px -38px 0 2px #f472b6, 52px 0 0 3px #38bdf8,
    38px 38px 0 2px #a78bfa, 0 52px 0 3px #4ade80, -38px 38px 0 2px #fb923c,
    -52px 0 0 3px #fff, -38px -38px 0 2px #f87171;
}
/* Wave 3 */
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--f {
  left: 48%; top: 16%;
  background: #fb923c;
  animation: ojFwBurstXL 2.05s ease-out 0.06s both;
  box-shadow:
    0 -82px 0 5px #fb923c, 58px -58px 0 3px #fbbf24, 82px 0 0 5px #38bdf8,
    58px 58px 0 3px #f472b6, 0 82px 0 5px #a78bfa, -58px 58px 0 3px #4ade80,
    -82px 0 0 5px #fde047, -58px -58px 0 3px #f87171,
    0 -48px 0 2px #fff, 32px -70px 0 1px #ffedd5, -32px -70px 0 1px #fff;
}
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--g {
  left: 28%; top: 26%;
  background: #fde047;
  animation: ojFwBurstXL 1.85s ease-out 0.25s both;
  box-shadow:
    0 -56px 0 3px #fde047, 40px -40px 0 2px #f472b6, 56px 0 0 3px #38bdf8,
    40px 40px 0 2px #a78bfa, 0 56px 0 3px #4ade80, -40px 40px 0 2px #fb923c,
    -56px 0 0 3px #f87171, -40px -40px 0 2px #fbbf24, 0 -30px 0 1px #fff;
}
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--k {
  left: 72%; top: 8%;
  background: #c084fc;
  animation: ojFwBurst 1.8s ease-out 0.32s both;
  box-shadow:
    0 -54px 0 3px #c084fc, 38px -38px 0 2px #fbbf24, 54px 0 0 3px #38bdf8,
    38px 38px 0 2px #f472b6, 0 54px 0 3px #4ade80, -38px 38px 0 2px #fb923c,
    -54px 0 0 3px #fde047, -38px -38px 0 2px #fff;
}
/* Wave 4 — final chaos */
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--l {
  left: 50%; top: 20%;
  background: #fff;
  animation: ojFwBurstXL 2.1s ease-out 0.05s both;
  box-shadow:
    0 -90px 0 5px #fbbf24, 64px -64px 0 4px #f472b6, 90px 0 0 5px #38bdf8,
    64px 64px 0 4px #a78bfa, 0 90px 0 5px #4ade80, -64px 64px 0 4px #fb923c,
    -90px 0 0 5px #fde047, -64px -64px 0 4px #f87171,
    0 -50px 0 3px #fff, 36px -78px 0 2px #fff, -36px -78px 0 2px #fff,
    78px -36px 0 2px #e0f2fe, -78px 36px 0 2px #fce7f3;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--a {
  left: 22%; top: 12%;
  animation: ojFwBurst 1.6s ease-out 0.2s both;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--c {
  left: 78%; top: 15%;
  animation: ojFwBurst 1.65s ease-out 0.28s both;
}

/* Shockwave rings */
.oj-bot-fw-ring {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 3px solid rgba(254, 243, 199, 0.85);
  opacity: 0;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.4);
}
.oj-bot-easter.is-boom .oj-bot-fw-ring--1 {
  animation: ojFwRing 1.4s ease-out 0.05s both;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-ring--2 {
  top: 12%;
  border-color: rgba(244, 114, 182, 0.75);
  animation: ojFwRing 1.5s ease-out 0.08s both;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-ring--3 {
  top: 18%;
  border-color: rgba(125, 211, 252, 0.8);
  animation: ojFwRing 1.6s ease-out 0.05s both;
}
@keyframes ojFwRing {
  0% { opacity: 0.95; transform: scale(0.2); filter: blur(0); }
  40% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(18); filter: blur(2px); }
}

/* Sparkle rain across the sky */
.oj-bot-fw-sparkle-rain {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(circle, #fff 0 1.2px, transparent 1.5px),
    radial-gradient(circle, #fde047 0 1px, transparent 1.3px),
    radial-gradient(circle, #f9a8d4 0 1px, transparent 1.3px),
    radial-gradient(circle, #7dd3fc 0 1.1px, transparent 1.4px),
    radial-gradient(circle, #a78bfa 0 1px, transparent 1.2px);
  background-size: 90px 90px, 120px 120px, 70px 70px, 100px 100px, 140px 140px;
  background-position: 0 0, 40px 20px, 10px 50px, 60px 10px, 20px 70px;
  pointer-events: none;
}
.oj-bot-easter.is-boom-mega .oj-bot-fw-sparkle-rain,
.oj-bot-easter.is-boom .oj-bot-fw-sparkle-rain {
  animation: ojSparkleRain 4.5s linear both;
}
@keyframes ojSparkleRain {
  0% { opacity: 0; transform: translateY(-8%); }
  12% { opacity: 0.85; }
  70% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(18%); }
}

@keyframes ojFwBurst {
  0% { opacity: 0; transform: scale(0.08); filter: blur(0); }
  10% { opacity: 1; transform: scale(0.45); }
  40% { opacity: 1; transform: scale(1.25); filter: blur(0.3px); }
  100% { opacity: 0; transform: scale(1.85); filter: blur(3.5px); }
}
@keyframes ojFwBurstXL {
  0% { opacity: 0; transform: scale(0.06); filter: blur(0) brightness(1.5); }
  8% { opacity: 1; transform: scale(0.4); }
  35% { opacity: 1; transform: scale(1.35); filter: blur(0.2px) brightness(1.25); }
  100% { opacity: 0; transform: scale(2.15); filter: blur(4px) brightness(1); }
}

/* Pointing jabs at the placard during finale */
.oj-bot-char.is-hold-placard.is-point .oj-bot-arm {
  animation: ojPointAtSign 0.55s ease-in-out 1 !important;
  transform-origin: 66px 56px;
}
@keyframes ojPointAtSign {
  0% { transform: rotate(-55deg); }
  40% { transform: rotate(-88deg); }
  70% { transform: rotate(-70deg); }
  100% { transform: rotate(var(--oj-bot-arm-deg, -80deg)); }
}

/* Smoke company name */
.oj-bot-fw-smoke {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  max-width: min(94vw, 40rem);
}
.oj-bot-fw-smoke-line {
  display: block;
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(1.15rem, 4.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.12;
  color: rgba(241, 245, 249, 0.9);
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 48px rgba(148, 163, 184, 0.5),
    3px 4px 12px rgba(71, 85, 105, 0.55),
    -2px -1px 16px rgba(226, 232, 240, 0.4);
  filter: blur(0.7px);
}
.oj-bot-fw-smoke-line:nth-child(2) { letter-spacing: 0.24em; }
.oj-bot-fw-smoke-line:nth-child(3) {
  letter-spacing: 0.3em;
  font-size: clamp(1rem, 3.8vw, 2rem);
  opacity: 0.92;
}
.oj-bot-fw-smoke.is-show { animation: ojSmokeForm 2.4s ease-out forwards; }
.oj-bot-fw-smoke.is-fade { animation: ojSmokeDriftFade 6s ease-in forwards !important; }
@keyframes ojSmokeForm {
  0% { opacity: 0; transform: translateX(-50%) translateY(22px) scale(0.65); filter: blur(8px); }
  30% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); filter: blur(0.8px); }
  100% { opacity: 0.94; transform: translateX(-50%) translateY(-8px) scale(1.08); filter: blur(1.4px); }
}
@keyframes ojSmokeDriftFade {
  0% { opacity: 0.92; transform: translateX(-50%) translateY(-8px) scale(1.08); filter: blur(1.4px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-36px) scale(1.22); filter: blur(10px); }
}

/* ACME cartoon placard — "Jamie is going to kill me" (held ABOVE OJ) */
.oj-bot-placard {
  position: fixed;
  z-index: 10000;
  width: min(11.5rem, 46vw);
  opacity: 0;
  pointer-events: none;
  /* Anchor point = stick bottom in OJ's hand; whole sign sits above */
  transform: translate(-50%, -100%) scale(0.35) rotate(-10deg);
  transform-origin: 50% 100%;
}
.oj-bot-placard.is-show {
  opacity: 1;
  animation: ojPlacardPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
@keyframes ojPlacardPop {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.25) rotate(-22deg); }
  100% { opacity: 1; transform: translate(-50%, calc(-100% - 0.35rem)) scale(1) rotate(-3deg); }
}
.oj-bot-placard-stick {
  position: absolute;
  left: 50%;
  bottom: -1.85rem;
  width: 0.38rem;
  height: 2.2rem;
  margin-left: -0.19rem;
  background: linear-gradient(180deg, #a16207, #78350f);
  border: 1.5px solid #0f172a;
  border-radius: 0.15rem;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.2);
}
.oj-bot-placard-sign {
  position: relative;
  background: #fef08a;
  border: 3px solid #0f172a;
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem 0.6rem;
  text-align: center;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.22),
    0 0 0 2px #b45309;
}
.oj-bot-placard-acme {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #b91c1c;
  margin-bottom: 0.2rem;
}
.oj-bot-placard-text {
  display: block;
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(0.95rem, 3.4vw, 1.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: uppercase;
}

/* Holding placard + looking up at it */
.oj-bot-char.is-hold-placard .oj-bot-arm {
  animation: none !important;
  transform: rotate(var(--oj-bot-arm-deg, -62deg)) !important;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-hold-placard .oj-bot-hand-default {
  opacity: 1;
}
.oj-bot-char.is-hold-placard.is-look-up .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0.5px), var(--oj-pupil-y, -2.3px));
  animation: none;
}
.oj-bot-char.is-hold-placard.is-look-up .oj-bot-eyes {
  transform: scaleY(0.9);
  animation: none;
}

/* Light fuse while standing beside rocket */
.oj-bot-easter.is-lighting .oj-bot-match {
  opacity: 1;
}

/* Tiny chest marquee still available if needed */
.oj-bot-matrix-marquee {
  position: absolute;
  left: 27%;
  top: 54.5%;
  width: 46%;
  height: 13.5%;
  overflow: hidden;
  background: #1a0303;
  border: 1.5px solid #7f1d1d;
  border-radius: 0.22rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.oj-bot-matrix-track {
  position: absolute;
  top: 50%;
  left: 0;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff2a2a;
  text-shadow: 0 0 4px #ff0000;
}

/* Look up */
.oj-bot-char.is-look-up .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0px), var(--oj-pupil-y, -2px));
  animation: none;
}
.oj-bot-char.is-look-up .oj-bot-eyes {
  transform: scaleY(0.88);
  animation: none;
}

/* 200% GIANT OJ for the finale */
.oj-bot-char.is-easter-giant {
  animation: ojGiantPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both !important;
  transform: scale(2) !important;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 18px rgba(251, 191, 36, 0.7))
    drop-shadow(0 16px 28px rgba(15, 23, 42, 0.4)) !important;
  z-index: 10001;
}
@keyframes ojGiantPop {
  0% { transform: scale(1); }
  55% { transform: scale(2.15); }
  100% { transform: scale(2); }
}
.oj-bot-char.is-easter-giant.is-eyes-pop .oj-bot-eyes {
  animation: none !important;
  transform: scale(1.85) translateY(1px) !important;
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-easter-giant.is-eyes-pop .oj-bot-pupil {
  transform: scale(0.5);
}
.oj-bot-char.is-easter-cheer {
  /* bounce handled with giant */
  filter:
    drop-shadow(0 0 14px rgba(251, 191, 36, 0.6))
    drop-shadow(0 12px 22px rgba(15, 23, 42, 0.3));
}
.oj-bot-char.is-easter-cheer .oj-bot-arm,
.oj-bot-char.is-easter-giant .oj-bot-arm {
  animation: none !important;
  transform: rotate(var(--oj-bot-arm-deg, -78deg));
}
.oj-bot-char.is-hold-board .oj-bot-arm {
  transform: rotate(-55deg) !important;
}

/* Easter speech — small caption under him, never covering sky/rocket */
.oj-bot-root.is-easter .oj-bot-speech {
  max-width: min(14rem, calc(100vw - 1.5rem));
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #0f172a !important;
  border-color: #fbbf24 !important;
  color: #fef3c7 !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.35),
    0 0 0 3px rgba(251, 191, 36, 0.28),
    0 14px 36px -14px rgba(15, 23, 42, 0.45) !important;
  z-index: 10002;
  /* Prefer below-bot placement during easter */
}
.oj-bot-root.is-easter .oj-bot-speech.oj-bot-speech--below {
  z-index: 10002;
}

/* Grab & shake the open Messages chat window */
@keyframes ojChatShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-14px, 4px) rotate(-1.5deg); }
  30% { transform: translate(16px, -6px) rotate(1.8deg); }
  45% { transform: translate(-12px, -4px) rotate(-1.2deg); }
  60% { transform: translate(14px, 5px) rotate(1.4deg); }
  75% { transform: translate(-8px, 2px) rotate(-0.8deg); }
  90% { transform: translate(6px, -2px) rotate(0.6deg); }
}
.oj-bot-chat-shake {
  animation: ojChatShake 0.7s ease-in-out 0s 2 !important;
  transform-origin: center center;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech::after {
  background: #0f172a !important;
  border-right-color: #fbbf24 !important;
  border-bottom-color: #fbbf24 !important;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-name { color: #fbbf24 !important; }
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-text {
  color: #fef9c3 !important;
  font-weight: 800;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-actions { display: none !important; }
.oj-bot-root.is-easter .oj-bot-spotlight { opacity: 0 !important; }

/* Keep speech above giant bot */
.oj-bot-root.is-easter .oj-bot-char.is-easter-giant ~ .oj-bot-speech,
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech {
  /* speech is sibling above char in DOM — already high z */
}

/* Field highlight when OJ points at a form control */
.oj-bot-field-highlight {
  outline: 3px solid #38bdf8 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25), 0 0 24px rgba(56, 189, 248, 0.35) !important;
  animation: ojFieldPulse 0.9s ease-in-out 3;
  border-color: #0ea5e9 !important;
  position: relative;
  z-index: 5;
}
@keyframes ojFieldPulse {
  0%, 100% { outline-color: #38bdf8; }
  50% { outline-color: #fbbf24; }
}

/* ——— Ask OJ panel (anchored near OJ, not full-screen bottom) ——— */
.oj-bot-ask-panel {
  position: fixed;
  z-index: 10020;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: none;
  /* Transparent hit layer for outside-click close — must NOT tint the page theme */
  background: transparent;
  pointer-events: auto;
}
.oj-bot-ask-panel.is-open {
  display: block;
}
.oj-bot-ask-card {
  position: fixed;
  z-index: 10021;
  width: min(18.75rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
  max-height: min(55vh, calc(100vh - 1.5rem));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 2.5px solid #0f172a;
  border-radius: 1.15rem;
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: 4px 6px 0 rgba(15, 23, 42, 0.15), 0 20px 50px -20px rgba(15, 23, 42, 0.45);
  pointer-events: auto;
  /* left/top set in JS — no position transition (re-place was flashing the window) */
  transition: box-shadow 0.2s ease, border-color 0.15s ease;
}
/* Little comic tail pointing toward OJ when card is above him */
.oj-bot-ask-card.oj-bot-ask-card--above::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  border-right: 2.5px solid #0f172a;
  border-bottom: 2.5px solid #0f172a;
  transform: rotate(45deg);
}
.oj-bot-ask-card.oj-bot-ask-card--below::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  border-left: 2.5px solid #0f172a;
  border-top: 2.5px solid #0f172a;
  transform: rotate(45deg);
}
/* Side placement: hide comic tail (points nowhere useful) */
.oj-bot-ask-card.oj-bot-ask-card--side::after {
  display: none;
}
/* Dim only enough to catch outside-clicks — never recolour the whole page theme */
.oj-bot-ask-panel.is-open {
  background: transparent !important;
}
/*
 * CRITICAL: stage must stay position:fixed while Ask is open.
 * position:relative here made him vanish (left/top stopped being viewport coords)
 * and the chat card fell back to the bottom-right.
 */
/*
 * Stacking while Ask is open:
 *   page < stage (OJ visible) < ask panel (full-screen hit target) < ask card
 * Card is a child of the panel, so the panel MUST be above the stage or the
 * chat paints under him and looks “behind” OJ.
 */
.oj-bot-root.is-ask-open .oj-bot-stage,
.oj-bot-root.is-ask-open [data-oj-bot-stage] {
  position: fixed !important;
  z-index: 10020;
  pointer-events: auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Freeze stage tween while chatting — placeStage + re-anchor was flashing the card */
  transition: none !important;
}
.oj-bot-root.is-ask-open .oj-bot-char {
  /* keep char inside stage flow — do NOT promote to fixed/relative that breaks drag */
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.25));
  visibility: visible !important;
  opacity: 1 !important;
}
.oj-bot-root.is-ask-open .oj-bot-ask-panel {
  z-index: 10028;
}
.oj-bot-root.is-ask-open .oj-bot-ask-card {
  z-index: 10030;
  /* Explicit so fixed card always wins over OJ even if a parent stacks oddly */
  position: fixed !important;
}

/* Action chips under OJ's reply */
.oj-bot-ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.oj-bot-ask-action-btn {
  border: 2px solid #0f172a;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0c4a6e;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.oj-bot-ask-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #bae6fd, #bfdbfe);
}
.oj-bot-ask-action-btn:active {
  transform: translateY(0);
}

html.dark .oj-bot-ask-action-btn,
html.envisage .oj-bot-ask-action-btn {
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.22));
  color: #e0f2fe;
}
.oj-bot-root.is-ask-open .oj-bot-char {
  cursor: pointer;
}
.oj-bot-ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0.35rem;
}
.oj-bot-ask-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 0.25rem;
}
.oj-bot-ask-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
.oj-bot-ask-row {
  display: flex;
  gap: 0.4rem;
}
.oj-bot-ask-row input {
  flex: 1;
  min-width: 0;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.oj-bot-ask-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.oj-bot-ask-row button.primary {
  flex-shrink: 0;
  border: 2px solid #0f172a;
  border-radius: 9999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  cursor: pointer;
}
.oj-bot-ask-meta {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
  min-height: 1em;
}
.oj-bot-ask-reply {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #7dd3fc;
  border-radius: 0.85rem;
  max-height: 9.5rem;
  overflow-y: auto;
}
.oj-bot-ask-reply[hidden] {
  display: none !important;
}
.oj-bot-ask-reply.is-pending {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.oj-bot-ask-reply-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}
.oj-bot-ask-reply-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0;
}
/* Free vs xAI cost badge on each reply */
.oj-bot-ask-source {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.oj-bot-ask-source--free {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.oj-bot-ask-source--xai {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #b45309;
}
.oj-bot-ask-reply--free {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}
.oj-bot-ask-reply--xai {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
html.dark .oj-bot-ask-source--free,
html.envisage .oj-bot-ask-source--free {
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}
html.dark .oj-bot-ask-source--xai,
html.envisage .oj-bot-ask-source--xai {
  background: rgba(120, 53, 15, 0.5);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}
html.dark .oj-bot-ask-reply--free,
html.envisage .oj-bot-ask-reply--free {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(8, 47, 73, 0.4));
}
html.dark .oj-bot-ask-reply--xai,
html.envisage .oj-bot-ask-reply--xai {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.4), rgba(69, 26, 3, 0.35));
}
.oj-bot-ask-reply-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}
.oj-bot-ask-reply-dots {
  letter-spacing: 0.15em;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  min-height: 1.2em;
}
.oj-bot-ask-reply-dots span {
  animation: ojThinkDot 1.2s ease-in-out infinite;
  opacity: 0.25;
}
.oj-bot-ask-reply-dots span:nth-child(2) { animation-delay: 0.2s; }
.oj-bot-ask-reply-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ojThinkDot {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.oj-bot-ask-row input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
}
.oj-bot-ask-row button.primary:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: grayscale(0.15);
}
.oj-bot-ask-card.is-thinking {
  box-shadow: 4px 6px 0 rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(56, 189, 248, 0.25), 0 20px 50px -20px rgba(15, 23, 42, 0.4);
}

/* Thinking pose: bob + antenna whir + eyes searching */
.oj-bot-char.is-thinking {
  animation: ojThinkBob 0.85s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-antenna {
  animation: ojThinkAntenna 0.45s ease-in-out infinite !important;
  transform-origin: 50% 100%;
}
.oj-bot-char.is-thinking .oj-bot-eyes {
  animation: ojThinkEyes 1.1s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-pupils {
  animation: ojThinkPupils 1.4s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-mouth-default {
  opacity: 0;
}
.oj-bot-char.is-thinking .oj-bot-mouth-yawn {
  opacity: 1;
  transform: scaleY(0.55) scaleX(0.9);
  transform-origin: 50% 40%;
}
@keyframes ojThinkBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes ojThinkAntenna {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(14deg); }
}
@keyframes ojThinkEyes {
  0%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.88); }
  55% { transform: scaleY(1); }
}
@keyframes ojThinkPupils {
  0%, 100% { transform: translate(3px, -2px); }
  25% { transform: translate(-3px, -1px); }
  50% { transform: translate(2px, 2px); }
  75% { transform: translate(-2px, -3px); }
}
/* ——— Night + Envisage: high-contrast Ask card (readable on purple/dusk UI) ——— */
html.dark .oj-bot-ask-card,
html.envisage .oj-bot-ask-card {
  background: #0f172a;
  border-color: #67e8f9;
  color: #f8fafc;
  box-shadow: 4px 6px 0 rgba(8, 47, 73, 0.55), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.envisage .oj-bot-ask-card {
  /* Envisage dusk: deep violet shell, not pale “white box” */
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 55%, #164e63 140%);
  border-color: #a78bfa;
  box-shadow: 4px 6px 0 rgba(76, 29, 149, 0.45), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-ask-head,
html.envisage .oj-bot-ask-head {
  color: #f8fafc;
  border-bottom-color: rgba(148, 163, 184, 0.25);
}
html.dark .oj-bot-ask-close,
html.envisage .oj-bot-ask-close {
  color: #e2e8f0;
}
html.dark .oj-bot-ask-close:hover,
html.envisage .oj-bot-ask-close:hover {
  color: #fff;
}
html.dark .oj-bot-ask-hint,
html.envisage .oj-bot-ask-hint {
  color: #cbd5e1;
}
html.dark .oj-bot-ask-meta,
html.envisage .oj-bot-ask-meta {
  color: #94a3b8;
}
html.dark .oj-bot-ask-reply,
html.envisage .oj-bot-ask-reply {
  background: rgba(15, 23, 42, 0.92);
  border-color: #38bdf8;
  color: #f8fafc;
}
html.envisage .oj-bot-ask-reply {
  background: rgba(30, 27, 75, 0.85);
  border-color: #c4b5fd;
}
html.dark .oj-bot-ask-reply.is-pending,
html.envisage .oj-bot-ask-reply.is-pending {
  background: rgba(15, 23, 42, 0.75);
  border-color: #64748b;
}
html.dark .oj-bot-ask-reply-label,
html.envisage .oj-bot-ask-reply-label {
  color: #7dd3fc;
}
html.envisage .oj-bot-ask-reply-label {
  color: #ddd6fe;
}
html.dark .oj-bot-ask-reply-text,
html.envisage .oj-bot-ask-reply-text {
  color: #f8fafc !important; /* beat any inherited grey / admin-nerd light rules */
  font-weight: 600;
}
html.dark .oj-bot-ask-reply-dots,
html.envisage .oj-bot-ask-reply-dots {
  color: #cbd5e1;
}
html.dark .oj-bot-ask-reply--free,
html.envisage .oj-bot-ask-reply--free {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9));
}
html.dark .oj-bot-ask-reply--xai,
html.envisage .oj-bot-ask-reply--xai {
  border-color: rgba(251, 191, 36, 0.7);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), rgba(15, 23, 42, 0.9));
}
/* Admin nerd + Envisage/Night: keep purple brand, kill pale reply panels */
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-card,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-card {
  border-color: #c4b5fd;
  box-shadow: 4px 6px 0 rgba(109, 40, 217, 0.4), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-head,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-head {
  color: #e9d5ff;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply {
  background: linear-gradient(145deg, rgba(46, 16, 101, 0.9), rgba(15, 23, 42, 0.95));
  border-color: #a78bfa;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label {
  color: #ddd6fe;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text {
  color: #f8fafc !important;
}
html.dark .oj-bot-ask-row input:disabled,
html.envisage .oj-bot-ask-row input:disabled {
  background: #1e293b;
  color: #94a3b8;
}
html.dark .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.dark .oj-bot-ask-card.oj-bot-ask-card--below::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--below::after {
  background: #0f172a;
  border-color: #67e8f9;
}
html.envisage .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--below::after {
  background: #1e1b4b;
  border-color: #a78bfa;
}
html.dark .oj-bot-ask-row input,
html.envisage .oj-bot-ask-row input {
  background: #020617;
  border-color: #64748b;
  color: #f8fafc;
  caret-color: #f8fafc;
}
html.dark .oj-bot-ask-row input::placeholder,
html.envisage .oj-bot-ask-row input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
html.dark .oj-bot-ask-row input:focus,
html.envisage .oj-bot-ask-row input:focus {
  border-color: #a78bfa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}
html.dark .oj-bot-ask-row button.primary,
html.envisage .oj-bot-ask-row button.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border-color: transparent;
}
html.dark .oj-bot-ask-action-btn,
html.envisage .oj-bot-ask-action-btn {
  background: linear-gradient(135deg, #312e81, #1e3a5f);
  border-color: #a5b4fc;
  color: #e0e7ff;
}
html.dark .oj-bot-ask-action-btn:hover,
html.envisage .oj-bot-ask-action-btn:hover {
  background: linear-gradient(135deg, #4338ca, #1d4ed8);
  color: #fff;
}
/* Keep page theme untouched when Ask opens (no purple/slate full-screen wash) */
html.dark .oj-bot-ask-panel.is-open,
html.envisage .oj-bot-ask-panel.is-open {
  background: transparent !important;
}

/* ——— Message alert: comical buzz / shake ——— */
.oj-bot-char.is-msg-buzz {
  animation: ojMsgBuzz 0.45s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 12px rgba(56, 189, 248, 0.55))
    drop-shadow(0 8px 16px rgba(15, 23, 42, 0.28));
}
@keyframes ojMsgBuzz {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-5px, 2px) rotate(-6deg); }
  30% { transform: translate(6px, -2px) rotate(5deg); }
  45% { transform: translate(-4px, -3px) rotate(-4deg); }
  60% { transform: translate(5px, 2px) rotate(6deg); }
  75% { transform: translate(-3px, 1px) rotate(-3deg); }
  90% { transform: translate(3px, -1px) rotate(2deg); }
}
.oj-bot-char.is-msg-buzz .oj-bot-antenna {
  animation: ojMsgAntenna 0.35s ease-in-out infinite !important;
}
@keyframes ojMsgAntenna {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(12deg); }
}
.oj-bot-root.is-msg-buzz-show .oj-bot-speech {
  animation: ojMsgBubblePulse 0.5s ease-in-out infinite alternate;
}
@keyframes ojMsgBubblePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}
.oj-bot-root.is-msg-buzz-show .oj-bot-speech-name {
  color: #0284c7 !important;
}

/* ——— New job alert: bounce + “look at that!” ——— */
.oj-bot-char.is-job-alert {
  animation: ojJobAlertBounce 0.55s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 14px rgba(249, 115, 22, 0.55))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojJobAlertBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  40% { transform: translateY(-10px) rotate(3deg) scale(1.06); }
  70% { transform: translateY(-4px) rotate(-1deg) scale(1.02); }
}
.oj-bot-char.is-job-alert .oj-bot-arm {
  animation: ojJobAlertPoint 0.7s ease-in-out infinite !important;
  transform-origin: 66px 56px;
}
@keyframes ojJobAlertPoint {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(-55deg); }
}
.oj-bot-root.is-job-alert-show .oj-bot-speech {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(249, 115, 22, 0.25),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-job-alert-show .oj-bot-speech::after {
  background: #fff7ed !important;
  border-right-color: #ea580c !important;
  border-bottom-color: #ea580c !important;
}
.oj-bot-root.is-job-alert-show .oj-bot-speech-name {
  color: #c2410c !important;
}

/* ——— Funny medals (awarded on completed actions) ——— */
.oj-bot-medal {
  position: absolute;
  left: 50%;
  top: -0.85rem;
  transform: translateX(-50%) scale(0.4);
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.35));
}
.oj-bot-char.is-medal .oj-bot-medal {
  opacity: 1;
  animation: ojMedalPop 0.55s cubic-bezier(0.34, 1.55, 0.64, 1) both,
    ojMedalBob 0.7s ease-in-out 0.55s infinite alternate;
}
@keyframes ojMedalPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.2) rotate(-20deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
}
@keyframes ojMedalBob {
  0% { transform: translateX(-50%) translateY(0) scale(1) rotate(-4deg); }
  100% { transform: translateX(-50%) translateY(-5px) scale(1.08) rotate(5deg); }
}
.oj-bot-char.is-medal {
  animation: ojBotTradieBounce 0.55s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 14px rgba(251, 191, 36, 0.65))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
.oj-bot-root.is-medal-show .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef9c3 !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(250, 204, 21, 0.4),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-medal-show .oj-bot-speech::after {
  background: #fef9c3 !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-medal-show .oj-bot-speech-name {
  color: #a16207 !important;
  letter-spacing: 0.08em;
}
.oj-bot-root.is-medal-show .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
}
.oj-bot-root.is-medal-show .oj-bot-speech-actions {
  display: none !important;
}

/* Blow a kiss 💕 */
.oj-bot-hearts {
  position: absolute;
  left: 50%;
  top: 28%;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(0.4);
  z-index: 3;
}
.oj-bot-char.is-kiss .oj-bot-hearts {
  animation: ojBotKiss 1.4s ease-out forwards;
}
@keyframes ojBotKiss {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(0.3); }
  20% { opacity: 1; transform: translate(-30%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(20%, -42px) scale(1.35); }
}
.oj-bot-char.is-kiss .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-kiss .oj-bot-mouth-grin { opacity: 1; }

.oj-bot-speech-actions button.hidden,
.oj-bot-speech-actions .hidden {
  display: none !important;
}
.oj-bot-root.is-farewell .oj-bot-spotlight {
  opacity: 0 !important;
}

/* ——— Fly comedy: track → brows → swatter → swat → kill/miss ——— */
.oj-bot-fly {
  position: absolute;
  width: 1.45rem;
  height: 1.45rem;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.oj-bot-fly-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.oj-bot-fly.is-buzzing {
  opacity: 1;
  /* slower, longer loop — more buzzing before the swat */
  animation: ojFlyBuzz 2.4s linear infinite;
}
/* Dramatic death spiral */
.oj-bot-fly.is-falling {
  opacity: 1;
  animation: ojFlyFall 1.35s cubic-bezier(0.4, 0.05, 0.7, 0.2) forwards;
}
.oj-bot-fly.is-dead .oj-bot-fly-x {
  opacity: 1 !important;
}
.oj-bot-fly.is-dead .oj-bot-fly-wing-l,
.oj-bot-fly.is-dead .oj-bot-fly-wing-r {
  animation: none !important;
  opacity: 0.45;
}
/* Escapes!
 */
.oj-bot-fly.is-miss {
  opacity: 1;
  animation: ojFlyMiss 0.95s ease-in forwards;
}
@keyframes ojFlyBuzz {
  0%   { transform: translate(78px, -14px) rotate(-10deg); }
  8%   { transform: translate(52px, 8px) rotate(8deg); }
  16%  { transform: translate(18px, -8px) rotate(-16deg); }
  24%  { transform: translate(64px, 28px) rotate(12deg); }
  32%  { transform: translate(8px, 14px) rotate(-20deg); }
  40%  { transform: translate(70px, -4px) rotate(6deg); }
  48%  { transform: translate(28px, 32px) rotate(-8deg); }
  56%  { transform: translate(82px, 20px) rotate(18deg); }
  64%  { transform: translate(14px, 2px) rotate(-14deg); }
  72%  { transform: translate(58px, -12px) rotate(10deg); }
  80%  { transform: translate(36px, 24px) rotate(-12deg); }
  88%  { transform: translate(74px, 10px) rotate(14deg); }
  96%  { transform: translate(44px, -6px) rotate(-6deg); }
  100% { transform: translate(78px, -14px) rotate(-10deg); }
}
@keyframes ojFlyFall {
  0%   { opacity: 1; transform: translate(52px, 14px) scale(1) rotate(0deg); }
  15%  { opacity: 1; transform: translate(58px, 20px) scale(1.05) rotate(50deg); }
  40%  { opacity: 1; transform: translate(48px, 48px) scale(0.95) rotate(140deg); }
  70%  { opacity: 1; transform: translate(40px, 88px) scale(0.85) rotate(280deg); }
  100% { opacity: 0; transform: translate(36px, 120px) scale(0.5) rotate(400deg); }
}
@keyframes ojFlyMiss {
  0%   { opacity: 1; transform: translate(50px, 12px) scale(1) rotate(0deg); }
  30%  { opacity: 1; transform: translate(20px, -20px) scale(1.1) rotate(-30deg); }
  100% { opacity: 0; transform: translate(-40px, -80px) scale(0.6) rotate(-120deg); }
}
.oj-bot-fly.is-buzzing .oj-bot-fly-wing-l {
  transform-origin: 12px 11px;
  animation: ojWingL 0.08s ease-in-out infinite;
}
.oj-bot-fly.is-buzzing .oj-bot-fly-wing-r {
  transform-origin: 12px 11px;
  animation: ojWingR 0.08s ease-in-out infinite;
}
@keyframes ojWingL {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50% { transform: rotate(-25deg) scaleY(0.55); }
}
@keyframes ojWingR {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50% { transform: rotate(25deg) scaleY(0.55); }
}

/* Eyes track the fly (pupils move in sync with buzz path) */
.oj-bot-pupils {
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-tracking .oj-bot-eyes {
  animation: none; /* pause blink while tracking */
}
.oj-bot-char.is-tracking .oj-bot-pupils {
  animation: ojEyeTrack 2.4s linear infinite;
}
/* Slightly disturbed while tracking */
.oj-bot-char.is-tracking .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-tracking .oj-bot-mouth-grumpy { opacity: 1; }
@keyframes ojEyeTrack {
  0%   { transform: translate(2.4px, -1.4px); }
  8%   { transform: translate(1px, 0.8px); }
  16%  { transform: translate(-2.6px, -0.8px); }
  24%  { transform: translate(1.8px, 2.2px); }
  32%  { transform: translate(-2.2px, 1.2px); }
  40%  { transform: translate(2.2px, -0.6px); }
  48%  { transform: translate(-1.2px, 2.4px); }
  56%  { transform: translate(2.8px, 1.4px); }
  64%  { transform: translate(-2.4px, 0.2px); }
  72%  { transform: translate(1.6px, -1.2px); }
  80%  { transform: translate(-0.8px, 1.8px); }
  88%  { transform: translate(2.4px, 0.8px); }
  96%  { transform: translate(0.2px, -0.8px); }
  100% { transform: translate(2.4px, -1.4px); }
}
/* Watch the body fall — pupils look down */
.oj-bot-char.is-watch-fall .oj-bot-eyes {
  animation: none;
}
.oj-bot-char.is-watch-fall .oj-bot-pupils {
  animation: ojEyeWatchFall 1.35s ease-in forwards;
}
@keyframes ojEyeWatchFall {
  0%   { transform: translate(1px, 0); }
  100% { transform: translate(0.4px, 2.6px); }
}

/* Pissed off / disturbed (no eyebrows) */
.oj-bot-mouth-grumpy { opacity: 0; }
.oj-bot-steam { opacity: 0; }
.oj-bot-char.is-pissed .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-pissed .oj-bot-mouth-grumpy { opacity: 1; }
.oj-bot-char.is-pissed .oj-bot-steam {
  opacity: 1;
  animation: ojSteam 0.55s ease-in-out infinite;
}
.oj-bot-char.is-pissed .oj-bot-eyes {
  animation: none;
  transform: scaleY(0.72);
}
.oj-bot-char.is-pissed .oj-bot-pupils {
  animation: ojEyeTrackMad 0.9s linear infinite;
}
.oj-bot-char.is-pissed {
  animation: ojBotShake 0.28s ease-in-out infinite, ojBotFloat 3.2s ease-in-out infinite;
}
@keyframes ojSteam {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes ojBotShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}
@keyframes ojEyeTrackMad {
  0%   { transform: translate(2px, -1px); }
  50%  { transform: translate(-2px, 1.5px); }
  100% { transform: translate(2px, -1px); }
}

/* ACME fly swatter appears on arm */
.oj-bot-swatter {
  opacity: 0;
  transform: scale(0.15) translate(-8px, 8px) rotate(-25deg);
  transform-origin: 84px 56px;
  transition: opacity 0.15s ease, transform 0.4s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.oj-bot-char.is-swatter .oj-bot-swatter {
  opacity: 1;
  transform: scale(1.15) translate(0, 0) rotate(0deg);
}
.oj-bot-char.is-swatter .oj-bot-hand-default {
  opacity: 0;
}

/* Arm SWAT with giant swatter */
@keyframes ojBotSwat {
  0%   { transform: rotate(12deg); }
  10%  { transform: rotate(-95deg); }
  22%  { transform: rotate(22deg); }
  34%  { transform: rotate(-100deg); }
  48%  { transform: rotate(14deg); }
  62%  { transform: rotate(-88deg); }
  78%  { transform: rotate(8deg); }
  100% { transform: rotate(var(--oj-bot-arm-deg, 18deg)); }
}
.oj-bot-char.is-swat .oj-bot-arm {
  animation: ojBotSwat 1.1s ease-in-out 1;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-swat .oj-bot-eyes {
  transform: scaleY(0.4);
  animation: none;
}
.oj-bot-char.is-swat .oj-bot-mouth-default,
.oj-bot-char.is-swat .oj-bot-mouth-grumpy {
  opacity: 0;
}
.oj-bot-char.is-swat .oj-bot-steam {
  opacity: 1;
}

/* Laugh */
.oj-bot-mouth-laugh { opacity: 0; }
.oj-bot-char.is-laugh .oj-bot-mouth-default,
.oj-bot-char.is-laugh .oj-bot-mouth-grin { opacity: 0; }
.oj-bot-char.is-laugh .oj-bot-mouth-laugh { opacity: 1; }
.oj-bot-char.is-laugh {
  animation: ojBotLaughBounce 0.35s ease-in-out 4, ojBotFloat 3.2s ease-in-out infinite;
}
@keyframes ojBotLaughBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.oj-bot-root.is-swatting .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ——— Virus possession (over-dramatised, comical) ———
   creep → watch → GULP → eyes first → matrix green bot → rant → snap */
.oj-bot-virus-label {
  position: absolute;
  left: 50%;
  top: -0.35rem;
  transform: translateX(-50%) scale(0.6);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #4ade80;
  background: #052e16;
  border: 1.5px solid #22c55e;
  border-radius: 0.35rem;
  padding: 0.12rem 0.35rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  font-family: "Courier New", ui-monospace, monospace;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}
.oj-bot-horns,
.oj-bot-virus-bits,
.oj-bot-badge-evil,
.oj-bot-mouth-evil,
.oj-bot-mouth-gulp {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Creeping virus blob (classic comic germ) */
.oj-bot-creep {
  position: absolute;
  width: 1.7rem;
  height: 1.7rem;
  left: -2.2rem;
  top: 3.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.55));
}
.oj-bot-creep-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.oj-bot-creep.is-creeping {
  opacity: 1;
  animation: ojVirusCreep 2s ease-in-out forwards;
}
.oj-bot-creep.is-creeping .oj-bot-creep-body {
  animation: ojVirusWobble 0.45s ease-in-out infinite;
  transform-origin: 18px 18px;
}
@keyframes ojVirusCreep {
  0%   { left: -2.4rem; top: 3.6rem; transform: scale(0.55) rotate(-25deg); opacity: 0; }
  12%  { opacity: 1; }
  35%  { left: -0.9rem; top: 2.4rem; transform: scale(0.8) rotate(12deg); }
  60%  { left: 0.15rem; top: 1.15rem; transform: scale(0.95) rotate(-8deg); }
  85%  { left: 0.65rem; top: 0.45rem; transform: scale(1.05) rotate(4deg); }
  100% { left: 0.85rem; top: 0.2rem; transform: scale(1.12) rotate(0deg); opacity: 1; }
}
@keyframes ojVirusWobble {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
}
.oj-bot-creep.is-absorbed {
  opacity: 1;
  animation: ojVirusAbsorb 0.55s ease-in forwards;
}
@keyframes ojVirusAbsorb {
  0%   { left: 0.85rem; top: 0.2rem; transform: scale(1.12); opacity: 1; }
  60%  { left: 1.5rem; top: 0.9rem; transform: scale(0.55); opacity: 0.7; }
  100% { left: 1.9rem; top: 1.35rem; transform: scale(0.1); opacity: 0; }
}

/* OJ watches the virus creep closer (pupils track left/up) */
.oj-bot-char.is-watch-virus .oj-bot-pupils {
  transform: translate(-2.6px, -0.8px);
  transition: transform 0.35s ease;
}
.oj-bot-char.is-watch-virus .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-watch-virus .oj-bot-mouth-grumpy { opacity: 1; }
.oj-bot-char.is-watch-virus .oj-bot-eyes {
  animation: none;
  transform: scaleY(1.08);
}

/* GULP — big nervous swallow */
.oj-bot-char.is-gulp {
  animation: ojBotGulp 0.65s ease-out 1, ojBotFloat 3.2s ease-in-out infinite !important;
}
@keyframes ojBotGulp {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.08, 0.9) translateY(2px); }
  50%  { transform: scale(0.94, 1.1) translateY(-3px); }
  75%  { transform: scale(1.03, 0.97); }
  100% { transform: scale(1, 1); }
}
.oj-bot-char.is-gulp .oj-bot-mouth-default,
.oj-bot-char.is-gulp .oj-bot-mouth-grumpy,
.oj-bot-char.is-gulp .oj-bot-mouth-grin { opacity: 0 !important; }
.oj-bot-char.is-gulp .oj-bot-mouth-gulp { opacity: 1 !important; }
.oj-bot-char.is-gulp .oj-bot-eyes {
  animation: none;
  transform: scale(1.18);
}
.oj-bot-char.is-gulp .oj-bot-pupils {
  transform: translate(0, 1.2px) scale(0.85);
}

/* Eyes first — infection starts in the peepers */
.oj-bot-char.is-eyes-infect .oj-bot-eye-ball {
  fill: #22c55e !important;
  filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.95));
}
.oj-bot-char.is-eyes-infect .oj-bot-pupil {
  fill: #052e16 !important;
  animation: ojMatrixPupil 0.18s steps(2) infinite;
}
.oj-bot-char.is-eyes-infect .oj-bot-eye-shine {
  fill: #bbf7d0 !important;
}
.oj-bot-char.is-eyes-infect .oj-bot-eyes {
  animation: ojMatrixEyePulse 0.35s ease-in-out infinite;
  transform-origin: 48px 33.5px;
}
@keyframes ojMatrixEyePulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.75); }
}
@keyframes ojMatrixPupil {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0.6px, -0.4px); }
  100% { transform: translate(-0.4px, 0.3px); }
}
.oj-bot-char.is-eyes-infect .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-eyes-infect .oj-bot-mouth-gulp { opacity: 1; }

/* Glitch in / out */
.oj-bot-char.is-glitching {
  animation: ojBotGlitch 0.11s steps(2) infinite, ojBotFloat 3.2s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.65)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojBotGlitch {
  0%   { transform: translate(0, 0) skewX(0deg); }
  20%  { transform: translate(-2px, 1px) skewX(-2deg); }
  40%  { transform: translate(2px, -1px) skewX(2deg); }
  60%  { transform: translate(-1px, 0) skewX(0deg); }
  80%  { transform: translate(1px, 1px) skewX(-1deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

/* Full matrix-green virus bot */
.oj-bot-char.is-possessed {
  animation: ojBotMatrixPulse 0.42s ease-in-out infinite !important;
  filter:
    hue-rotate(95deg) saturate(1.85) brightness(1.05)
    drop-shadow(0 0 14px rgba(34, 197, 94, 0.85))
    drop-shadow(0 0 4px rgba(74, 222, 128, 0.9))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
@keyframes ojBotMatrixPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.07) rotate(-2.5deg); }
}
.oj-bot-char.is-possessed .oj-bot-eye-ball {
  fill: #4ade80 !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 1));
}
.oj-bot-char.is-possessed .oj-bot-pupil {
  fill: #052e16 !important;
}
.oj-bot-char.is-possessed .oj-bot-eye-shine {
  fill: #dcfce7 !important;
}
.oj-bot-char.is-possessed .oj-bot-eyes {
  animation: ojMatrixEyePulse 0.28s ease-in-out infinite;
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-possessed .oj-bot-mouth-default,
.oj-bot-char.is-possessed .oj-bot-mouth-grin,
.oj-bot-char.is-possessed .oj-bot-mouth-grumpy,
.oj-bot-char.is-possessed .oj-bot-mouth-gulp,
.oj-bot-char.is-possessed .oj-bot-mouth-laugh {
  opacity: 0 !important;
}
.oj-bot-char.is-possessed .oj-bot-mouth-evil {
  opacity: 1 !important;
}
.oj-bot-char.is-possessed .oj-bot-horns,
.oj-bot-char.is-possessed .oj-bot-virus-bits {
  opacity: 1 !important;
}
.oj-bot-char.is-possessed .oj-bot-virus-bits {
  animation: ojVirusOrbit 1.05s linear infinite;
  transform-origin: 48px 48px;
}
@keyframes ojVirusOrbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.oj-bot-char.is-possessed .oj-bot-badge-text {
  opacity: 0;
}
.oj-bot-char.is-possessed .oj-bot-badge-evil {
  opacity: 1 !important;
  fill: #4ade80;
}
.oj-bot-char.is-possessed .oj-bot-virus-label {
  opacity: 1;
  animation: ojVirusBadge 0.45s ease-in-out infinite alternate;
}
@keyframes ojVirusBadge {
  from { transform: translateX(-50%) scale(0.88); }
  to { transform: translateX(-50%) scale(1.1); }
}
.oj-bot-char.is-possessed .oj-bot-antenna circle:first-of-type {
  fill: #22c55e !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.9));
}
/* Possessed thrash / cackle */
.oj-bot-char.is-possessed.is-laugh {
  animation: ojBotLaughBounce 0.28s ease-in-out infinite, ojBotMatrixPulse 0.42s ease-in-out infinite !important;
}

/* Snap out of it */
.oj-bot-char.is-snap-out {
  animation: ojBotSnapOut 0.75s ease-out 1, ojBotFloat 3.2s ease-in-out infinite !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojBotSnapOut {
  0%   { transform: scale(1.1) rotate(-7deg); filter: hue-rotate(95deg) saturate(1.8); }
  35%  { transform: scale(0.9) rotate(8deg); }
  65%  { transform: scale(1.05) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* During possess: hide speech until the matrix rant or awkward punchline */
.oj-bot-root.is-possess-show:not(.is-virus-rant):not(.is-awkward-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Matrix rant bubble — green terminal vibes */
.oj-bot-root.is-virus-rant .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #052e16 !important;
  color: #86efac !important;
  border-color: #22c55e !important;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    4px 5px 0 rgba(5, 46, 22, 0.45),
    0 0 22px rgba(34, 197, 94, 0.35) !important;
  font-family: "Courier New", ui-monospace, monospace;
}
.oj-bot-root.is-virus-rant .oj-bot-speech::after {
  background: #052e16 !important;
  border-right-color: #22c55e !important;
  border-bottom-color: #22c55e !important;
}
.oj-bot-root.is-virus-rant .oj-bot-speech-name {
  color: #4ade80 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.oj-bot-root.is-virus-rant .oj-bot-speech-text {
  color: #bbf7d0 !important;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}
.oj-bot-root.is-virus-rant .oj-bot-speech-actions {
  display: none !important;
}

/* Post-possession "Awkward!" punchline — normal bubble, slightly embarrassed */
.oj-bot-root.is-awkward-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fff7ed !important;
  border-color: #fb923c !important;
  box-shadow:
    4px 5px 0 rgba(154, 52, 18, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech::after {
  background: #fff7ed !important;
  border-right-color: #fb923c !important;
  border-bottom-color: #fb923c !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-name {
  color: #ea580c !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-text {
  color: #9a3412 !important;
  font-weight: 800;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-actions {
  display: none !important;
}

/* ——— Full DIY robot costume: hard hat + hi-vis + tool belt + tools ——— */
.oj-bot-hardhat,
.oj-bot-hivis,
.oj-bot-toolbelt,
.oj-bot-goggles,
.oj-bot-tool {
  opacity: 0 !important;
  pointer-events: none;
}
/* Floating DIY badge retired — hard hat alone is the joke */
.oj-bot-tradie-label {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Costume pieces pop on with bounce */
.oj-bot-char.is-tradie .oj-bot-hardhat {
  opacity: 1 !important;
  animation: ojHardhatPop 0.45s cubic-bezier(0.34, 1.55, 0.64, 1) both;
  transform-origin: 48px 20px;
}
@keyframes ojHardhatPop {
  0%   { transform: translateY(-18px) scale(0.4) rotate(-12deg); opacity: 0; }
  60%  { transform: translateY(2px) scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-hivis {
  opacity: 1 !important;
  animation: ojGearPop 0.35s ease-out 0.05s both;
}
.oj-bot-char.is-tradie .oj-bot-toolbelt {
  opacity: 1 !important;
  animation: ojGearPop 0.4s ease-out 0.1s both;
}
.oj-bot-char.is-tradie .oj-bot-goggles {
  opacity: 1 !important;
  animation: ojGearPop 0.3s ease-out 0.08s both;
}
@keyframes ojGearPop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-tradie-label {
  display: none !important;
  opacity: 0 !important;
}

/* Handheld tool — only the active one */
.oj-bot-char.is-tradie.is-tool-hammer .oj-bot-tool-hammer,
.oj-bot-char.is-tradie.is-tool-wrench .oj-bot-tool-wrench,
.oj-bot-char.is-tradie.is-tool-screwdriver .oj-bot-tool-screwdriver,
.oj-bot-char.is-tradie.is-tool-tape .oj-bot-tool-tape,
.oj-bot-char.is-tradie.is-tool-paint .oj-bot-tool-paint {
  opacity: 1 !important;
  animation: ojToolPop 0.4s cubic-bezier(0.34, 1.55, 0.64, 1) 0.12s both;
  transform-origin: 86px 56px;
}
@keyframes ojToolPop {
  0%   { transform: scale(0.15) rotate(-40deg); opacity: 0; }
  100% { transform: scale(1.05) rotate(0deg); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-hand-default {
  opacity: 0 !important;
}
.oj-bot-char.is-tradie .oj-bot-swatter {
  opacity: 0 !important;
}
/* Proud tradie stance */
.oj-bot-char.is-tradie {
  animation: ojBotTradieBounce 0.9s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 10px rgba(250, 204, 21, 0.55))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.3));
}
@keyframes ojBotTradieBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
.oj-bot-char.is-tradie .oj-bot-arm {
  transform: rotate(-18deg);
  transform-origin: 66px 56px;
}
.oj-bot-char.is-tradie.is-wave .oj-bot-arm {
  animation: ojBotWave 0.42s ease-in-out 3;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-tradie .oj-bot-mouth-default { opacity: 0 !important; }
.oj-bot-char.is-tradie.is-grin .oj-bot-mouth-grin { opacity: 1 !important; }
.oj-bot-char.is-tradie.is-laugh .oj-bot-mouth-laugh { opacity: 1 !important; }
.oj-bot-char.is-tradie.is-laugh .oj-bot-mouth-grin { opacity: 0 !important; }
/* Hi-vis covers badge a bit — force DIY badge text feel via label */
.oj-bot-char.is-tradie .oj-bot-badge-text {
  fill: #facc15;
}

/* Tradie speech bubble — hi-vis yellow vibes */
.oj-bot-root.is-tradie-show:not(.is-tradie-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-tradie-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef08a !important;
  border-color: #0f172a !important;
  border-width: 2.5px !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.18),
    0 0 0 3px rgba(250, 204, 21, 0.35),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
  font-weight: 800;
}
.oj-bot-root.is-tradie-say .oj-bot-speech::after {
  background: #fef08a !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-name {
  color: #a16207 !important;
  letter-spacing: 0.08em;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
  font-size: 0.85rem;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-actions {
  display: none !important;
}

/* ——— ACME cheerleader sign ——— */
.oj-bot-cheer-sign {
  opacity: 0 !important;
  pointer-events: none;
  transform-origin: 80px 56px;
}
.oj-bot-cheer-label {
  position: absolute;
  left: 50%;
  top: -0.45rem;
  transform: translateX(-50%) scale(0.7);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  background: #dc2626;
  border: 2px solid #0f172a;
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  font-family: Impact, "Arial Black", sans-serif;
}
.oj-bot-char.is-cheer .oj-bot-cheer-sign {
  opacity: 1 !important;
  animation: ojCheerSignPop 0.45s cubic-bezier(0.34, 1.55, 0.64, 1) both;
}
.oj-bot-char.is-cheer .oj-bot-hand-default,
.oj-bot-char.is-cheer .oj-bot-swatter,
.oj-bot-char.is-cheer .oj-bot-tool {
  opacity: 0 !important;
}
.oj-bot-char.is-cheer .oj-bot-arm {
  transform: rotate(-28deg);
  transform-origin: 66px 56px;
}
.oj-bot-char.is-cheer.is-wave .oj-bot-arm {
  animation: ojBotWave 0.4s ease-in-out 3;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-cheer {
  animation: ojBotTradieBounce 0.7s ease-in-out infinite !important;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.55)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
.oj-bot-char.is-cheer .oj-bot-cheer-label {
  opacity: 1;
  animation: ojVirusBadge 0.4s ease-in-out infinite alternate;
}
.oj-bot-char.is-cheer .oj-bot-mouth-default { opacity: 0 !important; }
.oj-bot-char.is-cheer.is-grin .oj-bot-mouth-grin { opacity: 1 !important; }
.oj-bot-char.is-cheer.is-laugh .oj-bot-mouth-laugh { opacity: 1 !important; }
.oj-bot-char.is-cheer.is-laugh .oj-bot-mouth-grin { opacity: 0 !important; }
@keyframes ojCheerSignPop {
  0%   { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1.08) rotate(0deg); opacity: 1; }
}
.oj-bot-root.is-cheer-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef08a !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech::after {
  background: #fef08a !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-name {
  color: #b91c1c !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-text {
  color: #0f172a !important;
  font-weight: 800;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-actions {
  display: none !important;
}

/* Dock launcher when tour off / idle */
.oj-bot-launcher {
  position: fixed;
  z-index: 9987;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: auto;
}
.oj-bot-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, #0f172a, #0c4a6e);
  color: #e0f2fe;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 28px -12px rgba(2, 132, 199, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.oj-bot-launcher-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(2, 132, 199, 0.65);
}
.oj-bot-launcher-btn .oj-bot-mini {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.oj-bot-launcher-btn.is-off {
  opacity: 0.72;
  background: #334155;
  border-color: #475569;
}
.oj-bot-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.35);
}
.oj-bot-menu.is-open {
  display: flex;
}
.oj-bot-menu button {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  border: none;
  background: transparent;
  color: #334155;
  cursor: pointer;
}
.oj-bot-menu button:hover {
  background: #f1f5f9;
}

/* ——— Night + Envisage speech bubbles (tips, job alerts, tour) ——— */
html.dark .oj-bot-speech,
html.envisage .oj-bot-speech {
  background: #0f172a;
  border-color: #67e8f9;
  color: #f8fafc;
  box-shadow:
    4px 5px 0 rgba(8, 47, 73, 0.45),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
html.envisage .oj-bot-speech {
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 70%);
  border-color: #a5b4fc;
  box-shadow:
    4px 5px 0 rgba(76, 29, 149, 0.4),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-speech::after,
html.envisage .oj-bot-speech::after {
  background: #0f172a;
  border-color: #67e8f9;
}
html.envisage .oj-bot-speech::after {
  background: #1e1b4b;
  border-color: #a5b4fc;
}
html.dark .oj-bot-speech-name,
html.envisage .oj-bot-speech-name {
  color: #7dd3fc !important;
}
html.envisage .oj-bot-speech-name {
  color: #c4b5fd !important;
}
html.dark .oj-bot-speech-text,
html.envisage .oj-bot-speech-text {
  color: #f8fafc !important;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
html.dark .oj-bot-speech-actions button,
html.envisage .oj-bot-speech-actions button {
  border-color: #a5b4fc;
  background: linear-gradient(135deg, #312e81, #1e3a5f);
  color: #e0e7ff;
}
html.dark .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: #c4b5fd;
  color: #fff;
}
html.dark .oj-bot-menu,
html.envisage .oj-bot-menu {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}
html.dark .oj-bot-menu button,
html.envisage .oj-bot-menu button {
  color: #e2e8f0;
}
html.dark .oj-bot-menu button:hover,
html.envisage .oj-bot-menu button:hover {
  background: #334155;
}

/*
 * Job / message alert skins force pale fills in light mode.
 * Envisage + Night: keep dark bubble + bright text (never light-on-light).
 */
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech {
  background: linear-gradient(160deg, #431407 0%, #0f172a 55%, #1c1917 100%) !important;
  border-color: #fb923c !important;
  color: #fff7ed !important;
  box-shadow:
    4px 5px 0 rgba(154, 52, 18, 0.45),
    0 0 0 3px rgba(249, 115, 22, 0.35),
    0 16px 40px -12px rgba(0, 0, 0, 0.55) !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech::after,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech::after {
  background: #431407 !important;
  border-right-color: #fb923c !important;
  border-bottom-color: #fb923c !important;
  border-left-color: #fb923c !important;
  border-top-color: #fb923c !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-name,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-name {
  color: #fdba74 !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-text,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-text {
  color: #fff7ed !important;
  font-weight: 700;
}

html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech {
  background: linear-gradient(160deg, #0c4a6e 0%, #0f172a 60%) !important;
  border-color: #38bdf8 !important;
  color: #f0f9ff !important;
  box-shadow:
    4px 5px 0 rgba(3, 105, 161, 0.4),
    0 0 0 3px rgba(56, 189, 248, 0.3),
    0 16px 40px -12px rgba(0, 0, 0, 0.55) !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech::after,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech::after {
  background: #0c4a6e !important;
  border-color: #38bdf8 !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech-name,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech-name {
  color: #7dd3fc !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech-text,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech-text {
  color: #f0f9ff !important;
  font-weight: 700;
}

/* Tip / tour buttons stay legible on dark bubbles */
html.dark .oj-bot-root.is-tipping .oj-bot-speech-actions button,
html.envisage .oj-bot-root.is-tipping .oj-bot-speech-actions button,
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button {
  border-color: #fdba74;
  background: rgba(15, 23, 42, 0.85);
  color: #fff7ed;
}
html.dark .oj-bot-root.is-tipping .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-root.is-tipping .oj-bot-speech-actions button.primary,
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  border-color: #fdba74;
  color: #fff;
}

@media (max-width: 640px) {
  .oj-bot-stage {
    width: 6.25rem;
  }
  .oj-bot-char {
    width: 4.75rem;
    height: 5rem;
  }
  .oj-bot-speech {
    width: min(15rem, calc(100vw - 1.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oj-bot-char,
  .oj-bot-char.is-wiggle,
  .oj-bot-char.is-laugh,
  .oj-bot-char.is-thinking,
  .oj-bot-char.is-thinking .oj-bot-antenna,
  .oj-bot-char.is-thinking .oj-bot-eyes,
  .oj-bot-char.is-thinking .oj-bot-pupils,
  .oj-bot-char.is-glitching,
  .oj-bot-char.is-possessed,
  .oj-bot-char.is-snap-out,
  .oj-bot-char.is-gulp,
  .oj-bot-char.is-eyes-infect .oj-bot-eyes,
  .oj-bot-char.is-eyes-infect .oj-bot-pupil,
  .oj-bot-eyes,
  .oj-bot-antenna,
  .oj-bot-pupils,
  .oj-bot-arm,
  .oj-bot-arm-left,
  .oj-bot-char.is-wave .oj-bot-arm,
  .oj-bot-char.is-swat .oj-bot-arm,
  .oj-bot-char.is-arm-seize .oj-bot-arm,
  .oj-bot-char.is-arm-fall .oj-bot-arm,
  .oj-bot-char.is-arm-reattach .oj-bot-arm,
  .oj-bot-char.is-wd40 .oj-bot-arm-left,
  .oj-bot-char.is-wd40 .oj-bot-wd40-spray,
  .oj-bot-fly.is-buzzing,
  .oj-bot-fly.is-falling,
  .oj-bot-fly.is-miss,
  .oj-bot-fly.is-buzzing .oj-bot-fly-wing-l,
  .oj-bot-fly.is-buzzing .oj-bot-fly-wing-r,
  .oj-bot-creep.is-creeping,
  .oj-bot-creep.is-creeping .oj-bot-creep-body,
  .oj-bot-creep.is-absorbed,
  .oj-bot-hardhat,
  .oj-bot-hivis,
  .oj-bot-toolbelt,
  .oj-bot-goggles,
  .oj-bot-tool,
  .oj-bot-cheer-sign,
  .oj-bot-char.is-tradie,
  .oj-bot-char.is-cheer,
  .oj-bot-char.is-easter-cheer,
  .oj-bot-easter.is-launch .oj-bot-rocket,
  .oj-bot-fw-burst,
  .oj-bot-fw-smoke,
  .oj-bot-matrix-track {
    animation: none !important;
    transition: none !important;
  }
  .oj-bot-char.is-tradie .oj-bot-hardhat,
  .oj-bot-char.is-tradie .oj-bot-hivis,
  .oj-bot-char.is-tradie .oj-bot-toolbelt,
  .oj-bot-char.is-tradie .oj-bot-goggles {
    opacity: 1 !important;
  }
  .oj-bot-stage,
  .oj-bot-spotlight {
    transition: none;
  }
}
