/* Title screen, menu buttons, settings and credits windows of Last Lift (loaded after operations.css). */
[hidden] { display: none !important; }

.title-screen {
  position: relative;
  min-height: calc(100vh - clamp(36px, 6vw, 88px));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #31586a;
  border-radius: 24px;
  background: #07141f;
  box-shadow: 0 22px 60px #0007;
}
.title-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #07141f 0%, #07141f00 38%, #07141f00 58%, #07141fee 100%),
    radial-gradient(ellipse at 50% 38%, #1d5568aa 0%, #07141f00 62%),
    url('./assets/backdrop-flood.webp') 50% 62% / cover no-repeat;
  opacity: .8;
}
.title-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 20px 70px;
  text-align: center;
}
.title-body h1 { margin: 0; line-height: 0; }
.title-logo { width: min(420px, 74vw, 49vh); height: auto; filter: drop-shadow(0 14px 28px #000a); }
.title-tagline { margin: 0; color: #c4dde2; font-size: 1.1rem; letter-spacing: .02em; }
.title-menu { display: grid; gap: 10px; width: min(320px, 86vw); margin-top: 10px; }
.title-page-link { color: #8db7c1; font-size: .9rem; }
.title-page-link:hover, .title-page-link:focus-visible { color: var(--mist); }
.title-notice {
  position: absolute;
  inset: auto 0 14px 0;
  margin: 0;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #8db7c1;
}

.menu-button, .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #3f6f82;
  border-radius: 12px;
  background: #0d2634;
  color: var(--mist);
  font: inherit;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.menu-button:hover, .back-button:hover { background: #12384b; border-color: var(--teal); }
.menu-button:active, .back-button:active { transform: translateY(1px); }
.menu-button:focus-visible, .back-button:focus-visible, .launch-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.menu-button.primary { background: var(--yellow); border-color: var(--yellow); color: #251b09; }
.menu-button.primary:hover { background: #ffd47d; }
.back-button { min-height: 38px; padding: 8px 14px; font-size: .78rem; }

.map-heading { margin: .1em 0; font-size: clamp(2.2rem, 5vw, 5rem); line-height: .94; }
.map-heading:focus { outline: none; }
.operations-header { flex-wrap: wrap; }
.launch-button.ice { background: #bfe8ed; color: #06222a; }
.operation-copy h3 { font-size: 2rem; margin: .15em 0; }

@media (min-width: 1100px) {
  .operation-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 851px) and (max-width: 1099px) {
  .operation-grid:has(> :nth-child(3)) > :nth-child(3) { grid-column: 1 / -1; }
}

/* settings and credits windows */
.shell-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid #3f6f82;
  border-radius: 20px;
  background: #0b2230;
  color: var(--mist);
  box-shadow: 0 30px 80px #000c;
}
.shell-dialog::backdrop { background: #02080ccc; }
.shell-card { display: grid; gap: 14px; padding: clamp(18px, 4vw, 30px); }
.shell-card h2 { margin: 0; font-size: 1.8rem; }
.shell-card p { margin: 0; }
.shell-note { color: #8db7c1; font-size: .9rem; }
.shell-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.settings-rows { display: grid; gap: 10px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #284959;
  border-radius: 12px;
  background: #071923;
}
.setting-text { display: grid; gap: 3px; min-width: 0; }
.setting-text small, .setting-row small { color: #8db7c1; line-height: 1.35; }
.setting-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.setting-row input[type="range"] { width: min(180px, 42vw); accent-color: var(--teal); flex: none; }
.setting-row.choice { display: grid; gap: 10px; }
.setting-row.choice legend { padding: 0 4px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span {
  display: block;
  padding: 9px 8px;
  border: 1px solid #31586a;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
.segmented input:checked + span { background: var(--teal); border-color: var(--teal); color: #05222a; }
.segmented input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

@media (max-width: 560px) {
  .segmented { grid-template-columns: 1fr; }
  .setting-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-button, .back-button { transition: none; }
}

/* a phone held sideways: the logo on the left, the menu on the right, everything above the fold */
@media (max-height: 480px) and (orientation: landscape) {
  .title-body {
    display: grid;
    grid-template-columns: auto minmax(220px, 300px);
    column-gap: clamp(24px, 6vw, 64px);
    row-gap: 8px;
    align-content: center;
    align-items: center;
    padding: 14px 20px 40px;
  }
  .title-body h1 { grid-column: 1; grid-row: 1 / span 3; }
  .title-logo { width: min(340px, 44vw, 72vh); }
  .title-tagline, .title-menu, .title-page-link { grid-column: 2; }
  .title-menu { margin-top: 0; gap: 8px; }
  .menu-button { min-height: 40px; padding: 8px 16px; }
}

.campaign-status small { display: block; margin-top: 2px; color: #8db7c1; font-size: .72rem; letter-spacing: .12em; }
