:root {
  color-scheme: dark;
  --ref-ink: #202c2f;
  --ref-ink-2: #2a393c;
  --ref-panel: #314144;
  --ref-panel-2: #394a4d;
  --ref-ivory: #f7f1e7;
  --ref-soft: #e0d7ca;
  --ref-muted: #b7ad9d;
  --ref-faint: #8b8275;
  --ref-gold: #d4b46d;
  --ref-gold-2: #f3dfa9;
  --ref-gold-3: #9f7f44;
  --ref-blue: #5f91b0;
  --ref-green: #98b98d;
  --ref-danger: #dc9586;
  --ref-line: rgba(223, 195, 127, 0.28);
  --ref-line-strong: rgba(235, 209, 147, 0.52);
  --ref-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --ref-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ref-page: min(1240px, calc(100vw - 72px));
  --ref-radius: 2px;
  --ref-shadow: 0 30px 90px rgba(4, 9, 10, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--ref-ink);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ref-ivory);
  background:
    radial-gradient(circle at 88% 4%, rgba(94, 150, 154, 0.23), transparent 31rem),
    radial-gradient(circle at 6% 46%, rgba(211, 169, 86, 0.12), transparent 36rem),
    radial-gradient(circle at 78% 82%, rgba(75, 121, 126, 0.12), transparent 34rem),
    linear-gradient(180deg, #263638 0%, var(--ref-ink) 50%, #233134 100%);
  font-family: var(--ref-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ref-sheet-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ref-gold-2);
  outline-offset: 4px;
}

.ref-skip {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--ref-ink);
  background: var(--ref-gold-2);
  transition: top 160ms ease;
}

.ref-skip:focus {
  top: 12px;
}

.ref-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  width: var(--ref-page);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(228, 209, 164, 0.2);
}

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

.ref-brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ref-gold-2);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.ref-brand__mark::before,
.ref-brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(218, 188, 115, 0.7);
  transform: rotate(45deg);
}

.ref-brand__mark::after {
  inset: 10px;
  border-color: rgba(218, 188, 115, 0.25);
}

.ref-brand__copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.ref-brand__copy strong {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.ref-brand__copy small {
  margin-top: 5px;
  color: var(--ref-muted);
  font-size: 9px;
  letter-spacing: 0.34em;
}

.ref-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ref-header__nav > a,
.ref-header__nav > button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  color: var(--ref-muted);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 160ms ease;
}

.ref-header__nav > a:hover,
.ref-header__nav > a:focus-visible,
.ref-header__nav > button:hover,
.ref-header__nav > button:focus-visible {
  color: var(--ref-gold-2);
}

.ref-header__nav .ref-account-pill {
  min-width: 88px;
  margin-left: 5px;
  border: 1px solid var(--ref-line);
  color: var(--ref-ivory);
  background: rgba(24, 35, 37, 0.68);
}

.ref-account-pill__dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ref-muted);
}

.ref-account-pill.is-online .ref-account-pill__dot {
  background: var(--ref-green);
  box-shadow: 0 0 10px rgba(152, 185, 141, 0.55);
}

.ref-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(780px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(46px, 7vw, 110px);
  width: var(--ref-page);
  margin: 0 auto;
  padding: 132px 0 94px;
}

.ref-hero__art {
  position: absolute;
  z-index: -3;
  top: 50%;
  right: max(-250px, -17vw);
  width: min(84vw, 1110px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  overflow: hidden;
  opacity: 0.64;
  -webkit-mask-image:
    radial-gradient(ellipse at 58% 46%, #000 15%, rgba(0, 0, 0, 0.92) 42%, transparent 72%);
  mask-image:
    radial-gradient(ellipse at 58% 46%, #000 15%, rgba(0, 0, 0, 0.92) 42%, transparent 72%);
}

.ref-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
  filter: saturate(0.86) contrast(1.02) brightness(1.02);
}

.ref-hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0 calc((100vw - 100%) / -2);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 35, 38, 0.76) 0%, rgba(24, 35, 38, 0.56) 34%, rgba(24, 35, 38, 0.08) 72%, rgba(24, 35, 38, 0.36) 100%),
    linear-gradient(180deg, rgba(24, 35, 38, 0.12) 0%, transparent 28%, rgba(24, 35, 38, 0.4) 74%, var(--ref-ink) 100%);
}

