@font-face {
  font-family: "Cormorant DW";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant DW";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant DW";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant DW";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos DW";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos DW";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #0b0908;
  --ink-soft: #14100d;
  --panel: #17130f;
  --panel-deep: #0f0d0c;
  --parchment: #f0e4cc;
  --parchment-soft: #c5b69c;
  --ash: #8f887d;
  --muted: #9b9286;
  --iron: #524d46;
  --line: rgba(202, 177, 132, 0.22);
  --line-strong: rgba(221, 190, 132, 0.43);
  --gold: #c69b52;
  --gold-bright: #e5c47f;
  --gold-dark: #745228;
  --oxblood: #893e3b;
  --templar: #9db6c6;
  --success: #72bd83;
  --danger: #e08377;
  --serif: "Cormorant DW", Georgia, serif;
  --sans: "Golos DW", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--parchment);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  border: 1px solid rgba(217, 181, 116, 0.09);
  content: "";
  pointer-events: none;
}

button,
input,
summary {
  font: inherit;
}

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

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.world-art {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #0a0b0d;
}

.world-art picture,
.world-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.world-art img {
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(1.04) brightness(0.87);
}

.world-art__veil,
.world-art__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-art__veil {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.86) 0%, rgba(7, 7, 8, 0.52) 28%, rgba(7, 7, 8, 0.08) 50%, rgba(8, 6, 6, 0.45) 69%, rgba(7, 6, 5, 0.89) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.48) 0%, transparent 22%, transparent 64%, rgba(8, 6, 5, 0.78) 100%);
}

.world-art__grain {
  opacity: 0.24;
  background:
    repeating-linear-gradient(88deg, transparent 0 5px, rgba(255, 236, 196, 0.012) 5px 6px),
    repeating-linear-gradient(2deg, transparent 0 7px, rgba(0, 0, 0, 0.025) 7px 8px);
  mix-blend-mode: soft-light;
}

.site-frame {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.site-header {
  display: flex;
  position: relative;
  z-index: 4;
  width: min(1540px, calc(100% - 64px));
  height: 94px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  opacity: 0.68;
  background: linear-gradient(90deg, rgba(207, 174, 111, 0.46), rgba(207, 174, 111, 0.08) 34%, rgba(207, 174, 111, 0.08) 66%, rgba(207, 174, 111, 0.46));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand__crest {
  display: grid;
  position: relative;
  width: 47px;
  height: 54px;
  flex: 0 0 47px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(224, 190, 125, 0.58);
  background:
    linear-gradient(145deg, rgba(219, 176, 95, 0.2), transparent 55%),
    #17130f;
  clip-path: polygon(50% 0, 94% 15%, 83% 77%, 50% 100%, 17% 77%, 6% 15%);
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.5));
}

.brand__crest::before,
.brand__crest::after {
  position: absolute;
  content: "";
  background: rgba(212, 172, 99, 0.45);
}

.brand__crest::before {
  top: 9px;
  bottom: 10px;
  left: 50%;
  width: 1px;
}

.brand__crest::after {
  top: 19px;
  right: 9px;
  left: 9px;
  height: 1px;
}

