.has-character-state {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.character-state-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-2, #f5f5f7);
  box-shadow: inset 0 0 0 1px var(--line, #e5e5ea);
}

.daily-quiz-scoreline.has-character-state {
  align-items: center;
}

.daily-quiz-scoreline .character-state-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  margin-top: 0;
}

.character-scene {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.ui-v1-home-hero {
  position: relative;
  isolation: isolate;
}

.ui-v1-home-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-ip-hero {
  position: relative;
  isolation: isolate;
}

.page-ip-hero:not(.ui-v1-home-hero),
.study-hero {
  min-height: 480px;
}

.page-ip-character {
  position: absolute;
  z-index: 0;
  right: max(24px, calc((100vw - 1200px) / 2));
  top: 62px;
  width: 270px;
  height: 360px;
  object-fit: contain;
}

.page-ip-hero > .wrap {
  position: relative;
  z-index: 1;
}

.ui-v1-home-hero .page-ip-character,
.study-hero .page-ip-character {
  /* welcome.png has much more transparent padding than the role art. */
  width: 343px;
  height: 458px;
  transform: translateX(50px);
}

.ui-v1-home-hero .page-ip-character {
  top: -34px;
}

.study-hero .page-ip-character {
  top: -34px;
}

.case-detail-character {
  float: right;
  width: 112px;
  height: 112px;
  margin: 0 0 var(--s16) var(--s16);
}

.tools-hero .chips > [role="status"] {
  margin-right: 300px;
}

@media (max-width: 1200px) {
  .home-hero-character,
  .page-ip-character {
    display: none;
  }

  .tools-hero .chips > [role="status"] {
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .case-detail-character {
    float: none;
    width: 88px;
    height: 88px;
    margin: 0 0 var(--s12);
  }
}

@media (max-width: 900px) {
  .page-ip-hero:not(.ui-v1-home-hero),
  .study-hero {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-state-icon {
    transition: none;
  }
}
