@font-face {
  font-family: "Atlas Display";
  src: url("assets/AtlasDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #06080b;
  color: #e4d9c5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 240px; min-height: 100%; }
body { margin: 0; min-height: 100svh; }

.universe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 37%, #15202738 0, transparent 51%),
    linear-gradient(#080c11, #090c10 50%, #06080b);
}

.starlight {
  position: absolute;
  inset: 0;
  opacity: 1;
  background: url("assets/stars.svg") center top / cover no-repeat;
  mask-image: linear-gradient(#000, #0008 50%, transparent 76%);
}
.stars-canvas, .network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars-canvas { opacity: 0; }
.network-canvas { opacity: 0; }
.universe.planet-live .network-canvas { opacity: 1; }
.universe.live .starlight, .universe.planet-live .network-static { visibility: hidden; }
.universe.live .stars-canvas { opacity: 1; }
.network-static { display: block; width: 100%; height: 100%; }

.horizon-haze {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 62%;
  top: 43%;
  background:
    radial-gradient(ellipse at 50% 50%, #de9e4933 0, #bb864017 23%, #a66c2b08 42%, transparent 64%);
}

.world {
  position: absolute;
  top: 69%;
  left: 50%;
  width: max(220vw, 1680px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 52% 0%, #194561 0, #102e45 3%, #091827 8%, #060e19 18%, #05090f 36%, #06080b 60%);
  box-shadow: 0 -1px 2px #92d9f2b3, 0 -3px 10px #249bd376, 0 -9px 32px #007bbd40, 0 -24px 80px #176ca52b;
}

.world::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 -1px 2px #edbf78d9, 0 -4px 17px #d99e4340, inset 0 2px 14px #d99e4324;
  mask-image: linear-gradient(90deg, transparent 32%, #000 49%, transparent 69%);
}

.world::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #06080b 3%, transparent 40%, transparent 60%, #06080b 97%);
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 43%, transparent 24%, #04060966 73%, #040609e0 110%),
    linear-gradient(transparent 73%, #06080b 100%);
}

main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 96px 24px 156px;
}

.announcement {
  width: 100%;
  text-align: center;
  transform: translateY(-1.5vh);
  mix-blend-mode: screen;
}

h1 { position: relative; margin: 0 auto; width: min(77vw, 650px); aspect-ratio: 326 / 40; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; line-height: 1; }

.wordmark {
  visibility: hidden;
  white-space: nowrap;
  font: 400 min(6.4vw, 54px) / 1 "Atlas Display";
  letter-spacing: .4em;
  padding-left: .4em;
  color: #ead079;
  background: linear-gradient(#f6d886 15%, #ead079 55%, #d7ae58 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wordmark-fallback { position: absolute; width: 100%; height: 100%; }
.font-ready .wordmark { visibility: visible; }
.font-ready .wordmark-fallback { display: none; }

p {
  margin: clamp(25px, 4.4vh, 44px) 0 0;
  font: italic 400 clamp(28px, 3.2vw, 42px) / 1.3 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .025em;
  color: #8babbd;
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  top: max(258px, calc(100svh - 94px - env(safe-area-inset-bottom)));
  top: max(258px, calc(100dvh - 94px - env(safe-area-inset-bottom)));
  padding: 0 20px max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  color: #718b98;
  font: 400 clamp(12px, 1vw, 13px) / 1.5 Manrope, sans-serif;
  letter-spacing: .09em;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 180ms ease;
}

a:hover { color: #eed39d; text-decoration: underline; }
a:focus-visible { outline: 1px solid #e8c783; outline-offset: 5px; border-radius: 2px; color: #eed39d; }
footer:focus-within { animation: none; opacity: 1; }
::selection { background: #c89b4b45; color: #fff0ce; }

@media (prefers-reduced-motion: no-preference) {
  h1 { animation: illuminate 2.2s .35s cubic-bezier(.2, .7, .2, 1) both; }
  p { animation: appear 1.8s 2.9s ease both; }
  footer { animation: appear 2s 1.8s ease both; }
}

@keyframes illuminate {
  from { opacity: 0; filter: drop-shadow(0 0 18px #d7ae5800); }
  60% { filter: drop-shadow(0 0 14px #d7ae5824); }
  to { opacity: 1; filter: drop-shadow(0 0 9px #d7ae5812); }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.entered h1, .entered p, .entered footer { animation: none; }

@media (max-width: 600px) {
  main { padding-inline: 20px; padding-bottom: 132px; }
  h1 { width: min(90vw, 470px); max-width: 100%; }
  .wordmark { font-size: min(7.47vw, 39px); }
  .world { top: 66%; width: max(220vw, 840px); }
  .horizon-haze { top: 37%; height: 58%; }
  footer {
    top: max(258px, calc(100svh - 78px - env(safe-area-inset-bottom)));
    top: max(258px, calc(100dvh - 78px - env(safe-area-inset-bottom)));
  }
}

@media (max-height: 450px) and (min-width: 601px) {
  main { padding: 36px 24px 100px; }
  h1 { width: min(65vw, 520px); }
  .wordmark { font-size: min(5.1vw, 43px); }
  p { margin-top: 18px; font-size: 28px; }
  footer { top: max(218px, calc(100dvh - 62px)); padding-bottom: 14px; }
}

@media (forced-colors: active) {
  .universe { display: none; }
  a { color: LinkText; }
  p { color: CanvasText; }
  .wordmark { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Final release additions: preserve all approved layout and animation rules. */
.xrp-watermark {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(75vmin, 900px);
  height: auto;
  aspect-ratio: 2000 / 1656;
  transform: translate(-50%, -50%);
  opacity: .05;
  pointer-events: none;
  user-select: none;
  /* Fade only the decorative mark before it reaches the approved horizon. */
  mask-image: linear-gradient(#000 0 61%, transparent 80%);
}
.alpha-progress {
  position: absolute;
  left: 50%;
  top: calc(100% + clamp(22px, 3.6vh, 38px));
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 48px));
  color: #8babbd;
  font: 400 12px / 18px Manrope, sans-serif;
  letter-spacing: .07em;
}
.alpha-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.alpha-label { white-space: nowrap; }
.alpha-line { margin-top: 9px; }
.alpha-track {
  height: 7px;
  border-radius: 3.5px;
  background: #172c3c;
  overflow: hidden;
}
.alpha-fill { display: block; height: 100%; width: var(--alpha-progress, 0%); background: #d7ae58; border-radius: inherit; }
.alpha-percentage { color: #ead079; font-variant-numeric: tabular-nums; font-size: 13px; line-height: 18px; letter-spacing: 0; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .alpha-progress { animation: appear 1.8s 2.9s ease both; }
}
.entered .alpha-progress { animation: none; }
@media (max-width: 600px) {
  /* Centre independently of the approved wordmark's intrinsic mobile width. */
  .alpha-progress { left: calc(50vw - 20px); }
}
@media (max-height: 450px) and (min-width: 601px) {
  .alpha-progress { top: calc(100% + 13px); font-size: 11px; line-height: 16px; }
  .alpha-line { margin-top: 7px; }
  .alpha-percentage { font-size: 12px; line-height: 16px; }
}
@media (forced-colors: active) {
  .xrp-watermark { display: none; }
  .alpha-progress, .alpha-percentage { color: CanvasText; }
  .alpha-track { outline: 1px solid CanvasText; background: Canvas; }
  .alpha-fill { background: Highlight; }
}
