/* Keep the choices in view; very small or enlarged viewports can still scroll. */
.start-screen {
  min-height: 100dvh;
  padding: clamp(8px, 1.5vh, 20px) clamp(8px, 2vw, 24px);
  align-content: safe center;
  justify-items: center;
}

.start-screen #start-content { max-width: 1240px; }
.start-screen .story-welcome {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(8px, 1.5vh, 16px) 16px;
}
.start-screen .story-welcome-hero {
  grid-column: 1 / -1;
  display: block;
  padding: 12px 20px;
  border-radius: 18px;
}
.start-screen .story-welcome-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 2px 20px;
  align-items: center;
}
.start-screen .story-brand { grid-column: 1; grid-row: 1; margin: 0; font-size: 14px; }
.start-screen .story-brand-sign { width: 29px; height: 29px; font-size: 18px; border-radius: 8px; }
.start-screen .story-welcome-copy > .story-overline,
.start-screen .story-section-heading .story-overline,
.start-screen .story-opening-ledger,
.start-screen .story-illustration { display: none; }
.start-screen .story-welcome h1 {
  grid-column: 1;
  grid-row: 2;
  margin: 3px 0 0;
  font-size: clamp(25px, 2.7vw, 37px);
  line-height: 1.16;
}
.start-screen .story-lead {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  line-height: 1.45;
}
.start-screen .story-welcome-copy > .story-start-note {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 11px;
}
.start-screen .story-pick { min-width: 0; margin: 0; }
.start-screen .story-section-heading { gap: 9px; margin-bottom: 7px; }
.start-screen .story-section-heading h2 { margin: 0; font-size: 18px; }
.start-screen .story-step { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; box-shadow: 2px 2px 0 #c9ded1; }
.start-screen .story-mode-grid { gap: 6px; }
.start-screen .story-mode-grid .story-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 78px;
  padding: 6px 4px;
  border-radius: 10px;
  text-align: center;
}
.start-screen .story-mode-length strong { font-size: 30px; }
.start-screen .story-mode-length small { font-size: 11px; }
.start-screen .story-mode-name { align-self: auto; font-size: 11px; }
.start-screen .story-mode-lead { display: none; }
.start-screen .story-mode-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 7px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.3;
}
.start-screen .story-mode-summary small { grid-column: 1; font-size: 10px; }
.start-screen .story-scenario-intro { margin: 0 0 7px; font-size: 11px; line-height: 1.35; }
.start-screen .story-scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.start-screen .story-scenario-grid .story-scenario-card {
  min-height: 209px;
  padding: 10px;
  border-top-width: 3px;
  border-radius: 10px;
}
.start-screen .story-scenario-card h3 { margin: 5px 0 4px; font-size: 16px; }
.start-screen .story-scenario-card p { font-size: 11px; line-height: 1.35; }
.start-screen .story-scenario-growth { margin: auto 0 8px; padding-top: 6px; }
.start-screen .story-scenario-card .primary-button { min-height: 42px; padding: 6px 8px; font-size: 11px; }
.start-screen .story-scenarios > .story-start-note { display: none; }

