/* The launch sequence shares one animated star and orbit composition. */
#launch-flow.launch-flow--lit:not(.launch-flow--role-choice):not(.launch-flow--access-denied):not(.launch-flow--section-choice)::after {
  display: none;
}

.launch-flow .launch-flow__ambient {
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: none;
  opacity: 0;
  animation: none;
  transition: opacity 1.2s ease;
}

.launch-flow--lit .launch-flow__ambient {
  opacity: 1;
}

.launch-flow--loading .launch-flow__brand,
.launch-flow--welcome .launch-flow__brand {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.launch-flow--disclaimer .launch-flow__brand,
.launch-flow--section-choice .launch-flow__brand {
  animation: none;
  transition: none;
  pointer-events: none;
}

.launch-flow__star-field {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.launch-flow__orbit-spin {
  position: absolute;
  inset: 0;
  transform-origin: center;
  animation: launch-orbit-spin 30s linear infinite;
}
.launch-flow__orbit-spin--a { animation-duration: 25s; }
.launch-flow__orbit-spin--b { animation-duration: 34s; animation-direction: reverse; }
.launch-flow__orbit-spin--c { animation-duration: 46s; }
.launch-flow__orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(84vw, 76vh, 850px);
  aspect-ratio: 1;
  border: 1px solid rgb(var(--theme-accent-strong-rgb) / .25);
  border-radius: 51% 49% 54% 46% / 48% 52% 48% 52%;
  box-shadow: 0 0 42px rgb(var(--theme-accent-rgb) / .09), inset 0 0 34px rgb(var(--theme-accent-rgb) / .05);
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: launch-orbit-drift-a 7s ease-in-out infinite alternate;
}
.launch-flow__orbit-spin--b .launch-flow__orbit-line {
  width: min(66vw, 58vh, 620px);
  border-color: rgb(var(--theme-accent-rgb) / .19);
  box-shadow: 0 0 58px rgb(var(--theme-accent-rgb) / .07), inset 0 0 32px rgb(var(--theme-accent-strong-rgb) / .05);
  transform: translate(-50%, -50%) rotate(21deg);
  animation-name: launch-orbit-drift-b;
  animation-duration: 8.5s;
}
.launch-flow__orbit-spin--c .launch-flow__orbit-line {
  width: min(91vw, 84vh, 1000px);
  border-color: rgb(var(--theme-accent-rgb) / .12);
  box-shadow: 0 0 50px rgb(var(--theme-accent-strong-rgb) / .05);
  transform: translate(-50%, -50%) rotate(8deg);
  animation-name: launch-orbit-drift-c;
  animation-duration: 10.5s;
}

.launch-flow__brand,
.launch-flow__disclaimer,
.launch-flow__loading,
.launch-flow__welcome {
  z-index: 1;
}

.launch-flow__brand {
  color: var(--app-text);
  font-family: var(--font-heading, var(--font-text, Manrope, Arial, sans-serif));
  font-size: clamp(24px, min(10vw, 10vh), 116px);
  font-weight: 300;
  letter-spacing: .075em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-indent: .075em;
  text-shadow: 0 0 36px rgb(var(--theme-accent-rgb) / .24);
  transition: opacity .65s ease, transform .8s ease, filter .8s ease, text-shadow .8s ease;
}

.launch-flow__welcome,
.launch-flow__loading {
  box-sizing: border-box;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  align-content: center;
  gap: clamp(12px, 2.1vh, 24px);
  width: auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .68s ease, transform .68s cubic-bezier(.2,.8,.2,1);
}

.launch-flow--welcome .launch-flow__welcome,
.launch-flow--loading .launch-flow__loading {
  opacity: 1;
  transform: none;
}

.launch-flow__welcome-title,
.launch-flow__loading-title {
  max-width: 100%;
  margin: 0;
  color: var(--app-text);
  font-family: var(--font-heading, var(--font-text, Manrope, Arial, sans-serif));
  font-size: clamp(24px, min(10vw, 10vh), 116px);
  font-weight: 300;
  letter-spacing: .075em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-indent: .075em;
  white-space: nowrap;
  text-shadow: 0 0 36px rgb(var(--theme-accent-rgb) / .24);
}

.launch-flow__start {
  min-width: 160px;
  min-height: 48px;
  margin-top: 8px;
  padding: 13px 28px;
  border: 1px solid rgb(var(--theme-accent-strong-rgb) / .76);
  border-radius: 999px;
  background: rgb(var(--theme-accent-rgb) / .14);
  box-shadow: 0 0 30px rgb(var(--theme-accent-rgb) / .14);
  color: var(--app-text);
  cursor: pointer;
  font-family: var(--font-ui, var(--font-text, Manrope, Arial, sans-serif));
  font-size: 14px;
  font-weight: 600;
  pointer-events: auto;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.launch-flow__start:hover {
  transform: translateY(-2px);
  background: rgb(var(--theme-accent-rgb) / .24);
  box-shadow: 0 0 42px rgb(var(--theme-accent-rgb) / .24);
}
.launch-flow__start:focus-visible { outline: 3px solid var(--app-accent-strong); outline-offset: 4px; }

.launch-flow__disclaimer {
  box-sizing: border-box;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  align-content: center;
  gap: clamp(12px, 2.1vh, 20px);
  width: auto;
  padding: max(28px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  transform: translateY(18px);
  transition: opacity .6s ease .22s, transform .6s cubic-bezier(.2,.8,.2,1) .22s;
}
.launch-flow--disclaimer .launch-flow__disclaimer { opacity: 1; transform: none; }
.launch-flow--disclaimer-exiting .launch-flow__disclaimer {
  opacity: 0;
  transform: translateY(-8px) scale(.99);
  pointer-events: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1);
}
.launch-flow__disclaimer::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 460px);
  height: min(34vh, 280px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--theme-accent-rgb) / .24), rgb(var(--theme-accent-strong-rgb) / .1) 38%, transparent 72%);
  content: "";
  filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
  transition: opacity .62s ease, transform .68s cubic-bezier(.2,.8,.2,1);
}
.launch-flow--disclaimer .launch-flow__disclaimer::before { opacity: .58; transform: translate(-50%, -50%) scale(1); }
.launch-flow--disclaimer-exiting .launch-flow__disclaimer::before { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
.launch-flow__disclaimer .launch-flow__title,
.launch-flow__disclaimer .launch-flow__text {
  position: relative;
  z-index: 1;
  filter: blur(0);
  text-shadow: 0 0 0 transparent;
  transform: scale(1);
  transition: filter .62s ease, text-shadow .62s ease, transform .68s cubic-bezier(.2,.8,.2,1);
}
.launch-flow__disclaimer .launch-flow__title {
  max-width: 18ch;
  font-family: var(--font-heading, var(--font-text, Manrope, Arial, sans-serif));
  font-size: clamp(25px, min(4.8vw, 5.8vh), 52px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.launch-flow__disclaimer .launch-flow__text {
  max-width: 58ch;
  margin: 0;
  color: var(--app-muted);
  font-family: var(--font-text, Manrope, Arial, sans-serif);
  font-size: clamp(14px, min(1.7vw, 2vh), 18px);
  line-height: 1.7;
}
.launch-flow__disclaimer .launch-flow__start { margin-top: 8px; }

.launch-flow__loading > * { display: none; }
.launch-flow--loading-content .launch-flow__loading-title,
.launch-flow--loading-content .launch-flow__loading-status { display: block; }
.launch-flow__loading-status {
  max-width: 100%;
  margin: 0;
  color: var(--app-muted);
  font-family: var(--font-ui, var(--font-text, Manrope, Arial, sans-serif));
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
  text-align: center;
}
.launch-flow--loading-content.launch-flow--preparing .launch-flow__loading-progress {
  display: block;
  width: min(240px, 68vw);
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(var(--theme-text-rgb) / .16);
}
.launch-flow__loading-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-accent), var(--app-accent-strong));
  animation: launch-loading-progress 1.05s ease-in-out infinite;
}

