.wiffy-guide {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.wiffy-guide__character {
  background: transparent;
  border: 0;
  border-radius: 50%;
  flex: 0 0 36px;
  margin: 0;
  padding: 0;
}

.wiffy-guide__character img {
  border-radius: 50%;
  display: block;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.wiffy-guide__character:hover,
.wiffy-guide__character:focus {
  transform: translateY(-1px);
}

.wiffy-guide__character:focus-visible {
  outline: 3px solid rgba(34, 80, 252, 0.28);
  outline-offset: 3px;
}

.wiffy-guide__speech {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  flex: 1 1 auto;
  padding: 12px 14px;
  position: relative;
  text-align: left;
}

.wiffy-guide__speech::before,
.wiffy-guide__speech::after {
  border-bottom: 8px solid transparent;
  border-right: 10px solid #e2e8f0;
  border-top: 8px solid transparent;
  content: "";
  left: -10px;
  position: absolute;
  top: 12px;
}

.wiffy-guide__speech::after {
  border-right-color: #f8fafc;
  left: -8px;
}

.wiffy-guide__speech > :last-child {
  margin-bottom: 0;
}

.wiffy-guide--disabled {
  display: block;
  max-width: none;
}

.wiffy-guide--disabled .wiffy-guide__character {
  display: none;
}

.wiffy-guide--disabled .wiffy-guide__speech {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  padding: 0;
}

.wiffy-guide--disabled .wiffy-guide__speech::before,
.wiffy-guide--disabled .wiffy-guide__speech::after {
  display: none;
}

.wiffy-profile {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}

.wiffy-profile__image {
  border-radius: 16px;
  display: block;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  width: 100%;
}

.wiffy-profile__close {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  z-index: 1;
}

.wiffy-profile__close:hover,
.wiffy-profile__close:focus {
  background: #0f172a;
  color: #fff;
  transform: none;
}

@media (max-width: 575.98px) {
  .wiffy-guide {
    gap: 10px;
  }

  .wiffy-guide__character {
    flex-basis: 30px;
  }

  .wiffy-guide__character img {
    height: 30px;
    width: 30px;
  }

  .wiffy-guide__speech {
    padding: 10px 12px;
  }

  .wiffy-guide__speech::before,
  .wiffy-guide__speech::after {
    top: 10px;
  }
}