.ref-hero__grain {
  position: absolute;
  z-index: -1;
  top: 74px;
  bottom: 0;
  left: calc((100vw - 100%) / -2);
  width: 100vw;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(125deg, transparent 0 47%, rgba(225, 193, 116, 0.06) 47.1% 47.2%, transparent 47.3%),
    radial-gradient(circle at 18% 35%, rgba(198, 165, 93, 0.08), transparent 25rem);
}

.ref-hero__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.ref-eyebrow,
.ref-kicker {
  margin: 0;
  color: var(--ref-gold);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ref-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ref-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ref-gold-3);
}

.ref-eyebrow span {
  color: var(--ref-soft);
}

.ref-hero h1 {
  margin: 0;
  font-family: var(--ref-serif);
  font-size: clamp(54px, 6.4vw, 102px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.ref-hero h1 span,
.ref-hero h1 em {
  display: block;
}

.ref-hero h1 em {
  width: max-content;
  margin: 9px 0 11px;
  padding: 0 11px 6px;
  color: var(--ref-gold-2);
  font-style: normal;
  background:
    linear-gradient(90deg, rgba(198, 165, 93, 0.18), transparent 92%);
  text-shadow: 0 0 38px rgba(218, 189, 126, 0.11);
}

.ref-hero__lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--ref-soft);
  font-size: 15px;
  line-height: 1.95;
}

.ref-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 1px solid var(--ref-line-strong);
  border-radius: var(--ref-radius);
  color: var(--ref-gold-2);
  background: rgba(198, 165, 93, 0.06);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.ref-button:hover,
.ref-button:focus-visible {
  border-color: var(--ref-gold-2);
  background: rgba(198, 165, 93, 0.12);
  transform: translateY(-1px);
}

.ref-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.ref-button--gold {
  border-color: #e0c57f;
  color: #17120a;
  background: linear-gradient(135deg, #eed99d 0%, #c9a75e 62%, #b68d45 100%);
  box-shadow: 0 12px 35px rgba(169, 128, 49, 0.14);
  font-weight: 600;
}

.ref-button--gold:hover,
.ref-button--gold:focus-visible {
  color: #0c0905;
  background: linear-gradient(135deg, #f4e4b4 0%, #d7b970 62%, #c39a50 100%);
}

.ref-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.ref-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(221, 192, 122, 0.16);
}

.ref-hero__facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.ref-hero__facts strong {
  color: var(--ref-gold-2);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.ref-hero__facts span {
  color: var(--ref-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ref-reward-poster {
  position: relative;
  z-index: 3;
  width: min(100%, 550px);
  justify-self: end;
  margin: 0;
}

.ref-reward-poster::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  border: 1px solid rgba(218, 188, 115, 0.11);
}

.ref-reward-poster__frame {
  position: relative;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--ref-line-strong);
  background: rgba(19, 28, 30, 0.84);
  box-shadow: var(--ref-shadow);
}

.ref-reward-poster__frame::before,
.ref-reward-poster__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.ref-reward-poster__frame::before {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--ref-gold-2);
  border-left: 1px solid var(--ref-gold-2);
}

.ref-reward-poster__frame::after {
  right: 4px;
  bottom: 4px;
  border-right: 1px solid var(--ref-gold-2);
  border-bottom: 1px solid var(--ref-gold-2);
}

.ref-reward-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.ref-reward-poster__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 6px 9px;
  border: 1px solid rgba(239, 217, 161, 0.44);
  color: var(--ref-gold-2);
  background: rgba(18, 27, 29, 0.68);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.ref-reward-poster__caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  gap: 3px;
  padding: 46px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 25, 0.9) 42%);
}

