:root {
  --blue-950: #06142f;
  --blue-900: #08245a;
  --blue-800: #0c3a82;
  --blue-600: #166bd8;
  --blue-400: #56b6ff;
  --blue-100: #dff3ff;
  --porcelain: #f6fbff;
  --ink: #071327;
  --ink-soft: #244466;
  --gold: #d8a849;
  --gold-soft: #ffe3a0;
  --pink: #ff9fb8;
  --shadow: rgba(3, 17, 45, 0.28);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --chunky-border: 3px solid rgba(8, 36, 90, 0.74);
  --font-display: "Cinzel", "Noto Serif SC", Georgia, serif;
  --font-body: "Spectral", "Noto Serif SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--blue-100);
  background-image:
    linear-gradient(180deg, rgba(246, 251, 255, 0.18), rgba(246, 251, 255, 0.6)),
    radial-gradient(circle at 12% 10%, rgba(86, 182, 255, 0.3), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(255, 227, 160, 0.2), transparent 22rem),
    url("assets/kui-niu-bg-desktop.png");
  background-size: cover, auto, auto, cover;
  background-position: center, 12% 10%, 82% 0%, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background: transparent;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--blue-950);
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.6), rgba(223, 243, 255, 0.78)),
    url("assets/kui-niu-bg-desktop.png") center / cover fixed no-repeat,
    var(--blue-100);
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(128px, 18vw, 190px);
  aspect-ratio: 1;
  border: var(--chunky-border);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(86, 182, 255, 0.42)),
    var(--porcelain);
  box-shadow: 0 12px 0 rgba(8, 36, 90, 0.18), 0 28px 54px rgba(8, 36, 90, 0.2);
  animation: preloader-bob 1.15s ease-in-out infinite;
}

.preloader-orb::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 4px dashed rgba(216, 168, 73, 0.62);
  border-radius: 50%;
  animation: preloader-spin 4s linear infinite;
}

.preloader-orb img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(8, 36, 90, 0.18));
}

.preloader p {
  margin: 0;
  padding: 9px 16px;
  border: 2px solid rgba(8, 36, 90, 0.42);
  border-radius: 999px;
  background: rgba(246, 251, 255, 0.72);
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(8, 36, 90, 0.12);
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("assets/kui-niu-bg-desktop.png") center / cover no-repeat;
}

.video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.16), rgba(246, 251, 255, 0.55)),
    radial-gradient(circle at 14% 12%, rgba(86, 182, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(255, 227, 160, 0.16), transparent 24rem);
}

.video-background-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background-track-mobile {
  display: none;
}

@keyframes preloader-bob {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
  }

  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.leaf-fall-layer {
  position: fixed;
  top: 86px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.falling-leaf {
  position: absolute;
  top: -90px;
  left: var(--leaf-x);
  width: var(--leaf-size);
  height: auto;
  opacity: var(--leaf-opacity);
  transform: translate3d(0, -90px, 0) rotate(var(--leaf-rotate-start));
  transform-origin: 45% 56%;
  filter: drop-shadow(0 12px 10px rgba(6, 20, 47, 0.16));
  animation: cinematic-leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite;
  will-change: transform, opacity;
}

@keyframes cinematic-leaf-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -90px, 0) rotate(var(--leaf-rotate-start));
  }

  8% {
    opacity: var(--leaf-opacity);
  }

  28% {
    transform: translate3d(calc(var(--leaf-drift) * 0.24), 24vh, 0) rotate(var(--leaf-rotate-mid));
  }

  54% {
    transform: translate3d(calc(var(--leaf-drift) * -0.16), 51vh, 0) rotate(var(--leaf-rotate-alt));
  }

  82% {
    opacity: var(--leaf-opacity);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--leaf-drift), calc(100vh + 110px), 0) rotate(var(--leaf-rotate-end));
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: var(--chunky-border);
  border-radius: 999px;
  background: rgba(246, 251, 255, 0.82);
  box-shadow: 0 10px 0 rgba(22, 107, 216, 0.18), 0 24px 44px rgba(6, 20, 47, 0.16);
  backdrop-filter: blur(14px);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.brand-logo {
  display: block;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(216, 168, 73, 0.94);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(86, 182, 255, 0.34));
  object-fit: contain;
  box-shadow: 0 5px 0 rgba(8, 36, 90, 0.22), 0 10px 22px rgba(22, 107, 216, 0.22);
}

