:root {
  color-scheme: dark;
  --ink: #f3eff5;
  --muted: #b9aabd;
  --night: #1f1e1f;
  --panel: rgba(35, 31, 37, 0.9);
  --line: rgba(119, 68, 133, 0.32);
  --logo-purple: #774485;
  --logo-purple-deep: #54305c;
  --logo-green: #6ea54f;
  --logo-green-deep: #599a34;
  --gold: var(--logo-green);
  --gold-bright: #91c875;
  --plum: var(--logo-purple-deep);
  --danger: #ffc0c8;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(84, 48, 92, 0.38), transparent 34rem),
    linear-gradient(150deg, #1f1e1f 0%, #29232c 52%, #1f1e1f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

button, input { font: inherit; }
button { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.brand-logo-frame {
  width: 46px;
  height: 46px;
  overflow: hidden;
  flex: 0 0 46px;
  border: 1px solid rgba(110, 165, 79, 0.42);
  border-radius: 50%;
  background: #1f1e1f;
  box-shadow: 0 0 24px rgba(110, 165, 79, 0.1);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.17);
}

.eyebrow, .card-kicker {
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0 80px;
}

.flow { width: min(100%, 760px); }

.progress-wrap { margin: 0 4px 18px; }

.progress-meta {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #93899a;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-button {
  padding: 5px 0;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
}

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

.progress-track {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--logo-purple), var(--gold-bright));
  box-shadow: 0 0 14px rgba(110, 165, 79, 0.46);
  transition: width 420ms cubic-bezier(.22, .72, .25, 1);
}

.progress-track .step-1 { width: 12.5%; }
.progress-track .step-0 { width: 0; }
.progress-track .step-2 { width: 25%; }
.progress-track .step-3 { width: 37.5%; }
.progress-track .step-4 { width: 50%; }
.progress-track .step-5 { width: 62.5%; }
.progress-track .step-6 { width: 75%; }
.progress-track .step-7 { width: 87.5%; }
.progress-track .step-8 { width: 100%; }

.card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 3px 28px 3px 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 34%),
    var(--panel);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.card::after {
  position: absolute;
  top: -75px;
  right: -75px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(119, 68, 133, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(119, 68, 133, 0.04), 0 0 0 55px rgba(110, 165, 79, 0.018);
}

.card.leaving { opacity: 0; transform: translateY(8px); }
.card.entering { animation: enter 260ms ease both; }

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

.card-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.card-kicker span {
  width: 22px;
  height: 1px;
  background: var(--gold);
}

h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.15rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 em { color: var(--gold-bright); font-weight: 400; }

.question-title {
  max-width: 620px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.card-copy {
  max-width: 540px;
  margin: 24px 0 32px;
  color: var(--muted);
  line-height: 1.65;
}

.edition-pill {
	display: inline-block;
	margin: -8px 0 18px;
	padding: 6px 10px;
	border: 1px solid rgba(110, 165, 79, .32);
	border-radius: 999px;
	color: var(--gold-bright);
	font-size: .7rem;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.centered-action { display: flex; justify-content: center; }

.email-form { max-width: 520px; }

.email-form label:not(.honeypot) {
  display: block;
  margin-bottom: 9px;
  color: #d6cbd4;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-form input {
  width: 100%;
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.12rem;
  transition: border-color 180ms ease;
}

.email-form input:focus { border-color: var(--gold); }
.email-form input::placeholder { color: #706777; }

.field-error { margin: 8px 0 0; color: var(--danger); font-size: .82rem; }
.honeypot { position: absolute; left: -10000px; }

.primary-button {
  min-width: 210px;
  margin-top: 30px;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--logo-green);
  border-radius: 2px 12px 2px 12px;
  color: #12180f;
  background: linear-gradient(135deg, var(--gold-bright), var(--logo-green-deep));
  box-shadow: 0 10px 28px rgba(110, 165, 79, 0.14);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(110, 165, 79, 0.24); }
.primary-button:focus-visible, .choice-button:focus-visible, .back-button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.choice-button {
  min-height: 112px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 2px 16px 2px 16px;
  color: var(--ink);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-button span { font-family: Georgia, serif; font-size: 1.65rem; }
.choice-button small { color: var(--muted); font-size: .78rem; }
.choice-button:hover { transform: translateY(-2px); border-color: rgba(110,165,79,.5); background: rgba(110,165,79,.065); }
.choice-button.selected { border-color: var(--gold); background: rgba(110,165,79,.13); }
.choice-button:disabled { cursor: default; }
.choice-grid.compact .choice-button { min-height: 88px; }

.rules-document {
  margin-top: 34px;
  color: #d2c7d0;
  font-size: .94rem;
  line-height: 1.68;
}

.rules-document section {
  padding: 24px 0 8px;
  border-top: 1px solid rgba(119, 68, 133, .3);
}

.rules-document h2 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 400;
}

.rules-document p { margin: 0 0 14px; }

.rules-document ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rules-document li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 22px;
}

.rules-document li::before {
  position: absolute;
  top: .65em;
  left: 2px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--logo-green);
  box-shadow: 0 0 10px rgba(110, 165, 79, .32);
}

.rules-lead {
  margin-bottom: 28px !important;
  color: var(--muted);
  font-size: 1.03rem;
}

.rules-closing {
  margin-top: 24px !important;
  padding: 20px;
  border-left: 2px solid var(--logo-green);
  background: rgba(110, 165, 79, .055);
}

.rules-closing strong { color: var(--ink); }

.question-number {
  position: absolute;
  right: clamp(26px, 6vw, 58px);
  bottom: 10px;
  color: rgba(119,68,133,.14);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 24vw, 13rem);
  line-height: 1;
  pointer-events: none;
}

