@media screen and (max-width: 1199px) {
  .__hero {
    width: min(36rem, calc(100vw - 2rem));
  }

  .__char_body {
    left: 3.8rem;
    width: min(16rem, 29vw);
  }

  .__char_face {
    left: 6.25rem;
    bottom: 15.2rem;
  }

  .__book_wrapper {
    width: calc(100vw - 3rem);
  }
}

@media screen and (max-width: 991px) {
  body {
    position: relative;
  }

  .__hero {
    top: 1rem;
    left: 1rem;
    width: calc(100vw - 2rem);
  }

  .__hero_panel {
    border-radius: 1.4rem;
  }

  .__side_ui {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .__menu {
    align-items: flex-start;
  }

  .__menu_txt {
    text-align: left;
  }

  .__music_controls {
    width: min(14rem, 48vw);
  }

  .__book_card {
    grid-template-columns: 1fr;
  }

  .__wrapper {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media screen and (max-width: 767px) {
  body {
    overflow: hidden;
  }

  .__loading_map {
    top: 6vh;
    width: min(18rem, 84vw);
  }

  .__loading_inner {
    width: calc(100vw - 2rem);
    margin-top: min(46vh, 22rem);
  }

  .__sun_moon {
    right: 5vw;
    top: 11vh;
  }

  .__hero {
    top: 0.9rem;
  }

  .__hero_panel {
    padding: 1.1rem;
  }

  .__hero_meta {
    gap: 0.5rem;
  }

  .__hero_meta span {
    font-size: 0.8rem;
  }

  .__hero_actions {
    flex-direction: column;
    align-items: stretch;
  }

  .__side_ui {
    gap: 0.8rem;
    align-items: stretch;
  }

  .__music_controls {
    width: 10.4rem;
    padding: 0.8rem;
  }

  .__menu_txt {
    font-size: 0.95rem;
  }

  .__wrapper {
    bottom: 5.8rem;
    padding: 1rem;
    min-height: 13rem;
  }

  .__message {
    line-height: 1.7;
  }

  .__dialog_actions {
    margin-top: 1rem;
  }

  .__text_btn {
    min-width: 0;
    flex: 1;
  }

  .__back_btn {
    top: 0.8rem;
    left: 0.8rem;
  }

  .__book_wrapper {
    inset: 3.9rem 0.8rem 0.8rem 0.8rem;
    width: auto;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .__links {
    flex-direction: column;
  }

  .__link_btn,
  .__sample_btn {
    width: 100%;
  }
}

@media screen and (max-width: 520px) {
  .__hero_subtitle {
    line-height: 1.55;
  }

  .__hero_meta {
    display: none;
  }

  .__side_ui {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .__music_controls {
    width: 9rem;
  }

  .__lantern:nth-child(3),
  .__lantern:nth-child(4) {
    display: none;
  }

  .__dialog_actions {
    flex-direction: column-reverse;
  }
}