.brand strong {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(8, 36, 90, 0.55);
  background: rgba(86, 182, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: var(--chunky-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(22, 107, 216, 0.18);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-950);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.section-band,
.contract-panel {
  border: var(--chunky-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(216, 240, 255, 0.56)),
    rgba(246, 251, 255, 0.64);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 0 rgba(22, 107, 216, 0.16), 0 30px 64px rgba(3, 17, 45, 0.2);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: calc(100vh - 116px);
  margin: 18px 0 54px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "夔牛";
  position: absolute;
  right: 4%;
  top: 3%;
  color: rgba(22, 107, 216, 0.09);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(6rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border: 4px dashed rgba(86, 182, 255, 0.26);
  border-radius: 36%;
  background:
    radial-gradient(circle, rgba(86, 182, 255, 0.3), transparent 58%),
    conic-gradient(from 20deg, transparent 0 14%, rgba(216, 168, 73, 0.22) 14% 17%, transparent 17% 32%, rgba(22, 107, 216, 0.18) 32% 35%, transparent 35%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue-950);
  font-family: var(--font-display);
  line-height: 1.02;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  font-weight: 900;
  text-shadow: 0 5px 0 rgba(86, 182, 255, 0.18);
}

h1 span {
  display: block;
  margin-top: 4px;
  color: var(--blue-600);
  font-family: "Noto Serif SC", serif;
  font-size: 0.54em;
}

.tagline {
  margin: 18px 0 0;
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.56;
}

.hero-actions,
.summon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: var(--chunky-border);
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(8, 36, 90, 0.24), 0 14px 28px rgba(22, 107, 216, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 10px 0 rgba(8, 36, 90, 0.22), 0 18px 30px rgba(22, 107, 216, 0.17);
  background: var(--porcelain);
}

.button.primary,
.copy-button {
  color: var(--porcelain);
  background: linear-gradient(180deg, var(--blue-600), var(--blue-800));
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
}

.mobile-hero-art {
  display: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 4px solid rgba(216, 168, 73, 0.46);
  border-radius: 40% 60% 42% 58% / 56% 42% 58% 44%;
  background: radial-gradient(circle, rgba(246, 251, 255, 0.98), rgba(86, 182, 255, 0.32) 55%, rgba(255, 159, 184, 0.16) 72%);
  filter: blur(1px);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.36);
}

.hero-art img {
  position: relative;
  display: block;
  width: min(100%, 500px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(8, 36, 90, 0.16)) drop-shadow(0 28px 30px rgba(8, 36, 90, 0.22));
  transform: rotate(2deg);
}

.sky-banner-section {
  margin: 0 0 54px;
}

.sky-banner-card {
  position: relative;
  margin: 0;
  padding: 10px;
  border: var(--chunky-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(191, 225, 255, 0.72)),
    var(--porcelain);
  box-shadow: 0 12px 0 rgba(8, 36, 90, 0.18), 0 28px 54px rgba(8, 36, 90, 0.18);
  overflow: hidden;
  transform: rotate(-0.4deg);
}

.sky-banner-card::after {
  content: "夔牛";
  position: absolute;
  right: 22px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 12px;
  border: 2px solid rgba(8, 36, 90, 0.42);
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(246, 251, 255, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(8, 36, 90, 0.14);
}

.sky-banner-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2172 / 724;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
}

.legend-section,
.bio-scroll,
.contract-section {
  margin: 54px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legend-grid article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 3px solid rgba(8, 36, 90, 0.5);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(207, 235, 255, 0.58)),
    rgba(246, 251, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 9px 0 rgba(86, 182, 255, 0.18), 0 18px 34px rgba(8, 36, 90, 0.12);
  overflow: hidden;
}

.legend-grid article:nth-child(1) {
  transform: rotate(-1.1deg);
}

.legend-grid article:nth-child(2) {
  transform: translateY(8px) rotate(1deg);
}

.legend-grid article:nth-child(3) {
  transform: rotate(-0.4deg);
}

.legend-grid article::after {
  content: "云";
  position: absolute;
  right: 16px;
  bottom: 6px;
  color: rgba(22, 107, 216, 0.08);
  font-family: "Noto Serif SC", serif;
  font-size: 4.8rem;
  font-weight: 900;
}

.chapter {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 2px solid rgba(8, 36, 90, 0.4);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-weight: 900;
}

h3 {
  font-size: 1.28rem;
}

.legend-grid p,
.chain-copy p,
.scroll-inner p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

.chain-section {
  display: block;
  margin: 54px 0;
  padding: clamp(24px, 4vw, 44px);
}

.chain-copy {
  max-width: 820px;
}

.moment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: -18px 0 54px;
}

.moment-card {
  position: relative;
  margin: 0;
  padding: 9px;
  border: var(--chunky-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(198, 229, 255, 0.62)),
    rgba(246, 251, 255, 0.66);
  box-shadow: 0 10px 0 rgba(8, 36, 90, 0.18), 0 24px 44px rgba(8, 36, 90, 0.18);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.moment-card:nth-child(1) {
  transform: rotate(-0.7deg);
}

.moment-card:nth-child(2) {
  transform: rotate(0.9deg);
}

.moment-card:nth-child(3) {
  transform: rotate(-0.4deg);
}

.moment-card:nth-child(4) {
  transform: rotate(0.8deg);
}

.moment-card:nth-child(5) {
  transform: rotate(-0.8deg);
}

.moment-card:nth-child(6) {
  transform: rotate(0.45deg);
}

.moment-card:nth-child(7) {
  transform: rotate(-0.35deg);
}

.moment-card-wide {
  grid-column: 1 / -1;
}

.moment-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
}

.moment-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 26px;
  pointer-events: none;
}