.ref-reward-poster__caption small {
  color: var(--ref-gold);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.ref-reward-poster__caption strong {
  font-family: var(--ref-serif);
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 400;
}

.ref-invite-banner {
  position: absolute;
  z-index: 5;
  top: 94px;
  right: 0;
  max-width: 290px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ref-line-strong);
  background: rgba(25, 36, 38, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.ref-invite-banner span,
.ref-invite-banner small {
  color: var(--ref-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ref-invite-banner strong {
  color: var(--ref-gold-2);
  font-family: var(--ref-serif);
  font-size: 20px;
  font-weight: 400;
}

.ref-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ref-faint);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.ref-scroll-cue i {
  position: relative;
  width: 72px;
  height: 1px;
  overflow: hidden;
  background: rgba(218, 188, 115, 0.18);
}

.ref-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 68% 0 0;
  background: var(--ref-gold);
}

.ref-workspace {
  width: var(--ref-page);
  margin: 0 auto;
  padding: 76px 0 110px;
  border-top: 1px solid rgba(218, 188, 115, 0.12);
}

.ref-finale h2 {
  margin: 13px 0 0;
  font-family: var(--ref-serif);
  font-size: clamp(36px, 4.3vw, 60px);
  font-weight: 400;
  line-height: 1.08;
}

.ref-tabs {
  position: relative;
  display: flex;
  gap: 3px;
  margin-top: 0;
  border-bottom: 1px solid rgba(218, 188, 115, 0.14);
}

.ref-tabs button {
  position: relative;
  z-index: 1;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  color: var(--ref-muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: color 160ms ease;
}

.ref-tabs button.is-active {
  color: var(--ref-gold-2);
}

.ref-tabs__line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ref-gold-2);
  transition:
    left 180ms ease,
    width 180ms ease;
}

.ref-panel {
  padding-top: 28px;
}

.ref-progress-card {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(180px, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(218, 188, 115, 0.16);
  background:
    radial-gradient(circle at 91% 50%, rgba(216, 180, 100, 0.15), transparent 14rem),
    rgba(31, 43, 45, 0.82);
}

.ref-progress-card__copy {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 16px;
  align-items: end;
}

.ref-progress-card__copy p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ref-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.ref-progress-card__copy strong {
  color: var(--ref-gold-2);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.ref-progress-card__copy strong small {
  color: var(--ref-muted);
  font-size: 15px;
}

.ref-progress-card__copy > span {
  padding-bottom: 4px;
  color: var(--ref-muted);
  font-size: 10px;
}

.ref-progress-card__track {
  position: relative;
  height: 2px;
  background: rgba(218, 188, 115, 0.14);
}

.ref-progress-card__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--ref-gold-3), var(--ref-gold-2));
  transition: width 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ref-progress-card__ticks {
  display: flex;
  gap: 12px;
  color: var(--ref-faint);
  font-family: Georgia, serif;
  font-size: 11px;
}

.ref-rail-wrap {
  margin-top: 42px;
}

.ref-rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.ref-rail-heading h3,
.ref-slot-detail h3,
.ref-inbound-card h3,
.ref-sheet h3 {
  margin: 8px 0 0;
  font-family: var(--ref-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
}

.ref-text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ref-gold);
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.ref-text-button::after {
  content: " →";
  color: var(--ref-gold-2);
}

.ref-text-button:hover,
.ref-text-button:focus-visible {
  color: var(--ref-gold-2);
}

.ref-reward-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  outline: none;
}

.ref-slot {
  position: relative;
  min-width: 0;
  min-height: 250px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(218, 188, 115, 0.17);
  color: var(--ref-soft);
  background:
    linear-gradient(145deg, rgba(211, 177, 103, 0.11), transparent 40%),
    var(--ref-panel);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.ref-slot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(218, 188, 115, 0.07);
  pointer-events: none;
}

.ref-slot:hover,
.ref-slot:focus-visible,
.ref-slot.is-active {
  border-color: rgba(233, 206, 141, 0.62);
  background:
    linear-gradient(145deg, rgba(211, 177, 103, 0.18), transparent 45%),
    var(--ref-panel-2);
  transform: translateY(-2px);
}

