/* DuckStake landing page v5 — final bitmap Rich Duck hero (W226-C5).
   Tokens come from DESIGN.md; taxi yellow #FFD22E is the only highlight.
   官网豁免：实机截图设备框、轻度透视、静态光斑、滚动淡入淡出、漂移金币、
   背景呼吸与角色轻漂浮允许出现在本文件；其余仍服从 DESIGN.md（无彩虹霓虹、
   无玻璃拟态、无 emoji、无外部图标包、无满页特效雨）。
   W226-C7 一次性例外：Community 与页脚共 8 个社媒图标改用四平台官方原色
   SVG（site/assets/brand/*-official.svg，官方来源、不改色不用 CSS 上色），
   可见尺寸 Community 32px / 页脚 24px；页面其余图标与配色不受此例外影响。 */

/* Self-hosted fonts (W226-C6): local latin-subset WOFF2 only; the page never
   waits on a third-party font domain. Weights match the exact static files
   under ./assets/fonts/ (OFL licensed, see OFL-*.txt next to them). */
@font-face {
  font-family: Oswald;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/oswald-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/oswald-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: Oswald;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/fonts/oswald-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/noto-sans-sc-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/noto-sans-sc-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/fonts/noto-sans-sc-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('./assets/fonts/noto-sans-sc-latin-900.woff2') format('woff2');
}

:root {
  --stage: #17121b;
  --stage-deep: #100c14;
  --surface: #231d2b;
  --raised: #2c2536;
  --taxi: #ffd22e;
  --taxi-shadow: #a87e00;
  --on-taxi: #1a1200;
  --ink: #ffffff;
  --muted: #8e8798;
  --content: 1180px;
  --font-display: Oswald, "Arial Narrow", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.btn,
.eyebrow,
.proof,
.topbar__nav,
.screen-card figcaption {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

/* Layout rail: 16px safe margins on phones, 1180px cap on desktop. */
.topbar,
.hero,
.section,
.footer {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

/* Content always sits above the fixed ambient layer. */
.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--taxi);
  outline-offset: 2px;
}

/* --- Ambient layer: drifting coins, two faint glows, one slow breath.
       Decorative only, pointer-transparent, frozen under reduced motion. --- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__breath {
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 60% at 50% 38%, rgba(255, 210, 46, 0.07), rgba(255, 210, 46, 0) 70%);
  animation: ambient-breath 14s ease-in-out infinite alternate;
}

@keyframes ambient-breath {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.ambient__glow {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 46, 0.12), rgba(255, 210, 46, 0) 62%);
  opacity: 0.5;
}

.ambient__glow--1 {
  top: -18vmax;
  left: -14vmax;
}

.ambient__glow--2 {
  right: -16vmax;
  bottom: -20vmax;
}

.ambient__coin {
  position: absolute;
  width: 40px;
  opacity: 0.1;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(14px, -26px, 0) rotate(14deg);
  }
}

.ambient__coin--1 {
  width: 28px;
  top: 14%;
  left: 6%;
  opacity: 0.1;
  animation-duration: 12s;
}

.ambient__coin--2 {
  width: 40px;
  top: 32%;
  right: 7%;
  opacity: 0.08;
  animation-duration: 15s;
  animation-delay: -4s;
}

.ambient__coin--3 {
  width: 64px;
  bottom: 20%;
  left: 9%;
  opacity: 0.06;
  animation-duration: 18s;
  animation-delay: -7s;
}

.ambient__coin--4 {
  width: 34px;
  top: 62%;
  right: 14%;
  opacity: 0.14;
  animation-duration: 10s;
  animation-delay: -2s;
}

.ambient__coin--5 {
  width: 48px;
  bottom: 7%;
  right: 32%;
  opacity: 0.12;
  animation-duration: 16s;
  animation-delay: -9s;
}

/* --- Scroll reveal: content is visible by default; only after
       page-motion.js adds .motion-ready may hidden states apply. --- */
.motion-ready [data-reveal] {
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

/* --- Top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}

.topbar__logo {
  height: 30px;
  width: auto;
}

.topbar__nav {
  display: none;
}

/* --- Buttons: 48px touch target, 4px hard shadow, 120ms press only --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--taxi);
  color: var(--on-taxi);
  box-shadow: 0 4px 0 var(--taxi-shadow);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--taxi-shadow);
}

.btn--small {
  padding-inline: 14px;
  font-size: 12px;
}

/* Android waitlist: visibly secondary to the taxi action, truly disabled. */
.btn--ghost {
  background: var(--raised);
  color: var(--muted);
  border: 1px dashed rgba(142, 135, 152, 0.45);
  cursor: not-allowed;
  font-size: 12px;
  padding-inline: 14px;
}

.btn--ghost:disabled {
  opacity: 0.85;
}

/* --- Hero: the approved Rich Duck bitmap owns the lower first screen --- */
.hero {
  padding-top: 12px;
}

.hero__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(720px, calc(100svh - 76px));
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 85% 92%, rgba(255, 210, 46, 0.07), rgba(255, 210, 46, 0) 60%),
    linear-gradient(180deg, var(--surface), var(--stage-deep));
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding: 16px 18px 0;
}