.contract-panel {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(255, 227, 160, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(216, 240, 255, 0.7)),
    rgba(246, 251, 255, 0.86);
}

.contract-kicker,
.contract-note {
  margin: 0;
}

.contract-kicker {
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 28px);
  border: 3px dashed rgba(8, 36, 90, 0.38);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.contract-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.38;
}

.contract-address {
  min-width: 0;
  color: var(--blue-950);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1rem, 2vw, 1.28rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border: var(--chunky-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(8, 36, 90, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(8, 36, 90, 0.22);
}

.reward-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin: 54px 0;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
}

.reward-section::before {
  content: "赏";
  position: absolute;
  right: clamp(16px, 5vw, 60px);
  bottom: -36px;
  color: rgba(22, 107, 216, 0.07);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.reward-section > * {
  position: relative;
  z-index: 1;
}

.reward-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.reward-animation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(104px, 1fr) minmax(120px, 0.9fr) minmax(104px, 1fr);
  align-items: center;
  min-height: 260px;
  padding: clamp(16px, 3vw, 26px);
  border: 3px solid rgba(8, 36, 90, 0.5);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 15rem),
    radial-gradient(circle at 84% 78%, rgba(203, 239, 92, 0.28), transparent 13rem),
    linear-gradient(135deg, rgba(223, 243, 255, 0.84), rgba(246, 251, 255, 0.7));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.44), 0 10px 0 rgba(8, 36, 90, 0.16), 0 26px 44px rgba(8, 36, 90, 0.16);
  overflow: hidden;
}

.reward-animation::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(86, 182, 255, 0), rgba(203, 239, 92, 0.92), rgba(86, 182, 255, 0));
  box-shadow: 0 0 28px rgba(203, 239, 92, 0.55);
  transform: translateY(-50%);
  animation: reward-pulse 2.4s ease-in-out infinite;
}

.reward-token {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.reward-token img {
  display: block;
  width: clamp(98px, 15vw, 156px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(8, 36, 90, 0.16)) drop-shadow(0 22px 24px rgba(8, 36, 90, 0.22));
}

.reward-token-kui img {
  animation: reward-float-left 4.2s ease-in-out infinite;
}

.reward-token-usdg img {
  animation: reward-float-right 4.2s ease-in-out infinite;
}

.reward-token figcaption {
  padding: 8px 12px;
  border: 2px solid rgba(8, 36, 90, 0.46);
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(246, 251, 255, 0.78);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 5px 0 rgba(8, 36, 90, 0.12);
}

.reward-flow {
  position: relative;
  min-height: 150px;
}

.reward-orb {
  position: absolute;
  left: -22%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 12px 18px rgba(58, 82, 18, 0.28));
  animation: reward-transfer 3.8s linear infinite;
}

.reward-orb img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.reward-orb-two {
  width: 44px;
  animation-delay: 1.25s;
}

.reward-orb-three {
  width: 38px;
  animation-delay: 2.5s;
}

