:root {
  color-scheme: dark;
  --bg: #101113;
  --paper: #171a1f;
  --paper-raised: #1c1f25;
  --paper-soft: #14171b;
  --ink: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --blue: #3b82f6;
  --teal: #10b981;
  --amber: #f59e0b;
  --danger: #f87171;
  --focus: rgba(59, 130, 246, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  font-family:
    "Outfit",
    system-ui,
    -apple-system,
    sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f6;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --teal: #059669;
  --amber: #d97706;
  --danger: #dc2626;
  --focus: rgba(37, 99, 235, 0.2);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(59, 130, 246, 0.09),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 30%,
      rgba(16, 185, 129, 0.08),
      transparent 24rem
    ),
    var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand > span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.brand-mark__base {
  fill: var(--paper-raised);
  stroke: var(--line);
  stroke-width: 1.5;
}

.brand-mark__page {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark__page--blue {
  stroke: var(--blue);
}

.brand-mark__page--teal {
  stroke: var(--teal);
}

.brand-mark__lines {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark__bookmark {
  fill: var(--amber);
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.header-actions,
.back-link {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 12px;
}

.back-link {
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg,
.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset -5px -3px 0 rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .theme-toggle__icon {
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: none;
}

.request-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 40px;
}

.request-heading {
  max-width: 790px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.request-heading__icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.request-heading__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.request-heading__label {
  margin: 0 0 5px;
  color: var(--amber) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.request-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.request-heading p {
  max-width: 680px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.request-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: calc(100% - 138px);
  height: 1px;
  background: var(--line-strong);
}

.step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-weight: 800;
}

.step.is-active,
.step.is-complete {
  color: var(--ink);
}

.step.is-active span {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--focus);
}

.step.is-complete span {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

#request-form {
  padding: 34px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-step {
  animation: step-in 0.32s ease both;
}

.form-step[hidden],
.success-state[hidden] {
  display: none;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title > span {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span,
.choice-group legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
}

.field b,
.choice-group b {
  color: var(--amber);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--paper);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 108px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.choice-group {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 10px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid--games {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.choice-card:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice-card input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--blue);
}

.choice-card:has(input:checked) {
  color: var(--ink);
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
}

.choice-group[aria-invalid="true"] .choice-card {
  border-color: rgba(248, 113, 113, 0.6);
}

.choice-card--game {
  min-height: 78px;
  align-items: flex-start;
  padding: 15px;
}

.choice-card--game span {
  display: grid;
  gap: 3px;
}

.choice-card--game small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
}

.choice-card--teal input {
  accent-color: var(--teal);
}

.choice-card--teal:has(input:checked) {
  border-color: var(--teal);
  background: rgba(16, 185, 129, 0.08);
}

.request-summary {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  background: var(--paper-soft);
}

.summary-item {
  min-width: 0;
}

.summary-item--wide {
  grid-column: 1 / -1;
}

.summary-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.35;
}

.agreements {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.agreement {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.87rem;
  line-height: 1.4;
}

.agreement:has(input:checked) {
  color: var(--ink);
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.07);
}

.agreement input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.agreement input[aria-invalid="true"] + span {
  color: var(--danger);
}

.form-message {
  min-height: 20px;
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

.form-actions {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button--primary,
.button--submit {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.22);
}

.button--submit {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.2);
}

.button--secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
}

.success-state {
  padding: 58px 34px;
  text-align: center;
  animation: step-in 0.35s ease both;
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 19px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.success-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-kicker {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.success-state h2 {
  margin: 0;
  font-size: 2rem;
}

.success-state > p:not(.success-kicker) {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.protocol {
  width: min(360px, 100%);
  margin: 24px auto;
  padding: 14px 18px;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: rgba(245, 158, 11, 0.07);
}

.protocol span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.protocol strong {
  color: var(--amber);
  letter-spacing: 0.06em;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.privacy-note {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .site-header,
  .request-shell {
    width: min(100% - 28px, 980px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand small,
  .back-link {
    display: none;
  }

  .request-shell {
    padding-top: 28px;
  }

  .request-heading {
    gap: 14px;
    margin-bottom: 21px;
  }

  .request-heading__icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }

  .request-heading__icon svg {
    width: 30px;
    height: 30px;
  }

  .request-heading h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .request-heading p {
    font-size: 0.91rem;
  }

  .request-card {
    border-radius: 19px;
  }

  .steps {
    padding: 16px;
  }

  .step {
    justify-content: center;
  }

  .step strong,
  .step::after {
    display: none;
  }

  #request-form {
    padding: 24px 18px;
  }

  .form-grid,
  .choice-grid--three,
  .choice-grid--games,
  .request-summary {
    grid-template-columns: 1fr;
  }

  .field--wide,
  .summary-item--wide {
    grid-column: auto;
  }

  .choice-card--game {
    min-height: 70px;
  }

  .form-actions,
  .success-actions {
    flex-wrap: wrap;
  }

  .form-actions .button {
    flex: 1 1 140px;
  }

  .success-state {
    padding: 44px 20px;
  }
}

@media (max-width: 430px) {
  .brand strong {
    max-width: 190px;
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }

  .request-heading {
    display: block;
  }

  .request-heading__icon {
    margin-bottom: 14px;
  }

  .section-title > span {
    display: none;
  }

  .success-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