.launch-flow__welcome .launch-flow__start,
.launch-flow__welcome .launch-flow__welcome-title { pointer-events: auto; }

@keyframes launch-orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes launch-orbit-drift-a {
  0% { border-radius: 52% 48% 60% 40% / 42% 53% 47% 58%; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
  50% { border-radius: 42% 58% 48% 52% / 54% 40% 60% 46%; transform: translate(-50%, -50%) rotate(5deg) scale(1.025); }
  100% { border-radius: 57% 43% 42% 58% / 47% 58% 42% 53%; transform: translate(-50%, -50%) rotate(22deg) scale(.99); }
}
@keyframes launch-orbit-drift-b {
  0% { border-radius: 46% 54% 38% 62% / 57% 43% 57% 43%; transform: translate(-50%, -50%) rotate(21deg) scale(.98); }
  100% { border-radius: 59% 41% 55% 45% / 43% 59% 41% 57%; transform: translate(-50%, -50%) rotate(-13deg) scale(1.035); }
}
@keyframes launch-orbit-drift-c {
  0% { border-radius: 54% 46% 61% 39% / 48% 39% 61% 52%; transform: translate(-50%, -50%) rotate(8deg) scale(1.02); }
  100% { border-radius: 40% 60% 46% 54% / 57% 45% 55% 43%; transform: translate(-50%, -50%) rotate(-9deg) scale(.98); }
}
@keyframes launch-loading-progress { from { transform: translateX(-145%); } to { transform: translateX(440%); } }

html[data-device-kind="tablet"] .launch-flow__orbit-line { width: min(84vw, 70vh, 760px); }
html[data-device-kind="tablet"] .launch-flow__orbit-spin--b .launch-flow__orbit-line { width: min(66vw, 54vh, 600px); }
html[data-device-kind="tablet"] .launch-flow__orbit-spin--c .launch-flow__orbit-line { width: min(91vw, 80vh, 900px); }
html[data-device-kind="mobile"] .launch-flow__orbit-line { width: min(92vw, 66vh, 500px); }
html[data-device-kind="mobile"] .launch-flow__orbit-spin--b .launch-flow__orbit-line { width: min(70vw, 50vh, 360px); }
html[data-device-kind="mobile"] .launch-flow__orbit-spin--c .launch-flow__orbit-line { width: min(100vw, 78vh, 600px); }
html[data-device-kind="tablet"] .launch-flow__welcome-title,
html[data-device-kind="tablet"] .launch-flow__loading-title { font-size: clamp(24px, min(9vw, 9vh), 104px); letter-spacing: .06em; text-indent: .06em; }
html[data-device-kind="tablet"] .launch-flow:not(.launch-flow--section-choice) .launch-flow__brand { font-size: clamp(24px, min(9vw, 9vh), 104px); letter-spacing: .06em; text-indent: .06em; }
html[data-device-kind="tablet"] .launch-flow__disclaimer .launch-flow__title { font-size: clamp(25px, min(4.8vw, 5.8vh), 48px); }

html[data-device-kind="tablet"] .launch-flow,
html[data-device-kind="mobile"] .launch-flow {
  padding: max(16px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px))
    max(16px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right, 0px))
    max(16px, var(--tg-content-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px))
    max(16px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left, 0px));
}
html[data-device-kind="mobile"] .launch-flow__welcome-title,
html[data-device-kind="mobile"] .launch-flow__loading-title,
html[data-device-kind="mobile"] .launch-flow:not(.launch-flow--section-choice) .launch-flow__brand {
  max-width: calc(100vw - 48px);
  font-size: clamp(24px, min(11vw, 10vh), 64px);
  letter-spacing: .035em;
  text-indent: .035em;
}
html[data-device-kind="mobile"] .launch-flow__disclaimer .launch-flow__title { font-size: clamp(25px, min(7vw, 5.8vh), 40px); }
html[data-device-kind="mobile"] .launch-flow__disclaimer .launch-flow__text { font-size: 14px; line-height: 1.6; }
html[data-device-kind="mobile"] .launch-flow__start { width: min(100%, 300px); }

