.checkout-completion-phase { display: none; }
.checkout-resolution { display: contents; }
#checkout-intro.is-complete {
  --completion-gutter: 32px;
  --completion-matte: #232026;
  width: 100%; height: 100dvh; max-width: none; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  overflow: auto; overscroll-behavior: contain;
  background: var(--checkout-night); color: var(--paper);
}
#checkout-intro.is-complete[open] { display: flex; flex-direction: column; }
#checkout-intro.is-complete::backdrop { background: var(--checkout-night); }
#checkout-intro.is-complete .checkout-intro-head {
  position: sticky; top: 0; z-index: 2; flex: none; gap: 8px;
  padding: max(12px,env(safe-area-inset-top)) max(var(--completion-gutter),env(safe-area-inset-right)) 12px max(var(--completion-gutter),env(safe-area-inset-left));
  background: var(--checkout-night); color: var(--silver);
}
#checkout-intro.is-complete .checkout-art-motion {
  min-height: 44px; min-width: 78px; margin-left: auto; padding: 8px;
  font: 12px/1 var(--mono); color: var(--silver); white-space: nowrap; text-decoration: none;
}
#checkout-intro.is-complete .checkout-intro-close { flex: none; }
#checkout-intro.is-complete .checkout-flight-stage,
#checkout-intro.is-complete .checkout-flight-status { display: none; }
#checkout-intro.is-complete .checkout-completion-stage {
  position: relative; display: grid; place-items: center;
  flex: 1 0 auto;
  width: calc(100% - var(--completion-gutter) * 2); max-width: 720px;
  min-height: 240px; max-height: 560px;
  margin: 12px auto 20px; padding: 12px;
  overflow: hidden; background: var(--completion-matte);
}
.checkout-purchase-flight { width: min(440px,calc(100dvh - 320px),100%); aspect-ratio: 1; }
.checkout-purchase-image { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
#checkout-intro.is-complete .checkout-frame-top,
#checkout-intro.is-complete .checkout-frame-bottom { z-index: 1; color: var(--checkout-rule); pointer-events: none; }
#checkout-intro.is-complete .checkout-resolution {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 20px;
  flex: none; width: calc(100% - var(--completion-gutter) * 2); max-width: 720px;
  margin: 0 auto; padding-bottom: max(32px,env(safe-area-inset-bottom));
}
#checkout-intro.is-complete .checkout-intro-copy { margin: 0; text-align: left; }
#checkout-intro.is-complete .checkout-completion-phase { display: block; margin-bottom: 20px; font: 12px/1.5 var(--mono); color: var(--silver); }
#checkout-intro.is-complete .checkout-intro-copy h2 { font: 600 28px/1.2 var(--sans); letter-spacing: -.04em; }
#checkout-intro.is-complete .checkout-intro-copy p { margin-top: 12px; font: 14px/1.6 var(--sans); color: var(--silver); }
#checkout-intro.is-complete .checkout-intro-actions { grid-row: 2; margin: 0; gap: 24px; align-items: center; }
#checkout-intro.is-complete .checkout-intro-actions .pill { min-height: 48px; padding: 12px 24px; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: none; font: 13px/1.5 var(--sans); }
#checkout-intro.is-complete .checkout-intro-actions .text-button { min-height: 44px; color: var(--paper); }
#checkout-intro.is-complete .checkout-order-summary { grid-row: 3; width: 100%; max-width: 640px; margin: 0; padding-top: 20px; border-top: 1px solid var(--checkout-rule); font: 13px/1.5 var(--sans); }
#checkout-intro.is-complete .checkout-receipt-id { margin: 0 0 12px; color: var(--silver); overflow-wrap: anywhere; }
#checkout-intro.is-complete .checkout-intro-status { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#checkout-intro.is-complete:is(.is-art-paused,.is-art-hidden) .checkout-completion-stage * { animation-play-state: paused !important; }
@media (max-width: 700px) {
  #checkout-intro.is-complete { --completion-gutter: 20px; }
  .checkout-purchase-flight { width: min(288px,100%); }
  #checkout-intro.is-complete .checkout-completion-stage { min-height: 288px; max-height: 480px; }
}
@media (max-height: 650px) {
  #checkout-intro.is-complete .checkout-completion-stage { min-height: 200px; max-height: 280px; padding: 8px; }
  .checkout-purchase-flight { width: 240px; max-width: 100%; }
  #checkout-intro.is-complete .checkout-resolution { gap: 16px; padding-bottom: max(20px,env(safe-area-inset-bottom)); }
  #checkout-intro.is-complete .checkout-completion-phase { margin-bottom: 12px; }
}
@media (max-height: 520px) {
  #checkout-intro.is-complete .checkout-completion-stage { min-height: 180px; max-height: 200px; margin-block: 4px 12px; padding: 12px; }
  .checkout-purchase-flight { width: 176px; }
  #checkout-intro.is-complete .checkout-intro-copy h2 { font-size: 28px; }
  #checkout-intro.is-complete .checkout-intro-copy p { margin-top: 8px; }
  #checkout-intro.is-complete .checkout-completion-phase { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #checkout-intro.is-complete .checkout-completion-stage * { animation: none !important; }
  #checkout-intro.is-complete .checkout-art-motion { display: none; }
}



.checkout-landing-world { position: relative; --planet-rock: #aaa39b; --planet-light: #d6cbbb; --planet-shadow: #746f70; --planet-crater: #8b8380; }
.checkout-landing-craft { position: absolute; inset: 0; }
.checkout-landing-craft .checkout-purchase-image { width: 88%; height: auto; margin-left: 6%; }
.checkout-planet { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; stroke: none; stroke-width: 0; pointer-events: none; }
.checkout-planet-surface { transform-origin: 360px 1016px; }
.checkout-planet-dust { opacity: 0; }
#checkout-intro.is-complete[open] .checkout-landing-craft { animation: checkout-planet-descent 3600ms cubic-bezier(.3,0,.4,1) both; }
#checkout-intro.is-complete[open] .checkout-planet-surface { animation: checkout-planet-compress 3600ms linear both; }
#checkout-intro.is-complete[open] .checkout-planet-dust--left { animation: checkout-planet-dust-left 3600ms linear both; }
#checkout-intro.is-complete[open] .checkout-planet-dust--right { animation: checkout-planet-dust-right 3600ms linear both; }
@keyframes checkout-planet-descent {
  0% { transform: translate(3%,-44%); opacity: 0; }
  8% { opacity: 1; }
  52% { transform: translate(0,-7%); }
  74% { transform: none; }
  79% { transform: translateY(.5%); }
  88%,100% { transform: none; opacity: 1; }
}
@keyframes checkout-planet-compress {
  0%,74%,88%,100% { transform: scaleY(1); }
  79% { transform: scaleY(.98); }
}
@keyframes checkout-planet-dust-left {
  0%,73% { opacity: 0; transform: translate(0,0); }
  76% { opacity: .8; transform: translate(-8px,-4px); }
  96%,100% { opacity: 0; transform: translate(-64px,-32px); }
}
@keyframes checkout-planet-dust-right {
  0%,73% { opacity: 0; transform: translate(0,0); }
  76% { opacity: .8; transform: translate(8px,-4px); }
  96%,100% { opacity: 0; transform: translate(64px,-32px); }
}
