:root {
  color-scheme: dark;
  --bg: #050713;
  --text: #f4fbff;
  --muted: #8ea4c7;
  --cyan: #69f6ff;
  --blue: #276dff;
  --pink: #ff4fe1;
  --panel: rgba(8, 14, 35, 0.66);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 88px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 79, 225, 0.2), transparent 28rem),
    radial-gradient(circle at 18% 38%, rgba(39, 109, 255, 0.22), transparent 30rem),
    #050713;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.meta-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.meta-exchange {
  width: min(1240px, calc(100% - 34px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  gap: 22px;
  background: rgba(4, 7, 22, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(105, 246, 255, 0.08);
}

.brand,
.nav nav,
.launch {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav nav {
  justify-content: center;
  gap: 28px;
  color: #c4d3ed;
  font-weight: 800;
}

.launch,
.actions a,
.buy-card button {
  min-height: 48px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #030613;
  padding: 0 18px;
  font-weight: 900;
}

.hero {
  position: relative;
  left: 50%;
  display: flex;
  align-items: flex-start;
  width: 100vw;
  min-height: min(100vh, 820px);
  margin-left: -50vw;
  margin-top: -74px;
  padding: clamp(118px, 16vh, 178px) max(17px, calc((100vw - 1240px) / 2)) 92px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  display: none;
}

.copy {
  position: relative;
  z-index: 4;
  width: min(560px, 100%);
  padding: 22px 0;
}

.copy p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.copy span {
  display: block;
  max-width: 560px;
  margin-top: 20px;
  color: #b8c8e5;
  font-size: 18px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  box-shadow:
    0 18px 52px rgba(255, 79, 225, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: actionFade 5.8s ease-in-out infinite;
  will-change: opacity, filter, transform;
}

.actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 12, 38, 0.46);
  color: #fff;
  backdrop-filter: blur(18px);
  animation-delay: 1.25s;
}

.avatar-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.avatar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 6, 20, 0.82) 0%, rgba(4, 6, 20, 0.5) 36%, rgba(4, 6, 20, 0.04) 72%),
    linear-gradient(180deg, rgba(3, 5, 16, 0.08), rgba(3, 5, 16, 0.02) 56%, #050713 100%);
}

.avatar-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: normal;
  filter:
    saturate(1.26)
    contrast(1.1)
    brightness(0.96);
  opacity: 1;
  box-shadow: none;
}

.video-switcher {
  position: fixed;
  right: 190px;
  top: 50%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(105, 246, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 9, 28, 0.58);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
  pointer-events: auto;
}

.video-switcher button {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.video-switcher .active {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #050713;
  box-shadow: 0 0 22px rgba(105, 246, 255, 0.36);
}

.meta-avatar {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: min(660px, 110%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 90px rgba(39, 109, 255, 0.32));
  display: none;
}

.avatar-float {
  animation: avatarFloat 5.4s ease-in-out infinite;
}

.body,
.head,
.neck,
.right-arm {
  fill: url(#skin);
  stroke: rgba(105, 246, 255, 0.28);
  stroke-width: 2;
}

.body {
  opacity: 0.92;
}

.torso-glow,
.visor-line {
  fill: none;
  stroke: #69f6ff;
  stroke-width: 5;
  stroke-linecap: round;
  filter: url(#glow);
}

.visor,
.headset {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(255, 79, 225, 0.7);
  stroke-width: 3;
  filter: url(#glow);
}

.avatar-arm {
  transform-origin: 296px 354px;
  animation: handReach 4.2s ease-in-out infinite;
}

.neck-rings {
  fill: none;
  stroke: url(#halo);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 48 26;
  animation: ringFlow 3.2s linear infinite;
}

.neck-rings ellipse:nth-child(2) {
  stroke-width: 4;
  opacity: 0.8;
  animation-direction: reverse;
}

.stat-strip {
  position: absolute;
  right: max(17px, calc((100vw - 1240px) / 2));
  bottom: 92px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(620px, 92%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 14, 35, 0.58);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.stat-strip div {
  padding: 18px;
}

.stat-strip div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-strip strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
}

.stat-strip span {
  color: var(--muted);
  font-weight: 800;
}

.trade-zone,
.market-cards {
  display: grid;
  gap: 14px;
}

.trade-zone {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding: 12px 0 34px;
}

.trade-card,
.buy-card,
.market-cards article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.trade-card {
  padding: 18px;
}

.trade-card div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 900;
}

.trade-card em,
.market-cards em {
  color: #35f0b4;
  font-style: normal;
}

.trade-card strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
}

.rolling-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-shadow:
    0 0 20px rgba(105, 246, 255, 0.22),
    0 0 36px rgba(255, 79, 225, 0.12);
  transition:
    transform 0.32s ease,
    color 0.32s ease,
    text-shadow 0.32s ease;
}

.rolling-price.is-rolling {
  color: #e9fbff;
  transform: translateY(-3px);
  text-shadow:
    0 0 28px rgba(105, 246, 255, 0.48),
    0 0 48px rgba(255, 79, 225, 0.24);
}

#metaChart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.buy-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.buy-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.buy-card input {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 14px;
  outline: 0;
}

.buy-card button {
  border: 0;
  cursor: pointer;
}

.market-cards {
  grid-template-columns: repeat(4, 1fr);
  padding: 0 0 100px;
}

.market-cards article {
  padding: 18px;
}

.market-cards span {
  color: var(--muted);
  font-weight: 900;
}

.market-cards strong {
  display: block;
  margin: 12px 0;
  font-size: 28px;
}

.meta-bottom {
  position: fixed;
  right: 50%;
  bottom: 18px;
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(690px, calc(100% - 28px));
  min-height: 74px;
  overflow: visible;
  border: 1px solid rgba(105, 246, 255, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 79, 225, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(105, 246, 255, 0.09), rgba(255, 79, 225, 0.08)),
    rgba(6, 9, 28, 0.62);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.meta-bottom a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  color: #91a4ca;
  font-size: 12px;
  font-weight: 900;
  margin: 8px 3px;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.meta-bottom img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: grayscale(1) saturate(0.2) brightness(1.5);
  opacity: 0.7;
}

.meta-bottom span {
  display: block;
  color: rgba(145, 164, 202, 0.7);
  font-size: 9px;
  text-transform: uppercase;
}

.meta-bottom .active,
.meta-bottom a:hover {
  color: #fff;
  background: radial-gradient(circle at 50% 20%, rgba(105, 246, 255, 0.2), rgba(255, 79, 225, 0.08) 58%, transparent);
  transform: translateY(-2px);
}

.meta-bottom .active img,
.meta-bottom a:hover img {
  filter: drop-shadow(0 0 12px rgba(105, 246, 255, 0.56));
  opacity: 1;
}

.meta-bottom .center {
  justify-self: center;
  width: min(126px, 100%);
  min-height: 82px;
  margin-top: -22px;
  border: 1px solid rgba(105, 246, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(105, 246, 255, 0.94), rgba(255, 79, 225, 0.88)),
    rgba(255, 255, 255, 0.1);
  color: #050713;
  box-shadow:
    0 0 28px rgba(105, 246, 255, 0.34),
    0 18px 52px rgba(255, 79, 225, 0.24);
}

.meta-bottom .center img {
  width: 28px;
  height: 28px;
  filter: brightness(0.05);
  opacity: 0.92;
}

.meta-bottom .center span {
  color: rgba(5, 7, 19, 0.7);
}

.fx-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fx-ripple::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(105, 246, 255, 0.44), transparent 38%);
  transition: opacity 0.25s ease;
}

