/* Floating HUD companion — sitewide via site-nav.js */

.cpjr-bot .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cpjr-bot {
  --bot-cyan: #7ad7ff;
  --bot-cyan-soft: rgba(122, 215, 255, 0.35);
  --bot-ink: #d7f4ff;
  --bot-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
  font-family: "DM Sans", sans-serif;
  pointer-events: none;
}

.cpjr-bot * {
  box-sizing: border-box;
}

.cpjr-bot-panel {
  --panel-shift-x: 0px;
  --panel-shift-y: 0px;
  pointer-events: auto;
  position: absolute;
  right: calc(100% + 0.65rem);
  bottom: 0;
  left: auto;
  top: auto;
  width: min(20.5rem, calc(100vw - 6.75rem));
  max-height: min(85dvh, calc(100vh - 1rem));
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 0.95rem 0.95rem 0.35rem 0.95rem;
  color: #e8f8ff;
  background:
    linear-gradient(135deg, rgba(20, 50, 72, 0.55) 0%, rgba(8, 22, 36, 0.72) 100%);
  border: 1px solid rgba(122, 215, 255, 0.45);
  box-shadow:
    0 0 22px rgba(122, 215, 255, 0.2),
    0 16px 40px rgba(0, 20, 40, 0.35),
    inset 0 0 28px rgba(122, 215, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translate(calc(12px + var(--panel-shift-x)), var(--panel-shift-y)) scale(0.96);
  pointer-events: none;
  z-index: 2;
  transition:
    opacity 0.32s var(--bot-ease),
    transform 0.32s var(--bot-ease);
}

.cpjr-bot-panel.is-panel-right {
  transform-origin: bottom left;
}

.cpjr-bot-panel.is-panel-down {
  transform-origin: top right;
  border-radius: 0.35rem 0.95rem 0.95rem 0.95rem;
}

.cpjr-bot-panel.is-panel-down.is-panel-right {
  transform-origin: top left;
  border-radius: 0.95rem 0.35rem 0.95rem 0.95rem;
}

.cpjr-bot--links .cpjr-bot-panel {
  width: min(23.25rem, calc(100vw - 6.25rem));
}

.cpjr-bot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(122, 215, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.cpjr-bot-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  z-index: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 235, 255, 0.16),
    transparent
  );
  animation: cpjr-bot-holo-scan 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cpjr-bot.is-open .cpjr-bot-panel {
  opacity: 1;
  transform: translate(var(--panel-shift-x), var(--panel-shift-y)) scale(1);
  pointer-events: auto;
}

.cpjr-bot-dock {
  position: relative;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  z-index: 1;
  overflow: visible;
}

.cpjr-bot.is-repositioned {
  right: auto;
  bottom: auto;
}

.cpjr-bot.is-dragging {
  transition: none;
  user-select: none;
}

.cpjr-bot.is-dragging .cpjr-bot-launcher {
  cursor: grabbing;
}

.cpjr-bot-hide {
  pointer-events: auto;
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  z-index: 4;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(122, 215, 255, 0.45);
  border-radius: 999px;
  padding: 0;
  background: rgba(8, 22, 36, 0.88);
  color: rgba(215, 244, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(122, 215, 255, 0.2);
  opacity: 0;
  transition: opacity 0.22s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Desktop: X fades in only while the pointer is over BLOOP */
@media (hover: hover) and (pointer: fine) {
  .cpjr-bot:hover .cpjr-bot-hide,
  .cpjr-bot-hide:focus-visible {
    opacity: 1;
  }
}

/* Mobile / touch: X only after chat is opened */
@media (hover: none), (pointer: coarse) {
  .cpjr-bot-hide {
    pointer-events: none;
  }

  .cpjr-bot.is-open .cpjr-bot-hide {
    opacity: 1;
    pointer-events: auto;
  }
}

.cpjr-bot-hide:hover {
  color: #fff;
  border-color: rgba(122, 215, 255, 0.8);
}

.cpjr-bot-hide:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 2px;
  opacity: 1;
}

.cpjr-bot-move-hint {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 0.28rem);
  transform: translateX(-50%);
  margin: 0;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(215, 244, 255, 0.82);
  background: rgba(8, 22, 36, 0.82);
  border: 1px solid rgba(122, 215, 255, 0.28);
  text-shadow: 0 0 8px rgba(122, 215, 255, 0.25);
}

.cpjr-bot-move-hint[hidden] {
  display: none;
}

@media (pointer: coarse) {
  .cpjr-bot-move-hint {
    display: none !important;
  }
}

.cpjr-bot.is-open .cpjr-bot-move-hint,
.cpjr-bot.is-dragging .cpjr-bot-move-hint {
  opacity: 0;
}

.cpjr-bot.is-hidden {
  display: none !important;
}

.cpjr-bot-panel-head,
.cpjr-bot-log,
.cpjr-bot-suggestions,
.cpjr-bot-form {
  position: relative;
  z-index: 1;
}

.cpjr-bot-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(122, 215, 255, 0.22);
  background: linear-gradient(90deg, rgba(122, 215, 255, 0.14), transparent 72%);
}

.cpjr-bot-panel-head strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bot-cyan);
  text-shadow: 0 0 10px rgba(122, 215, 255, 0.45);
}

.cpjr-bot-panel-head span {
  display: block;
  margin-top: 0.2rem;
  max-width: 16rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: rgba(215, 244, 255, 0.72);
}

.cpjr-bot-mode {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0.55rem 0.7rem 0;
  padding: 0.22rem;
  border: 1px solid rgba(122, 215, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.45);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cpjr-bot-mode::-webkit-scrollbar {
  display: none;
}

.cpjr-bot-mode[hidden] {
  display: none !important;
}

.cpjr-bot-mode button {
  flex: 1 0 auto;
  min-height: 1.7rem;
  padding: 0 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(215, 244, 255, 0.72);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

/* One-time wiggle (first open per session) when categories overflow the chat width */
.cpjr-bot-mode.is-hinting > button {
  animation: cpjr-bot-mode-wiggle 1.7s cubic-bezier(0.45, 0, 0.25, 1) both;
}

@keyframes cpjr-bot-mode-wiggle {
  0%,
  100% {
    transform: none;
  }
  24% {
    transform: translateX(-34px);
  }
  46% {
    transform: translateX(6px);
  }
  64% {
    transform: translateX(-14px);
  }
  82% {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpjr-bot-mode.is-hinting > button {
    animation: none;
  }
}

.cpjr-bot-mode button.is-selected {
  background: rgba(122, 215, 255, 0.22);
  color: #fff;
  box-shadow: 0 0 12px rgba(122, 215, 255, 0.28);
}

.cpjr-bot-mode button.is-locked,
.cpjr-bot-mode button.is-locked:disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: rgba(170, 178, 188, 0.72);
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
  background: rgba(90, 96, 106, 0.22);
}

.cpjr-bot-mode-lock {
  flex: 0 0 auto;
  display: block;
  opacity: 0.9;
}

.cpjr-bot-mode button:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 1px;
}

.cpjr-bot-mode button.is-locked:focus-visible {
  outline-color: rgba(170, 178, 188, 0.7);
}

.cpjr-bot-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(122, 215, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 18, 30, 0.35);
  color: var(--bot-cyan);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cpjr-bot-close:hover {
  background: rgba(122, 215, 255, 0.14);
}

.cpjr-bot-close:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 2px;
}

