/* One continuous brand backdrop, sized by the heading and featured card. */
main {
  --page-gutter: 42px;
  --page-top: 42px;
  padding: var(--page-top) var(--page-gutter) 0;
}
.discover-stage { position: relative; isolation: isolate; }
.discover-stage.is-discover::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--page-top));
  right: calc(-1 * var(--page-gutter));
  bottom: -38px;
  left: calc(-1 * var(--page-gutter));
  pointer-events: none;
  background:
    url('./assets/wildcard-backdrop.svg') center top / cover no-repeat,
    radial-gradient(ellipse at 8% 0%, #4e72ce 0%, transparent 52%),
    radial-gradient(ellipse at 100% 10%, #b459f2 0%, transparent 58%),
    linear-gradient(115deg, #466bce 0%, #6250cd 49%, #8b47d8 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000000e6 66%, #00000080 82%, #00000026 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, #000000e6 66%, #00000080 82%, #00000026 93%, transparent 100%);
}
.is-discover .page-header h1 { color: #fff; }
.is-discover .page-header p { color: #f3f2ff; }
.is-discover .surprise-button {
  color: #fff;
  background: #28215f;
  border-color: #ffffff30;
  box-shadow: 0 3px 12px #23105b1f;
}
.is-discover .surprise-button:hover { background: #342975; border-color: #ffffff60; }
.is-discover .mode-switch { background: #27205f33; border-color: #ffffff50; }
.is-discover .mode-switch button { color: #ffffffd9; }
.is-discover .mode-switch button:hover { background: #ffffff26; color: #fff; }
.is-discover .mode-switch button[aria-pressed="true"] { background: #fff; color: #5141a8; }
.is-discover .page-header button:focus-visible { outline-color: #fff; outline-offset: 4px; }
:root:not([data-theme="dark"]) .is-discover .hero {
  background: linear-gradient(130deg, #fffffff5 0%, #ffffffed 56%, #ffffffde 100%);
  border-color: #ffffffc4;
  box-shadow: 0 12px 45px #39207012;
}
[data-theme="dark"] .discover-stage.is-discover::before {
  background:
    url('./assets/wildcard-backdrop.svg') center top / cover no-repeat,
    radial-gradient(ellipse at 8% 0%, #365dab 0%, transparent 55%),
    radial-gradient(ellipse at 100% 10%, #8143b4 0%, transparent 58%),
    linear-gradient(115deg, #293a78 0%, #49398d 49%, #60338a 100%);
}
[data-theme="dark"] .is-discover .hero {
  background: linear-gradient(130deg, #202027f5 0%, #222129ed 56%, #27232fde 100%);
  border-color: #ffffff24;
  box-shadow: 0 12px 45px #00000025;
}
[data-theme="dark"] .is-discover .page-header p { color: #eeeaff; }
[data-theme="dark"] .is-discover .surprise-button { background: #f0edff; border-color: #f0edff; color: #302653; }
[data-theme="dark"] .is-discover .surprise-button:hover { background: #fff; border-color: #fff; }
[data-theme="dark"] .is-discover .mode-switch { background: #15132666; border-color: #ffffff40; }
[data-theme="dark"] .is-discover .mode-switch button { color: #ffffffc9; }
[data-theme="dark"] .is-discover .mode-switch button:hover { background: #ffffff1f; color: #fff; }
[data-theme="dark"] .is-discover .mode-switch button[aria-pressed="true"] { background: #eae4ff; color: #392c65; }

@media(min-width:1550px) {
  main { --page-gutter: 58px; --page-top: 48px; }
}
@media(max-width:1150px) {
  main { --page-gutter: 27px; --page-top: 32px; }
}
@media(max-width:700px) {
  main { --page-gutter: 20px; --page-top: 24px; }
  .discover-stage.is-discover::before { bottom: -29px; }
  .discover-stage.is-discover::before,
  [data-theme="dark"] .discover-stage.is-discover::before { background-position: 88% top, center, center, center; }
}
@media(max-width:440px) {
  main { --page-gutter: 16px; --page-top: 22px; }
}