@media (max-width: 640px) {
  .launch-flow__welcome-title,
  .launch-flow__loading-title,
  .launch-flow__brand {
    max-width: calc(100vw - 48px);
    font-size: clamp(24px, min(11vw, 10vh), 64px);
    letter-spacing: .035em;
    text-indent: .035em;
  }
  .launch-flow__disclaimer .launch-flow__title { font-size: clamp(25px, min(7vw, 5.8vh), 40px); }
  .launch-flow__disclaimer .launch-flow__text { font-size: 14px; line-height: 1.6; }
  .launch-flow__start { width: min(100%, 300px); }
}

@media (max-height: 620px) and (max-width: 760px) {
  .launch-flow__welcome,
  .launch-flow__loading,
  .launch-flow__disclaimer { padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .launch-flow__orbit-line { width: min(76vh, 360px); }
  .launch-flow__start { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-flow__welcome,
  .launch-flow__loading,
  .launch-flow__start,
  .launch-flow__brand,
  .launch-flow__disclaimer,
  .launch-flow__role-choice,
  .launch-flow__access-denied { transition: none; }

  .launch-flow__orbit-spin,
  .launch-flow__orbit-line,
  .launch-flow__ambient,
  .launch-flow::before,
  .launch-flow::after,
  .launch-flow--preparing .launch-flow__loading-progress span {
    animation: none;
  }
  .launch-flow--disclaimer .launch-flow__brand { animation: none; opacity: 0; filter: none; transform: none; text-shadow: 0 0 36px rgb(var(--theme-accent-rgb) / .24); }
  .launch-flow__disclaimer::before { transition: none; }
  .launch-flow--disclaimer-exiting .launch-flow__disclaimer { transition: none; }
  .launch-flow__disclaimer .launch-flow__title,
  .launch-flow__disclaimer .launch-flow__text { transition: none; filter: none; text-shadow: none; transform: none; }
  .launch-flow__start:hover { transform: none; }
  .launch-flow__loading-progress span { width: 100%; opacity: .35; }
}
/* VoiceNote launch direction selection. The scale is intentionally scoped to
   this approved screen; the rest of VoiceNote continues using its own rules. */
.launch-flow--section-choice {
  --selection-space-1: 4px;
  --selection-space-2: 8px;
  --selection-space-3: 12px;
  --selection-space-4: 16px;
  --selection-space-5: 24px;
  --selection-space-6: 32px;
  --selection-space-7: 48px;
  --selection-space-8: 64px;
  --selection-space-9: 80px;
  --selection-type-caption: 12px;
  --selection-type-support: 14px;
  --selection-type-body: 16px;
  --selection-type-card: 20px;
  --selection-type-section: 28px;
  --selection-type-title-mobile: clamp(28px, 7vw, 40px);
  --selection-type-title-desktop: 56px;
  --selection-radius-control: 8px;
  --selection-radius-small-card: 12px;
  --selection-radius-card: 16px;
  --selection-radius-container: 24px;
  --selection-safe-bottom: max(var(--voice-note-telegram-safe-area-bottom, 0px), env(safe-area-inset-bottom, 0px));

  box-sizing: border-box;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 max(48px, env(safe-area-inset-right, 0px)) calc(var(--selection-space-7) + var(--selection-safe-bottom)) max(48px, env(safe-area-inset-left, 0px));
  background: var(--app-bg);
  color: var(--app-text);
  cursor: default;
  scrollbar-color: var(--app-border) transparent;
}

.launch-flow--section-choice::before,
.launch-flow--section-choice::after {
  display: none;
}

.launch-flow--section-choice .launch-flow__ambient {
  display: block;
}

.launch-flow--section-choice .launch-flow__orbit-spin {
  display: none;
}

.launch-flow--section-choice .launch-flow__brand {
  position: absolute;
  top: var(--selection-space-5);
  left: max(48px, calc((100vw - 1280px) / 2));
  display: block;
  width: min(1280px, calc(100vw - 96px));
  padding: 0 0 20px;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-text);
  font-family: var(--font-heading, var(--font-ui, Manrope, Arial, sans-serif));
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1.15;
  text-align: left;
  text-indent: 0;
  text-transform: uppercase;
  text-shadow: none;
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
  pointer-events: none;
}

.launch-flow--section-choice .launch-flow__brand::before {
  display: none;
}

.launch-flow--section-choice .launch-flow__brand::after {
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--app-muted);
  content: "ACADEMY";
  font-family: var(--font-ui, Manrope, Arial, sans-serif);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .24em;
}