@keyframes reward-transfer {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) rotate(-12deg) scale(0.82);
  }

  12% {
    opacity: 1;
  }

  52% {
    opacity: 1;
    transform: translate3d(68%, -24px, 0) rotate(22deg) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(210%, 18px, 0) rotate(68deg) scale(0.86);
  }
}

@keyframes reward-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(-50%) scaleX(0.82);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes reward-float-left {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes reward-float-right {
  0%,
  100% {
    transform: translateY(-4px) rotate(2deg);
  }

  50% {
    transform: translateY(7px) rotate(-2deg);
  }
}

@keyframes reward-transfer-mobile {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(-10deg) scale(0.78);
  }

  14% {
    opacity: 1;
  }

  54% {
    opacity: 1;
    transform: translate3d(-50%, 46px, 0) rotate(22deg) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, 104px, 0) rotate(72deg) scale(0.82);
  }
}

@keyframes reward-pulse-mobile {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-50%) scaleY(0.82);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

.buy-section {
  position: relative;
  margin: 54px 0;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.buy-section::before {
  content: "买";
  position: absolute;
  right: clamp(18px, 5vw, 54px);
  top: 14px;
  color: rgba(22, 107, 216, 0.08);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.buy-section > * {
  position: relative;
  z-index: 1;
}

.buy-accordion {
  display: grid;
  gap: 14px;
}

.buy-step {
  border: 3px solid rgba(8, 36, 90, 0.48);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(207, 235, 255, 0.58)),
    rgba(246, 251, 255, 0.7);
  box-shadow: 0 7px 0 rgba(86, 182, 255, 0.16), 0 18px 34px rgba(8, 36, 90, 0.12);
  overflow: hidden;
}

.buy-step summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 16px 18px;
  color: var(--blue-950);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.buy-step summary::after {
  content: "+";
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(8, 36, 90, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 4px 0 rgba(8, 36, 90, 0.14);
}

.buy-step[open] summary::after {
  content: "-";
  color: var(--porcelain);
  background: linear-gradient(180deg, var(--blue-600), var(--blue-800));
}

.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(216, 168, 73, 0.72);
  border-radius: 50%;
  color: var(--blue-950);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(86, 182, 255, 0.28));
  box-shadow: 0 5px 0 rgba(8, 36, 90, 0.16);
  font-size: 0.78rem;
}

.step-body {
  padding: 0 22px 22px 78px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

.step-body p {
  margin: 0 0 12px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body a {
  color: var(--blue-800);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bio-scroll {
  position: relative;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  padding: 24px;
  border: var(--chunky-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--blue-900), var(--blue-600) 8%, var(--blue-100) 50%, var(--blue-600) 92%, var(--blue-900));
  box-shadow: 0 12px 0 rgba(8, 36, 90, 0.18), 0 22px 54px rgba(8, 36, 90, 0.22);
}

.bio-scroll::before,
.bio-scroll::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 14px;
  border: 3px solid rgba(8, 36, 90, 0.54);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-950), var(--gold), var(--blue-950));
}

.bio-scroll::before {
  top: -7px;
}

.bio-scroll::after {
  bottom: -7px;
}

.scroll-inner {
  padding: clamp(26px, 5vw, 46px);
  border: 3px dashed rgba(8, 36, 90, 0.26);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(207, 235, 255, 0.48)),
    rgba(246, 251, 255, 0.68);
  backdrop-filter: blur(8px);
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.bio-links span {
  padding: 9px 12px;
  border: 2px solid rgba(8, 36, 90, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
}

.summon-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 54px 0;
  padding: clamp(24px, 4vw, 44px);
}

.summon-section h2 {
  max-width: 650px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.summon-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(8, 36, 90, 0.2);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  overflow: visible;
}

