:root {
  --accent: #4457ff;
  --ink: #1c1e4a;
  --muted: #4c5278;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3vh, 2rem) clamp(1rem, 4vw, 1.6rem);
  color: rgba(236, 239, 255, 0.92);
  background: radial-gradient(circle at 18% -10%, rgba(24, 30, 54, 0.85), rgba(16, 22, 44, 0.92) 45%, rgba(10, 14, 28, 0.98)),
    linear-gradient(190deg, rgba(10, 14, 30, 0.95), rgba(6, 9, 20, 0.98));
}
body > main {
  padding-block: 0;
  margin-block: 0;
}
main {
  width: 100%;
  max-width: 720px;
  display: flex;
  padding: 0;
  margin: 0;
}
body > main > article.hero-card {
  margin-block: 0;
  padding-block: 0;
}
.hero-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  border-radius: 24px;
  min-height: clamp(300px, 48vh, 480px);
  background: linear-gradient(135deg, rgba(20, 26, 60, 0.6), rgba(10, 12, 36, 0.6)),
    url('/static/img/banner_pawn.webp') center/cover no-repeat;
  box-shadow: 0 18px 42px rgba(24, 34, 88, 0.26);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(8, 12, 28, 0.65), rgba(8, 10, 24, 0.2));
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}
.hero-card[data-loading="true"] .loading-overlay {
  opacity: 1;
  pointer-events: all;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.9) brightness(0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.hero-card[data-bg="success"] .hero-video {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }
}

div.slide-footer button {
  margin-bottom: 0;
}

.carousel-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
  position: relative;
}
.slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.35s ease;
}
html:not(.has-js) .slides {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: none !important;
}
.slides.is-initializing {
  transition: none !important;
}
.slides.is-initializing .slide {
  transition: none !important;
}
html:not(.has-js) .slide {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none !important;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-sizing: border-box;
  padding: clamp(1.6rem, 3.4vh, 2.4rem) clamp(1.8rem, 4.5vw, 2.4rem);
  color: inherit;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(110%);
  transition: transform 0.45s ease, opacity 0.25s ease;
}
.slide[data-state="active"] {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
.slide.is-locked[data-state="active"] {
  height: 100%;
}
.slide[data-state="left"] {
  transform: translateX(-110%);
  z-index: 1;
}
.slide[data-state="right"] {
  transform: translateX(110%);
  z-index: 1;
}
.slide h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}
.slide-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 0 0 auto;
}
.slide-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: auto;
  flex: 0 0 auto;
}
.option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(18, 22, 52, 0.7);
  border: 1px solid rgba(86, 109, 255, 0.35);
}
.option-item label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(204, 210, 255, 0.9);
  flex: 1;
  margin: 0;
}
.option-item input {
  accent-color: #5f73ff;
}
.option-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(142, 156, 255, 0.25);
  color: rgba(230, 233, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
  transition: background 0.2s ease;
}
.option-help::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-100%);
  background: rgba(10, 12, 32, 0.92);
  color: rgba(236, 239, 255, 0.94);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.2;
  width: max-content;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(8, 10, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.option-help::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 0.15rem);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(10, 12, 32, 0.92) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.option-help:hover::after,
.option-help:focus-visible::after,
.option-help:hover::before,
.option-help:focus-visible::before {
  opacity: 1;
}
.option-help:focus-visible {
  outline: 2px solid rgba(142, 156, 255, 0.7);
  outline-offset: 2px;
}
.is-disabled {
  pointer-events: none;
  opacity: 0.65;
}
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: rgba(10, 12, 28, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
  color: rgba(236, 239, 255, 0.9);
  flex-direction: column;
  padding: 1.5rem;
}
.spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid rgba(236, 239, 255, 0.15);
  border-top-color: rgba(236, 239, 255, 0.85);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-caption {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: rgba(210, 214, 246, 0.78);
  letter-spacing: 0.03em;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(68, 87, 255, 0.25);
  color: rgba(236, 239, 255, 0.96);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  width: fit-content;
  align-self: flex-start;
  font-family: "Computer Modern Serif", "Computer Modern Roman", "CMU Serif", "Libre Baskerville", serif;
}
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.social-links a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(236, 239, 255, 0.86);
  text-decoration: none;
  transition: background 0.2s ease;
}
.social-links a:hover {
  background: rgba(88, 104, 255, 0.75);
}
.social-links svg {
  width: 1.05rem;
  height: 1.05rem;
}
.social-links img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  filter: brightness(0) invert(0.9);
}
.social-links img.discord-icon {
  width: 1.2rem;
  height: 1.2rem;
}
.brand .social-links {
  display: inline-flex;
  gap: 0.45rem;
}
.info-chip {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #f2f4ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.info-chip:hover,
.info-chip:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-1px);
}
.brand-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.accent-text {
  color: rgba(140, 162, 255, 0.95);
}
h1 {
  margin: 0.6rem 0 0.35rem;
  color: rgba(248, 249, 255, 0.96);
  font-size: clamp(1.9rem, 3.0vw, 2.4rem);
  line-height: 1.1;
}
h2 {
  margin-bottom: 0;
  color: #ffffff;
}
.hero-lede {
  color: rgba(189, 195, 234, 0.8);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}
form {
  display: grid;
  gap: 1rem;
}
label span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(200, 205, 245, 0.85);
  text-transform: uppercase;
}
input[type="url"] {
  margin-top: 0.45rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(68, 87, 255, 0.25);
  background: rgba(19, 25, 56, 0.72);
  color: rgba(236, 239, 255, 0.97);
  box-shadow: inset 0 1px 2px rgba(6, 8, 20, 0.5);
  backdrop-filter: blur(4px);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
input[type="url"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(68, 87, 255, 0.24);
}
.secondary {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(142, 156, 255, 0.45);
  background: rgba(15, 20, 48, 0.6);
  color: rgba(216, 220, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.secondary:hover {
  border-color: rgba(177, 186, 255, 0.65);
  background: rgba(15, 20, 48, 0.8);
}
.helper-text {
  font-size: 0.88rem;
  color: rgba(174, 182, 230, 0.78);
  margin: 0;
}
.primary {
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(134deg, #5567ff, #7f54ff);
  color: #f8f9ff;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 36px rgba(90, 70, 255, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(90, 70, 255, 0.45);
}
.input-error {
  font-size: 0.78rem;
  color: #ff9d9d;
  margin: 0;
  min-height: 1em;
}
input.has-error {
  border-color: rgba(255, 114, 114, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 114, 114, 0.2);
}
mark.notice {
  display: block;
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 114, 114, 0.12);
  color: #ff9d9d;
  border: 1px solid rgba(255, 114, 114, 0.18);
}
.hero-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(196, 202, 245, 0.8);
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
  list-style: disc;
}
.thanks-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(196, 202, 245, 0.85);
  font-size: 0.9rem;
  display: grid;
  gap: 0.45rem;
  list-style: disc;
}
.social-links.is-centered {
  justify-content: center;
}
.button-full {
  flex: 1;
}
@media (max-width: 839px) {
  .hero-card {
    min-height: auto;
  }
  .slide {
    padding: 1.4rem 1.8rem;
  }
}
@media (max-width: 700px) {
  body {
    align-items: flex-start;
    padding: 2.2rem 1rem;
  }
  main {
    margin-top: 1.2rem;
  }
}
