.launcher,
.launcher * {
  box-sizing: border-box;
}

.launcher {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #18324c;
  background: linear-gradient(160deg, #e9f6ff 0%, #c7e6ff 100%);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  user-select: text;
  -webkit-user-select: text;
  overscroll-behavior: contain;
}

.launcher[hidden],
.level-picker[hidden],
.launcher__error[hidden],
.level-picker-error[hidden] {
  display: none !important;
}

.launcher__card {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 24px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px #24567b1c;
}

.launcher__brand {
  margin: 0 0 4px;
  color: #36779d;
  font-size: 14px;
  font-weight: 600;
}

.launcher h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.launcher h1:focus {
  outline: none;
}

.launcher__summary {
  margin: 0;
  color: #526c80;
  font-size: 14px;
}

.launcher__last-level {
  margin: 22px 0 18px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #275479;
  background: #eef7ff;
  font-size: 14px;
}

.launcher label,
.launcher legend {
  font-size: 14px;
  font-weight: 600;
}

.launcher__input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid #9cb5c9;
  border-radius: 10px;
  color: #18324c;
  background: #fff;
  line-height: 1.4;
  font-family: inherit;
  font-size: 22px;
  user-select: text;
  -webkit-user-select: text;
}

.launcher__input[aria-invalid="true"] {
  border-color: #ba3434;
}

.launcher__input:disabled {
  background: #f0f3f6;
}

.launcher__range {
  margin: 6px 0 18px;
  color: #526c80;
  font-size: 13px;
}

.launcher__quick {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.launcher__quick legend {
  margin-bottom: 8px;
  padding: 0;
}

.launcher__quick-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launcher__quick-button,
.launcher__submit,
.level-picker {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.launcher__quick-button {
  min-width: 48px;
  padding: 7px 12px;
  color: #275479;
  background: #edf5fc;
}

.launcher__submit {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  color: #fff;
  background: #1469bb;
  font-size: 17px;
}

.launcher__submit:disabled {
  background: #8caac6;
  cursor: wait;
}

.launcher button:focus-visible,
.launcher input:focus-visible {
  outline: 3px solid #ed9b1a;
  outline-offset: 3px;
}

.launcher__error {
  margin: 12px 0;
  color: #a22b2b;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.launcher__privacy {
  margin: 18px 0 0;
  color: #647584;
  font-size: 12px;
}

.level-picker-error {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  right: 10px;
  left: 10px;
  z-index: 1001;
  width: max-content;
  max-width: calc(100% - 44px);
  margin: 0 0 0 auto;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: #8d2626;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
  pointer-events: none;
}

@media (max-height: 620px) {
  .launcher {
    align-items: start;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .launcher__card {
    padding-top: 20px;
  }

  .launcher__last-level {
    margin-top: 14px;
    margin-bottom: 12px;
  }
}