.launch-flow--section-choice .launch-flow__section-choice {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 1280px);
  max-height: none;
  margin: clamp(152px, 18vh, 200px) auto 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  opacity: 1;
  transform: none;
  transition: none;
}

.launch-flow--section-choice .launch-flow__section-choice .launch-flow__eyebrow,
.launch-flow--section-choice .launch-flow__section-choice .launch-flow__text {
  display: none;
}

.launch-flow--section-choice .launch-flow__section-choice .launch-flow__title {
  align-self: flex-start;
  max-width: 18ch;
  margin: 0;
  color: var(--app-text);
  font-family: var(--font-heading, var(--font-ui, Manrope, Arial, sans-serif));
  font-size: clamp(var(--selection-type-title-mobile), 4vw, var(--selection-type-title-desktop));
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-align: left;
  text-wrap: balance;
}

.launch-flow__section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--selection-space-4);
  width: 100%;
  margin-top: var(--selection-space-7);
  text-align: left;
}

.launch-flow__section-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
  min-width: 0;
  min-height: 264px;
  padding: var(--selection-space-5);
  border: 1px solid var(--app-border);
  border-radius: var(--selection-radius-card);
  background: var(--app-surface);
  color: var(--app-text);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
  touch-action: manipulation;
}

.launch-flow__section-card-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--selection-space-3);
  min-width: 0;
  color: var(--app-muted);
  font-family: var(--font-ui, Manrope, Arial, sans-serif);
  font-size: var(--selection-type-caption);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.launch-flow__section-card-meta span:first-child {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--selection-radius-control);
  background: color-mix(in srgb, var(--app-accent) 14%, var(--app-surface));
  color: var(--app-accent-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.launch-flow__section-card-meta span:last-child {
  min-width: 0;
  padding-top: var(--selection-space-2);
  overflow-wrap: anywhere;
  text-align: right;
}

.launch-flow__section-card-title {
  align-self: start;
  margin: var(--selection-space-5) 0 var(--selection-space-2);
  color: var(--app-text);
  font-family: var(--font-heading, var(--font-ui, Manrope, Arial, sans-serif));
  font-size: var(--selection-type-card);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.launch-flow__section-card-description {
  max-width: 36ch;
  color: var(--app-muted);
  font-family: var(--font-text, Manrope, Arial, sans-serif);
  font-size: var(--selection-type-support);
  line-height: 1.6;
}

.launch-flow__section-card-action {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--selection-space-3);
  min-height: 44px;
  min-width: 0;
  width: 100%;
  margin-top: var(--selection-space-5);
  padding-top: var(--selection-space-3);
  border-top: 1px solid var(--app-border);
  color: var(--app-text);
  font-family: var(--font-ui, Manrope, Arial, sans-serif);
  font-size: var(--selection-type-caption);
  font-weight: 700;
  line-height: 1.4;
}

.launch-flow__section-card-action-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.launch-flow__section-card-arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--app-accent-strong);
  transition: transform .18s ease;
}

