.world-page .breadcrumb {
  color: #49645c;
  overflow-wrap: anywhere;
}

.world-page .breadcrumb a {
  color: #25604f;
}

.world-page .public-play-guide,
.world-page .public-related-games {
  line-height: 1.7;
}

.public-play-guide li + li {
  margin-top: .5em;
}

#game-frame:has(#overlay:not([hidden])) #control-settings-toggle {
  z-index: auto;
}

#game-frame:has(#start-settings[aria-expanded="true"]) #control-settings-panel {
  z-index: 100;
}

#game-frame .dialog {
  box-sizing: border-box;
  max-block-size: calc(100% - 1rem);
  overflow: auto;
}

#start-help {
  margin-block: 0 1rem;
}

#start-help ul {
  padding-inline-start: 1.2em;
  text-align: start;
}

#game-frame #control-settings-panel {
  box-sizing: border-box;
}

@media (orientation: landscape) and (max-height: 600px) {
  #game-frame:not(.expanded) {
    height: calc(100svh - 12px);
    min-height: 0;
  }

  #game-frame .dialog {
    padding: 12px 16px;
  }

  #game-frame .dialog h2,
  #game-frame .dialog p {
    margin-block: 0 .5rem;
    line-height: 1.4;
  }

  #game-frame .dialog .actions {
    margin-block-start: .5rem;
  }

  #start-help {
    max-block-size: 4.5rem;
    overflow: auto;
    overscroll-behavior: contain;
  }

  #game-frame #control-settings-panel {
    inset: 6px;
    max-width: calc(100% - 12px);
    height: calc(100% - 12px);
    max-height: calc(100% - 12px);
  }
}