.ref-slot.is-qualified {
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 219, 158, 0.22), transparent 10rem),
    linear-gradient(145deg, rgba(211, 177, 103, 0.19), transparent 42%),
    #2a383a;
}

.ref-slot__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ref-slot__index {
  color: var(--ref-gold);
  font-family: Georgia, serif;
  font-size: 18px;
}

.ref-slot__state {
  padding: 5px 8px;
  border: 1px solid rgba(218, 188, 115, 0.18);
  color: var(--ref-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ref-slot.is-qualified .ref-slot__state {
  border-color: rgba(152, 185, 141, 0.42);
  color: var(--ref-green);
}

.ref-slot.is-capped .ref-slot__state {
  border-color: rgba(220, 149, 134, 0.32);
  color: var(--ref-danger);
}

.ref-slot__art {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  margin: 14px 0;
  background:
    radial-gradient(circle, rgba(225, 195, 125, 0.15), transparent 62%);
}

.ref-slot__art::before,
.ref-slot__art::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(218, 188, 115, 0.12);
  border-radius: 50%;
}

.ref-slot__art::after {
  inset: 20px;
  border-style: dashed;
}

.ref-slot__art img {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(238, 215, 158, 0.54);
  object-fit: cover;
  filter: grayscale(0.32) brightness(0.86);
  transition: filter 160ms ease;
}

.ref-slot.is-qualified .ref-slot__art img,
.ref-slot.is-active .ref-slot__art img {
  filter: none;
}

.ref-slot__copy {
  position: relative;
  z-index: 1;
}

.ref-slot__copy strong {
  display: block;
  overflow: hidden;
  color: var(--ref-ivory);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-slot__copy span {
  display: block;
  margin-top: 6px;
  color: var(--ref-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ref-capped-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--ref-faint);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

.ref-slot-detail {
  margin: 0 0 30px;
  border: 1px solid rgba(218, 188, 115, 0.16);
  background:
    linear-gradient(90deg, rgba(211, 177, 103, 0.09), transparent 38%),
    rgba(23, 33, 35, 0.86);
}

.ref-slot-detail__empty,
.ref-slot-detail__body {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.ref-slot-detail__seal {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ref-line-strong);
  color: var(--ref-gold-2);
  background: rgba(198, 165, 93, 0.06);
  font-family: Georgia, serif;
  font-size: 24px;
}

.ref-slot-detail h3 {
  margin-top: 7px;
}

.ref-slot-detail p:not(.ref-kicker) {
  margin: 8px 0 0;
  color: var(--ref-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ref-slot-detail__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 17px;
}

.ref-slot-detail__timeline span {
  position: relative;
  padding-left: 14px;
  color: var(--ref-muted);
  font-size: 10px;
}

.ref-slot-detail__timeline span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 5px;
  height: 5px;
  border: 1px solid var(--ref-faint);
  border-radius: 50%;
}

.ref-slot-detail__timeline span.is-complete {
  color: var(--ref-soft);
}

.ref-slot-detail__timeline span.is-complete::before {
  border-color: var(--ref-gold-2);
  background: var(--ref-gold-2);
}

.ref-inbound-card {
  min-height: 280px;
  border: 1px solid rgba(218, 188, 115, 0.16);
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 180, 100, 0.14), transparent 21rem),
    rgba(24, 34, 36, 0.84);
}

.ref-inbound-card__empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 35px;
  text-align: center;
}

.ref-inbound-card__sigil {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--ref-line-strong);
  color: var(--ref-gold-2);
  font-family: Georgia, serif;
  font-size: 25px;
  transform: rotate(45deg);
}

.ref-inbound-card__sigil::first-letter {
  transform: rotate(-45deg);
}

.ref-inbound-card__empty h3 {
  margin: 0;
}

.ref-inbound-card__empty p {
  margin: 9px 0 0;
  color: var(--ref-muted);
  font-size: 12px;
}

