/* The thank-you sheet that opens when CROSSFADE is downloaded (cf-thanks.js), in the site's liquid glass: a frosted
 * pane over the page, a lit top edge and rim, glass tiles inside, and the app's waveform floating along the top.
 * It follows the device's light or dark setting like the rest of the site. Sized to fit without scrolling; on a
 * short screen it scrolls with no scroll bar showing. The only motion is one entrance, none under reduced motion. */

html.cft-lock { overflow: hidden; }

.cft {
  --t-pane: rgba(30, 30, 34, .58);
  --t-blur: saturate(190%) blur(34px) brightness(1.05);
  --t-rim: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 18px 30px -22px rgba(255, 255, 255, .22);
  --t-edge: linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .12) 78%, rgba(255, 255, 255, .45) 100%);
  --t-sheen: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%);
  --t-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .25);
  --t-tile: rgba(255, 255, 255, .055);
  --t-tile-rim: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .08);
  --t-well: rgba(0, 0, 0, .22);
  --t-text: #f5f5f7; --t-dim: #a1a1a6; --t-blue: #0a84ff; --t-link: #4da3ff; --t-green: #30d158;
  --t-btn: rgba(255, 255, 255, .1); --t-btn-hover: rgba(255, 255, 255, .16);
  --t-back: rgba(0, 0, 0, .32);
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; color: var(--t-text);
  width: min(700px, calc(100vw - 32px)); max-width: none; max-height: none; height: fit-content; overflow: visible;
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: normal; text-align: left;
}
@media (prefers-color-scheme: light) {
  .cft {
    --t-pane: rgba(255, 255, 255, .6);
    --t-blur: saturate(180%) blur(34px);
    --t-rim: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .04), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 18px 30px -22px #fff;
    --t-edge: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, .35) 30%, rgba(255, 255, 255, .1) 55%, rgba(255, 255, 255, .4) 78%, #fff 100%);
    --t-sheen: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, 0) 62%);
    --t-shadow: 0 30px 90px rgba(30, 40, 90, .22), 0 8px 24px rgba(30, 40, 90, .1);
    --t-tile: rgba(255, 255, 255, .55);
    --t-tile-rim: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .7), 0 2px 10px rgba(30, 40, 90, .05);
    --t-well: rgba(255, 255, 255, .7);
    --t-text: #1d1d1f; --t-dim: #6e6e73; --t-blue: #0071e3; --t-link: #0066cc; --t-green: #248a3d;
    --t-btn: rgba(0, 0, 0, .06); --t-btn-hover: rgba(0, 0, 0, .1);
    --t-back: rgba(235, 237, 245, .3);
  }
}
.cft:not([open]) { display: none; }
.cft::backdrop { background: rgba(0, 0, 0, .32); }
@media (prefers-color-scheme: light) { .cft::backdrop { background: rgba(235, 237, 245, .3); } }
.cft *, .cft *::before, .cft *::after { box-sizing: border-box; }

/* the pane */
.cft-sheet {
  position: relative; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden auto; overscroll-behavior: contain;
  border-radius: 32px; background: var(--t-sheen), var(--t-pane);
  -webkit-backdrop-filter: var(--t-blur); backdrop-filter: var(--t-blur);
  box-shadow: var(--t-rim), var(--t-shadow);
  scrollbar-width: none;
}
.cft-sheet::-webkit-scrollbar { display: none; }
/* the lit edge round the glass */
.cft-sheet::before {
  content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--t-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cft-sheet { background: #1c1c1e; }
  @media (prefers-color-scheme: light) { .cft-sheet { background: #f5f5f7; } }
}
@media (prefers-reduced-transparency: reduce) {
  .cft-sheet { background: #1c1c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
  @media (prefers-color-scheme: light) { .cft-sheet { background: #f5f5f7; } }
}

/* the app's waveform at the drop of the Neon Drive demo, floating on the glass */
.cft-art {
  position: relative; height: 100px; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 45%, transparent 100%); mask: linear-gradient(180deg, #000 45%, transparent 100%);
}
.cft-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: .95; }

.cft-badge { position: relative; z-index: 1; width: 76px; height: 76px; margin: -46px auto 0; }
.cft-badge img {
  display: block; width: 76px; height: 76px; border-radius: 19px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 12px 30px rgba(0, 0, 0, .35), 0 0 40px rgba(92, 208, 255, .22);
}
.cft-tick {
  position: absolute; right: -7px; bottom: -7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #30d158; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 3px rgba(255, 255, 255, .25), 0 4px 12px rgba(48, 209, 88, .45);
}
.cft-tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }

/* glass buttons, as on the rest of the site */
.cft-x {
  position: absolute; top: 16px; right: 16px; z-index: 6; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--t-text); background: var(--t-sheen), var(--t-btn);
  -webkit-backdrop-filter: saturate(190%) blur(12px); backdrop-filter: saturate(190%) blur(12px); box-shadow: var(--t-tile-rim);
}
.cft-x:hover { background: var(--t-sheen), var(--t-btn-hover); }
.cft-x svg { width: 12px; height: 12px; }

.cft-body { padding: 10px 32px 18px; text-align: center; }
.cft-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--t-green); letter-spacing: .01em; }
.cft-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .2); }
.cft-title { margin: 0; font-size: clamp(24px, 4.2vw, 31px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; color: var(--t-text); }
.cft-lede { margin: 8px auto 0; max-width: 540px; font-size: 15px; line-height: 1.5; color: var(--t-dim); }

/* glass tiles inside the pane */
.cft-share, .cft-steps li { background: var(--t-sheen), var(--t-tile); box-shadow: var(--t-tile-rim); }
.cft-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--t-dim); }
.cft-share { margin-top: 18px; padding: 16px 16px 14px; border-radius: 24px; }
.cft-share .cft-h { color: var(--t-text); font-size: 16px; letter-spacing: -.01em; }

