.hit-guide-bot {
  --hgb-ink: #2f3c4d;
  --hgb-muted: #6a7587;
  --hgb-line: #d7dee7;
  --hgb-bg: #ffffff;
  --hgb-soft: #f6f8fb;
  --hgb-accent: var(--primary, #346aff);
  --hgb-panel-shift: 0px;
  --hgb-panel-top: 64px;
  --hgb-panel-origin: center top;
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(472px + env(safe-area-inset-right, 0px));
  z-index: 1400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--hgb-ink);
  width: 54px;
}

.hit-guide-bot__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 54px;
  height: 54px;
  padding: 6px;
  border: 2px solid var(--hgb-ink);
  border-radius: 50%;
  background: var(--hgb-bg);
  color: var(--hgb-ink);
  box-shadow: 0 8px 24px rgba(47, 60, 77, .18);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  animation: hit-guide-bot-float 3.4s ease-in-out infinite;
}

.hit-guide-bot__launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(47, 60, 77, .22);
}

.hit-guide-bot--has-guide .hit-guide-bot__launcher {
  border-color: var(--hgb-accent);
  box-shadow: 0 0 0 4px rgba(52, 106, 255, .14), 0 12px 28px rgba(47, 60, 77, .22);
}

.hit-guide-bot--has-guide .hit-guide-bot__launcher::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--hgb-accent);
}

.hit-guide-bot--open .hit-guide-bot__launcher {
  animation-play-state: paused;
}

.hit-guide-bot--dragging .hit-guide-bot__launcher {
  animation-play-state: paused;
  cursor: grabbing;
  box-shadow: 0 14px 32px rgba(47, 60, 77, .26);
}

.hit-guide-bot--hidden .hit-guide-bot__launcher {
  width: 42px;
  height: 42px;
  padding: 5px;
  opacity: .78;
}

.hit-guide-bot--hidden .hit-guide-bot__mini {
  width: 31px;
  height: 31px;
}

.hit-guide-bot--hidden .hit-guide-bot__panel {
  display: none;
}

.hit-guide-bot--muted .hit-guide-bot__launcher {
  border-color: #9aa6b6;
  box-shadow: 0 8px 20px rgba(47, 60, 77, .12);
}

.hit-guide-bot__mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.hit-guide-bot__mini .hit-guide-mascot {
  overflow: hidden !important;
}

.hit-guide-bot__launcher-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hit-guide-bot__panel {
  position: absolute;
  right: 50%;
  top: var(--hgb-panel-top);
  width: min(330px, calc(100vw - 28px));
  border: 2px solid var(--hgb-ink);
  border-radius: 18px;
  background: var(--hgb-bg);
  box-shadow: 0 16px 42px rgba(47, 60, 77, .2);
  transform: translateX(calc(50% + var(--hgb-panel-shift)));
  transform-origin: var(--hgb-panel-origin);
  overflow: hidden;
}

.hit-guide-bot__panel[hidden] {
  display: none;
}

.hit-guide-bot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
}

.hit-guide-bot__title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.hit-guide-bot__close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--hgb-line);
  border-radius: 50%;
  background: var(--hgb-soft);
  color: var(--hgb-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.hit-guide-bot__body {
  display: grid;
  grid-template-columns: minmax(82px, 104px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 4px 14px 14px;
}

.hit-guide-bot__mascot {
  width: 104px;
  min-width: 0;
}

.hit-guide-bot__bubble {
  position: relative;
  min-height: 82px;
  max-height: min(52vh, 360px);
  padding: 13px 14px;
  border: 2px solid var(--hgb-ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(47, 60, 77, .1);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: pre-line;
  overflow-y: auto;
}

.hit-guide-bot__bubble-title {
  display: block;
  margin-bottom: 5px;
  color: var(--hgb-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.hit-guide-bot__bubble-text {
  display: block;
  color: var(--hgb-ink);
}

.hit-guide-bot__bubble-meta,
.hit-guide-bot__bubble-related {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(52, 106, 255, .14);
  border-radius: 10px;
  background: rgba(52, 106, 255, .06);
  color: #4d5a6b;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
  white-space: normal;
}

.hit-guide-bot__bubble-meta b,
.hit-guide-bot__bubble-related b {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: var(--hgb-accent);
  font-size: 10px;
  font-weight: 950;
}

.hit-guide-bot__bubble-image {
  display: block;
  width: 100%;
  max-height: 104px;
  margin-top: 10px;
  border: 1px solid var(--hgb-line);
  border-radius: 12px;
  background: #f8fafc;
  object-fit: cover;
}

.hit-guide-bot__bubble-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 106, 255, .24);
  border-radius: 999px;
  background: rgba(52, 106, 255, .08);
  color: var(--hgb-accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.hit-guide-bot__bubble-link:hover {
  border-color: var(--hgb-accent);
  background: rgba(52, 106, 255, .14);
}

.hit-guide-bot__portal,
.hit-guide-bot__edit {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 14px 8px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 106, 255, .22);
  border-radius: 10px;
  background: rgba(52, 106, 255, .08);
  color: var(--hgb-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.hit-guide-bot__edit {
  background: var(--hgb-accent);
  border-color: var(--hgb-accent);
  color: #fff;
}

.hit-guide-bot--super .hit-guide-bot__portal:not([hidden]),
.hit-guide-bot--super .hit-guide-bot__edit:not([hidden]) {
  display: flex;
}

.hit-guide-bot__portal:hover,
.hit-guide-bot__edit:hover {
  border-color: var(--hgb-accent);
  color: var(--hgb-accent);
}

.hit-guide-bot__edit:hover {
  background: #fff;
}

.hit-guide-bot__tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 14px 12px;
}

.hit-guide-bot__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--hgb-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hgb-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.hit-guide-bot__tool:hover {
  border-color: var(--hgb-accent);
  color: var(--hgb-accent);
}

.hit-guide-bot__tool[aria-pressed="true"] {
  background: #f1f4f8;
  color: var(--hgb-ink);
}

@keyframes hit-guide-bot-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1180px) {
  .hit-guide-bot {
    right: calc(380px + env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 980px) {
  .hit-guide-bot {
    top: calc(74px + env(safe-area-inset-top, 0px));
    right: 14px;
  }

  .hit-guide-bot__panel {
    transform-origin: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hit-guide-bot__launcher {
    animation: none;
  }
}

@media (max-width: 480px) {
  .hit-guide-bot {
    right: 12px;
    top: calc(72px + env(safe-area-inset-top, 0px));
  }

  .hit-guide-bot__launcher {
    width: 54px;
    height: 54px;
    padding: 6px;
  }

  .hit-guide-bot__panel {
    width: min(318px, calc(100vw - 20px));
  }

  .hit-guide-bot__body {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hit-guide-bot__mascot {
    width: 86px;
  }
}
