#startScreen,
#game.title-transition {
  background: #152b2b url("./assets/harbor-stride-title.webp") center / cover no-repeat;
}

#startScreen {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(6vw, env(safe-area-inset-left));
  overflow: auto;
  isolation: isolate;
  color: #fff1cd;
  font: 1rem Georgia, serif;
}

#startScreen[hidden] { display: none; }

#startScreen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #081c1cf5 0%, #0b2123d9 25%, #0e232654 57%, #14302913 100%);
  pointer-events: none;
}

.start-screen-content {
  box-sizing: border-box;
  width: min(41vw, 540px);
  min-width: min(380px, 100%);
  max-height: 100%;
  text-align: center;
}

#startScreen h1 {
  margin: 0 0 clamp(12px, 3.5vh, 36px);
  color: #f8db91;
  font: 700 clamp(36px, 5.5vw, 100px)/.91 Georgia, serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #7b5430, 0 5px 20px #071615;
}

#startScreen h1 span { display: block; }

.start-screen-menu {
  display: grid;
  gap: clamp(10px, 1.85vh, 18px);
  padding: clamp(10px, 2vh, 22px);
  border: 1px solid #bc9156;
  border-radius: 6px;
  background: #0c2624e8;
  box-shadow: 0 0 0 3px #171c18a0, inset 0 0 0 3px #deba6e28, 0 15px 32px #0816139c;
}

#startScreen h2 {
  margin: 1px 0 4px;
  color: #fff1cd;
  font-size: clamp(19px, 3vw, 27px);
}

#startScreen .start-screen-menu button {
  width: 100%;
  min-height: clamp(46px, 7.6vh, 66px);
  padding: 10px 15%;
  border: 0;
  border-radius: 4px;
  color: #fff1cd;
  background: url("./assets/harbor-stride-title-button.webp") center / 100% 100% no-repeat, linear-gradient(#284a3a, #132d26);
  font: 700 clamp(16px, 1.6vw, 23px)/1.25 Georgia, serif;
  text-shadow: 0 1px 2px #061612;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#startScreen .start-screen-menu button:first-of-type {
  color: #ffde94;
  filter: brightness(1.23);
}

#startScreen .start-screen-menu button:focus-visible {
  outline: 2px solid #fff1bb;
  outline-offset: 2px;
}

#startScreen .start-screen-menu button:hover { filter: brightness(1.37); }

#game.title-transition > :is(#world, #hud, #dock, #mainAction, #back, #version) {
  visibility: hidden;
}

#globalChatToggle.chat-locked .chat-arrow { font-size: 15px; }

#pauseMenu .pause-card { max-height: calc(100dvh - 24px); overflow-y: auto; }

@media (max-height: 450px) {
  #startScreen h1 { font-size: clamp(30px, 6vw, 47px); }
  #startScreen .start-screen-menu button { min-height: 44px; }
}

@media (orientation: portrait) {
  #startScreen {
    align-items: end;
    justify-content: center;
    background-position: 70% center;
  }
  #startScreen::before { background: linear-gradient(0deg, #081c1cf5, #0b2123ad 38%, transparent 76%); }
}