.cpjr-bot-log {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(20rem, 48vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem;
  scroll-behavior: smooth;
}

.cpjr-bot-msg {
  position: relative;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem 0.85rem 0.25rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: cpjr-bot-msg-holo-in 0.35s var(--bot-ease) both;
}

.cpjr-bot-msg > * {
  position: relative;
  z-index: 1;
}

.cpjr-bot-msg--bot {
  align-self: flex-start;
  max-width: 95%;
  color: #e8f8ff;
  background:
    linear-gradient(135deg, rgba(20, 50, 72, 0.5) 0%, rgba(8, 22, 36, 0.62) 100%);
  border: 1px solid rgba(122, 215, 255, 0.4);
  box-shadow:
    0 0 14px rgba(122, 215, 255, 0.12),
    inset 0 0 16px rgba(122, 215, 255, 0.06);
  backdrop-filter: blur(8px);
}

.cpjr-bot-msg--bot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(122, 215, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.cpjr-bot-msg--user {
  align-self: flex-end;
  max-width: 95%;
  border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
  color: #e8f8ff;
  background:
    linear-gradient(135deg, rgba(122, 215, 255, 0.28) 0%, rgba(40, 110, 140, 0.45) 100%);
  border: 1px solid rgba(122, 215, 255, 0.7);
  box-shadow:
    0 0 14px rgba(122, 215, 255, 0.2),
    inset 0 0 14px rgba(122, 215, 255, 0.12);
  backdrop-filter: blur(8px);
  text-shadow: 0 0 8px rgba(0, 20, 40, 0.35);
}

.cpjr-bot-msg a {
  position: relative;
  z-index: 1;
  color: #9fe0ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 0 8px rgba(122, 215, 255, 0.35);
}

.cpjr-bot-msg--user a {
  color: #f2fbff;
}

.cpjr-bot-msg--cristian {
  align-self: flex-start;
  max-width: 95%;
  color: #fff6e8;
  background: linear-gradient(135deg, rgba(72, 52, 20, 0.55) 0%, rgba(36, 24, 8, 0.62) 100%);
  border: 1px solid rgba(255, 198, 112, 0.55);
  box-shadow:
    0 0 14px rgba(255, 198, 112, 0.14),
    inset 0 0 16px rgba(255, 198, 112, 0.06);
  backdrop-filter: blur(8px);
}

.cpjr-bot-msg--cristian a {
  color: #ffd99a;
  text-shadow: none;
}

.cpjr-bot-msg-name {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc670;
}

.cpjr-bot-live {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.85rem 0.65rem;
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
  border: 1px solid rgba(255, 198, 112, 0.45);
  border-radius: 999px;
  background: rgba(36, 24, 8, 0.45);
  backdrop-filter: blur(8px);
}

.cpjr-bot-live[hidden],
.cpjr-bot-suggestions[hidden] {
  display: none !important;
}

.cpjr-bot-live-dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6be38f;
  box-shadow: 0 0 8px rgba(107, 227, 143, 0.8);
  animation: cpjr-bot-live-pulse 1.8s ease-in-out infinite;
}

.cpjr-bot-live-text {
  flex: 1 1 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd99a;
}

.cpjr-bot-live-end {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 198, 112, 0.5);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  background: transparent;
  color: #ffd99a;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.cpjr-bot-live-end:hover {
  background: rgba(255, 198, 112, 0.14);
}

.cpjr-bot-live-end:focus-visible {
  outline: 2px solid #ffc670;
  outline-offset: 2px;
}

@keyframes cpjr-bot-live-pulse {
  50% {
    opacity: 0.35;
  }
}

.cpjr-bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.65rem;
}

.cpjr-bot-chip {
  border: 1px solid rgba(122, 215, 255, 0.45);
  border-radius: 999px;
  background: rgba(8, 22, 36, 0.45);
  padding: 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bot-cyan);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(122, 215, 255, 0.08);
  transition:
    background 0.2s var(--bot-ease),
    border-color 0.2s var(--bot-ease),
    box-shadow 0.2s var(--bot-ease);
}

.cpjr-bot-chip:hover {
  background: rgba(122, 215, 255, 0.16);
  border-color: rgba(122, 215, 255, 0.75);
  box-shadow: 0 0 14px rgba(122, 215, 255, 0.2);
}

.cpjr-bot-chip:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 2px;
}

.cpjr-bot-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(122, 215, 255, 0.22);
  background: linear-gradient(180deg, transparent, rgba(122, 215, 255, 0.05));
}

.cpjr-bot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(122, 215, 255, 0.4);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  color: #e8f8ff;
  background: rgba(8, 22, 36, 0.45);
  box-shadow: inset 0 0 12px rgba(122, 215, 255, 0.06);
  backdrop-filter: blur(8px);
}

.cpjr-bot-form input::placeholder {
  color: rgba(215, 244, 255, 0.4);
}

.cpjr-bot-form input:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 1px;
}

.cpjr-bot-form button[type="submit"] {
  flex: 0 0 auto;
  border: 1px solid rgba(122, 215, 255, 0.75);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8f8ff;
  background: linear-gradient(135deg, rgba(122, 215, 255, 0.35), rgba(40, 110, 140, 0.55));
  box-shadow: 0 0 14px rgba(122, 215, 255, 0.22);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cpjr-bot-form button[type="submit"]:hover {
  filter: brightness(1.1);
}

@keyframes cpjr-bot-msg-holo-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* HUD orb with circling waveform rings */
.cpjr-bot-launcher {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
}

/* Links on phones: an announce is waiting in the chat */
.cpjr-bot.has-unread:not(.is-open) .cpjr-bot-launcher::after {
  content: "";
  position: absolute;
  top: 6%;
  right: 6%;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid rgba(8, 18, 30, 0.9);
  border-radius: 50%;
  background: #ff5a4f;
  box-shadow: 0 0 10px rgba(255, 90, 79, 0.7);
  z-index: 3;
  animation: cpjr-bot-unread-pulse 1.8s ease-in-out infinite;
}

@keyframes cpjr-bot-unread-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpjr-bot.has-unread:not(.is-open) .cpjr-bot-launcher::after {
    animation: none;
  }
}

.cpjr-bot-launcher:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 4px;
  border-radius: 50%;
}

.cpjr-bot-hud {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(8, 18, 30, 0.42);
  box-shadow:
    0 0 0 1px rgba(8, 18, 30, 0.2),
    0 8px 20px rgba(0, 12, 24, 0.22);
  overflow: visible;
}

html.site-night .cpjr-bot-hud {
  background: transparent;
  box-shadow: none;
}

.cpjr-bot-waves {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  overflow: visible;
}

