/* The invite uses its own always-dark palette in both site themes. */
.fly-channel-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #a284ba;
  border-radius: 24px;
  background: #20152f;
  color: #fff;
  color-scheme: dark;
  box-shadow: 0 35px 95px #110a23a6;
}
.fly-channel-dialog:not([open]) { display: none; }
.fly-channel-dialog::backdrop { background: #0e071bc4; backdrop-filter: blur(4px); }
.fly-channel-artwork {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 97% 32%, #674295 0, transparent 45%),
    linear-gradient(120deg, #21162e 8%, #332044 63%, #402555);
}
.fly-channel-artwork::before,
.fly-channel-artwork::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.fly-channel-artwork::before {
  inset: 0 0 0 34%;
  opacity: .5;
  background:
    repeating-radial-gradient(ellipse at 104% 12%, transparent 0 47px, #c8a8d84a 48px 49px, transparent 50px 73px),
    repeating-linear-gradient(116deg, transparent 0 34px, #f5d6ff14 35px 36px);
  mask-image: linear-gradient(90deg, transparent, black 40%);
}
.fly-channel-artwork::after {
  width: 37%;
  height: 17%;
  right: -4%;
  top: 52%;
  transform: rotate(-24deg);
  border-top: 2px dashed #d5bee96b;
  border-radius: 50%;
}
.fly-channel-story {
  display: grid;
  justify-items: start;
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  text-decoration: none;
}
.fly-channel-story:is(:hover,:focus) { color: #fff; text-decoration: none; }
.fly-channel-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 42px);
  color: #eee0f6;
  font-weight: 750;
}
.fly-channel-brand img { width: auto; max-width: 110px; height: 36px; }
.fly-channel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 73%;
  color: #d8ffac;
  font: 750 11px/1.4 var(--font);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fly-channel-kicker::before {
  content: "";
  flex: none;
  width: 23px;
  height: 3px;
  background: currentColor;
}
.fly-channel-title {
  max-width: 78%;
  margin-top: 12px;
  font: 850 clamp(32px, 5.3vw, 54px)/1.04 var(--font-head);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.fly-channel-copy {
  max-width: min(39ch, 72%);
  margin: 15px 0 24px;
  color: #e7dced;
  font: 500 16px/1.52 var(--font);
}
.fly-channel-join, .fly-channel-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 11px;
  background: #d2f8aa;
  color: #1d2b18;
  font: 750 15px/1.3 var(--font);
}
.fly-channel-join svg, .fly-channel-banner-action svg { flex: none; width: 18px; height: 18px; }
.fly-channel-handle {
  margin-top: 10px;
  color: #e1cce9;
  font: 550 12px/1.4 var(--font);
}
.fly-channel-plane {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  top: 25%;
  right: 6%;
  width: clamp(70px, 19%, 140px);
  height: auto;
  color: #e1c6ff;
  filter: drop-shadow(0 12px 15px #1d0c3380);
}
.fly-channel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ab8fc0;
  border-radius: 50%;
  background: #2a1d3b;
  color: #fff;
  font: 500 24px/1 var(--font);
  cursor: pointer;
}
.fly-channel-close svg { width: 20px; height: 20px; }
.fly-channel-close:hover { background: #4a325e; }
.fly-channel-close:focus-visible { outline: 3px solid #d2f8aa; outline-offset: 2px; }
.fly-channel-story:focus-visible { outline: 3px solid #d2f8aa; outline-offset: -5px; border-radius: inherit; }
.fly-channel-story:is(:hover,:focus-visible) .fly-channel-join,
.fly-channel-banner:is(:hover,:focus-visible) .fly-channel-banner-action { background: #e5ffcb; }

a.fly-channel-banner {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  max-width: 100%;
  padding: 10px clamp(12px, 2vw, 20px);
  margin: 10px 0 14px;
  border: 1px solid #745688;
  border-radius: 14px;
  background: linear-gradient(110deg, #2f1d42, #402852);
  color: #fff;
  text-align: left;
  text-decoration: none;
}
.fly-channel-banner:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.fly-channel-banner-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 11px;
  background: #57406d;
  color: #efdfff;
}
.fly-channel-banner-icon svg, svg.fly-channel-banner-icon { width: 38px; height: 38px; }
.fly-channel-banner-icon svg { max-width: 100%; max-height: 100%; }
.fly-channel-banner-text { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.fly-channel-banner-text strong { color: #fff; font: 750 17px/1.25 var(--font-head); }
.fly-channel-banner-text small { color: #e8dcee; font: 500 13px/1.5 var(--font); }
.fly-channel-banner-action { min-height: 40px; margin-left: auto; flex: none; padding: 8px 12px; font-size: 13px; }

@media (max-width: 560px) {
  .fly-channel-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 19px; }
  .fly-channel-story { padding: 23px; }
  .fly-channel-brand { margin-bottom: 28px; }
  .fly-channel-brand img { height: 30px; }
  .fly-channel-title { max-width: 100%; font-size: clamp(32px, 8vw, 42px); }
  .fly-channel-copy { max-width: 100%; margin: 12px 0 19px; font-size: 15px; }
  .fly-channel-plane { top: 25px; right: 72px; width: 46px; }
  .fly-channel-close { right: 9px; top: 9px; }
  .fly-channel-artwork::before { opacity: .34; }
  .fly-channel-artwork::after { display: none; }
  a.fly-channel-banner { gap: 9px; }
  .fly-channel-banner-text strong { font-size: 15px; }
  .fly-channel-banner-text small { font-size: 12px; }
  .fly-channel-banner-action { max-width: 39%; font-size: 12px; text-align: center; }
}
@media (max-width: 390px) {
  .fly-channel-banner-icon { display: none; }
}
@media (max-height: 440px) {
  .fly-channel-story { padding: 18px 24px; }
  .fly-channel-brand { margin-bottom: 10px; }
  .fly-channel-brand img { height: 25px; }
  .fly-channel-title { margin-top: 5px; font-size: 31px; }
  .fly-channel-copy { margin: 8px 0 12px; font-size: 14px; }
  .fly-channel-handle { margin-top: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .fly-channel-dialog[open] { animation: fly-channel-arrive .19s ease-out; }
  .fly-channel-join, .fly-channel-banner-action { transition: background-color .14s ease-out; }
  @keyframes fly-channel-arrive {
    from { opacity: .3; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .fly-channel-dialog, .fly-channel-dialog::backdrop, .fly-channel-banner { display: none !important; }
}