.ref-inbound-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
}

.ref-inbound-profile__identity {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 36px;
  border-right: 1px solid rgba(218, 188, 115, 0.13);
  text-align: center;
}

.ref-inbound-profile__avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid var(--ref-line-strong);
  color: var(--ref-gold-2);
  background: rgba(198, 165, 93, 0.08);
  font-family: var(--ref-serif);
  font-size: 31px;
}

.ref-inbound-profile__identity h3 {
  margin: 0;
  font-family: var(--ref-serif);
  font-size: 29px;
  font-weight: 400;
}

.ref-inbound-profile__identity p {
  margin: 8px 0 0;
  color: var(--ref-muted);
  font-size: 11px;
}

.ref-inbound-profile__steps {
  align-self: center;
  padding: 34px;
}

.ref-inbound-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(218, 188, 115, 0.1);
}

.ref-inbound-step:last-child {
  border-bottom: 0;
}

.ref-inbound-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 188, 115, 0.22);
  color: var(--ref-muted);
  font-family: Georgia, serif;
  font-size: 12px;
}

.ref-inbound-step.is-complete > span {
  border-color: rgba(152, 185, 141, 0.48);
  color: var(--ref-green);
}

.ref-inbound-step strong {
  display: block;
  color: var(--ref-soft);
  font-size: 13px;
  font-weight: 400;
}

.ref-inbound-step small {
  display: block;
  margin-top: 4px;
  color: var(--ref-muted);
  font-size: 10px;
  line-height: 1.55;
}

.ref-finale {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 68px 24px 74px;
  overflow: hidden;
  border-top: 1px solid rgba(218, 188, 115, 0.13);
  text-align: center;
}

.ref-finale::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 68%, rgba(218, 181, 101, 0.19), transparent 25rem),
    linear-gradient(180deg, transparent, rgba(17, 26, 28, 0.54));
}

.ref-finale::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -95vw;
  left: 50%;
  width: 170vw;
  height: 170vw;
  transform: translateX(-50%);
  border: 1px solid rgba(218, 188, 115, 0.06);
  border-radius: 50%;
}

.ref-finale h2 {
  margin: 14px 0 0;
}

.ref-footer {
  width: var(--ref-page);
  min-height: 142px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid rgba(218, 188, 115, 0.13);
}

.ref-footer > p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--ref-faint);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.ref-footer nav {
  display: flex;
  gap: 6px;
}

.ref-footer nav a,
.ref-footer nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: var(--ref-muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.ref-footer nav a:hover,
.ref-footer nav button:hover {
  color: var(--ref-gold-2);
}

.ref-sheet-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
}

.ref-sheet-layer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 13, 15, 0.64);
  cursor: pointer;
}

.ref-sheet {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88svh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(224, 195, 126, 0.34);
  border-bottom: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(103, 145, 151, 0.2), transparent 24rem),
    linear-gradient(180deg, #253336, #182225);
  box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(22px);
  opacity: 0;
  transition:
    transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 180ms ease;
}

.ref-sheet-layer.is-open .ref-sheet {
  transform: none;
  opacity: 1;
}

.ref-sheet__handle {
  width: 46px;
  height: 3px;
  margin: 9px auto 0;
  border-radius: 3px;
  background: rgba(218, 188, 115, 0.28);
}

.ref-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(218, 188, 115, 0.14);
}

.ref-sheet__head h2 {
  margin: 6px 0 0;
  font-family: var(--ref-serif);
  font-size: 27px;
  font-weight: 400;
}

.ref-sheet__close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(218, 188, 115, 0.2);
  background: rgba(7, 10, 12, 0.4);
  cursor: pointer;
}

.ref-sheet__close span {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--ref-soft);
}

.ref-sheet__close span:first-child {
  transform: rotate(45deg);
}

.ref-sheet__close span:last-child {
  transform: rotate(-45deg);
}

.ref-sheet__body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 24px calc(28px + env(safe-area-inset-bottom));
}