.site-footer p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.footer-clouds {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 1;
  display: block;
  width: calc(100vw - 18px);
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: bottom center;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 3px solid rgba(246, 251, 255, 0.22);
  border-radius: 22px;
  color: var(--porcelain);
  background: rgba(6, 20, 47, 0.96);
  box-shadow: 0 16px 36px rgba(6, 20, 47, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader-orb,
  .preloader-orb::before {
    animation: none;
    transition-duration: 1ms;
  }

  .video-background-track {
    display: none;
  }

  .leaf-fall-layer,
  .falling-leaf {
    display: none;
  }

  .reward-animation::before,
  .reward-orb,
  .reward-token-kui img,
  .reward-token-usdg img {
    animation: none;
  }

  .reward-orb-one {
    opacity: 1;
    transform: translate3d(70%, -18px, 0) scale(0.95);
  }

  .reward-orb-two {
    opacity: 0.8;
    transform: translate3d(118%, 18px, 0) scale(0.86);
  }

  .reward-orb-three {
    opacity: 0.68;
    transform: translate3d(164%, -4px, 0) scale(0.78);
  }
}

@media (max-width: 860px) {
  html {
    background-image:
      linear-gradient(180deg, rgba(246, 251, 255, 0.12), rgba(246, 251, 255, 0.58)),
      radial-gradient(circle at 12% 10%, rgba(86, 182, 255, 0.25), transparent 22rem),
      radial-gradient(circle at 82% 0%, rgba(255, 227, 160, 0.18), transparent 18rem),
      url("assets/kui-niu-bg-mobile.png");
    background-position: center, 12% 10%, 82% 0%, center top;
  }

  .video-background {
    background-image: url("assets/kui-niu-bg-mobile.png");
  }

  .video-background-track-desktop {
    display: none;
  }

  .video-background-track-mobile {
    display: block;
  }

  .footer-clouds {
    width: calc(100vw - 2px);
  }

  .leaf-fall-layer {
    top: 74px;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: var(--chunky-border);
    border-radius: 28px;
    background: rgba(246, 251, 255, 0.96);
    box-shadow: 0 10px 0 rgba(22, 107, 216, 0.14);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

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

  .mobile-hero-art {
    display: grid;
    place-items: center;
    margin: 12px 0 6px;
  }

  .mobile-hero-art img {
    display: block;
    width: min(58vw, 220px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 8px 0 rgba(8, 36, 90, 0.12)) drop-shadow(0 18px 24px rgba(8, 36, 90, 0.2));
  }

  .hero > .hero-art {
    display: none;
  }

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

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

  .reward-animation {
    min-height: 230px;
  }

  .legend-grid article {
    min-height: auto;
    transform: none;
  }

  .moment-gallery {
    grid-template-columns: 1fr;
  }

  .moment-card,
  .moment-card:nth-child(1),
  .moment-card:nth-child(2),
  .moment-card:nth-child(3),
  .moment-card:nth-child(4),
  .moment-card:nth-child(5),
  .moment-card:nth-child(6),
  .moment-card:nth-child(7) {
    transform: none;
  }

  .summon-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .summon-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    padding: 10px;
    border-radius: 28px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 22px 16px;
  }

  h1 {
    font-size: 3rem;
  }

  .mobile-hero-art {
    margin: 10px 0 4px;
  }

  .mobile-hero-art img {
    width: min(68vw, 230px);
  }

  .sky-banner-card {
    padding: 7px;
    border-radius: 28px;
    transform: none;
  }

  .sky-banner-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 20px;
    object-fit: contain;
    object-position: center;
  }

  .sky-banner-card::after {
    right: 14px;
    bottom: 10px;
  }

  .moment-gallery {
    gap: 14px;
    margin-top: -24px;
  }

  .moment-card {
    padding: 7px;
    border-radius: 28px;
  }

  .moment-card img,
  .moment-card::after {
    border-radius: 20px;
  }

  .button {
    width: 100%;
  }

  .buy-step summary {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 14px;
  }

  .step-number {
    width: 40px;
    height: 40px;
  }

  .step-body {
    padding: 0 16px 18px;
  }

  .contract-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .reward-section {
    padding: 22px 16px;
  }

  .reward-animation {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 18px 12px;
  }

  .reward-animation::before {
    left: 50%;
    right: auto;
    top: 34%;
    width: 8px;
    height: 34%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(86, 182, 255, 0), rgba(203, 239, 92, 0.92), rgba(86, 182, 255, 0));
    animation-name: reward-pulse-mobile;
  }

  .reward-token img {
    width: min(48vw, 148px);
  }

  .reward-flow {
    min-height: 78px;
  }

  .reward-orb {
    left: 50%;
    top: -8px;
    width: 42px;
    animation-name: reward-transfer-mobile;
  }

  .reward-orb-two {
    width: 36px;
  }

  .reward-orb-three {
    width: 32px;
  }

  .bio-scroll {
    padding: 18px 12px;
  }

  .scroll-inner {
    padding: 24px 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}