.cpjr-bot-wave-spin {
  transform-origin: 50px 50px;
}

.cpjr-bot-wave-spin--outer {
  animation: cpjr-bot-spin 14s linear infinite;
}

.cpjr-bot-wave-spin--mid {
  animation: cpjr-bot-spin-rev 9s linear infinite;
}

.cpjr-bot-wave-spin--inner {
  animation: cpjr-bot-spin 6s linear infinite;
}

.cpjr-bot-wave {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpjr-bot-wave--outer {
  stroke: rgba(170, 235, 255, 0.78);
  stroke-width: 1.35;
  filter: drop-shadow(0 0 2px rgba(122, 215, 255, 0.65));
}

.cpjr-bot-wave--mid {
  stroke: rgba(122, 215, 255, 0.7);
  stroke-width: 1.15;
  filter: drop-shadow(0 0 2px rgba(122, 215, 255, 0.45));
}

.cpjr-bot-wave--inner {
  stroke: rgba(200, 245, 255, 0.85);
  stroke-width: 1.05;
  filter: drop-shadow(0 0 2.5px rgba(160, 230, 255, 0.7));
}

.cpjr-bot-spectrum line {
  stroke: rgba(150, 225, 255, 0.72);
  stroke-width: 1.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(122, 215, 255, 0.55));
}

.cpjr-bot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.55rem;
  height: 1.55rem;
  margin: -0.775rem 0 0 -0.775rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #9fe0ff 28%, #3eb6e8 70%, #1a6f96 100%);
  box-shadow:
    0 0 16px rgba(122, 215, 255, 0.85),
    0 0 32px rgba(122, 215, 255, 0.35);
  animation: cpjr-bot-core 2.4s ease-in-out infinite;
  z-index: 2;
}

.cpjr-bot-core::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
}

.cpjr-bot-launcher:hover .cpjr-bot-core {
  filter: brightness(1.12);
}

.cpjr-bot.is-open .cpjr-bot-wave-spin--outer {
  animation-duration: 7s;
}

.cpjr-bot.is-open .cpjr-bot-wave-spin--mid {
  animation-duration: 4.5s;
}

.cpjr-bot.is-open .cpjr-bot-core {
  box-shadow:
    0 0 20px rgba(122, 215, 255, 1),
    0 0 40px rgba(122, 215, 255, 0.55);
}