.launch-flow__section-card:hover {
  border-color: var(--app-accent-strong);
  background: color-mix(in srgb, var(--app-surface) 92%, var(--app-accent) 8%);
}

.launch-flow__section-card:hover .launch-flow__section-card-arrow {
  transform: translate(2px, -2px);
}

.launch-flow__section-card:active {
  transform: translateY(1px);
}

.launch-flow__section-card:focus-visible {
  outline: 3px solid var(--app-accent-strong);
  outline-offset: 3px;
}

html[data-device-kind="tablet"] .launch-flow--section-choice {
  padding-right: max(32px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right, 0px));
  padding-left: max(32px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left, 0px));
}

html[data-device-kind="tablet"] .launch-flow--section-choice .launch-flow__brand {
  left: 50%;
  width: calc(100% - 64px);
  transform: translateX(-50%);
  text-align: center;
}

html[data-device-kind="tablet"] .launch-flow--section-choice .launch-flow__brand::after {
  left: 50%;
  transform: translateX(-50%);
}

html[data-device-kind="tablet"] .launch-flow--section-choice .launch-flow__section-choice {
  margin-top: clamp(136px, 16vh, 176px);
}

html[data-device-kind="tablet"] .launch-flow--section-choice .launch-flow__section-choice .launch-flow__title {
  align-self: center;
  max-width: 20ch;
  font-size: var(--selection-type-title-mobile);
  text-align: center;
}