.privacy-note {
  margin: 14px 4px 0;
  color: #766d7c;
  font-size: .72rem;
  text-align: center;
}

.centered { justify-content: center; }
.centered-title, .centered-copy { margin-left: auto; margin-right: auto; text-align: center; }

.loading-mark, .success-mark {
  width: 72px;
  height: 72px;
  margin: 62px auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(110,165,79,.42);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1.8rem;
}

.loading-mark span {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(110,165,79,.2);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  width: min(560px, calc(100% - 32px));
  padding: 16px 20px;
  border: 1px solid rgba(255,192,200,.28);
  border-radius: 2px 12px;
  color: #ffe8eb;
  background: rgba(73, 28, 42, .96);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  transform: translateX(-50%);
  font-size: .88rem;
  text-align: center;
}

.rules-intro-dialog {
  width: min(560px, calc(100% - 32px));
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid rgba(119, 68, 133, .48);
  border-radius: 3px 24px 3px 24px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(119, 68, 133, .13), transparent 45%),
    #232025;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .7);
  text-align: center;
}

.rules-intro-dialog::backdrop {
  background: rgba(12, 10, 13, .78);
  backdrop-filter: blur(7px);
}

.rules-intro-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.rules-intro-dialog h2 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.rules-intro-dialog p {
  margin: 22px auto 4px;
  color: var(--muted);
  line-height: 1.65;
}

.rules-intro-dialog .primary-button { margin-left: auto; margin-right: auto; }

.dialog-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(110, 165, 79, .38);
  border-radius: 50%;
  background: var(--night);
}

.dialog-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.16);
}

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { top: 18%; left: -160px; width: 340px; height: 340px; border: 1px solid rgba(119,68,133,.14); }
.ambient-two { right: -80px; bottom: -90px; width: 260px; height: 260px; background: rgba(90,45,95,.08); }

@media (max-width: 620px) {
  .site-header { width: min(100% - 28px, 1180px); padding: 20px 0; }
  .eyebrow { display: none; }
  .page-shell { width: min(100% - 24px, 1180px); padding: 18px 0 54px; place-items: start center; }
  .card { min-height: 535px; padding: 34px 25px; border-radius: 2px 20px 2px 20px; }
  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice-button { min-height: 82px; }
  .choice-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .primary-button { width: 100%; }
  .rules-document { font-size: .9rem; }
}

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