.cft-native {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 0 0 14px; padding: 0 18px;
  border: 0; border-radius: 980px; cursor: pointer; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  background: linear-gradient(180deg, #2b8cff 0%, #0071e3 55%, #0068d6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 113, 227, .32);
}
.cft-native[hidden] { display: none; }
.cft-native svg { width: 20px; height: 20px; }
.cft:not(.cft--phone) .cft-native { display: none; } /* computers: the buttons below do it */

.cft-nets { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cft-net {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 2px 0; border: 0; background: none; cursor: pointer;
  color: var(--t-dim); text-decoration: none; font: inherit;
}
.cft-ico {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 6px 16px rgba(0, 0, 0, .22);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .2s ease;
}
.cft-ico::after { /* the glassy shine on each button */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, 0) 60%);
}
.cft-ico svg { position: relative; width: 23px; height: 23px; }
.cft-lbl { font-size: 11.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.cft-net:hover .cft-ico { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); }
.cft-net:hover .cft-lbl { color: var(--t-text); }
.cft-net:focus-visible { outline: none; }
.cft-net:focus-visible .cft-ico { box-shadow: 0 0 0 3px var(--t-blue); }
.cft-net--whatsapp .cft-ico { background: #25d366; }
.cft-net--facebook .cft-ico { background: #1877f2; }
.cft-net--x .cft-ico { background: #111; }
.cft-net--reddit .cft-ico { background: #ff4500; }
.cft-net--instagram .cft-ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.cft-net--tiktok .cft-ico { background: #111; }
.cft-net--copy .cft-ico { background: #636366; }
.cft-net.is-done .cft-ico { background: #30d158; }
.cft-net.is-done .cft-lbl { color: var(--t-green); }

.cft-msg {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; text-align: left;
  background: var(--t-well); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.cft-msg-text { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.45; color: var(--t-text); }
.cft-url { color: var(--t-link); }
.cft-msg-copy {
  flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 980px; cursor: pointer; white-space: nowrap;
  background: var(--t-sheen), var(--t-btn); color: var(--t-text); font-family: inherit; font-size: 13px; font-weight: 600; box-shadow: var(--t-tile-rim);
}
.cft-msg-copy:hover { background: var(--t-sheen), var(--t-btn-hover); }
.cft-msg-copy.is-done { background: #30d158; color: #fff; }

/* a note that floats over the bottom of the pane for a few seconds */
.cft-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 7; width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 10px 16px;
  border-radius: 980px; color: var(--t-text); font-size: 13.5px; font-weight: 500; line-height: 1.35; text-align: center;
  background: var(--t-sheen), var(--t-pane); -webkit-backdrop-filter: var(--t-blur); backdrop-filter: var(--t-blur);
  box-shadow: var(--t-rim), 0 10px 30px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s; pointer-events: none;
}
.cft-toast::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #30d158; vertical-align: 1px; }
.cft-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .25s ease, visibility 0s; }

.cft-next { margin-top: 18px; text-align: left; }
.cft-next .cft-h { text-align: center; }
.cft-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: cft; }
.cft-steps li { position: relative; padding: 12px 12px 12px 46px; border-radius: 18px; counter-increment: cft; }
.cft-steps li::before {
  content: counter(cft); position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(180deg, #2b8cff, #0071e3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.cft-steps b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--t-text); }
.cft-steps span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--t-dim); }

.cft-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.cft-pill, .cft-done {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 980px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cft-pill { background: var(--t-sheen), var(--t-btn); color: var(--t-text) !important; box-shadow: var(--t-tile-rim); }
.cft-pill:hover { background: var(--t-sheen), var(--t-btn-hover); }
.cft-pill svg { width: 18px; height: 18px; }
.cft-pill--discord { background: linear-gradient(180deg, #6d78f7 0%, #5865f2 55%, #4f5ae6 100%); color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 18px rgba(88, 101, 242, .3); }
.cft-pill--discord:hover { background: linear-gradient(180deg, #5f6af0 0%, #4752c4 100%); }
.cft-pill--donate { background: linear-gradient(180deg, #ff6f8e 0%, #ff375f 55%, #e8264b 100%); color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(255, 55, 95, .32); }
.cft-pill--donate:hover { background: linear-gradient(180deg, #ff5e80 0%, #f02a52 100%); }
.cft-pill:not(.cft-pill--discord):not(.cft-pill--donate) svg { color: #ffb400; }
.cft-done {
  min-width: 110px; justify-content: center; color: #fff;
  background: linear-gradient(180deg, #2b8cff 0%, #0071e3 55%, #0068d6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 113, 227, .32);
}
.cft-done:hover { filter: brightness(1.08); }
.cft :is(.cft-x, .cft-native, .cft-msg-copy, .cft-pill, .cft-done, .cft-again a):focus-visible { outline: 2px solid var(--t-blue); outline-offset: 3px; }
.cft-again { margin: 12px 0 0; font-size: 12.5px; color: var(--t-dim); }
.cft-again a { color: var(--t-link); text-decoration: none; }
.cft-again a:hover { text-decoration: underline; }

/* the one entrance */
@media (prefers-reduced-motion: no-preference) {
  .cft[open]::backdrop { opacity: 0; transition: opacity .3s ease; }
  .cft.is-in::backdrop { opacity: 1; }
  .cft[open]:not(.is-in) .cft-sheet { opacity: 0; transform: translateY(26px) scale(.97); }
  .cft.is-in .cft-sheet { transition: opacity .35s ease, transform .55s cubic-bezier(.2, .9, .25, 1); }
  .cft[open]:not(.is-in) .cft-badge img { transform: scale(.82); opacity: 0; }
  .cft.is-in .cft-badge img { transition: transform .6s cubic-bezier(.3, 1.5, .5, 1) .15s, opacity .3s ease .15s; }
  .cft[open]:not(.is-in) .cft-tick { transform: scale(0); }
  .cft.is-in .cft-tick { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .45s; }
  .cft[open]:not(.is-in) .cft-tick svg { stroke-dashoffset: 20; }
  .cft.is-in .cft-tick svg { transition: stroke-dashoffset .4s ease .7s; }
  .cft[open]:not(.is-in) .cft-body > * { opacity: 0; transform: translateY(10px); }
  .cft.is-in .cft-body > * { transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1); }
  .cft.is-in .cft-body > :nth-child(2) { transition-delay: .06s; }
  .cft.is-in .cft-body > :nth-child(3) { transition-delay: .1s; }
  .cft.is-in .cft-body > :nth-child(4) { transition-delay: .16s; }
  .cft.is-in .cft-body > :nth-child(5) { transition-delay: .22s; }
  .cft.is-in .cft-body > :nth-child(n+6) { transition-delay: .28s; }
}

/* phones: a glass sheet up from the bottom */
@media (max-width: 640px) {
  .cft { width: 100vw; inset: auto 0 0 0; margin: 0; }
  .cft-sheet { max-height: 94vh; max-height: 94dvh; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .cft-art { height: 92px; }
  .cft-badge, .cft-badge img { width: 68px; height: 68px; }
  .cft-badge { margin-top: -40px; }
  .cft-badge img { border-radius: 17px; }
  .cft-body { padding: 10px 16px 20px; }
  .cft-share { padding: 14px 10px 12px; }
  .cft-nets { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .cft-msg { flex-direction: column; align-items: stretch; }
  .cft-msg-copy { align-self: flex-start; }
  .cft-steps { grid-template-columns: 1fr; }
  .cft-foot { flex-direction: column; align-items: stretch; }
  .cft-pill, .cft-done { justify-content: center; }
  @media (prefers-reduced-motion: no-preference) {
    .cft[open]:not(.is-in) .cft-sheet { transform: translateY(60px); }
  }
}
