/* The introduction is a screen of its own, before any game controls exist. */
#game.introduction-screen .welcome[data-layout="story"] {
  display: block;
  padding: clamp(24px, 5vw, 88px) clamp(24px, 7vw, 128px);
  background: linear-gradient(90deg, #0a1118f2 0%, #0a1118e8 27%, #0a1118c2 47%, #0a111833 70%, #0a11180d), var(--welcome-art) center / cover;
  color: #f5ead2;
  font-family: Andika, system-ui, sans-serif;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.welcome[data-layout="story"] .welcome-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  max-width: 40rem;
}
.welcome[data-layout="story"] h1 {
  margin: 0 0 16px;
  max-width: 100%;
  font-size: clamp(34px, 4.2vw, 72px);
  line-height: 1.12;
  text-wrap: balance;
}
.welcome[data-layout="story"] .game-subtitle {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-style: italic;
}
.welcome[data-layout="story"] .welcome-copy p {
  max-width: 100%;
  margin: 0 0 16px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
}
.welcome[data-layout="story"] .welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.welcome[data-layout="story"] .welcome-enter {
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #edc779;
  background: #dfb967;
  color: #211c14;
  font-size: 18px;
  font-weight: 600;
}
.welcome[data-layout="story"] .welcome-enter:hover {
  background: #f0cf8c;
  color: #211c14;
}
.welcome[data-layout="story"] .worlds-exit { margin: 0; }
.welcome[data-layout="story"] .worlds-exit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  color: #f5ead2;
}
.welcome[data-layout="story"] :focus-visible { outline: 3px solid #ffdc95; outline-offset: 4px; }
@media (max-width: 760px) {
  #game.introduction-screen .welcome[data-layout="story"] {
    background: linear-gradient(#0a1118d9, #0a1118f2), var(--welcome-art) 68% center / cover;
  }
  .welcome[data-layout="story"] .welcome-content { max-width: 36rem; }
}
@media (max-height: 600px) {
  #game.introduction-screen .welcome[data-layout="story"] { padding-top: 24px; padding-bottom: 24px; }
}