.ref-sheet-lead {
  margin: 0 0 20px;
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.75;
}

.ref-form {
  display: grid;
  gap: 14px;
}

.ref-form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(218, 188, 115, 0.18);
}

.ref-form-tabs button {
  min-height: 44px;
  border: 0;
  color: var(--ref-muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.ref-form-tabs button.is-active {
  color: var(--ref-ink);
  background: var(--ref-gold-2);
}

.ref-field {
  display: grid;
  gap: 7px;
}

.ref-field > span {
  color: var(--ref-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ref-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(218, 188, 115, 0.2);
  border-radius: 0;
  color: var(--ref-ivory);
  background: rgba(4, 7, 8, 0.46);
  outline: 0;
}

.ref-field input:focus {
  border-color: rgba(235, 207, 143, 0.62);
}

.ref-field input::placeholder {
  color: var(--ref-faint);
}

.ref-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ref-field-row .ref-button {
  min-height: 48px;
}

.ref-form-note {
  margin: 0;
  color: var(--ref-faint);
  font-size: 10px;
  line-height: 1.65;
}

.ref-form-message {
  min-height: 20px;
  margin: 0;
  color: var(--ref-muted);
  font-size: 11px;
  line-height: 1.55;
}

.ref-form-message.is-error {
  color: var(--ref-danger);
}

.ref-form-message.is-good {
  color: var(--ref-green);
}

.ref-form .ref-button {
  width: 100%;
}

.ref-share-preview {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--ref-line);
  background:
    radial-gradient(circle at 16% 50%, rgba(198, 165, 93, 0.13), transparent 9rem),
    rgba(7, 10, 12, 0.4);
}

.ref-share-preview img {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(239, 218, 166, 0.46);
  object-fit: cover;
}

.ref-share-preview strong {
  display: block;
  color: var(--ref-gold-2);
  font-family: var(--ref-serif);
  font-size: 22px;
  font-weight: 400;
}

.ref-share-preview p {
  margin: 7px 0 0;
  color: var(--ref-muted);
  font-size: 11px;
  line-height: 1.65;
}

.ref-share-code {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.ref-share-code span {
  color: var(--ref-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ref-share-code strong {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px dashed rgba(218, 188, 115, 0.3);
  color: var(--ref-gold-2);
  background: rgba(5, 8, 9, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.ref-group-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid rgba(218, 188, 115, 0.24);
  background: rgba(198, 165, 93, 0.055);
  cursor: pointer;
}

.ref-group-gate input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ref-gold);
}

.ref-group-gate strong {
  display: block;
  color: var(--ref-ivory);
  font-size: 12px;
  font-weight: 400;
}

.ref-group-gate small {
  display: block;
  margin-top: 5px;
  color: var(--ref-muted);
  font-size: 10px;
  line-height: 1.6;
}

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

.ref-share-actions .ref-button {
  width: 100%;
}

.ref-rule-list,
.ref-record-list,
.ref-profile-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-rule-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid rgba(218, 188, 115, 0.12);
}

.ref-rule-list li:first-child {
  border-top: 0;
}

.ref-rule-list b {
  color: var(--ref-gold);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.ref-rule-list strong {
  display: block;
  color: var(--ref-soft);
  font-size: 13px;
  font-weight: 400;
}

.ref-rule-list span {
  display: block;
  margin-top: 5px;
  color: var(--ref-muted);
  font-size: 11px;
  line-height: 1.7;
}

.ref-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(218, 188, 115, 0.11);
}

.ref-record:first-child {
  border-top: 0;
}

.ref-record__name {
  min-width: 0;
}

.ref-record strong {
  display: block;
  overflow: hidden;
  color: var(--ref-soft);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-record small {
  display: block;
  margin-top: 4px;
  color: var(--ref-faint);
  font-size: 9px;
}

.ref-record__state {
  padding: 5px 8px;
  border: 1px solid rgba(218, 188, 115, 0.18);
  color: var(--ref-muted);
  font-size: 9px;
  white-space: nowrap;
}

.ref-record__state.is-qualified {
  border-color: rgba(152, 185, 141, 0.42);
  color: var(--ref-green);
}

.ref-sheet-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--ref-muted);
  font-size: 12px;
  text-align: center;
}

.ref-profile-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(218, 188, 115, 0.1);
}

.ref-profile-list li:first-child {
  border-top: 0;
}

.ref-profile-list span {
  color: var(--ref-muted);
  font-size: 10px;
}

.ref-profile-list strong {
  color: var(--ref-soft);
  font-size: 12px;
  font-weight: 400;
  word-break: break-all;
}

.ref-sheet-footer {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.ref-sheet-footer .ref-button {
  flex: 1;
}

.ref-toast {
  position: fixed;
  z-index: 140;
  left: 50%;
  right: auto;
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: min(420px, calc(100vw - 36px));
  transform: translateX(50%);
  padding: 12px 16px;
  border: 1px solid rgba(232, 207, 148, 0.4);
  color: var(--ref-ivory);
  background: rgba(26, 37, 39, 0.97);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --ref-page: min(100% - 48px, 880px);
  }

  .ref-header__nav > a {
    display: none;
  }

  .ref-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
    min-height: 720px;
    gap: 34px;
    padding-top: 112px;
  }

  .ref-hero h1 {
    font-size: clamp(50px, 7.2vw, 78px);
  }

  .ref-hero__lead {
    font-size: 14px;
  }

  .ref-hero__facts {
    margin-top: 30px;
  }

  .ref-progress-card {
    grid-template-columns: 1fr auto;
  }

  .ref-progress-card__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ref-reward-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ref-slot {
    min-height: 230px;
  }
}