@media (max-width: 720px) {
  .start-screen .story-welcome { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .start-screen .story-welcome-hero { grid-column: 1; padding: 8px 10px; border-radius: 10px; }
  .start-screen .story-welcome-copy { display: block; }
  .start-screen .story-brand { margin: 0 0 4px; font-size: 11px; }
  .start-screen .story-brand-sign { width: 24px; height: 24px; font-size: 15px; }
  .start-screen .story-welcome h1 { margin: 0; font-size: clamp(18px, 5.4vw, 25px); line-height: 1.12; }
  .start-screen .story-lead,
  .start-screen .story-welcome-copy > .story-start-note { display: none; }
  .start-screen .story-section-heading { gap: 6px; margin-bottom: 5px; }
  .start-screen .story-section-heading h2 { font-size: 14px; }
  .start-screen .story-step { width: 23px; height: 23px; font-size: 10px; }
  .start-screen .story-mode-grid .story-mode-card { min-height: 50px; padding: 3px 2px; gap: 1px; }
  .start-screen .story-mode-length strong { font-size: 23px; }
  .start-screen .story-mode-length small { font-size: 9px; }
  .start-screen .story-mode-name { font-size: 10px; }
  .start-screen .story-mode-summary { margin-top: 5px; padding: 5px 7px; font-size: 10px; }
  .start-screen .story-mode-summary small,
  .start-screen .story-scenario-intro { display: none; }
  .start-screen .story-scenario-grid { grid-template-columns: 1fr; gap: 4px; }
  .start-screen .story-scenario-grid .story-scenario-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 6px;
    min-height: 56px;
    padding: 5px 8px;
  }
  .start-screen .story-scenario-number { grid-column: 1; grid-row: 1; font-size: 9px; }
  .start-screen .story-scenario-card h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 13px; }
  .start-screen .story-scenario-card p,
  .start-screen .story-scenario-growth { display: none; }
  .start-screen .story-scenario-card .primary-button {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 135px;
    min-height: 42px;
    margin: 0;
    padding: 5px 7px;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (min-width: 520px) and (max-height: 500px) {
  .start-screen .story-welcome { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6px 10px; }
  .start-screen .story-welcome-hero { grid-column: 1 / -1; padding: 6px 10px; }
  .start-screen .story-welcome-copy { display: flex; align-items: center; gap: 12px; }
  .start-screen .story-brand { flex: none; margin: 0; }
  .start-screen .story-welcome h1 { margin: 0; font-size: 20px; }
  .start-screen .story-welcome h1 br,
  .start-screen .story-lead,
  .start-screen .story-welcome-copy > .story-start-note { display: none; }
  .start-screen .story-section-heading h2 { font-size: 14px; }
  .start-screen .story-scenario-grid { grid-template-columns: 1fr; gap: 4px; }
  .start-screen .story-scenario-grid .story-scenario-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 6px;
    min-height: 53px;
    padding: 4px 7px;
  }
  .start-screen .story-scenario-number { grid-column: 1; grid-row: 1; font-size: 9px; }
  .start-screen .story-scenario-card h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 12px; }
  .start-screen .story-scenario-card p,
  .start-screen .story-scenario-growth { display: none; }
  .start-screen .story-scenario-card .primary-button {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 130px;
    min-height: 42px;
    margin: 0;
    padding: 5px 7px;
    font-size: 11px;
    white-space: nowrap;
  }
  .start-screen .story-mode-summary small { display: none; }
}

@media (min-width: 1000px) and (min-height: 850px) {
  .start-screen .story-welcome-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 12px;
  }
  .start-screen .story-illustration { display: block; width: 270px; }
  .start-screen .story-illustration-svg { max-height: 155px; }
  .start-screen .story-illustration-captions { display: none; }
}

@media (max-width: 720px) and (min-height: 620px) {
  .start-screen .story-scenario-card p {
    display: block;
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
    line-height: 1.3;
  }
  .start-screen .story-scenario-card .primary-button { grid-row: 1 / 4; }
}

@media (max-width: 720px) and (min-height: 730px) {
  .start-screen .story-lead { display: block; margin-top: 5px; font-size: 11px; line-height: 1.4; }
  .start-screen .story-welcome-copy > .story-start-note { display: block; margin-top: 4px; font-size: 10px; }
  .start-screen .story-mode-summary small { display: block; }
  .start-screen .story-scenario-intro { display: block; margin-bottom: 5px; font-size: 10px; line-height: 1.35; }
}

@media (max-width: 519px) and (max-height: 430px) {
  .start-screen .story-welcome { gap: 3px; }
  .start-screen .story-welcome-hero { padding: 5px 8px; }
  .start-screen .story-mode-summary span { display: none; }
  .start-screen .story-welcome h1 { font-size: 17px; }
  .start-screen .story-mode-summary { margin-top: 3px; padding: 3px 6px; }
}