.eyebrow {
  color: var(--taxi);
  font-size: 12px;
  font-weight: 600;
}

/* Fixed two-line display H1 on every width (visible copy unchanged). */
.hero h1 span {
  display: block;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(29px, 8.4vw, 38px);
  font-weight: 700;
  line-height: 1.06;
}

.lead {
  margin-top: 12px;
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
}

.hero .lead {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Both CTAs share one row, each about half the width, 48px touch tall. */
.hero__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hero__actions .btn {
  min-width: 0;
  min-height: 48px;
  padding-inline: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* The stage owns the lower half of the first screen; the bitmap fills it. */
.hero__stage {
  position: relative;
  flex: 0 0 auto;
  height: 50.8svh;
  margin-top: auto;
}

/* One warm halo behind the artwork; the bitmap itself is never masked. */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 46, 0.1), rgba(255, 210, 46, 0) 64%);
}

.hero__duck {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-1.5deg);
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 28px rgba(255, 210, 46, 0.16));
  animation: hero-duck-float 8s ease-in-out infinite;
}

/* The only hero motion: a gentle whole-artwork float, 8px over 8s. */
@keyframes hero-duck-float {
  0%,
  100% {
    transform: rotate(-1.5deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-1.5deg) translate3d(0, -8px, 0);
  }
}

/* --- Sections --- */
.section {
  padding-top: 52px;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(26px, 6.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

/* --- Games: five real frozen screens in device cards --- */
.screens__gallery {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 6px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screens__gallery::-webkit-scrollbar {
  display: none;
}

.screen-card {
  --tilt: 0deg;
  flex: 0 0 76%;
  scroll-snap-align: start;
  border-radius: 20px;
  background: var(--raised);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 210, 46, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt));
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.screen-card:nth-child(odd) {
  --tilt: -1.6deg;
}

.screen-card:nth-child(even) {
  --tilt: 1.6deg;
}

.screen-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--stage-deep);
}

.screen-card figcaption {
  padding: 10px 4px 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.screen-card--active {
  box-shadow:
    0 0 0 1px rgba(255, 210, 46, 0.55),
    0 16px 30px rgba(0, 0, 0, 0.44);
}

/* --- Profit Points: second lead visual, level with the hero --- */
.points {
  border-radius: 22px;
  padding: 34px 18px 30px;
  margin-top: 52px;
  background:
    radial-gradient(110% 60% at 12% 100%, rgba(255, 210, 46, 0.06), rgba(255, 210, 46, 0) 58%),
    linear-gradient(180deg, var(--surface), var(--stage-deep));
}

.points__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: center;
}

.points__art {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 20px;
  background: var(--raised);
  box-shadow:
    0 0 0 1px rgba(255, 210, 46, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.4);
}

/* Three-step mechanism: a semantic ordered list drawn as one connected
   sequence — vertical rail on phones, three columns with links on desktop. */
.points-flow {
  display: grid;
  gap: 0;
}

.points-flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding-bottom: 22px;
}

.points-flow__step:last-child {
  padding-bottom: 0;
}

