:root {
  --launch-height: 38px;
  --launch-ink: #25272c;
  --launch-yolk: #ffd21f;
  --launch-shell: #fffdf7;
}

body > #root { padding-block-start: var(--launch-height); }
body #root .topbar { margin-block-start: var(--launch-height); }

.launch-ribbon {
  position: fixed;
  inset: 0 0 auto;
  z-index: 51;
  height: var(--launch-height);
  background-color: var(--launch-yolk);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='38' viewBox='0 0 160 38'%3E%3Cpath d='M8 10l5 3m78 9l4-7m48 11l7 3' stroke='%2325272c' stroke-opacity='.36' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M30 28l6-7m28-11l5 4m47-7l5 2' stroke='%23fffdf7' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='50' cy='31' r='2' fill='%23b74038'/%3E%3Ccircle cx='132' cy='14' r='2' fill='%23b74038'/%3E%3C/svg%3E");
  color: var(--launch-ink);
  display: grid;
  justify-items: center;
}

.launch-ribbon a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-inline: .85rem;
  background: var(--launch-yolk);
  color: inherit;
  font-size: .82rem;
  line-height: 1.1;
  text-decoration: none;
}

.launch-ribbon a:hover strong { text-decoration: underline; }
.launch-ribbon__label {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .19rem .44rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.launch-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #25272c30;
  border-radius: 24px;
  background: var(--launch-shell);
  color: var(--launch-ink);
  box-shadow: 0 16px 50px #25272c38;
}

.launch-popup[open] { animation: launch-arrive 340ms ease-out both; }
.launch-popup::backdrop { background: #25272c87; backdrop-filter: blur(4px); }

.launch-popup__art {
  position: relative;
  height: 130px;
  overflow: hidden;
  background: radial-gradient(circle, #fff0a4, var(--launch-yolk) 65%);
}

.launch-egg {
  position: absolute;
  inset: 36px auto auto 50%;
  width: 72px;
  height: 55px;
  border: 2px solid var(--launch-ink);
  border-radius: 56% 44% 58% 42% / 49% 53% 47% 51%;
  background: var(--launch-shell);
  transform: translateX(-50%) rotate(-14deg) scale(1.35);
  box-shadow: 3px 3px 0 var(--launch-ink);
}

.launch-egg::after {
  position: absolute;
  inset: 10px auto auto 20px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #ffad22;
  box-shadow: inset -3px -3px #eb8d1c;
  content: '';
}

.launch-confetti {
  position: absolute;
  inset: 64px auto auto 50%;
  width: 5px;
  height: 13px;
  border-radius: 2px;
  background: var(--sprinkle, var(--launch-ink));
  transform: translate(var(--drift), var(--rise)) rotate(var(--tilt));
  animation: launch-sprinkle 700ms cubic-bezier(.15, .75, .25, 1) both;
}

.launch-confetti:nth-of-type(2) { --drift: -119px; --rise: 17px; --tilt: -60deg; --sprinkle: #b74038; }
.launch-confetti:nth-of-type(3) { --drift: -92px; --rise: -34px; --tilt: -30deg; }
.launch-confetti:nth-of-type(4) { --drift: -64px; --rise: 21px; --tilt: 38deg; --sprinkle: var(--launch-shell); }
.launch-confetti:nth-of-type(5) { --drift: 62px; --rise: -30px; --tilt: 38deg; --sprinkle: #b74038; }
.launch-confetti:nth-of-type(6) { --drift: 80px; --rise: 20px; --tilt: -34deg; }
.launch-confetti:nth-of-type(7) { --drift: 116px; --rise: -13px; --tilt: 64deg; --sprinkle: var(--launch-shell); }

.launch-popup__close {
  position: absolute;
  inset: 8px 8px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--launch-shell);
  color: var(--launch-ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.launch-popup__close:hover { background: #f4e9ce; }
.launch-popup__body { padding: clamp(20px, 6vw, 32px); }
.launch-popup__body .launch-popup__eyebrow {
  margin: 0 0 5px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.launch-popup__body h2 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.1;
}

.launch-popup__body p { margin: 8px 0 14px; font-size: .875rem; line-height: 1.5; }
.launch-popup__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--launch-ink);
  color: var(--launch-shell);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.launch-popup__link:hover { background: #45474c; }
.launch-popup__browse {
  min-height: 44px;
  padding-inline: 12px;
  color: inherit;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.product-materials {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border-inline-start: 3px solid var(--launch-yolk);
  border-radius: 0 .8rem .8rem 0;
  background: #fffdf7a6;
  font-size: .875rem;
  line-height: 1.4;
}

.product-materials li { display: flex; gap: .55rem; align-items: baseline; }
.product-materials li::before { content: ''; flex: 0 0 .45rem; height: .45rem; border-radius: 50%; background: var(--launch-yolk); }

.launch-popup :focus-visible,
.launch-ribbon a:focus-visible { outline: 2px solid var(--launch-ink); outline-offset: 3px; }
.launch-ribbon a:focus-visible { outline-offset: -3px; }

@keyframes launch-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes launch-sprinkle {
  from { opacity: 0; transform: translate(0, 15px) rotate(0); }
  to { opacity: 1; transform: translate(var(--drift), var(--rise)) rotate(var(--tilt)); }
}

@media (max-width: 390px) {
  .launch-ribbon__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-popup[open], .launch-confetti { animation: none; }
}