html[data-device-kind="tablet"] .launch-flow__section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--selection-space-6);
}

html[data-device-kind="tablet"] .launch-flow__section-card:last-child {
  grid-column: 1 / -1;
  min-height: 220px;
}

html[data-device-kind="mobile"] .launch-flow--section-choice {
  padding: max(16px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px)) max(16px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right, 0px)) calc(24px + var(--selection-safe-bottom)) max(16px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left, 0px));
}

html[data-device-kind="mobile"] .launch-flow--section-choice .launch-flow__brand {
  top: max(16px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px));
  left: 50%;
  width: calc(100% - 32px);
  padding-bottom: 26px;
  font-size: 20px;
  transform: translateX(-50%);
  text-align: center;
}

html[data-device-kind="mobile"] .launch-flow--section-choice .launch-flow__brand::after {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

html[data-device-kind="mobile"] .launch-flow--section-choice .launch-flow__section-choice {
  width: min(100%, 560px);
  margin-top: calc(50px + clamp(24px, 5dvh, 40px));
}

html[data-device-kind="mobile"] .launch-flow--section-choice .launch-flow__section-choice .launch-flow__title {
  align-self: center;
  max-width: 20ch;
  font-size: 1.75rem;
  line-height: 1.16;
  text-align: center;
}

html[data-device-kind="mobile"] .launch-flow__section-grid {
  grid-template-columns: 1fr;
  gap: var(--selection-space-3);
  margin-top: 24px;
}

html[data-device-kind="mobile"] .launch-flow__section-card {
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  min-height: 132px;
  padding: var(--selection-space-4);
  border-radius: var(--selection-radius-small-card);
}

html[data-device-kind="mobile"] .launch-flow__section-card-meta {
  grid-column: 1;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  letter-spacing: .04em;
}

html[data-device-kind="mobile"] .launch-flow__section-card-meta span:first-child {
  width: 1.5rem;
  height: 1.5rem;
  font-size: .75rem;
}

html[data-device-kind="mobile"] .launch-flow__section-card-meta span:last-child {
  padding-top: 0;
  text-align: left;
}

html[data-device-kind="mobile"] .launch-flow__section-card-title {
  grid-column: 1;
  margin: 8px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

html[data-device-kind="mobile"] .launch-flow__section-card-description {
  grid-column: 1;
  margin-top: 6px;
  font-size: .875rem;
  line-height: 1.45;
}

html[data-device-kind="mobile"] .launch-flow__section-card-action {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

html[data-device-kind="mobile"] .launch-flow__section-card-action-label { display: none; }

@media (min-width: 641px) and (max-width: 920px) {
  html[data-device-kind="desktop"] .launch-flow__section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-device-kind="desktop"] .launch-flow__section-card:last-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .launch-flow--section-choice .launch-flow__section-grid {
    grid-template-columns: 1fr;
  }

  .launch-flow--section-choice {
    padding: max(16px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px)) max(16px, var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right, 0px)) calc(24px + var(--selection-safe-bottom)) max(16px, var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left, 0px));
  }

  .launch-flow--section-choice .launch-flow__brand {
    top: max(16px, var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px));
    left: 50%;
    width: calc(100% - 32px);
    padding-bottom: 26px;
    font-size: 20px;
    transform: translateX(-50%);
    text-align: center;
  }

  .launch-flow--section-choice .launch-flow__brand::after {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
  }

  .launch-flow--section-choice .launch-flow__section-choice {
    width: min(100%, 560px);
    margin-top: calc(50px + clamp(24px, 5dvh, 40px));
  }

  .launch-flow--section-choice .launch-flow__section-choice .launch-flow__title {
    align-self: center;
    max-width: 20ch;
    font-size: 1.75rem;
    line-height: 1.16;
    text-align: center;
  }

  .launch-flow__section-grid {
    grid-template-columns: 1fr;
    gap: var(--selection-space-3);
    margin-top: 24px;
  }

  .launch-flow__section-card {
    grid-template-columns: minmax(0, 1fr) 20px;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    min-height: 132px;
    padding: var(--selection-space-4);
    border-radius: var(--selection-radius-small-card);
  }

  .launch-flow__section-card-meta {
    grid-column: 1;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    letter-spacing: .04em;
  }

  .launch-flow__section-card-meta span:first-child {
    width: 1.5rem;
    height: 1.5rem;
    font-size: .75rem;
  }

  .launch-flow__section-card-meta span:last-child {
    padding-top: 0;
    text-align: left;
  }

  .launch-flow__section-card-title {
    grid-column: 1;
    margin: 8px 0 0;
    font-size: 1.25rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .launch-flow__section-card-description {
    grid-column: 1;
    margin-top: 6px;
    font-size: .875rem;
    line-height: 1.45;
  }

  .launch-flow__section-card-action {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .launch-flow__section-card-action-label { display: none; }
}

@media (max-height: 640px) {
  html[data-device-kind="mobile"] .launch-flow--section-choice .launch-flow__section-choice { margin-top: 74px; }
  html[data-device-kind="mobile"] .launch-flow__section-grid { gap: 8px; margin-top: 16px; }
  html[data-device-kind="mobile"] .launch-flow__section-card { min-height: 112px; padding: 12px; }
  html[data-device-kind="mobile"] .launch-flow__section-card-meta span:first-child { width: 1.25rem; height: 1.25rem; }
  html[data-device-kind="mobile"] .launch-flow__section-card-title { margin-top: 6px; font-size: 1.125rem; }
  html[data-device-kind="mobile"] .launch-flow__section-card-description { margin-top: 4px; font-size: .8125rem; }
}

@media (max-height: 640px) and (max-width: 640px) {
  .launch-flow--section-choice .launch-flow__section-choice { margin-top: 74px; }
  .launch-flow__section-grid { gap: 8px; margin-top: 16px; }
  .launch-flow__section-card { min-height: 112px; padding: 12px; }
  .launch-flow__section-card-meta span:first-child { width: 1.25rem; height: 1.25rem; }
  .launch-flow__section-card-title { margin-top: 6px; font-size: 1.125rem; }
  .launch-flow__section-card-description { margin-top: 4px; font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-flow__section-card,
  .launch-flow__section-card-arrow {
    transition: none;
  }

  .launch-flow__section-card:hover,
  .launch-flow__section-card:active {
    transform: none;
  }

  .launch-flow__section-card:hover .launch-flow__section-card-arrow {
    transform: none;
  }
}