.brand__crest i {
  z-index: 1;
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 0 16px rgba(227, 186, 107, 0.55);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__copy strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand__copy small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.world-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(200, 175, 129, 0.22);
  border-radius: 2px;
  background: rgba(12, 10, 9, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34), 0 7px 20px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.world-state__torch {
  display: block;
  position: relative;
  width: 9px;
  height: 13px;
  border-radius: 60% 40% 55% 45%;
  background: #e7a64e;
  box-shadow: 0 0 8px #cb7637, 0 0 19px rgba(214, 112, 38, 0.72);
  transform: rotate(8deg);
}

.world-state__torch::after {
  position: absolute;
  right: 3px;
  bottom: 1px;
  width: 3px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #f4d38b;
}

.world-state > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.world-state small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-state strong {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.experience {
  display: grid;
  width: min(1460px, calc(100% - 80px));
  min-height: calc(100vh - 148px);
  min-height: calc(100svh - 148px);
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  align-items: center;
  gap: clamp(34px, 5vw, 84px);
  margin: 0 auto;
  padding: 30px 0 38px;
}

.hero-copy {
  align-self: end;
  max-width: 590px;
  padding: 0 0 clamp(52px, 9vh, 120px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.65);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--gold-dark);
  font-size: 7px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 6.5vw, 104px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.hero-copy h1 em {
  display: inline-block;
  margin-left: 0.26em;
  color: var(--gold-bright);
  font-weight: 600;
  text-shadow: 0 0 35px rgba(205, 152, 70, 0.25), 0 3px 24px rgba(0, 0, 0, 0.8);
}

.hero-copy__lead {
  max-width: 505px;
  margin: 25px 0 0;
  color: #ddd4c4;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-copy__oath {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
}

.oath-side {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.oath-side i {
  display: block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.oath-side--templar {
  color: #d7e0e4;
}

.oath-side--templar i {
  border: 1px solid #b9d0dc;
  background: #7e9aaa;
  box-shadow: 0 0 11px rgba(129, 172, 195, 0.65);
}

.oath-side--dread {
  color: #d4aaa5;
}

.oath-side--dread i {
  border: 1px solid #c7776d;
  background: #833c38;
  box-shadow: 0 0 11px rgba(159, 59, 50, 0.65);
}

.oath-divider {
  display: flex;
  align-items: center;
  gap: 5px;
}

.oath-divider b {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(220, 200, 163, 0.34);
}

.oath-divider small {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
}

.world-proof {
  display: grid;
  width: fit-content;
  grid-template-columns: 30px auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(208, 179, 124, 0.22);
  border-radius: 2px;
  background: rgba(12, 10, 9, 0.68);
  box-shadow: inset 0 0 18px rgba(208, 167, 90, 0.035), 0 9px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.world-proof__rune {
  display: grid;
  width: 30px;
  height: 36px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(207, 166, 90, 0.28);
  background: rgba(185, 130, 50, 0.08);
  font-family: var(--serif);
  font-size: 10px;
}

.world-proof__count {
  min-width: 28px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.world-proof__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.world-proof__copy strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.world-proof__copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.registration-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 638px;
  padding: 35px 38px 30px;
  border: 1px solid rgba(218, 187, 127, 0.55);
  border-radius: 4px;
  background:
    radial-gradient(circle at 12% 5%, rgba(225, 188, 116, 0.09), transparent 27%),
    radial-gradient(circle at 88% 96%, rgba(124, 43, 36, 0.07), transparent 32%),
    repeating-linear-gradient(92deg, transparent 0 3px, rgba(255, 239, 207, 0.008) 3px 4px),
    linear-gradient(145deg, rgba(32, 27, 22, 0.98), rgba(14, 12, 11, 0.99));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 0 3px rgba(8, 7, 6, 0.7),
    inset 0 0 0 4px rgba(207, 174, 112, 0.12),
    inset 0 0 48px rgba(218, 164, 77, 0.025);
  backdrop-filter: blur(14px);
}

.registration-card::before,
.registration-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.registration-card::before {
  inset: 8px;
  border: 1px solid rgba(205, 173, 113, 0.1);
}

.registration-card::after {
  top: 12px;
  right: 50%;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 190, 123, 0.45));
}

.ornament {
  position: absolute;
  z-index: 2;
  width: 25px;
  height: 25px;
  pointer-events: none;
}

.ornament::before,
.ornament::after {
  position: absolute;
  content: "";
  background: var(--gold-dark);
}

.ornament::before {
  width: 19px;
  height: 1px;
}

.ornament::after {
  width: 1px;
  height: 19px;
}

.ornament--top-left { top: 11px; left: 11px; }
.ornament--top-right { top: 11px; right: 11px; transform: rotate(90deg); }
.ornament--bottom-left { bottom: 11px; left: 11px; transform: rotate(-90deg); }
.ornament--bottom-right { right: 11px; bottom: 11px; transform: rotate(180deg); }

.registration-card__seal {
  display: grid;
  position: absolute;
  z-index: 3;
  top: -17px;
  left: 50%;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(225, 191, 124, 0.64);
  background: #17120e;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(203, 153, 65, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.registration-card__seal span {
  font-size: 9px;
  transform: rotate(-45deg);
}

.stepper {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 172, 120, 0.15);
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.stepper__item.is-active,
.stepper__item.is-complete {
  opacity: 1;
}

.stepper__item > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(198, 166, 108, 0.22);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

.stepper__item.is-active > span:first-child {
  color: var(--gold-bright);
  border-color: rgba(222, 185, 116, 0.48);
  background: rgba(184, 127, 43, 0.08);
  box-shadow: 0 0 12px rgba(184, 127, 43, 0.09);
}

.stepper__item.is-complete > span:first-child {
  color: var(--success);
  border-color: rgba(114, 189, 131, 0.38);
}

.stepper__item > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.stepper__item strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.stepper__item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stepper__line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(188, 163, 117, 0.16);
}

.stepper__line i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  transition: width 300ms ease;
}

.stepper[data-current="2"] .stepper__line i {
  width: 100%;
}

.form-step {
  animation: page-turn 220ms ease-out;
}

@keyframes page-turn {
  from { opacity: 0; transform: translateX(9px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step__heading {
  margin-bottom: 21px;
}

.form-step__heading p,
.success-panel > p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.form-step__heading h2,
.success-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 39px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.form-step__heading > span {
  display: block;
  margin-top: 7px;
  color: var(--ash);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.3;
}

.field {
  position: relative;
  margin-bottom: 15px;
}

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.field label,
.field__label-row label,
.choice-group legend,
.faction-group legend,
.invitation__content > label {
  color: #ddd2bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.065em;
}

.field__label-row > span,
.choice-group legend > span,
.faction-group legend > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.input-shell {
  display: flex;
  position: relative;
  align-items: center;
}

.input-shell input {
  width: 100%;
  height: 50px;
  padding: 0 42px;
  color: #eee6d8;
  caret-color: var(--gold-bright);
  outline: none;
  border: 1px solid rgba(179, 157, 120, 0.21);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(197, 151, 72, 0.025), transparent 25%),
    rgba(5, 6, 7, 0.78);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.48), 0 1px rgba(255, 255, 255, 0.02);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell input::placeholder {
  color: #a49b90;
}

.input-shell input:hover {
  border-color: rgba(207, 176, 119, 0.34);
}

.input-shell input:focus {
  border-color: rgba(223, 184, 113, 0.67);
  background-color: rgba(8, 8, 8, 0.9);
  box-shadow: 0 0 0 2px rgba(196, 145, 61, 0.09), inset 0 2px 8px rgba(0, 0, 0, 0.48);
}

.input-shell__icon {
  display: block;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #a19789;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-shell__icon svg,
.input-shell__state svg {
  display: block;
  width: 100%;
  height: 100%;
}

.input-shell__state {
  display: none;
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  color: var(--success);
  pointer-events: none;
}

.field.is-valid:not([data-field="password"]) .input-shell__state {
  display: block;
}

.field.is-valid:not([data-field="password"]) input {
  border-color: rgba(114, 189, 131, 0.38);
}

.field.is-error input {
  border-color: rgba(224, 131, 119, 0.72);
  box-shadow: 0 0 0 2px rgba(224, 131, 119, 0.07);
}

.field__message,
.field__status {
  min-height: 12px;
  margin: 5px 1px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.field__status {
  display: none;
}

.field[data-field="name"].is-checking .field__status,
.field[data-field="name"].is-valid .field__status,
.field[data-field="name"].is-error .field__status {
  display: block;
}

.field[data-field="name"].is-checking .field__message,
.field[data-field="name"].is-valid .field__message,
.field[data-field="name"].is-error .field__message {
  display: none;
}

.field.is-error .field__message,
.field.is-error .field__status,
.choice-group.is-error .choice-group__error,
.faction-group.is-error .faction-group__error {
  color: var(--danger);
}

.field.is-valid .field__status {
  color: var(--success);
}

.field.is-checking .field__status {
  color: var(--ash);
}

.field__message--spread {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.field__message--spread strong {
  color: var(--ash);
  font-weight: 600;
}

.password-toggle {
  display: grid;
  position: absolute;
  right: 7px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  outline: none;
  border: 0;
  background: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(213, 177, 110, 0.05);
}

.password-toggle__icon {
  display: block;
  width: 18px;
  height: 18px;
  color: #a19789;
}

.password-toggle__icon--hide,
.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
  display: block;
  color: var(--gold-bright);
}

.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 6px 1px 0;
}

.password-meter i {
  height: 2px;
  background: rgba(216, 191, 147, 0.09);
  transition: background 160ms ease;
}

.password-meter[data-strength="1"] i:nth-child(-n+1) { background: var(--danger); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: #bf744c; }
.password-meter[data-strength="3"] i:nth-child(-n+3) { background: var(--gold); }
.password-meter[data-strength="4"] i:nth-child(-n+4) { background: var(--success); }

.choice-group,
.faction-group {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.choice-group legend,
.faction-group legend {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding: 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(185, 158, 110, 0.19);
  background: rgba(5, 6, 7, 0.7);
}

.segmented-control label,
.faction-card {
  position: relative;
  cursor: pointer;
}

.segmented-control input,
.faction-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control label > span {
  display: flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ash);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.segmented-control label:hover > span {
  color: var(--parchment-soft);
  background: rgba(213, 176, 107, 0.03);
}

.segmented-control input:checked + span {
  color: var(--parchment);
  border-color: rgba(210, 175, 111, 0.28);
  background: linear-gradient(rgba(190, 140, 58, 0.09), rgba(190, 140, 58, 0.025));
  box-shadow: inset 0 0 16px rgba(185, 133, 51, 0.04);
}

.segmented-control input:focus-visible + span,
.faction-card input:focus-visible + .faction-card__body {
  outline: 2px solid rgba(222, 183, 111, 0.76);
  outline-offset: 2px;
}

.segmented-control i {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
}

.choice-group__error,
.faction-group__error {
  display: none;
}

.choice-group.is-error .choice-group__error,
.faction-group.is-error .faction-group__error {
  display: block;
}

.faction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.faction-card__body {
  display: flex;
  position: relative;
  min-height: 112px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 12px 8px 10px;
  border: 1px solid rgba(181, 156, 112, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 43%),
    rgba(5, 6, 7, 0.72);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.faction-card:hover .faction-card__body {
  border-color: rgba(212, 181, 124, 0.36);
  transform: translateY(-1px);
}

.faction-card--templar input:checked + .faction-card__body {
  border-color: rgba(146, 184, 204, 0.62);
  background: linear-gradient(145deg, rgba(101, 148, 173, 0.17), rgba(7, 10, 12, 0.8));
  box-shadow: inset 0 0 24px rgba(96, 151, 180, 0.06), 0 0 16px rgba(84, 139, 170, 0.06);
}

.faction-card--dread input:checked + .faction-card__body {
  border-color: rgba(174, 74, 68, 0.68);
  background: linear-gradient(145deg, rgba(134, 49, 44, 0.19), rgba(11, 7, 7, 0.82));
  box-shadow: inset 0 0 24px rgba(149, 52, 47, 0.07), 0 0 16px rgba(137, 43, 39, 0.07);
}

.faction-card__crest {
  display: grid;
  position: relative;
  width: 42px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  clip-path: polygon(50% 0, 94% 16%, 83% 78%, 50% 100%, 17% 78%, 6% 16%);
}

.faction-card--templar .faction-card__crest {
  color: #9cbccc;
  background: rgba(91, 136, 160, 0.14);
}

.faction-card--dread .faction-card__crest {
  color: #b65d56;
  background: rgba(133, 48, 44, 0.15);
}

.faction-card__crest::before,
.faction-card__crest::after {
  position: absolute;
  content: "";
}

.faction-card--templar .faction-card__crest::before {
  top: 9px;
  left: 19px;
  width: 3px;
  height: 26px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 16%, 67% 100%, 33% 100%, 0 16%);
}

.faction-card--templar .faction-card__crest::after {
  top: 17px;
  left: 10px;
  width: 21px;
  height: 3px;
  background: currentColor;
}

.faction-card--dread .faction-card__crest::before {
  top: 9px;
  left: 11px;
  width: 19px;
  height: 21px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: rotate(45deg);
}

.faction-card--dread .faction-card__crest::after {
  top: 13px;
  left: 19px;
  width: 3px;
  height: 20px;
  background: currentColor;
  transform: rotate(45deg);
}

.faction-card__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.faction-card__copy strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.faction-card__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faction-card__check {
  display: grid;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(205, 177, 126, 0.24);
  transform: rotate(45deg);
}

.faction-card input:checked + .faction-card__body .faction-card__check::after {
  width: 4px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(0deg);
}

.faction-card--templar input:checked + .faction-card__body .faction-card__check { color: #b9d1dd; border-color: #789eaf; }
.faction-card--dread input:checked + .faction-card__body .faction-card__check { color: #d08a83; border-color: #a64f48; }

.invitation {
  margin: 2px 0 17px;
  border: 1px solid rgba(184, 158, 111, 0.18);
  background: rgba(5, 6, 7, 0.56);
}

.invitation summary {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  cursor: pointer;
  list-style: none;
}

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

.invitation summary > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.1;
}

.invitation summary strong {
  color: var(--parchment-soft);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.invitation summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.invitation__sign {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 165, 99, 0.24);
  font-family: var(--serif);
  font-size: 16px;
  transition: transform 170ms ease;
}

.invitation[open] .invitation__sign {
  transform: rotate(45deg);
}

.invitation__arrow {
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 170ms ease;
}

.invitation[open] .invitation__arrow {
  transform: rotate(225deg) translate(-2px, -2px);
}

.invitation__content {
  margin: 0;
  padding: 5px 11px 10px;
  border-top: 1px solid rgba(184, 158, 111, 0.13);
}

.invitation__content > label {
  display: block;
  margin: 7px 0 6px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.form-error {
  display: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #efb1a9;
  border: 1px solid rgba(224, 131, 119, 0.27);
  background: rgba(135, 49, 43, 0.12);
  font-size: 9px;
  line-height: 1.45;
}

.form-error:not(:empty) {
  display: block;
}

.primary-button,
.back-button,
.secondary-button {
  outline: none;
}

.primary-button {
  display: flex;
  position: relative;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 0 46px 0 22px;
  cursor: pointer;
  color: #241a0c;
  border: 1px solid #e4c078;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 244, 211, 0.26), transparent 34%),
    linear-gradient(105deg, #9c6f2d 0%, #d7ad61 48%, #a87732 100%);
  box-shadow: 0 8px 20px rgba(96, 57, 16, 0.3), inset 0 0 0 1px rgba(88, 57, 16, 0.38);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary-button::before {
  position: absolute;
  top: -75%;
  left: -30%;
  width: 18%;
  height: 250%;
  content: "";
  background: rgba(255, 244, 211, 0.24);
  transform: rotate(23deg);
  transition: left 450ms ease;
}

.primary-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(105, 64, 18, 0.36), inset 0 0 0 1px rgba(88, 57, 16, 0.38);
  transform: translateY(-1px);
}

.primary-button:hover::before {
  left: 116%;
}

.primary-button:focus-visible,
.back-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid rgba(231, 197, 131, 0.78);
  outline-offset: 3px;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: saturate(0.5);
  opacity: 0.78;
  transform: none;
}

.primary-button > i:last-child {
  position: absolute;
  right: 19px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.primary-button__loader {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(31, 23, 12, 0.28);
  border-top-color: #261b0d;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .primary-button__loader {
  display: block;
}

.primary-button.is-loading > i:last-child {
  display: none;
}

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

.secure-note {
  margin: 9px 0 0;
  color: #948b80;
  font-size: 7px;
  letter-spacing: 0.02em;
  text-align: center;
}

.secure-note span {
  margin-right: 4px;
  color: var(--gold-dark);
}

.form-actions {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: var(--ash);
  border: 1px solid rgba(191, 164, 116, 0.2);
  border-radius: 2px;
  background: rgba(5, 6, 7, 0.62);
  font-size: 9px;
}

.back-button:hover {
  color: var(--parchment-soft);
  border-color: rgba(211, 178, 117, 0.34);
}

.back-button i {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
}

.success-panel {
  display: flex;
  min-height: 560px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: page-turn 260ms ease-out;
}

.success-panel__seal {
  display: grid;
  position: relative;
  width: 72px;
  height: 82px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(220, 183, 113, 0.64);
  background: rgba(190, 135, 51, 0.09);
  clip-path: polygon(50% 0, 94% 16%, 83% 78%, 50% 100%, 17% 78%, 6% 16%);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.success-panel__seal::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(211, 174, 105, 0.25);
  content: "";
  clip-path: inherit;
}

.success-panel__seal span {
  width: 19px;
  height: 34px;
  border-right: 3px solid var(--gold-bright);
  border-bottom: 3px solid var(--gold-bright);
  transform: translate(-2px, -5px) rotate(45deg);
}

.success-panel h2 {
  font-size: 40px;
  line-height: 1.05;
}

.success-panel h2 strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.success-panel__copy {
  margin-top: 10px;
  color: var(--ash);
  font-family: var(--serif);
  font-size: 14px;
}

.uin-card {
  display: grid;
  width: min(100%, 340px);
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 25px;
  padding: 14px 15px;
  border: 1px solid rgba(211, 174, 104, 0.28);
  background: rgba(173, 116, 38, 0.07);
  text-align: left;
}

.uin-card > span {
  grid-column: 1;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.uin-card > strong {
  grid-row: 2;
  grid-column: 1;
  margin-top: 2px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.uin-card button {
  display: flex;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  cursor: pointer;
  color: var(--ash);
  border: 1px solid rgba(199, 170, 116, 0.19);
  background: rgba(5, 6, 7, 0.5);
  font-size: 8px;
}

.uin-card button:hover {
  color: var(--parchment-soft);
  border-color: rgba(215, 180, 116, 0.36);
}

.uin-card button i {
  display: block;
  position: relative;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
}

.uin-card button i::before {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 6px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
}

.success-faction {
  display: flex;
  width: min(100%, 340px);
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-right: 1px solid rgba(197, 168, 116, 0.13);
  border-bottom: 1px solid rgba(197, 168, 116, 0.13);
  border-left: 1px solid rgba(197, 168, 116, 0.13);
}

.success-faction span {
  color: var(--muted);
  font-size: 8px;
}

.success-faction strong {
  font-family: var(--serif);
  font-size: 14px;
}

.secondary-button {
  margin-top: 25px;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--ash);
  border: 1px solid rgba(194, 165, 113, 0.18);
  background: transparent;
  font-size: 8px;
}

.secondary-button:hover {
  color: var(--parchment-soft);
  border-color: rgba(213, 179, 117, 0.34);
}

.site-footer {
  display: flex;
  width: min(1460px, calc(100% - 80px));
  min-height: 54px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  color: #948b80;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.site-footer i {
  color: var(--gold-dark);
  font-size: 6px;
  font-style: normal;
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 28px);
  padding: 9px 13px;
  color: var(--parchment);
  border: 1px solid rgba(213, 180, 119, 0.35);
  border-radius: 2px;
  background: rgba(22, 17, 13, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 12px;
  color: var(--parchment);
  border: 1px solid var(--danger);
  background: #21110e;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1260px) {
  .experience {
    width: min(1160px, calc(100% - 56px));
    grid-template-columns: minmax(0, 1fr) 455px;
    gap: 34px;
  }

  .site-header,
  .site-footer {
    width: calc(100% - 56px);
  }

  .hero-copy h1 {
    font-size: clamp(64px, 7vw, 84px);
  }
}

@media (max-width: 1120px), (pointer: coarse) and (max-width: 1180px) {
  body {
    background: #100c09;
  }

  .world-art {
    position: absolute;
    height: 530px;
  }

  .world-art img {
    object-position: center top;
  }

  .world-art__veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.58), rgba(6, 6, 7, 0.08) 52%, rgba(8, 6, 6, 0.4)),
      linear-gradient(180deg, rgba(5, 5, 6, 0.38), transparent 34%, #100c09 98%);
  }

  .site-frame {
    background: linear-gradient(180deg, transparent 0 430px, #100c09 545px, #100c09 100%);
  }

  .site-header {
    width: min(780px, calc(100% - 36px));
    height: 78px;
  }

  .experience {
    display: block;
    width: min(680px, calc(100% - 36px));
    min-height: calc(100vh - 140px);
    min-height: calc(100svh - 140px);
    padding: 0 0 30px;
  }

  .hero-copy {
    display: flex;
    min-height: 375px;
    max-width: 540px;
    align-self: auto;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0 47px;
  }

  .hero-copy h1 {
    font-size: 70px;
  }

  .hero-copy__lead {
    max-width: 470px;
    font-size: 18px;
  }

  .hero-copy__oath {
    margin-top: 18px;
  }

  .world-proof {
    display: none;
  }

  .registration-card {
    width: min(100%, 560px);
    min-height: 620px;
    margin: 0 auto;
  }

  .site-footer {
    width: min(680px, calc(100% - 36px));
    justify-content: center;
    margin: auto auto 0;
  }
}

@media (max-width: 720px) {
  body::after {
    display: none;
  }

  .world-art {
    height: 435px;
  }

  .world-art img {
    object-position: center top;
    filter: saturate(0.78) contrast(1.06) brightness(0.83);
  }

  .world-art__veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.34), transparent 45%, rgba(6, 5, 5, 0.28)),
      linear-gradient(180deg, rgba(5, 5, 6, 0.26), transparent 37%, #100c09 98%);
  }

  .site-frame {
    background: linear-gradient(180deg, transparent 0 345px, #100c09 450px, #100c09 100%);
  }

  .site-header {
    width: calc(100% - 28px);
    height: 72px;
  }

  .site-header::after {
    right: -14px;
    left: -14px;
  }

  .brand {
    gap: 9px;
  }

  .brand__crest {
    width: 38px;
    height: 44px;
    flex-basis: 38px;
  }

  .brand__copy strong {
    font-size: 17px;
  }

  .brand__copy small {
    margin-top: 4px;
    font-size: 6px;
    letter-spacing: 0.2em;
  }

  .world-state {
    gap: 7px;
    padding: 6px 8px;
  }

  .world-state small {
    display: none;
  }

  .world-state strong {
    margin: 0;
    font-size: 8px;
  }

  .world-state__torch {
    width: 7px;
    height: 10px;
  }

  .experience {
    width: calc(100% - 24px);
  }

  .hero-copy {
    min-height: 303px;
    padding: 37px 4px 29px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 12px;
    font-size: 7px;
    letter-spacing: 0.18em;
  }

  .hero-copy h1 {
    font-size: clamp(47px, 14.5vw, 65px);
    line-height: 0.87;
  }

  .hero-copy h1 em {
    margin-left: 0.2em;
  }

  .hero-copy__lead {
    max-width: 400px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero-copy__oath {
    display: none;
  }

  .registration-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 29px 20px 23px;
    border-radius: 3px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), inset 0 0 0 3px rgba(8, 7, 6, 0.7), inset 0 0 0 4px rgba(207, 174, 112, 0.12);
  }

  .registration-card__seal {
    top: -15px;
    width: 30px;
    height: 30px;
  }

  .stepper {
    gap: 9px;
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .stepper__item {
    gap: 6px;
  }

  .stepper__item > span:first-child {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }

  .stepper__item strong {
    font-size: 11px;
  }

  .stepper__item small {
    display: none;
  }

  .form-step__heading {
    margin-bottom: 18px;
  }

  .form-step__heading h2,
  .success-panel h2 {
    font-size: 34px;
  }

  .form-step__heading > span {
    margin-top: 5px;
    font-size: 12px;
  }

  .field {
    margin-bottom: 13px;
  }

  .field__label-row {
    margin-bottom: 5px;
  }

  .input-shell input {
    height: 49px;
    font-size: 12px;
  }

  .faction-card__body {
    min-height: 106px;
  }

  .primary-button {
    height: 50px;
  }

  .site-footer {
    width: calc(100% - 24px);
    min-height: 62px;
    flex-wrap: wrap;
    padding: 12px 0;
    text-align: center;
  }

  .success-panel {
    min-height: 500px;
  }
}

@media (max-width: 380px) {
  .brand__copy small {
    display: none;
  }

  .registration-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .form-step__heading h2,
  .success-panel h2 {
    font-size: 31px;
  }

  .faction-grid {
    gap: 6px;
  }

  .faction-card__body {
    min-height: 104px;
  }

  .faction-card__copy strong {
    font-size: 15px;
  }

  .choice-group legend,
  .faction-group legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 340px) {
  .faction-grid {
    grid-template-columns: 1fr;
  }

  .faction-card__body {
    min-height: 74px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 13px;
    text-align: left;
  }

  .faction-card__crest {
    width: 37px;
    height: 42px;
    flex: 0 0 37px;
  }

  .faction-card--templar .faction-card__crest::before { left: 16px; height: 23px; }
  .faction-card--templar .faction-card__crest::after { left: 8px; width: 20px; }
  .faction-card--dread .faction-card__crest::before { left: 9px; width: 18px; height: 19px; }
  .faction-card--dread .faction-card__crest::after { left: 17px; height: 18px; }

  .form-actions {
    grid-template-columns: 72px 1fr;
  }
}

@media (min-width: 1500px) and (min-height: 900px) {
  .registration-card {
    transform: translateY(-8px);
  }
}

@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;
  }
}