.fx-ripple:hover::before,
.fx-ripple:focus-visible::before {
  opacity: 1;
}

.ripple-wave {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 79, 225, 0.32), transparent 72%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleWave 0.72s ease-out forwards;
}

@keyframes avatarFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes handReach {
  0%,
  100% {
    transform: rotate(-5deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(9deg) translate3d(-12px, -10px, 0);
  }
}

@keyframes ringFlow {
  to {
    stroke-dashoffset: -148;
  }
}

@keyframes rippleWave {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes actionFade {
  0%,
  100% {
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: translateY(0);
  }
  50% {
    opacity: 0.34;
    filter: saturate(0.72) brightness(0.86);
    transform: translateY(1px);
  }
}

@media (max-width: 920px) {
  .nav nav,
  .launch {
    display: none;
  }

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

  .hero {
    min-height: min(100vh, 820px);
    margin-top: -64px;
    padding: 122px max(17px, calc((100vw - 1240px) / 2)) 96px;
  }

  .copy {
    padding-top: 0;
  }

  .avatar-stage {
    min-height: 100%;
    margin-top: 0;
  }

  .meta-avatar {
    right: -170px;
    width: 650px;
  }

  .avatar-video {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
  }

  .stat-strip {
    right: max(17px, calc((100vw - 1240px) / 2));
    bottom: 108px;
  }

  .market-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .meta-exchange {
    width: min(100% - 20px, 1240px);
  }

  .nav {
    min-height: 64px;
  }

  .hero {
    width: 100vw;
    min-height: min(100vh, 824px);
    padding: 102px 10px 106px;
  }

  .copy h1 {
    max-width: 310px;
    font-size: 35px;
  }

  .copy span {
    max-width: 315px;
    font-size: 13px;
    line-height: 1.7;
  }

  .actions a {
    width: 100%;
  }

  .avatar-stage {
    min-height: 100%;
    overflow: hidden;
  }

  .meta-avatar {
    right: -188px;
    bottom: 10px;
    width: 610px;
  }

  .avatar-video {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .video-switcher {
    right: 70px;
    top: 49%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
    right: 10px;
    bottom: 100px;
    width: calc(100% - 20px);
  }

  .stat-strip div {
    padding: 12px 8px;
  }

  .stat-strip span {
    font-size: 12px;
  }

  .market-cards {
    grid-template-columns: 1fr;
  }

  .template-dock {
    right: 6px;
    top: 45%;
    width: 52px;
    transform: translateY(-50%);
  }

  .template-dock a {
    justify-items: center;
    padding: 10px 6px;
  }

  .template-dock strong {
    display: none;
  }

  .meta-bottom {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    min-height: 72px;
    border-radius: 999px;
    transform: none;
  }

  .meta-bottom a {
    font-size: 11px;
  }

  .meta-bottom img {
    width: 23px;
    height: 23px;
  }

  .meta-bottom .center {
    width: 86px;
    min-height: 78px;
    margin-top: -22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-float,
  .avatar-arm,
  .neck-rings,
  .ripple-wave {
    animation: none;
  }
}
