@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/quicksand-latin.woff2") format("woff2");
}

:root {
  --bg-0: #070018;
  --bg-1: #1c0a4a;
  --bg-2: #2d0a5c;
  --magenta: #e91e8c;
  --cyan: #2de2e6;
  --text: #ffffff;
  --muted: #e2d6f7;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(18px) saturate(140%);
  --error: #ff8fb8;
  --focus: #2de2e6;
  --radius: 12px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: linear-gradient(
    135deg,
    var(--bg-0) 0%,
    var(--bg-2) 25%,
    #4a0f6e 45%,
    var(--bg-1) 65%,
    #0d1a5c 85%,
    var(--bg-0) 100%
  );
  background-size: 300% 300%;
  background-attachment: fixed;
  animation: gradient-shift 20s ease-in-out infinite;
}

body {
  position: relative;
  font-family: "Quicksand", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

html::before,
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  top: -10vmax;
  right: -8vmax;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(circle, var(--magenta), transparent 66%);
  opacity: 0.7;
  animation: drift 16s ease-in-out infinite alternate;
}

html::before {
  bottom: -12vmax;
  left: -10vmax;
  width: 54vmax;
  height: 54vmax;
  background: radial-gradient(circle, var(--cyan), transparent 66%);
  opacity: 0.45;
  animation: drift 21s ease-in-out infinite alternate-reverse;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(48px) saturate(150%);
  backdrop-filter: blur(48px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.banner,
.page,
.credit {
  position: relative;
  z-index: 2;
}

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1rem 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}

.credit__logo {
  display: block;
  height: 40px;
  width: auto;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem 0.5rem;
}

.banner__logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(233, 30, 140, 0.35));
}

.page {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1.5rem 0.5rem;
}

.page--wide {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  width: min(400px, 100%);
  padding: 0.5rem 0.75rem 0.5rem;
}

.card--wide {
  width: 100%;
}

input,
button,
summary {
  font-family: inherit;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cyan);
}

h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
}

label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.privacy {
  margin-top: 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.privacy summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.privacy__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.privacy summary::-webkit-details-marker {
  display: none;
}

.privacy summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 0.75rem;
  font-size: 1.1rem;
  color: var(--cyan);
}

.privacy[open] summary::after {
  content: "\2212";
}

.privacy summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}

.privacy__body {
  max-height: 14rem;
  overflow-y: auto;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  overscroll-behavior: contain;
}

.privacy__body:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.privacy__body h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.privacy__body p {
  margin: 0.5rem 0 0;
}

.privacy__item {
  position: relative;
  padding-left: 1rem;
}

.privacy__item::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--cyan);
}

.privacy__item--sub {
  margin-left: 1rem;
}

.privacy__item--sub::before {
  background: var(--magenta);
}

label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
}

label.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--magenta);
  cursor: pointer;
}

label.check input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field-error,
.alert {
  color: var(--error);
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.alert[hidden],
.field-error[hidden] {
  display: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 48px;
  margin-top: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(233, 30, 140, 0.92), rgba(123, 44, 255, 0.92));
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 10px 26px rgba(233, 30, 140, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  background: linear-gradient(90deg, rgba(45, 226, 230, 0.95), rgba(43, 76, 255, 0.95));
  color: #070018;
  box-shadow:
    0 10px 26px rgba(45, 226, 230, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid rgba(7, 0, 24, 0.25);
  border-top-color: #070018;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 0, 24, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: auto;
}

.modal[hidden] {
  display: none;
}

.modal__panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.modal__frame {
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    0 0 60px rgba(233, 30, 140, 0.28),
    0 24px 60px rgba(4, 0, 20, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.modal__poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body::after {
    background: rgba(12, 4, 36, 0.45);
  }

  .modal__frame {
    background: rgba(24, 8, 60, 0.9);
  }

  .modal {
    background: rgba(7, 0, 24, 0.92);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vmax, 3vmax, 0) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html::before,
  body::before {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .btn__spinner {
    animation-duration: 2s;
  }
}

@media (max-width: 400px) {
  .page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .privacy summary {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 720px) {
  .banner__logo {
    width: min(360px, 40vw);
  }

  .card {
    padding: 1rem 1rem 0.5rem;
  }
}
