:root {
  color-scheme: dark;
  --ink: #f4f0e4;
  --muted: #b8b6aa;
  --black: #090d0a;
  --deep: #111812;
  --forest: #18261a;
  --panel: #2d2a22;
  --brown: #3c3326;
  --line: rgba(244, 240, 228, 0.18);
  --gold: #f0c34b;
  --green: #4dc86b;
  --red: #d9483f;
  --blue: #4e68df;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--black);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--black);
  background: var(--gold);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(9, 13, 10, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand img,
.footer-brand img {
  display: block;
  border: 1px solid rgba(240, 195, 75, 0.36);
  border-radius: 4px;
}

.brand span,
.footer-brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong,
.footer-brand strong {
  font: 900 1.05rem/1 "Arial Black", "Trebuchet MS", sans-serif;
}

.brand small,
.footer-brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.header-action {
  justify-self: end;
  padding: 10px 15px;
  color: var(--black);
  background: var(--gold);
  border: 1px solid #ffe18b;
  border-radius: 4px;
  font-weight: 900;
  box-shadow: 0 4px 0 #8a6417;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 26px;
  min-height: min(900px, 88svh);
  padding: 126px clamp(22px, 6vw, 96px) 112px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 40%, rgba(240, 195, 75, 0.14), transparent 34%),
    linear-gradient(115deg, rgba(9, 13, 10, 0.98) 10%, rgba(19, 32, 21, 0.92) 54%, rgba(60, 51, 38, 0.66));
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(60, 51, 38, 0.62) 52%, rgba(9, 13, 10, 0.94));
  opacity: 0.72;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font: 900 0.8rem/1.2 "Trebuchet MS", sans-serif;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(77, 200, 107, 0.9);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  line-height: 0.96;
}

h1 {
  margin-bottom: 13px;
  font-size: clamp(3.8rem, 6.2vw, 7rem);
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.ticker {
  margin: 0 0 24px;
  color: var(--gold);
  font: 900 clamp(1.2rem, 2vw, 1.65rem)/1 "Arial Black", sans-serif;
}

.hero-lede {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
}

.reward-line {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.gold {
  color: var(--gold);
}

.green {
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--black);
  background: var(--gold);
  border-color: #ffe18b;
  box-shadow: 0 5px 0 #8a6417;
}

.button-secondary {
  background: rgba(244, 240, 228, 0.07);
  border-color: var(--line);
}

.button-secondary:hover {
  background: rgba(244, 240, 228, 0.12);
}

.mask-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  min-height: 470px;
  perspective: 900px;
}

.mask {
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
  transform-origin: center bottom;
  filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.42));
}

.mask::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14%;
  right: 14%;
  z-index: -1;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  filter: blur(13px);
}

.mask img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.mask-red {
  transform: rotate(-6deg) translateY(32px);
  animation: float-red 5s ease-in-out infinite;
}

.mask-green {
  z-index: 2;
  transform: scale(1.08) translateY(-8px);
  animation: float-green 5.8s ease-in-out infinite;
}

.mask-blue {
  transform: rotate(6deg) translateY(32px);
  animation: float-blue 5.4s ease-in-out infinite;
}

@keyframes float-red {
  0%, 100% { transform: rotate(-6deg) translateY(32px); }
  50% { transform: rotate(-4deg) translateY(20px); }
}

@keyframes float-green {
  0%, 100% { transform: scale(1.08) translateY(-8px); }
  50% { transform: scale(1.08) translateY(-20px); }
}

@keyframes float-blue {
  0%, 100% { transform: rotate(6deg) translateY(32px); }
  50% { transform: rotate(4deg) translateY(18px); }
}

.contract-strip {
  position: absolute;
  left: clamp(22px, 6vw, 96px);
  right: clamp(22px, 6vw, 96px);
  bottom: 26px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 11px 13px 11px 16px;
  background: rgba(9, 13, 10, 0.82);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  backdrop-filter: blur(12px);
}

.contract-strip > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-strip code {
  overflow: hidden;
  color: var(--ink);
  font: 700 0.92rem/1.4 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 36px;
  padding: 6px 13px;
  color: var(--black);
  background: var(--gold);
  border: 0;
  border-radius: 3px;
  font: 900 0.82rem/1 "Trebuchet MS", sans-serif;
  cursor: pointer;
}

.market-band,
.rewards-section,
.token-section,
.faq-section,
.closing-section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 96px);
}

.market-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 2.1fr);
  gap: clamp(28px, 5vw, 80px);
  background: #131a14;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-intro.compact {
  align-self: center;
  margin: 0;
}

.section-intro.compact h2 {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.section-intro p:not(.eyebrow),
.token-heading > p,
.closing-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stat {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  background: #0e130f;
}

.stat span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  min-height: 1.25em;
  color: var(--ink);
  font: 900 clamp(1.35rem, 2.4vw, 2.4rem)/1.15 "Arial Black", sans-serif;
}

.stat strong.positive {
  color: var(--green);
}

.stat strong.negative {
  color: var(--red);
}

.stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.stat-rewards strong {
  color: var(--gold);
}

.data-note {
  grid-column: 2;
  margin: 10px 0 0;
  color: #85877f;
  font-size: 0.78rem;
}

.rewards-section {
  position: relative;
  background: #3b3429;
  border: 18px solid transparent;
  border-image: url("assets/inventory-panel.png") 14 fill / 18px / 0 stretch;
}

.reward-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-step {
  position: relative;
  min-height: 420px;
  padding: 25px;
  overflow: hidden;
  background: rgba(9, 13, 10, 0.76);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.reward-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: var(--step-color);
}

.reward-hmask { --step-color: linear-gradient(90deg, var(--red), var(--green), var(--blue)); }
.reward-gp { --step-color: var(--gold); }
.reward-gldx { --step-color: var(--green); }

.step-number {
  position: absolute;
  right: 20px;
  top: 14px;
  color: rgba(244, 240, 228, 0.2);
  font: 900 3rem/1 "Arial Black", sans-serif;
}

.reward-step img,
.asset-mark {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.reward-step img {
  object-fit: cover;
}

.asset-mark {
  color: var(--black);
  font: 900 1.6rem/1 "Arial Black", sans-serif;
}

.gold-mark {
  background: linear-gradient(145deg, #fff1aa, #d9a52a 55%, #735010);
  clip-path: polygon(15% 20%, 85% 20%, 100% 80%, 0 80%);
}

.asset-symbol {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
}

.reward-step > p:last-child {
  color: var(--muted);
}

.reward-fine-print {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 24px;
  background: rgba(9, 13, 10, 0.55);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.reward-fine-print p {
  margin: 0;
  color: var(--muted);
}

.reward-fine-print a {
  color: var(--gold);
  font-weight: 900;
}

.token-section {
  background: #101511;
  border-bottom: 1px solid var(--line);
}

.token-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(30px, 7vw, 110px);
  margin-bottom: 54px;
}

.token-heading h2,
.token-heading p {
  margin-bottom: 0;
}

.token-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.token-facts div {
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.token-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.token-facts dd {
  margin: 0;
  color: var(--ink);
  font: 900 clamp(1.2rem, 2vw, 1.75rem)/1.2 "Arial Black", sans-serif;
}

.official-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.official-links a {
  position: relative;
  display: grid;
  min-height: 142px;
  padding: 20px;
  background: #182019;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.official-links a:hover {
  background: #202b21;
  border-color: rgba(240, 195, 75, 0.55);
  transform: translateY(-3px);
}

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

.official-links strong {
  align-self: end;
  font-size: 1.02rem;
}

.official-links b {
  position: absolute;
  right: 18px;
  top: 15px;
  color: var(--gold);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 8vw, 130px);
  background: #172119;
  border-bottom: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 23px 50px 23px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  color: var(--gold);
  font: 900 1.7rem/1 Arial, sans-serif;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 740px;
  margin: -4px 0 23px;
  color: var(--muted);
}

details a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

details code {
  color: var(--ink);
  font-family: Consolas, monospace;
}

.closing-section {
  min-height: 620px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(240, 195, 75, 0.14), transparent 32%),
    linear-gradient(135deg, #111712, #29251d);
}

.closing-section img {
  width: min(220px, 44vw);
  aspect-ratio: 1;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.closing-section h2 {
  margin-bottom: 10px;
}

.closing-section .button {
  margin-top: 18px;
}

footer {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  padding: 38px clamp(22px, 6vw, 96px) 48px;
  color: var(--muted);
  background: #090d0a;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.disclaimer {
  justify-self: end;
  max-width: 780px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: 10px 15px;
  color: var(--black);
  background: var(--gold);
  border-radius: 4px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .mask-stage {
    min-height: 470px;
  }

  .reward-fine-print {
    grid-template-columns: 150px 1fr;
  }

  .reward-fine-print a {
    grid-column: 2;
  }

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

  footer {
    grid-template-columns: 1fr auto;
  }

  .disclaimer {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .header-action {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero-text {
    max-width: 600px;
  }

  .mask-stage {
    min-height: 300px;
    margin: 4px -18px 20px;
  }

  .mask span {
    display: none;
  }

  .contract-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 10px;
  }

  .contract-strip > span {
    grid-column: 1 / -1;
  }

  .market-band,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .token-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-note {
    grid-column: 1;
  }

  .reward-path {
    grid-template-columns: 1fr;
  }

  .rewards-section {
    border-width: 9px;
    border-image-width: 9px;
  }

  .reward-step {
    min-height: 340px;
  }

  .reward-fine-print,
  .token-heading {
    grid-template-columns: 1fr;
  }

  .reward-fine-print a {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-action {
    max-width: 126px;
    text-align: center;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .mask-stage {
    min-height: 160px;
  }

  .contract-strip code {
    max-width: 100%;
  }

  .token-facts,
  .official-links {
    grid-template-columns: 1fr;
  }

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

  .stat strong {
    font-size: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