@media (max-width: 720px) {
  :root {
    --ref-page: calc(100% - 30px);
    --ref-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  }

  .ref-header {
    position: absolute;
    right: 15px;
    left: 15px;
    width: auto;
    min-height: 62px;
    transform: none;
  }

  .ref-brand {
    gap: 8px;
  }

  .ref-brand__mark {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .ref-brand__copy strong {
    font-size: 13px;
  }

  .ref-brand__copy small {
    font-size: 8px;
  }

  .ref-header__nav {
    gap: 0;
  }

  .ref-header__nav > button:not(.ref-account-pill) {
    min-width: 44px;
    padding: 0 9px;
    font-size: 11px;
  }

  .ref-header__nav .ref-account-pill {
    min-width: 68px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ref-account-pill__dot {
    margin-right: 6px;
  }

  .ref-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 108px 0 82px;
  }

  .ref-hero__art {
    top: auto;
    right: -126px;
    bottom: -45px;
    width: 154vw;
    max-width: 720px;
    transform: none;
    opacity: 0.46;
    -webkit-mask-image:
      linear-gradient(180deg, transparent 2%, #000 30%, rgba(0, 0, 0, 0.75) 69%, transparent 92%),
      linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(180deg, transparent 2%, #000 30%, rgba(0, 0, 0, 0.75) 69%, transparent 92%),
      linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
    mask-composite: intersect;
  }

  .ref-hero__art img {
    object-position: 38% 70%;
    filter: saturate(0.82) contrast(1.02) brightness(0.96);
  }

  .ref-hero__veil {
    inset: 0 -15px;
    background:
      linear-gradient(180deg, rgba(24, 35, 38, 0.2) 0%, rgba(24, 35, 38, 0.04) 32%, rgba(24, 35, 38, 0.54) 76%, var(--ref-ink) 100%),
      linear-gradient(90deg, rgba(24, 35, 38, 0.56), transparent 92%);
  }

  .ref-hero__grain {
    top: 62px;
    left: -15px;
    width: 100vw;
  }

  .ref-hero__content {
    max-width: none;
  }

  .ref-eyebrow {
    margin-bottom: 19px;
    font-size: 9px;
  }

  .ref-eyebrow::before {
    width: 24px;
  }

  .ref-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
    line-height: 1.01;
  }

  .ref-hero h1 em {
    margin: 6px 0 8px;
    padding: 0 7px 4px;
  }

  .ref-hero__lead {
    max-width: 34rem;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.82;
  }

  .ref-hero__facts {
    gap: 8px;
    margin-top: 25px;
    padding-top: 17px;
  }

  .ref-hero__facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ref-hero__facts strong {
    font-size: 21px;
  }

  .ref-hero__facts span {
    font-size: 9px;
  }

  .ref-reward-poster {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(82vw, 350px);
    margin: 26px 0 0 auto;
    transform: none;
  }

  .ref-reward-poster::before {
    inset: -9px;
  }

  .ref-reward-poster__frame {
    padding: 5px;
  }

  .ref-reward-poster__badge {
    top: 14px;
    left: 14px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .ref-reward-poster__caption {
    right: 5px;
    bottom: 5px;
    left: 5px;
    padding: 28px 11px 10px;
  }

  .ref-reward-poster__caption strong {
    font-size: 18px;
  }

  .ref-invite-banner {
    top: 72px;
    right: 0;
    left: 0;
    max-width: none;
  }

  .ref-scroll-cue {
    display: none;
  }

  .ref-workspace {
    padding: 52px 0 80px;
  }

  .ref-finale h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .ref-tabs {
    margin-top: 0;
  }

  .ref-tabs button {
    flex: 1;
    min-height: 50px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ref-panel {
    padding-top: 20px;
  }

  .ref-progress-card {
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 18px;
  }

  .ref-progress-card__copy strong {
    font-size: 34px;
  }

  .ref-progress-card__ticks {
    font-size: 10px;
  }

  .ref-rail-wrap {
    margin-top: 34px;
  }

  .ref-rail-heading {
    align-items: center;
  }

  .ref-rail-heading h3,
  .ref-slot-detail h3,
  .ref-inbound-card h3,
  .ref-sheet h3 {
    font-size: 22px;
  }

  .ref-rail-heading .ref-text-button {
    max-width: 100px;
    font-size: 10px;
    text-align: right;
  }

  .ref-reward-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ref-slot {
    min-height: 235px;
    padding: 16px;
  }

  .ref-slot__art {
    width: 104px;
    height: 104px;
  }

  .ref-slot-detail__empty,
  .ref-slot-detail__body {
    min-height: 0;
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 18px;
  }

  .ref-slot-detail__seal {
    width: 50px;
    height: 50px;
    font-size: 19px;
  }

  .ref-slot-detail__empty .ref-button,
  .ref-slot-detail__body .ref-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ref-slot-detail__timeline {
    gap: 8px 12px;
  }

  .ref-inbound-card {
    min-height: 240px;
  }

  .ref-inbound-card__empty {
    min-height: 240px;
    padding: 26px;
  }

  .ref-inbound-profile {
    grid-template-columns: 1fr;
  }

  .ref-inbound-profile__identity {
    min-height: 220px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(218, 188, 115, 0.13);
  }

  .ref-inbound-profile__steps {
    padding: 20px;
  }

  .ref-finale {
    min-height: 300px;
    padding: 54px 18px 62px;
  }

  .ref-footer {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 33px 0 calc(32px + env(safe-area-inset-bottom));
  }

  .ref-footer > p {
    order: 3;
    flex: 1 1 100%;
    text-align: left;
  }

  .ref-footer nav {
    margin-left: auto;
  }

  .ref-sheet {
    max-height: 91svh;
  }

  .ref-sheet__head {
    padding: 14px 18px 13px;
  }

  .ref-sheet__head h2 {
    font-size: 24px;
  }

  .ref-sheet__body {
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .ref-share-preview {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 11px;
  }

  .ref-share-preview img {
    width: 82px;
    height: 82px;
  }

  .ref-share-preview strong {
    font-size: 19px;
  }

  .ref-share-code strong {
    font-size: 16px;
  }

  .ref-share-actions {
    grid-template-columns: 1fr;
  }

  .ref-profile-list li {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
