.launch-modal {
  --launch-bg: #141414;
  --launch-text: #f5f5f5;
  --launch-muted: #ababab;
  --launch-red: #e50914;
  color-scheme: dark;
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px 40px 24px;
  border: 1px solid #343434;
  border-radius: 16px;
  background: var(--launch-bg);
  color: var(--launch-text);
  font: 15px/1.55 var(--font-body, 'Inter', sans-serif);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 var(--launch-bg);
}
.launch-modal[open] { animation: launch-enter 240ms cubic-bezier(.16, 1, .3, 1); }
.launch-modal::backdrop { background: rgb(0 0 0 / 78%); }
.launch-modal *, .launch-modal *::before, .launch-modal *::after { box-sizing: border-box; }
.launch-modal [hidden] { display: none !important; }
.launch-modal ::selection { background: #8b1118; color: #fff; }
.launch-modal :is(input, select, button, summary):focus-visible { outline: 2px solid #ff6670; outline-offset: 3px; }
.launch-modal__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--launch-muted); cursor: pointer;
}
.launch-modal__close:hover { background: #242424; color: #fff; }
.launch-modal__mark { display: block; color: var(--launch-red); margin-bottom: 20px; }
.launch-modal h2 {
  margin: 0; color: var(--launch-text); font-family: var(--font-title, 'Anton', sans-serif);
  font-weight: 400; font-size: clamp(32px, 6vw, 42px); line-height: 1.12;
  letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
}
.launch-modal h2 span { color: #ff626c; }
.launch-modal p { margin: 14px 0 0; color: var(--launch-muted); }
.launch-form { margin-top: 24px; }
.launch-form__field { display: grid; gap: 7px; margin-bottom: 16px; }
.launch-form label { font-size: 13px; font-weight: 600; color: var(--launch-text); }
.launch-form :is(input, select) {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #484848; border-radius: 8px;
  background: #1c1c1c; color: var(--launch-text); font: inherit; font-size: 16px; line-height: 1.4;
  caret-color: #ff626c; transition: border-color 150ms;
}
.launch-form :is(input, select):hover { border-color: #777; }
.launch-form :is(input, select):focus { border-color: #ff626c; }
.launch-form input::placeholder { color: #999; opacity: 1; }
.launch-form select { padding-right: 30px; }
.launch-form select:has(option[value='']:checked) { color: #aaa; }
.launch-form [aria-invalid='true'] { border-color: #ff8b90; }
.launch-form__error { color: #ff9ba1; font-size: 12px; }
.launch-form__field small { color: var(--launch-muted); font-size: 12px; }
.launch-form__optional { margin: -2px 0 18px; }
.launch-form__optional summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px;
  color: #d4d4d4; cursor: pointer; list-style: none; border-radius: 4px;
}
.launch-form__optional summary::-webkit-details-marker { display: none; }
.launch-form__optional summary::before { content: '+'; width: 14px; font-size: 19px; line-height: 1; }
.launch-form__optional[open] summary::before { content: '−'; }
.launch-form__optional summary span { margin-left: auto; color: var(--launch-muted); font-size: 12px; }
.launch-form__optional[open] summary { margin-bottom: 12px; }
.launch-form__trap { display: none; }
.launch-form .launch-form__status { margin: 0 0 16px; color: #ff9ba1; font-size: 13px; }
.launch-form__submit {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px;
  padding: 12px 16px; border: 0; border-radius: 8px; background: var(--launch-red); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 150ms;
}
.launch-form__submit:hover { background: #bc0710; }
.launch-form__submit:disabled { cursor: wait; background: #8f151c; }
.launch-form .launch-form__privacy { margin-top: 12px; font-size: 11px; line-height: 1.6; text-align: center; }
.launch-modal__later { display: block; min-height: 44px; margin: 12px auto 0; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: #c5c5c5; font: inherit; font-size: 13px; cursor: pointer; }
.launch-modal__later { text-decoration: underline; text-underline-offset: 4px; }
.launch-modal__later:hover { background: #242424; color: #fff; }
.launch-modal__success { padding: 16px 0 12px; }
.launch-modal__success .launch-form__submit { margin-top: 28px; }
.launch-modal__success:focus { outline: none; }
@keyframes launch-enter { from { opacity: .65; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 540px) {
  .launch-modal { padding: 28px 24px 16px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .launch-modal__mark { margin-bottom: 16px; width: 32px; height: 32px; }
  .launch-modal h2 { font-size: 34px; }
  .launch-modal p { font-size: 14px; }
  .launch-form { margin-top: 20px; }
  .launch-form__field { margin-bottom: 14px; }
}
@media (min-width: 541px) and (max-height: 780px) {
  .launch-modal { padding: 24px 32px 16px; }
  .launch-modal__mark { width: 28px; height: 28px; margin-bottom: 12px; }
  .launch-modal h2 { font-size: 34px; }
  .launch-modal p { font-size: 14px; margin-top: 12px; }
  .launch-form { margin-top: 18px; }
  .launch-form__field { gap: 6px; margin-bottom: 12px; }
  .launch-form :is(input, select) { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
  .launch-form__optional { margin-bottom: 12px; }
  .launch-form .launch-form__privacy { font-size: 11px; }
  .launch-modal__later { min-height: 40px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .launch-modal[open] { animation: none; } .launch-modal * { transition: none !important; } }