/* October: Halloween orange BLOOP (reverts automatically in November) */
.cpjr-bot.cpjr-bot--halloween {
  --bot-cyan: #ff7a24;
  --bot-cyan-soft: rgba(255, 122, 36, 0.38);
  --bot-ink: #ffe8d4;
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-hide {
  border-color: rgba(255, 122, 36, 0.5);
  background: rgba(36, 16, 6, 0.9);
  color: rgba(255, 232, 212, 0.92);
  box-shadow: 0 0 10px rgba(255, 122, 36, 0.25);
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-hide:hover {
  border-color: rgba(255, 168, 80, 0.85);
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-wave--outer {
  stroke: rgba(255, 196, 120, 0.82);
  filter: drop-shadow(0 0 2px rgba(255, 122, 36, 0.7));
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-wave--mid {
  stroke: rgba(255, 122, 36, 0.78);
  filter: drop-shadow(0 0 2px rgba(255, 122, 36, 0.5));
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-wave--inner {
  stroke: rgba(255, 220, 170, 0.88);
  filter: drop-shadow(0 0 2.5px rgba(255, 160, 70, 0.75));
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-spectrum line {
  stroke: rgba(255, 170, 90, 0.78);
  filter: drop-shadow(0 0 1.5px rgba(255, 122, 36, 0.55));
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-core {
  background:
    radial-gradient(circle at 35% 30%, #fff6e8 0%, #ffb060 28%, #ff7a24 70%, #b8450a 100%);
  box-shadow:
    0 0 16px rgba(255, 122, 36, 0.9),
    0 0 32px rgba(255, 122, 36, 0.4);
}

.cpjr-bot.cpjr-bot--halloween.is-open .cpjr-bot-core {
  box-shadow:
    0 0 20px rgba(255, 140, 50, 1),
    0 0 40px rgba(255, 122, 36, 0.6);
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-panel {
  color: #ffe8d4;
  background:
    linear-gradient(135deg, rgba(72, 32, 10, 0.62) 0%, rgba(28, 10, 4, 0.78) 100%);
  border-color: rgba(255, 122, 36, 0.5);
  box-shadow:
    0 0 22px rgba(255, 122, 36, 0.22),
    0 16px 40px rgba(40, 12, 0, 0.4),
    inset 0 0 28px rgba(255, 122, 36, 0.08);
}

.cpjr-bot.cpjr-bot--halloween .cpjr-bot-bubble .cpjr-bot-holo-msg,
.cpjr-bot.cpjr-bot--halloween .cpjr-bot-announce {
  border-color: rgba(255, 122, 36, 0.45);
}

/* November: Thanksgiving brown BLOOP */
.cpjr-bot.cpjr-bot--thanksgiving {
  --bot-cyan: #c98a4b;
  --bot-cyan-soft: rgba(201, 138, 75, 0.38);
  --bot-ink: #f6e6d2;
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-hide {
  border-color: rgba(201, 138, 75, 0.5);
  background: rgba(30, 18, 9, 0.9);
  color: rgba(246, 230, 210, 0.92);
  box-shadow: 0 0 10px rgba(201, 138, 75, 0.25);
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-hide:hover {
  border-color: rgba(224, 172, 110, 0.85);
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-wave--outer {
  stroke: rgba(232, 196, 150, 0.82);
  filter: drop-shadow(0 0 2px rgba(201, 138, 75, 0.7));
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-wave--mid {
  stroke: rgba(176, 112, 56, 0.85);
  filter: drop-shadow(0 0 2px rgba(201, 138, 75, 0.5));
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-wave--inner {
  stroke: rgba(240, 214, 176, 0.88);
  filter: drop-shadow(0 0 2.5px rgba(214, 156, 92, 0.75));
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-spectrum line {
  stroke: rgba(214, 160, 100, 0.78);
  filter: drop-shadow(0 0 1.5px rgba(201, 138, 75, 0.55));
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-core {
  background:
    radial-gradient(circle at 35% 30%, #fbecd8 0%, #d9a46a 28%, #9c6332 68%, #5a3418 100%);
  box-shadow:
    0 0 16px rgba(201, 138, 75, 0.85),
    0 0 32px rgba(156, 99, 50, 0.4);
}

.cpjr-bot.cpjr-bot--thanksgiving.is-open .cpjr-bot-core {
  box-shadow:
    0 0 20px rgba(214, 156, 92, 1),
    0 0 40px rgba(201, 138, 75, 0.6);
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-panel {
  color: #f6e6d2;
  background:
    linear-gradient(135deg, rgba(74, 44, 20, 0.62) 0%, rgba(30, 17, 8, 0.8) 100%);
  border-color: rgba(201, 138, 75, 0.5);
  box-shadow:
    0 0 22px rgba(201, 138, 75, 0.22),
    0 16px 40px rgba(30, 14, 4, 0.4),
    inset 0 0 28px rgba(201, 138, 75, 0.08);
}

.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-bubble .cpjr-bot-holo-msg,
.cpjr-bot.cpjr-bot--thanksgiving .cpjr-bot-announce {
  border-color: rgba(201, 138, 75, 0.45);
}

/* December: candy cane BLOOP (red and white stripes) */
.cpjr-bot.cpjr-bot--candycane {
  --bot-cyan: #ff4655;
  --bot-cyan-soft: rgba(255, 70, 85, 0.38);
  --bot-ink: #fff0f1;
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-hide {
  border-color: rgba(255, 70, 85, 0.5);
  background: rgba(40, 8, 12, 0.9);
  color: rgba(255, 240, 241, 0.92);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.25);
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-hide:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-wave--outer {
  stroke: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 2px rgba(255, 70, 85, 0.75));
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-wave--mid {
  stroke: rgba(255, 58, 74, 0.9);
  filter: drop-shadow(0 0 2px rgba(255, 70, 85, 0.55));
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-wave--inner {
  stroke: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 2.5px rgba(255, 90, 100, 0.8));
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-spectrum line {
  stroke: rgba(255, 120, 130, 0.8);
  filter: drop-shadow(0 0 1.5px rgba(255, 70, 85, 0.55));
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-core {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(-45deg, #ff3a4a 0 5px, #ffffff 5px 10px);
  box-shadow:
    0 0 16px rgba(255, 70, 85, 0.9),
    0 0 32px rgba(255, 255, 255, 0.35);
}

.cpjr-bot.cpjr-bot--candycane.is-open .cpjr-bot-core {
  box-shadow:
    0 0 20px rgba(255, 90, 100, 1),
    0 0 40px rgba(255, 255, 255, 0.5);
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-panel {
  color: #fff0f1;
  background:
    linear-gradient(135deg, rgba(96, 14, 22, 0.62) 0%, rgba(36, 6, 10, 0.8) 100%);
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow:
    0 0 22px rgba(255, 70, 85, 0.22),
    0 16px 40px rgba(40, 0, 6, 0.4),
    inset 0 0 28px rgba(255, 255, 255, 0.06);
}

.cpjr-bot.cpjr-bot--candycane .cpjr-bot-bubble .cpjr-bot-holo-msg,
.cpjr-bot.cpjr-bot--candycane .cpjr-bot-announce {
  border-color: rgba(255, 70, 85, 0.45);
}

.cpjr-bot-countdown {
  --bot-holo-green: #5dff9a;
  --folder-paper: rgba(10, 42, 26, 0.94);
  --folder-edge: rgba(93, 255, 154, 0.55);
  pointer-events: none;
  position: fixed;
  left: max(0px, env(safe-area-inset-left));
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 88;
  width: auto;
  max-width: min(20rem, calc(100vw - 0.75rem));
  opacity: 0;
  transform: translate(-12px, -50%);
  transition:
    opacity 0.35s var(--bot-ease),
    transform 0.4s var(--bot-ease),
    filter 0.5s var(--bot-ease);
}

.cpjr-bot-countdown[hidden] {
  display: none !important;
}

.cpjr-bot-countdown.is-on {
  pointer-events: auto;
  opacity: 1;
  transform: translate(0, -50%);
}

.cpjr-bot-countdown.is-on.is-ghosted {
  pointer-events: none;
  opacity: 0;
  filter: blur(6px);
  transform: translate(-10px, -50%) scale(0.96);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}

.cpjr-bot-countdown-folder {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  filter: drop-shadow(0 10px 22px rgba(0, 24, 12, 0.45));
}

/* New Year: the same folder, shifted from Doomsday green to gold */
.cpjr-bot-countdown.is-newyear .cpjr-bot-countdown-folder {
  filter: hue-rotate(-95deg) saturate(1.2) drop-shadow(0 10px 22px rgba(24, 16, 0, 0.45));
}

.cpjr-bot-countdown.is-thanksgiving .cpjr-bot-countdown-folder {
  filter: hue-rotate(-120deg) saturate(1.35) drop-shadow(0 10px 22px rgba(30, 10, 0, 0.45));
}

.cpjr-bot-countdown-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 2.55rem;
  min-height: 11.5rem;
  margin: 0;
  padding: 0.7rem 0.2rem 0.85rem;
  border: 1px solid var(--folder-edge);
  border-right: 0;
  border-radius: 0.55rem 0 0 0.55rem;
  background:
    linear-gradient(180deg, rgba(18, 64, 38, 0.98) 0%, rgba(6, 30, 18, 0.96) 100%);
  color: #d8ffe8;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(93, 255, 154, 0.08);
}

.cpjr-bot-countdown-tab:hover,
.cpjr-bot-countdown-tab:focus-visible {
  background:
    linear-gradient(180deg, rgba(24, 78, 46, 1) 0%, rgba(8, 36, 22, 0.98) 100%);
}

.cpjr-bot-countdown-tab:focus-visible {
  outline: 2px solid var(--bot-holo-green);
  outline-offset: 2px;
}

.cpjr-bot-countdown-tab-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bot-holo-green);
  box-shadow: 0 0 10px rgba(93, 255, 154, 0.75);
}

.cpjr-bot-countdown-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bot-holo-green);
  text-shadow: 0 0 10px rgba(93, 255, 154, 0.45);
}

.cpjr-bot-countdown-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 2.85rem;
  max-width: 2.85rem;
  min-height: 11.5rem;
  padding: 0.55rem 0.3rem 0.65rem;
  overflow: hidden;
  border: 1px solid var(--folder-edge);
  border-left: 1px solid rgba(93, 255, 154, 0.28);
  border-radius: 0 0.65rem 0.65rem 0;
  color: #d8ffe8;
  background:
    linear-gradient(145deg, rgba(12, 52, 32, 0.96) 0%, rgba(4, 24, 14, 0.97) 100%);
  box-shadow:
    inset 0 0 22px rgba(93, 255, 154, 0.08),
    0 0 18px rgba(93, 255, 154, 0.12);
  transition:
    width 0.42s var(--bot-ease),
    max-width 0.42s var(--bot-ease),
    padding 0.42s var(--bot-ease);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-body {
  width: min(16.5rem, calc(100vw - 3.75rem));
  max-width: min(16.5rem, calc(100vw - 3.75rem));
  padding: 0.7rem 0.75rem 0.8rem;
}

.cpjr-bot-countdown-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1px solid rgba(93, 255, 154, 0.4);
  border-radius: 999px;
  padding: 0;
  background: rgba(4, 28, 16, 0.85);
  color: rgba(200, 255, 220, 0.9);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--bot-ease);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-close {
  opacity: 1;
  pointer-events: auto;
}

.cpjr-bot-countdown-close:hover {
  color: #fff;
  border-color: rgba(93, 255, 154, 0.75);
}

.cpjr-bot-countdown-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cpjr-bot-countdown-link:hover .cpjr-bot-countdown-title,
.cpjr-bot-countdown-link:focus-visible .cpjr-bot-countdown-title {
  color: #fff;
  text-shadow: 0 0 16px rgba(93, 255, 154, 0.7);
}

.cpjr-bot-countdown-link:focus-visible {
  outline: 2px solid var(--bot-holo-green);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

.cpjr-bot-countdown-label,
.cpjr-bot-countdown-title,
.cpjr-bot-countdown-sub {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transform: translateY(4px);
  transition:
    opacity 0.28s var(--bot-ease),
    transform 0.28s var(--bot-ease),
    max-height 0.28s var(--bot-ease),
    margin 0.28s var(--bot-ease);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-label,
.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-title,
.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-sub {
  opacity: 1;
  max-height: 3rem;
  transform: translateY(0);
}

.cpjr-bot-countdown-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bot-holo-green);
  text-shadow: 0 0 10px rgba(93, 255, 154, 0.55);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-label {
  margin-bottom: 0.2rem;
  padding-right: 1.4rem;
}

.cpjr-bot-countdown-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0fff6;
  text-shadow: 0 0 14px rgba(93, 255, 154, 0.4);
  white-space: nowrap;
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-title {
  margin-bottom: 0.12rem;
}

.cpjr-bot-countdown-sub {
  font-size: 0.66rem;
  color: rgba(200, 255, 220, 0.72);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-sub {
  margin-bottom: 0.55rem;
}

.cpjr-bot-countdown-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  margin-top: 0.15rem;
  flex: 1 1 auto;
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-grid {
  flex-direction: row;
  gap: 0.3rem;
  margin-top: 0;
}

.cpjr-bot-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.28rem 0.1rem;
  border-radius: 0.35rem;
  background: rgba(4, 32, 18, 0.72);
  border: 1px solid rgba(93, 255, 154, 0.28);
  box-shadow: inset 0 0 12px rgba(93, 255, 154, 0.08);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-unit {
  padding: 0.35rem 0.15rem;
}

.cpjr-bot-countdown-unit span {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #b8ffd4;
  text-shadow: 0 0 10px rgba(93, 255, 154, 0.55);
  line-height: 1;
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-unit span {
  font-size: 0.92rem;
}

.cpjr-bot-countdown-unit em {
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(160, 240, 190, 0.7);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-unit em {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.cpjr-bot-countdown-live {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--bot-holo-green);
  text-shadow: 0 0 10px rgba(93, 255, 154, 0.45);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-live {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.74rem;
  text-align: left;
}

/* Phones: one-line countdown beside the BLOOP title replaces the folder */
.cpjr-bot-countdown.is-in-head {
  display: none !important;
}

.cpjr-bot-head-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-left: 0.45rem;
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(120, 255, 170, 0.38);
  border-radius: 999px;
  background: rgba(16, 52, 32, 0.5);
  color: rgba(190, 255, 215, 0.95);
  font-size: 0.62rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: 0.08em;
}

.cpjr-bot-head-count[hidden] {
  display: none;
}

.cpjr-bot-head-count b {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(120, 255, 170, 0.95);
}

/* Doomsday + holiday chips share a full-width row under the BLOOP title */
.cpjr-bot-panel-head:has(.cpjr-bot-head-counts) {
  flex-wrap: wrap;
}

/* Both chips stay on one line. DM Sans digits change width every second, so a wrapping row would flip
   between one and two lines */
.cpjr-bot-head-counts {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.cpjr-bot-head-counts[hidden] {
  display: none;
}

.cpjr-bot-head-counts .cpjr-bot-head-count {
  gap: 0.25rem;
  margin-left: 0;
  padding: 0.12rem 0.42rem;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.cpjr-bot-head-counts .cpjr-bot-head-count b {
  letter-spacing: 0.07em;
}

@media (min-width: 561px) {
  .cpjr-bot-head-counts .cpjr-bot-head-count {
    letter-spacing: 0;
  }

  .cpjr-bot-head-counts .cpjr-bot-head-count b {
    letter-spacing: 0.05em;
  }
}

@media (max-width: 560px) {
  .cpjr-bot-head-counts {
    gap: 0.25rem;
  }

  .cpjr-bot-head-counts .cpjr-bot-head-count {
    gap: 0.2rem;
    padding: 0.1rem 0.34rem;
    font-size: min(0.54rem, 2.1vw);
    letter-spacing: 0;
  }

  .cpjr-bot-head-counts .cpjr-bot-head-count b {
    letter-spacing: 0.04em;
  }
}

.cpjr-bot-head-count.is-halloween {
  border-color: rgba(255, 122, 36, 0.5);
  background: rgba(60, 24, 6, 0.55);
  color: rgba(255, 232, 212, 0.95);
}

.cpjr-bot-head-count.is-halloween b {
  color: rgba(255, 150, 70, 0.98);
}

.cpjr-bot-head-count.is-thanksgiving {
  border-color: rgba(201, 138, 75, 0.5);
  background: rgba(48, 28, 12, 0.55);
  color: rgba(246, 230, 210, 0.95);
}

.cpjr-bot-head-count.is-thanksgiving b {
  color: rgba(224, 172, 110, 0.98);
}

.cpjr-bot-head-count.is-christmas {
  border-color: rgba(255, 70, 85, 0.5);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 58, 74, 0.22) 0 6px, rgba(255, 255, 255, 0.06) 6px 12px),
    rgba(50, 8, 12, 0.6);
  color: rgba(255, 240, 241, 0.95);
}

.cpjr-bot-head-count.is-christmas b {
  color: rgba(255, 120, 130, 0.98);
}

.cpjr-bot-head-count.is-newyear {
  border-color: rgba(255, 215, 106, 0.42);
  background: rgba(58, 44, 10, 0.5);
  color: rgba(255, 236, 190, 0.95);
}

.cpjr-bot-head-count.is-newyear b {
  color: rgba(255, 215, 106, 0.95);
}

.cpjr-bot-head-count.is-election,
.cpjr-bot-head-count.is-results {
  border-color: rgba(255, 92, 108, 0.55);
  background: rgba(14, 26, 64, 0.65);
  color: rgba(236, 242, 255, 0.96);
}

.cpjr-bot-head-count.is-election b,
.cpjr-bot-head-count.is-results b {
  color: rgba(255, 110, 124, 0.98);
}

.cpjr-bot-head-count.is-gtavi,
.cpjr-bot-head-count.is-gtaviout {
  border-color: rgba(255, 70, 214, 0.6);
  background: linear-gradient(180deg, rgba(58, 40, 140, 0.7), rgba(120, 24, 104, 0.7));
  color: rgba(255, 236, 246, 0.96);
}

.cpjr-bot-head-count.is-gtavi b,
.cpjr-bot-head-count.is-gtaviout b {
  color: rgba(255, 190, 90, 0.98);
}

.cpjr-bot-head-sponsored {
  padding: 0 0.3em;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1030;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

a.cpjr-bot-head-count.is-gtavi[href]:hover,
a.cpjr-bot-head-count.is-gtaviout[href]:hover,
a.cpjr-bot-head-count.is-election[href]:hover,
a.cpjr-bot-head-count.is-results[href]:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

a.cpjr-bot-head-count[href]:hover {
  border-color: rgba(120, 255, 170, 0.7);
}

a.cpjr-bot-head-count.is-halloween[href]:hover {
  border-color: rgba(255, 168, 80, 0.9);
}

a.cpjr-bot-head-count.is-christmas[href]:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.cpjr-bot-bubble {
  --holo-shift-x: 0px;
  --holo-shift-y: 0px;
  pointer-events: auto;
  position: absolute;
  right: calc(100% + 0.55rem);
  left: auto;
  bottom: 0.15rem;
  top: auto;
  width: min(16rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.25rem);
  max-height: min(72dvh, calc(100vh - 1.25rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translate(calc(10px + var(--holo-shift-x)), var(--holo-shift-y));
  transition:
    opacity 0.32s var(--bot-ease),
    transform 0.32s var(--bot-ease);
}

.cpjr-bot--links .cpjr-bot-bubble {
  width: min(18.5rem, calc(100vw - 1.5rem));
}

.cpjr-bot-bubble[hidden] {
  display: none !important;
}

.cpjr-bot-bubble.is-on {
  opacity: 1;
  transform: translate(var(--holo-shift-x), var(--holo-shift-y));
}

.cpjr-bot-bubble.is-holo-right {
  right: auto;
  left: calc(100% + 0.55rem);
  align-items: flex-start;
}

.cpjr-bot-bubble.is-holo-right .cpjr-bot-announce {
  align-items: flex-start;
}

.cpjr-bot.is-open .cpjr-bot-bubble {
  opacity: 0;
  transform: translate(calc(10px + var(--holo-shift-x)), var(--holo-shift-y));
  pointer-events: none;
}

.cpjr-bot-announce {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  width: 100%;
}

.cpjr-bot-announce[hidden] {
  display: none !important;
}

.cpjr-bot-announce-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.cpjr-bot-announce-close {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(122, 215, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 18, 30, 0.65);
  color: rgba(122, 215, 255, 0.8);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cpjr-bot-bubble.is-holo-right .cpjr-bot-announce-close {
  align-self: flex-start;
}

.cpjr-bot-announce-close:hover {
  background: rgba(122, 215, 255, 0.14);
  color: var(--bot-cyan);
}

.cpjr-bot-announce--time .cpjr-bot-holo-msg {
  font-weight: 700;
  font-size: 0.84rem;
}

.cpjr-bot-holo-msg {
  position: relative;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem 0.85rem 0.2rem 0.85rem;
  color: #e8f8ff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  background:
    linear-gradient(135deg, rgba(20, 50, 72, 0.55) 0%, rgba(8, 22, 36, 0.72) 100%);
  border: 1px solid rgba(122, 215, 255, 0.45);
  box-shadow:
    0 0 18px rgba(122, 215, 255, 0.18),
    inset 0 0 20px rgba(122, 215, 255, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.35s var(--bot-ease),
    transform 0.35s var(--bot-ease);
}

.cpjr-bot-holo-msg[hidden] {
  display: none !important;
}

.cpjr-bot-bubble.is-on .cpjr-bot-holo-msg.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cpjr-bot-holo-msg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(122, 215, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.cpjr-bot-holo-msg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 235, 255, 0.18),
    transparent
  );
  animation: cpjr-bot-holo-scan 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cpjr-bot-holo-msg--project {
  padding-bottom: 0.65rem;
}

.cpjr-bot-holo-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bot-cyan);
  text-shadow: 0 0 10px rgba(122, 215, 255, 0.45);
}

.cpjr-bot-holo-label--live {
  color: #ffb4c8;
  text-shadow: 0 0 10px rgba(255, 80, 120, 0.55);
}

.cpjr-bot-twitch {
  z-index: 4;
  border-color: rgba(255, 120, 160, 0.42);
  box-shadow:
    0 0 22px rgba(255, 80, 140, 0.18),
    0 16px 36px rgba(0, 20, 40, 0.4),
    inset 0 0 24px rgba(255, 120, 160, 0.06);
}

.cpjr-bot-holo-title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(122, 215, 255, 0.35);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cpjr-bot-holo-body {
  margin: 0 0 0.45rem;
  color: rgba(215, 244, 255, 0.82);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cpjr-bot-holo-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bot-cyan);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(122, 215, 255, 0.4);
}

.cpjr-bot-holo-cta:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cpjr-bot-holo-cta[hidden] {
  display: none !important;
}

.cpjr-bot-holo-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-top: 0.15rem;
}

.cpjr-bot-holo-actions[hidden] {
  display: none;
}

.cpjr-bot-holo-action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bot-cyan);
  cursor: pointer;
  text-shadow: 0 0 8px rgba(122, 215, 255, 0.4);
  text-align: left;
}

.cpjr-bot-holo-action:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cpjr-bot-holo-action--muted {
  color: rgba(215, 244, 255, 0.72);
  text-shadow: none;
  font-weight: 600;
}

.cpjr-bot-inline-cookies {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--bot-cyan);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cpjr-bot-yt {
  --holo-shift-x: 0px;
  --holo-shift-y: 0px;
  pointer-events: none;
  position: fixed;
  left: max(0.85rem, env(safe-area-inset-left));
  right: auto;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  top: auto;
  z-index: 3;
  width: min(18.75rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.25rem);
  max-height: min(70dvh, calc(100vh - 1.25rem));
  padding: 0.55rem 0.6rem 0.65rem;
  border-radius: 0.95rem;
  color: #e8f8ff;
  background:
    linear-gradient(135deg, rgba(20, 50, 72, 0.62) 0%, rgba(8, 22, 36, 0.82) 100%);
  border: 1px solid rgba(122, 215, 255, 0.45);
  box-shadow:
    0 0 22px rgba(122, 215, 255, 0.22),
    0 16px 36px rgba(0, 20, 40, 0.4),
    inset 0 0 24px rgba(122, 215, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translate(calc(-14px + var(--holo-shift-x)), var(--holo-shift-y));
  transition:
    opacity 0.38s var(--bot-ease),
    transform 0.42s var(--bot-ease);
}

.cpjr-bot-yt[hidden] {
  display: none !important;
}

.cpjr-bot-yt.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translate(var(--holo-shift-x), var(--holo-shift-y));
}

.cpjr-bot-yt.is-holo-down {
  bottom: auto;
  top: max(0.85rem, env(safe-area-inset-top));
}

.cpjr-bot-yt.is-holo-left {
  left: max(0.85rem, env(safe-area-inset-left));
  right: auto;
}

.cpjr-bot-yt.is-holo-right {
  left: auto;
  right: max(0.85rem, env(safe-area-inset-right));
}

.cpjr-bot-yt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(122, 215, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.cpjr-bot-yt::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  z-index: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 235, 255, 0.16),
    transparent
  );
  animation: cpjr-bot-holo-scan 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cpjr-bot-yt-toolbar,
.cpjr-bot-yt-title,
.cpjr-bot-yt-frame {
  position: relative;
  z-index: 1;
}

.cpjr-bot-yt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cpjr-bot-yt-toolbar .cpjr-bot-holo-label {
  margin: 0;
}

.cpjr-bot-yt-close {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(122, 215, 255, 0.4);
  border-radius: 50%;
  background: rgba(8, 18, 30, 0.7);
  color: rgba(122, 215, 255, 0.9);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cpjr-bot-yt-close:hover {
  background: rgba(122, 215, 255, 0.16);
  color: var(--bot-cyan);
}

.cpjr-bot-yt-close:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 2px;
}

.cpjr-bot-yt-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 0 12px rgba(122, 215, 255, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpjr-bot-yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.55rem;
  background: rgba(0, 10, 20, 0.85);
  border: 1px solid rgba(122, 215, 255, 0.28);
}

.cpjr-bot-yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* New Year's Eve radio card, above the orb (Links, Dec 31 and Jan 1) */
.cpjr-bot-radio {
  --holo-shift-x: 0px;
  --holo-shift-y: 0px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: min(17rem, calc(100vw - 1.5rem));
  padding: 0.45rem 0.5rem 0.45rem 0.55rem;
  border-radius: 0.95rem;
  color: #e8f8ff;
  background: linear-gradient(135deg, rgba(20, 50, 72, 0.62) 0%, rgba(8, 22, 36, 0.86) 100%);
  border: 1px solid rgba(122, 215, 255, 0.45);
  box-shadow:
    0 0 22px rgba(122, 215, 255, 0.22),
    0 12px 28px rgba(0, 20, 40, 0.4);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(var(--holo-shift-x), calc(8px + var(--holo-shift-y)));
  transition:
    opacity 0.38s var(--bot-ease),
    transform 0.42s var(--bot-ease);
}

.cpjr-bot-radio[hidden] {
  display: none !important;
}

.cpjr-bot-radio.is-open {
  opacity: 1;
  transform: translate(var(--holo-shift-x), var(--holo-shift-y));
}

.cpjr-bot.is-open .cpjr-bot-radio,
.cpjr-bot:has(.cpjr-bot-bubble.is-on) .cpjr-bot-radio,
.cpjr-bot:has(.cpjr-bot-countdown.is-on) .cpjr-bot-radio,
.cpjr-bot:has(.cpjr-bot-yt.is-open) .cpjr-bot-radio {
  opacity: 0;
  pointer-events: none;
}

.cpjr-bot.has-radio .cpjr-bot-move-hint {
  opacity: 0;
}

.cpjr-bot-radio-logo {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.cpjr-bot-radio-logo[hidden] {
  display: none;
}

.cpjr-bot-radio-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cpjr-bot-radio-info .cpjr-bot-holo-label {
  margin: 0;
  font-size: 0.56rem;
  white-space: nowrap;
}

.cpjr-bot-radio-title {
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpjr-bot-radio-live {
  flex: 0 0 auto;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 70, 90, 0.35);
}

.cpjr-bot-radio.is-playing .cpjr-bot-radio-live {
  background: #e8344e;
}

.cpjr-bot-radio-play {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #08121e;
  background: var(--bot-cyan);
  box-shadow: 0 0 12px var(--bot-cyan-soft);
  cursor: pointer;
}

.cpjr-bot-radio-play svg {
  width: 1rem;
  height: 1rem;
}

.cpjr-bot-radio-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cpjr-bot-radio-icon-pause,
.cpjr-bot-radio.is-playing .cpjr-bot-radio-icon-play {
  display: none;
}

.cpjr-bot-radio.is-playing .cpjr-bot-radio-icon-pause {
  display: block;
}

/* Brands & business card: same spot and look as the radio card */
.cpjr-bot-biz {
  max-width: min(22rem, calc(100vw - 1.5rem));
}

.cpjr-bot-biz .cpjr-bot-radio-play {
  cursor: default;
}

/* The countdown lives in the chat head now, so it doesn't hide this card */
.cpjr-bot:not(.is-open):not(:has(.cpjr-bot-bubble.is-on)):not(:has(.cpjr-bot-yt.is-open)) .cpjr-bot-biz.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cpjr-bot-biz-mail {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.cpjr-bot-biz-mail:hover,
.cpjr-bot-biz-mail:focus-visible {
  text-decoration: underline;
}

.cpjr-bot-biz-more {
  font-size: 0.6rem;
  color: rgba(232, 248, 255, 0.72);
  white-space: nowrap;
}

.cpjr-bot-biz-more a {
  color: var(--bot-cyan);
}

@media (max-width: 380px) {
  .cpjr-bot-biz-mail {
    font-size: 0.72rem;
  }

  .cpjr-bot-biz-more {
    white-space: normal;
  }
}

/* Music notes float off the orb while the radio is audible */
.cpjr-bot-notes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cpjr-bot-notes i {
  position: absolute;
  top: 18%;
  left: 50%;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--bot-cyan);
  text-shadow: 0 0 8px var(--bot-cyan-soft);
  opacity: 0;
}

.cpjr-bot.is-radio-on .cpjr-bot-notes i {
  animation: cpjr-bot-note 2.4s ease-out infinite;
}

.cpjr-bot-notes i:nth-child(1) {
  --note-drift: -1.1rem;
}

.cpjr-bot-notes i:nth-child(2) {
  --note-drift: 0.9rem;
  animation-delay: 0.8s !important;
}

.cpjr-bot-notes i:nth-child(3) {
  --note-drift: -0.2rem;
  animation-delay: 1.6s !important;
}

@keyframes cpjr-bot-note {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.7) rotate(-10deg);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--note-drift)), var(--note-rise, -3.2rem)) scale(1.1) rotate(12deg);
  }
}

/* The radio card sits right above the orb, so notes drift out to the left */
.cpjr-bot.has-radio:not(.is-open) .cpjr-bot-notes i {
  top: 30%;
  left: 6%;
  --note-rise: -1.2rem;
}

.cpjr-bot.has-radio:not(.is-open) .cpjr-bot-notes i:nth-child(1) {
  --note-drift: -2.4rem;
}

.cpjr-bot.has-radio:not(.is-open) .cpjr-bot-notes i:nth-child(2) {
  --note-drift: -3.4rem;
}

.cpjr-bot.has-radio:not(.is-open) .cpjr-bot-notes i:nth-child(3) {
  --note-drift: -1.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .cpjr-bot-radio {
    transition: none;
  }

  .cpjr-bot.is-radio-on .cpjr-bot-notes i {
    animation: none;
  }

  .cpjr-bot.is-radio-on .cpjr-bot-notes i:first-child {
    top: -0.35rem;
    left: auto;
    right: -0.45rem;
    opacity: 1;
  }

  .cpjr-bot.is-radio-on.has-radio:not(.is-open) .cpjr-bot-notes i:first-child {
    top: 0.1rem;
    left: -0.8rem;
    right: auto;
  }
}

@keyframes cpjr-bot-holo-scan {
  0% {
    left: -45%;
  }

  55%,
  100% {
    left: 110%;
  }
}

@keyframes cpjr-bot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cpjr-bot-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes cpjr-bot-core {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 560px) {
  .cpjr-bot {
    right: 0.65rem;
    bottom: 0.65rem;
    gap: 0.45rem;
  }

  .cpjr-bot-dock {
    width: 4rem;
    height: 4rem;
  }

  .cpjr-bot-panel,
  .cpjr-bot--links .cpjr-bot-panel {
    width: min(19.75rem, calc(100vw - 5.25rem));
  }

  .cpjr-bot-bubble,
  .cpjr-bot--links .cpjr-bot-bubble {
    width: min(16.25rem, calc(100vw - 1.25rem));
  }

  .cpjr-bot-countdown {
    top: 50%;
  }

  .cpjr-bot-countdown.is-expanded .cpjr-bot-countdown-body {
    width: min(14.5rem, calc(100vw - 3.5rem));
    max-width: min(14.5rem, calc(100vw - 3.5rem));
  }

  .cpjr-bot-holo-msg {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpjr-bot-wave-spin--outer,
  .cpjr-bot-wave-spin--mid,
  .cpjr-bot-wave-spin--inner,
  .cpjr-bot-core,
  .cpjr-bot-holo-msg::after,
  .cpjr-bot-panel::after,
  .cpjr-bot-yt::after {
    animation: none;
  }

  .cpjr-bot-panel,
  .cpjr-bot-bubble,
  .cpjr-bot-msg,
  .cpjr-bot-live-dot,
  .cpjr-bot-yt,
  .cpjr-bot-countdown,
  .cpjr-bot-countdown-body {
    transition: none;
    animation: none;
  }

  .cpjr-bot-yt::after {
    animation: none;
  }
}

body.full-menu-open .cpjr-bot,
body.menu-open .cpjr-bot {
  opacity: 0;
  pointer-events: none;
}

html.site-night .cpjr-bot-move-hint,
html.site-night .cpjr-bot-panel-head span,
html.site-night .cpjr-bot-mode button:not(.is-locked),
html.site-night .cpjr-bot-holo-body,
html.site-night .cpjr-bot-holo-action--muted {
  color: #fff;
}

html.site-night .cpjr-bot-countdown-sub {
  color: rgb(200, 255, 220);
}

/* The × glyph sits off-center in some fonts (Safari), so the X is drawn instead */
.cpjr-bot-close,
.cpjr-bot-announce-close,
.cpjr-bot-yt-close {
  position: relative;
}

.cpjr-bot-close,
.cpjr-bot-announce-close,
.cpjr-bot-yt-close,
.cpjr-bot-hide,
.cpjr-bot-countdown-close {
  padding: 0;
  font-size: 0;
}

.cpjr-bot-close::before,
.cpjr-bot-announce-close::before,
.cpjr-bot-yt-close::before,
.cpjr-bot-hide::before,
.cpjr-bot-countdown-close::before,
.cpjr-bot-close::after,
.cpjr-bot-announce-close::after,
.cpjr-bot-yt-close::after,
.cpjr-bot-hide::after,
.cpjr-bot-countdown-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.cpjr-bot-close::after,
.cpjr-bot-announce-close::after,
.cpjr-bot-yt-close::after,
.cpjr-bot-hide::after,
.cpjr-bot-countdown-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cpjr-bot-hide::before,
.cpjr-bot-countdown-close::before,
.cpjr-bot-announce-close::before,
.cpjr-bot-hide::after,
.cpjr-bot-countdown-close::after,
.cpjr-bot-announce-close::after {
  height: 1.5px;
}

/* Home page: local weather + pop-culture headlines in a slim strip under BLOOP's title */
.cpjr-bot-feed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem 0.55rem;
  border-bottom: 1px solid rgba(122, 215, 255, 0.22);
  background: rgba(8, 22, 36, 0.28);
  font-size: 0.66rem;
  line-height: 1.3;
  color: rgba(215, 244, 255, 0.85);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.cpjr-bot-feed[hidden],
.cpjr-bot-feed [hidden] {
  display: none;
}

.cpjr-bot-weather,
.cpjr-bot-forecast,
.cpjr-bot-news {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cpjr-bot-weather {
  gap: 0.4rem;
}

.cpjr-bot-weather-icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--bot-cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpjr-bot-weather-temp {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bot-cyan);
  text-shadow: 0 0 10px rgba(122, 215, 255, 0.35);
}

.cpjr-bot-weather-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpjr-bot-weather-hilo {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(215, 244, 255, 0.6);
}

.cpjr-bot-forecast {
  gap: 0.5rem;
  container-type: inline-size;
}

.cpjr-bot-forecast-days {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.cpjr-bot-forecast-days::-webkit-scrollbar {
  display: none;
}

.cpjr-bot-forecast-day {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cpjr-bot-forecast-day .cpjr-bot-weather-icon {
  width: 0.85rem;
  height: 0.85rem;
}

@container (max-width: 320px) {
  .cpjr-bot-forecast-day:nth-child(n + 5) {
    display: none;
  }
}

.cpjr-bot-forecast-name {
  font-weight: 600;
  color: rgba(215, 244, 255, 0.6);
}

.cpjr-bot-weather-credit {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.56rem;
  color: rgba(215, 244, 255, 0.5);
  text-decoration: none;
}

.cpjr-bot-weather-credit:hover {
  color: var(--bot-cyan);
  text-decoration: underline;
}

.cpjr-bot-news {
  gap: 0.45rem;
}

.cpjr-bot-news-label {
  flex: 0 0 auto;
  padding: 0.08rem 0.4rem;
  border: 1px solid rgba(122, 215, 255, 0.45);
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bot-cyan);
}

.cpjr-bot-news-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 0.8rem, #000 calc(100% - 0.8rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 0.8rem, #000 calc(100% - 0.8rem), transparent);
}

.cpjr-bot-news-track {
  display: flex;
  width: max-content;
  animation: cpjr-bot-news var(--news-duration, 80s) linear infinite;
}

.cpjr-bot-news:hover .cpjr-bot-news-track,
.cpjr-bot-news:focus-within .cpjr-bot-news-track {
  animation-play-state: paused;
}

.cpjr-bot-news-item {
  flex: 0 0 auto;
  padding-right: 1.4rem;
  font-size: 0.6rem;
  white-space: nowrap;
  color: rgba(232, 248, 255, 0.92);
  text-decoration: none;
}

.cpjr-bot-news-item:hover {
  color: #fff;
  text-decoration: underline;
}

.cpjr-bot-news-item b {
  margin-right: 0.3rem;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bot-cyan);
}

.cpjr-bot-weather-credit:focus-visible,
.cpjr-bot-news-item:focus-visible {
  outline: 2px solid var(--bot-cyan);
  outline-offset: 1px;
}

@keyframes cpjr-bot-news {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpjr-bot-news-track {
    animation: none;
  }

  .cpjr-bot-news-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cpjr-bot-news-item[aria-hidden="true"] {
    display: none;
  }
}
