html.launch-open { overflow: hidden; }

.launch-offer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  font-family: var(--font);
  color: var(--ink);
}

.launch-offer[hidden] { display: none !important; }

.launch-offer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 18, 38, 0.62);
  cursor: pointer;
  animation: launch-fade 0.45s ease both;
}

.launch-offer-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 22, 48, 0.35);
  animation: launch-card 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.launch-offer-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.launch-offer-x:hover { background: rgba(255, 255, 255, 0.28); }
.launch-offer-x:focus-visible,
.launch-cta:focus-visible,
.launch-later:focus-visible,
.launch-never:focus-visible,
.launch-offer-backdrop:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.launch-offer-hero {
  position: relative;
  flex: none;
  overflow: hidden;
  height: 196px;
  background:
    radial-gradient(120px 80px at 18% 20%, rgba(228, 197, 106, 0.45), transparent 70%),
    radial-gradient(180px 120px at 88% 0%, rgba(90, 140, 220, 0.35), transparent 70%),
    linear-gradient(160deg, #143e86 0%, #0b2f6b 58%, #08244f 100%);
}

.launch-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(228, 197, 106, 0.55);
  filter: blur(0.2px);
  animation: launch-float 4.8s ease-in-out infinite;
}

.launch-orb-a { width: 10px; height: 10px; left: 18%; top: 28%; }
.launch-orb-b { width: 7px; height: 7px; right: 16%; top: 22%; animation-delay: -1.4s; background: #fff; }
.launch-orb-c { width: 14px; height: 14px; right: 28%; bottom: 36%; animation-delay: -2.6s; opacity: 0.7; }

.launch-meter {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 148px;
  height: 148px;
  transform: translateX(-50%);
}

.launch-ring {
  width: 148px;
  height: 148px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.launch-ring-track,
.launch-ring-value {
  fill: none;
  stroke-width: 8;
}

.launch-ring-track { stroke: rgba(255, 255, 255, 0.18); }

.launch-ring-value {
  stroke: #e4c56a;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.launch-offer.is-wait .launch-ring-value {
  transform-box: fill-box;
  transform-origin: center;
  animation: launch-spin 1.1s linear infinite;
  stroke-dasharray: 70 256.73;
  stroke-dashoffset: 0;
  transition: none;
}

.launch-meter-num {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(8, 24, 58, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}

.launch-meter-num strong {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.launch-meter-num span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.launch-offer.is-tick .launch-meter-num strong {
  animation: launch-tick 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.launch-offer-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 26px 8px;
  overflow: auto;
  text-align: center;
}

.launch-offer-actions {
  flex: none;
  padding: 8px 26px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.launch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: launch-pulse 1.8s ease-out infinite;
}

.launch-offer-body h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.launch-pct {
  display: inline-block;
  color: #8a6a12;
  animation: launch-pct 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.launch-offer-body p {
  margin: 10px auto 0;
  max-width: 36em;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

.launch-seats {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 18px auto 0;
  max-width: 320px;
}

.launch-seat {
  height: 8px;
  border-radius: 999px;
  background: #e7ebf2;
  transform: scaleX(0.4);
  opacity: 0.45;
}

.launch-seat.is-in {
  background: linear-gradient(90deg, #c6a046, #e4c56a);
  opacity: 1;
  animation: launch-seat 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.launch-remain {
  min-height: 1.4em;
  font-weight: 700;
  color: var(--navy) !important;
}

.launch-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.launch-cta i {
  transition: transform 0.25s ease;
}

.launch-cta:hover { background: var(--navy-2); color: #fff; }
.launch-cta:hover i { transform: translateX(4px); }

.launch-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(228, 197, 106, 0.45) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: launch-sheen 2.8s 1s ease-in-out infinite;
}

.launch-choices {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
}

.launch-later,
.launch-never {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  padding: 0;
}

.launch-never { font-weight: 600; }
.launch-later:hover,
.launch-never:hover { color: var(--ink); }

@keyframes launch-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes launch-card {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes launch-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes launch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes launch-pct {
  from { opacity: 0; transform: translateY(8px) scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes launch-seat {
  from { transform: scaleX(0.35); opacity: 0.2; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes launch-tick {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes launch-sheen {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes launch-spin {
  to { transform: rotate(360deg); }
}

html[data-theme="dark"] .launch-offer-card {
  background: #121a2b;
  color: #e8edf5;
}

html[data-theme="dark"] .launch-offer-actions {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0), #121a2b 28%);
}

html[data-theme="dark"] .launch-offer-body p { color: #a8b3c7; }
html[data-theme="dark"] .launch-kicker,
html[data-theme="dark"] .launch-remain { color: #e4c56a !important; }
html[data-theme="dark"] .launch-pct { color: #e4c56a; }
html[data-theme="dark"] .launch-seat { background: #2a364c; }
html[data-theme="dark"] .launch-later,
html[data-theme="dark"] .launch-never { color: #a8b3c7; }
html[data-theme="dark"] .launch-later:hover,
html[data-theme="dark"] .launch-never:hover { color: #fff; }
html[data-theme="dark"] .launch-offer-body h2 { color: #e8edf5; }

@media (max-width: 480px), (max-height: 640px) {
  .launch-offer-hero { height: 148px; }
  .launch-meter,
  .launch-ring { width: 112px; height: 112px; }
  .launch-meter { top: 18px; }
  .launch-meter-num { inset: 14px; }
  .launch-meter-num strong { font-size: 1.7rem; }
  .launch-offer-body { padding: 14px 18px 4px; }
  .launch-offer-body h2 { font-size: 1.35rem; }
  .launch-offer-body p { font-size: 0.88rem; }
  .launch-seats { display: none; }
  .launch-offer-actions { padding: 6px 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-offer-backdrop,
  .launch-offer-card,
  .launch-orb,
  .launch-live,
  .launch-pct,
  .launch-cta::after,
  .launch-seat.is-in,
  .launch-offer.is-tick .launch-meter-num strong,
  .launch-offer.is-wait .launch-ring-value {
    animation: none;
  }

  .launch-ring-value { transition: none; }
  .launch-seat { transform: none; opacity: 1; }
}
