/* The artwork and copy share the same centered 1200px composition. */
.hero-art {
  inset: 0 max(20px, calc((100% - 1280px) / 2)) 0 auto;
  width: min(76%, 920px);
  height: 100%;
  aspect-ratio: auto;
  background-position: center;
  background-size: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, rgba(0,0,0,.96) 43%, rgba(0,0,0,.8) 60%, rgba(0,0,0,.52) 76%, rgba(0,0,0,.2) 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, rgba(0,0,0,.96) 43%, rgba(0,0,0,.8) 60%, rgba(0,0,0,.52) 76%, rgba(0,0,0,.2) 90%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.hero-shade {
  background: linear-gradient(90deg, #041c39 0%, #041c39c9 25%, transparent 51%),
              linear-gradient(0deg, #061d34 0%, transparent 18%);
}

/* The current illustration is flattened: confine rays to the open sky,
   so they do not wash over the foreground characters. */
.hero-rays {
  position: absolute;
  z-index: -1;
  inset: 0 max(20px, calc((100% - 1280px) / 2)) 0 auto;
  width: min(76%, 920px);
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 8%, 91% 8%, 86% 10%, 80% 17%, 76% 6%, 70% 7%, 61% 12%, 50% 25%, 43% 23%, 38% 22%, 34% 24%, 30% 25%, 25% 28%, 20% 29%, 10% 27%, 0 27%);
}
.hero-rays::before {
  content: '';
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,214,120,.12) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 60%);
  mask-image: radial-gradient(circle, #000, transparent 60%);
  animation: adventure-rays 90s linear infinite;
}
@keyframes adventure-rays { to { rotate: 360deg; } }

/* Lime-green fireflies with a bright center and a broad, soft halo. */
.adventure-stardust {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.adventure-stardust i {
  position: absolute;
  border-radius: 50%;
  background: #d9ff73;
  box-shadow: 0 0 4px 1px #caff45, 0 0 12px 4px #80ef28aa, 0 0 25px 9px #5ccf2066;
  opacity: 0;
  animation: adventure-stardust ease-in-out infinite;
}
.adventure-stardust i:nth-child(3n) { background: #f1ff9b; box-shadow: 0 0 4px 1px #d1ff55, 0 0 13px 4px #9ff525aa, 0 0 26px 9px #70df2866; }
@keyframes adventure-stardust {
  0%, 100% { opacity: .15; transform: translate(0, 0) scale(.7); }
  20% { opacity: .8; transform: translate(calc(var(--drift-x) * .4), calc(var(--drift-y) * -.35)) scale(1); }
  45% { opacity: .3; transform: translate(var(--drift-x), calc(var(--drift-y) * -.8)) scale(.8); }
  70% { opacity: .85; transform: translate(calc(var(--drift-x) * .55), calc(var(--drift-y) * -1)) scale(1.1); }
  85% { opacity: .35; transform: translate(calc(var(--drift-x) * -.15), calc(var(--drift-y) * -.5)) scale(.8); }
}

.features .feature-icon { animation: adventure-float 6s ease-in-out infinite; }
.features article:nth-child(2) .feature-icon { animation-delay: -2s; }
.features article:nth-child(3) .feature-icon { animation-delay: -4s; }
@keyframes adventure-float { 50% { transform: translateY(-5px); } }
.journal-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.journal-card:hover, .journal-card:focus-visible { box-shadow: 0 12px 28px #00111d99, 0 0 20px #55ddeb28; }
.platform-grid button { transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.platform-grid button:hover { transform: translateY(-2px); box-shadow: 0 5px 18px #42cddd30; }

@media (max-width: 820px) {
  .hero-art {
    top: auto;
    right: 50%;
    bottom: 0;
    left: auto;
    translate: 50% 0;
    width: min(100%, 680px);
    height: auto;
    aspect-ratio: 1365 / 768;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, rgba(0,0,0,.96) 43%, rgba(0,0,0,.8) 60%, rgba(0,0,0,.52) 76%, rgba(0,0,0,.2) 90%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, rgba(0,0,0,.96) 43%, rgba(0,0,0,.8) 60%, rgba(0,0,0,.52) 76%, rgba(0,0,0,.2) 90%, transparent 100%);
  }
  .hero-shade { background: linear-gradient(0deg, #061d34 0%, transparent 14%, transparent 28%, #041c39 48%); }
  .hero-rays { top: auto; right: 50%; bottom: 0; width: min(100%, 680px); height: auto; aspect-ratio: 1365 / 768; translate: 50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rays::before, .features .feature-icon { animation: none; }
  .adventure-stardust { display: none; }
  .journal-card, .platform-grid button { transition: none; }
  .platform-grid button:hover { transform: none; }
}

/* A wider cinematic scene fades naturally into the copy and the next section. */
@media (min-width: 821px) {
  .hero { height: clamp(620px, 72vh, 760px); }
  .hero-content { padding-top: clamp(85px, 12vh, 135px); }
  .hero-art, .hero-rays {
    right: max(40px, calc((100% - 1200px) / 2));
    width: min(78%, 1080px);
  }
  .hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.14) 8%, rgba(0,0,0,.78) 28%, #000 47%, #000 86%, transparent 100%),
                        linear-gradient(180deg, rgba(0,0,0,.78) 0%, #000 13%, #000 68%, rgba(0,0,0,.8) 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.14) 8%, rgba(0,0,0,.78) 28%, #000 47%, #000 86%, transparent 100%),
                linear-gradient(180deg, rgba(0,0,0,.78) 0%, #000 13%, #000 68%, rgba(0,0,0,.8) 80%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-shade { background: linear-gradient(90deg, #041c39 0%, #041c39d9 24%, #041c3930 48%, transparent 62%), linear-gradient(0deg, #061d34 0%, transparent 18%); }
}
.hero-field-note {
  position: absolute;
  z-index: 2;
  right: max(40px, calc((100% - 1200px) / 2));
  bottom: 76px;
  width: 205px;
  padding: 20px 21px 19px;
  border: 1px solid #9ac5d42b;
  border-radius: 7px;
  background: linear-gradient(135deg, #071b2dec, #0a2237d9);
  box-shadow: 0 12px 32px #00101d55;
  backdrop-filter: blur(10px);
}
.hero-field-note span { display: block; color: #efc77c; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.hero-field-note strong { display: block; margin-top: 12px; color: #f2f8ff; font-size: 17px; line-height: 1.55; }
.hero-field-note small { display: block; margin-top: 15px; color: #9eb9c8; font-size: 11px; }
@media (max-width: 820px) {
  .hero { height: 720px; }
  .hero-content { padding-top: 45px; }
  .hero-art, .hero-rays { width: min(calc(100% - 36px), 760px); }
  .hero-art {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent);
    mask-composite: intersect;
  }
  .hero-field-note { right: 24px; bottom: 35px; width: 170px; padding: 14px 16px; }
  .hero-field-note strong { margin-top: 8px; font-size: 14px; }
  .hero-field-note small { margin-top: 8px; font-size: 10px; }
}
@media (max-width: 480px) {
  .hero { height: 720px; }
  .hero-field-note { bottom: calc(100vw * .562 + 20px); right: 18px; width: 146px; padding: 10px 12px; }
  .hero-field-note span { font-size: 9px; }
  .hero-field-note strong { font-size: 12px; line-height: 1.4; }
}

/* Rounded gold buttons: a raised main action and a flatter header action. */
.hero-primary .button {
  border: 1px solid #f7d585;
  border-radius: 999px;
  background: #ffd27a;
  color: #17283a;
  box-shadow: 0 5px 0 #bb8a38, 0 11px 24px #00121b70;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.hero-primary .button:hover {
  background: #ffdd94;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #bb8a38, 0 14px 25px #00121b70;
}
.hero-primary .button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #bb8a38, 0 6px 14px #00121b70;
}
.hero-primary p.hero-web-label { margin: 11px 0 0; color: #b9d8e8; font-size: 12px; font-weight: 700; }
.hero-primary .hero-trust { margin-top: 12px; }
.nav-actions [data-entry="极贝支付中心"] {
  border: 1px solid #f7d585;
  border-radius: 999px;
  background: #ffd27a;
  color: #17283a;
  box-shadow: none;
}
.nav-actions [data-entry="极贝支付中心"]:hover { background: #ffdd94; }
.hero-primary .button::before, .nav-actions [data-entry="极贝支付中心"]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 8% 82%, #fff9d6 0 1px, transparent 2px),
              radial-gradient(circle at 20% 60%, #fff8d3 0 1px, transparent 2px),
              radial-gradient(circle at 34% 88%, #fff 0 1px, transparent 2px),
              radial-gradient(circle at 65% 74%, #fff9d6 0 1px, transparent 2px),
              radial-gradient(circle at 81% 95%, #fff 0 1px, transparent 2px),
              radial-gradient(circle at 94% 64%, #fff9d6 0 1px, transparent 2px);
  animation: button-sparks 4.5s linear infinite;
}
@keyframes button-sparks {
  0% { opacity: 0; transform: translateY(12px); }
  22% { opacity: .8; }
  80% { opacity: .45; }
  100% { opacity: 0; transform: translateY(-35px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-primary .button { transition: none; }
  .hero-primary .button::before, .nav-actions [data-entry="极贝支付中心"]::before { display: none; animation: none; }
}

/* Three game systems, presented as one clear journey. */
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; padding-block: 44px 52px; }
.features-heading { grid-column: 1 / -1; text-align: center; }
.features-heading > span { display: block; color: #ffcf72; font-size: 18px; line-height: 1; }
.features-heading h2 { margin-top: 12px; color: #f1f8ff; font-size: clamp(25px, 2.3vw, 32px); }
.features-heading h2 em { color: #ffcf72; font-style: normal; }
.features-heading p { margin-top: 8px; color: #8caabd; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.features article, .features article + article { display: flex; flex-direction: column; align-items: center; gap: 14px; border: 0; padding: 0 10px; text-align: center; background: none; }
.features .feature-icon { width: 114px; height: 114px; background: none; object-fit: contain; mix-blend-mode: normal; filter: drop-shadow(0 0 16px #ffc24f36); }
.features h3 { color: #ffcf72; font-size: 21px; }
.features article p { margin-top: 8px; color: #b2c8d8; font-size: 13px; line-height: 1.8; }
.features article:nth-of-type(2) .feature-icon { animation-delay: -2s; }
.features article:nth-of-type(3) .feature-icon { animation-delay: -4s; }
@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; gap: 12px; padding-block: 36px 40px; }
  .features-heading { margin-bottom: 12px; }
  .features article, .features article + article { flex-direction: row; text-align: left; padding: 14px 16px; border: 1px solid #477a9050; border-radius: 14px; background: #15354b70; gap: 18px; }
  .features .feature-icon { width: 80px; height: 80px; }
  .features h3 { font-size: 19px; }
  .features article p { margin-top: 4px; font-size: 12px; line-height: 1.65; }
}

/* The header and artwork share the same centered bounds as page content. */
.header-inner { width: calc(100% - 80px); max-width: 1200px; padding-inline: 0; }
@media (max-width: 820px) {
  .header-inner { width: calc(100% - 36px); }
}

/* Soft gold and cool-blue halos keep primary actions and icons legible. */
.hero-primary .button { box-shadow: 0 5px 0 #bb8a38, 0 11px 28px #f6b73c55, 0 8px 24px #00121b70; }
.hero-primary .button:hover { box-shadow: 0 7px 0 #bb8a38, 0 12px 32px #f6b73c77, 0 12px 24px #00121b70; }
.hero-primary .button:active { box-shadow: 0 2px 0 #bb8a38, 0 6px 20px #f6b73c55; }
.nav-actions [data-entry="极贝支付中心"] { box-shadow: 0 0 18px #f6b73c42; }
.nav-actions [data-entry="极贝支付中心"]:hover { box-shadow: 0 0 24px #f6b73c77; }
.welfare-copy .button, .final-cta .button:not(.secondary) { box-shadow: inset 0 1px 2px #fff9d6, 0 8px 24px #f6b73c55; }
.welfare-copy .button:hover, .final-cta .button:not(.secondary):hover { box-shadow: inset 0 1px 2px #fff9d6, 0 10px 28px #f6b73c77; }
.platform-grid button, .button.secondary, .reference-button:not(:disabled), .community-links button:not(:disabled) { box-shadow: inset 0 1px 5px #9deeff20, 0 0 16px #58d9ed26; }
.platform-grid button:hover, .button.secondary:hover, .reference-button:not(:disabled):hover, .community-links button:not(:disabled):hover { box-shadow: inset 0 1px 6px #c3faff35, 0 0 22px #5fdcec55; }
.community-links .community-forum { box-shadow: inset 0 1px 3px #fff9d680, 0 0 18px #f6b73c55; }
.features .feature-icon { filter: drop-shadow(0 0 20px #f6b73c73) drop-shadow(0 6px 8px #0008); }
.section-heading h2 > span { text-shadow: 0 0 12px #71edfa88; }
.social-actions img, .community-links img { filter: drop-shadow(0 0 9px #8cbeff88); }
.platform-grid img.platform-icon { filter: invert(1) drop-shadow(0 0 6px #8cbeff88); }
.platform-grid svg.platform-icon { filter: drop-shadow(0 0 6px #8cbeff88); }

/* Leaf-shaped wings sit behind a bright core; the stage remains fixed on scroll. */
.fairy-stage { position: fixed; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.adventure-fairy { position: absolute; top: 0; left: 0; width: 56px; height: 51px; opacity: .9; pointer-events: none; }
.fairy-facing, .fairy-body { position: absolute; inset: 0; }
.fairy-facing { transition: transform 1s ease-in-out; transform-origin: 34% 68%; transform: perspective(180px) rotateY(0deg); }
.faces-right .fairy-facing { transform: perspective(180px) rotateY(180deg); }
.fairy-body { transform: rotate(var(--flight-bank, 0deg)); transform-origin: 34% 68%; transition: transform 1.2s ease-out; animation: fairy-bob 3s ease-in-out infinite; }
.fairy-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 37% 68%; animation: fairy-view-sway 5.8s ease-in-out infinite alternate; }
.fairy-view-0 { --view-angle: -5deg; }
.fairy-view-1 { --view-angle: -16deg; }
.fairy-view-2 { --view-angle: 13deg; }
.fairy-view-1 .fairy-art { animation-delay: -2s; }
.fairy-view-2 .fairy-art { animation-delay: -4s; }
.fairy-wings { transform-box: view-box; transform-origin: 37px 63px; animation-duration: .48s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.fairy-wings-far { opacity: .7; animation-name: fairy-far-flap; }
.fairy-wings-near { animation-name: fairy-near-flap; }
.fairy-view-1 .fairy-wings-far { opacity: .85; }
.fairy-view-1 .fairy-wings { animation-duration: .54s; }
.fairy-view-2 .fairy-wings { animation-duration: .44s; }
.fairy-wing-outer { fill: #64d5a0; fill-opacity: .82; stroke: #8ce4bc; stroke-width: 1.5; }
.fairy-wing-inner { fill: #f4fff1; fill-opacity: .76; }
.fairy-wing-vein { fill: none; stroke: #3eaa81; stroke-opacity: .68; stroke-width: 1.3; }
.fairy-light { position: absolute; left: 34%; top: 68%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fffef8 0 25%, #fff7df 43%, #ffd5e7 66%, transparent 78%); box-shadow: 0 0 9px 2px #fffbeacc, 0 0 21px 5px #ffb9e0b3, 0 0 38px 8px #ff85c97a; }
.fairy-trail { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #fff9eb; box-shadow: 0 0 4px #fff, 0 0 9px #ffb9da; pointer-events: none; }
@keyframes fairy-bob { 50% { translate: 0 -3px; } }
@keyframes fairy-view-sway { from { transform: rotate(calc(var(--view-angle) - 5deg)); } to { transform: rotate(calc(var(--view-angle) + 5deg)); } }
/* Both rigid wings rotate about the body axis, towards and away from each other. */
@keyframes fairy-near-flap { from { transform: perspective(220px) rotateX(70deg); } to { transform: perspective(220px) rotateX(20deg); } }
@keyframes fairy-far-flap { from { transform: perspective(220px) rotateX(-30deg); } to { transform: perspective(220px) rotateX(20deg); } }
@media (max-width: 820px) { .adventure-fairy { width: 42px; height: 39px; opacity: .8; } .fairy-light { width: 14px; height: 14px; } }
@media (prefers-reduced-motion: reduce) { .fairy-stage { display: none; } }