.points-flow__icon {
  grid-row: 1 / 3;
  align-self: start;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: var(--taxi);
  background: var(--raised);
  box-shadow: 0 0 0 1px rgba(255, 210, 46, 0.3);
}

/* Connector between steps: a low-weight taxi line, decorative only. */
.points-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 48px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(rgba(255, 210, 46, 0.45), rgba(255, 210, 46, 0.15));
}

.points-flow__step h3 {
  align-self: end;
  font-size: 16px;
  font-weight: 700;
}

.points-flow__step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* --- Community --- */
.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.community__card {
  display: block;
  border-radius: 20px;
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
  transition: transform 120ms ease;
}

.community__card:hover {
  transform: translateY(-3px);
}

.community__card h3 {
  color: var(--taxi);
  font-size: 16px;
  font-weight: 700;
}

.community__card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.community__finale {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  text-align: center;
}

/* Official group action: taxi outline, secondary to the bot CTA. */
.btn--group {
  background: transparent;
  color: var(--taxi);
  border: 1px solid rgba(255, 210, 46, 0.55);
}

.community__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.community__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community__social a:hover {
  color: var(--taxi);
}

.community__social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* --- Footer --- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 0 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer__logo {
  height: 26px;
  width: auto;
}

.footer__nav {
  display: flex;
  gap: 18px;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--muted);
}

.footer__social a:hover {
  color: var(--taxi);
}

.footer__social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--muted);
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--ink);
}

/* --- Desktop: two-column hero, staggered five-card track, wider grids --- */
@media (min-width: 900px) {
  .topbar,
  .hero,
  .section,
  .footer {
    width: min(var(--content), calc(100% - 64px));
  }

  .topbar {
    padding-block: 16px;
  }

  .topbar__logo {
    height: 36px;
  }

  .topbar__nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .topbar__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
  }

  .topbar__nav a:hover {
    color: var(--ink);
  }

  .hero {
    padding-top: 20px;
  }

  .hero__frame {
    display: grid;
    grid-template-columns: 44fr 56fr;
    align-items: stretch;
    min-height: 600px;
  }

  .hero__copy {
    align-self: center;
    padding: 56px 0 56px 56px;
  }

  .hero h1 {
    font-size: clamp(36px, 3.4vw, 46px);
  }

  .hero .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .lead {
    font-size: 16px;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .hero__actions .btn {
    padding-inline: 22px;
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .hero__stage {
    height: auto;
    min-height: 520px;
    margin-top: 0;
  }

  .section {
    padding-top: 76px;
  }

  .points {
    margin-top: 76px;
    padding: 52px 48px 46px;
  }

  .screens__gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 26px 2px 18px;
  }

  .screen-card:nth-child(1) {
    --tilt: -3.4deg;
    transform: rotate(var(--tilt)) translateY(14px);
  }

  .screen-card:nth-child(2) {
    --tilt: -1.4deg;
    transform: rotate(var(--tilt)) translateY(4px);
  }

  .screen-card:nth-child(3) {
    --tilt: 0deg;
  }

  .screen-card:nth-child(4) {
    --tilt: 1.4deg;
    transform: rotate(var(--tilt)) translateY(4px);
  }

  .screen-card:nth-child(5) {
    --tilt: 3.4deg;
    transform: rotate(var(--tilt)) translateY(14px);
  }

  .screen-card:hover,
  .screen-card--active {
    transform: rotate(var(--tilt)) translateY(-8px);
  }

  .points__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
  }

  .points__art {
    max-width: 380px;
  }

  /* Desktop: the three steps become three columns joined by taxi links. */
  .points-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .points-flow__step {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .points-flow__step:not(:last-child)::after {
    left: auto;
    right: -16px;
    top: 21.5px;
    bottom: auto;
    width: 10px;
    height: 1px;
    background: rgba(255, 210, 46, 0.45);
  }

  /* Small chevron head on each desktop connector. */
  .points-flow__step:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -17px;
    top: 18px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(255, 210, 46, 0.55);
    border-right: 1.5px solid rgba(255, 210, 46, 0.55);
    transform: rotate(45deg);
  }

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

  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Reduced motion: kill transitions, animations and smooth scroll;
       every reveal node stays fully visible. --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .motion-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
