:root {
    --bg: #000000;
    --bg-2: #0A0A0C;
    --card: #151517;
    --card-2: #111113;
    --light: #F5F5F7;
    --white: #FFFFFF;
    --ink: #1D1D1F;
    --text: #F5F5F7;
    --muted: #A1A1A6;
    --muted-2: #86868B;
    --muted-l: #6E6E73;
    --accent: #2997FF;
    --accent-ink: #1A5E9E;
    --accent-rgb: 41, 151, 255;
    --gutter: clamp(16px, 5vw, 40px);
    --sans: "Geist", "Noto Sans TC", -apple-system, "Helvetica Neue", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, "Noto Sans TC", monospace;
    color-scheme: dark;
  }
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { background: var(--bg); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body { margin: 0; background: transparent; color: var(--text);   /* the ground is html + the fixed #dx-sky behind everything */ font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  h1, h2, h3, p, ul { margin: 0; }
  a { color: var(--accent); text-decoration: none; }
  button { font-family: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  html:lang(zh-Hant) h1, html:lang(zh-Hant) .h2, html:lang(zh-Hant) .statement { letter-spacing: -0.01em; line-height: 1.12; }

  .wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
  .eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
  .light { background: var(--light); color: var(--ink); }
  .light .eyebrow { color: var(--muted-l); }
  .h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
  /* section headings borrow the hero's RGB split, played once as they scroll into view.
     the rise uses the independent `translate` property so it never fights the glitch transform. */
  .gtx { position: relative; }
  /* The coloured copies are real elements, not ::before/::after with mix-blend-mode: iOS Safari
     would not paint the blended pseudo copies over the composited hero, so the flash was invisible
     there while the animations were running. Plain colour on a black page looks the same. */
  .gtx-ghost { position: absolute; inset: 0; opacity: 0; pointer-events: none; user-select: none; }
  .statement .gtx-ghost span { color: transparent; }   /* only the opening sentence flashes */
  .gtx-ghost.r { color: #EC4952; }
  .gtx-ghost.b { color: var(--accent); }
  html.gtx-on .gtx { opacity: 0; translate: 0 26px; }
  html.gtx-on .gtx.is-in { opacity: 1; translate: none;
    transition: opacity 0.5s ease, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    animation: hx-g-body 0.62s steps(1) 0.3s forwards; }
  html.gtx-on .gtx.is-in .gtx-ghost.r { animation: hx-g-red 0.62s steps(1) 0.3s forwards; }
  html.gtx-on .gtx.is-in .gtx-ghost.b { animation: hx-g-blue 0.62s steps(1) 0.3s forwards; }
  @media (prefers-reduced-motion: reduce) {
    html.gtx-on .gtx { opacity: 1; translate: none; }
    html.gtx-on .gtx.is-in, html.gtx-on .gtx.is-in .gtx-ghost { animation: none; }
  }
  .lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); }
  .sec { padding-block: clamp(88px, 11vw, 160px); scroll-margin-top: 64px; }
  .head { display: flex; flex-direction: column; gap: 16px; }
  .head.center { align-items: center; text-align: center; }

  /* ---------- Nav ---------- */
  .nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(0,0,0,0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-in { height: 64px; display: flex; align-items: center; gap: 40px; }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
  .logo { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
  .links { display: flex; gap: 32px; margin-left: auto; }
  .links a { color: #D2D2D7; font-size: 14px; }
  .links a:hover { color: var(--text); }
  .tools { display: flex; align-items: center; gap: 14px; }
  .seg { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; }
  .seg button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
  .seg button[aria-pressed="true"] { background: rgba(255,255,255,0.14); color: var(--text); }
  .pill-btn { padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #000000; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .pill-btn:hover { filter: brightness(1.1); }
  @media (max-width: 860px) { .links { display: none; } .tools { margin-left: auto; } }
  @media (max-width: 420px) { .pill-btn { display: none; } }

  /* ---------- Living sky: one slow nebula behind the whole page (WebGL at half resolution; CSS drift where WebGL is off) ---------- */
  #dx-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
  .sky-css #dx-sky { display: none; }
  .sky-css body::before { content: ""; position: fixed; inset: -18%; z-index: -1; pointer-events: none;
    background: radial-gradient(42% 38% at 28% 30%, rgba(24,80,178,0.16), transparent 70%), radial-gradient(38% 34% at 76% 58%, rgba(14,48,116,0.18), transparent 70%), radial-gradient(28% 26% at 56% 86%, rgba(150,108,44,0.08), transparent 70%), #000000;   /* black ground, faint wisps — same as the WebGL sky */
    animation: dx-sky-drift 70s ease-in-out infinite alternate; }
  @keyframes dx-sky-drift { from { transform: translate3d(-3%, -2%, 0) scale(1.04); } to { transform: translate3d(3%, 2.5%, 0) scale(1.12); } }
  @media (prefers-reduced-motion: reduce) { .sky-css body::before { animation: none; } }
  /* ---------- Hero ---------- */
  .hero { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 104px); background: var(--bg); }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, rgba(0,0,0,0), #000000); pointer-events: none; z-index: 3; }
  .hero-glow { position: absolute; left: 50%; top: 56%; width: 640px; height: 640px; margin-left: -320px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.42); filter: blur(140px); pointer-events: none; }
  .hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
  h1 { margin-top: 20px; max-width: 1040px; font-size: clamp(52px, 7.6vw, 108px); line-height: 0.98; font-weight: 600; letter-spacing: -0.055em; text-wrap: balance; }
  .hero-sub { margin-top: 24px; max-width: 720px; text-wrap: balance; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--muted); }
  .cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600; transition: transform 0.2s ease; }
  .store:hover { transform: translateY(-2px); }
  .store.solid { background: var(--light); color: #000000; }
  .store.ghost { border: 1px solid rgba(255,255,255,0.28); color: var(--text); }
  @media (max-width: 520px) { .cta { width: 100%; flex-direction: column; } }

  .stage { --s: 1; position: relative; height: calc(760px * var(--s)); margin-top: 28px; }
  .scene { position: absolute; left: 50%; top: 0; width: 1440px; height: 760px; margin-left: -720px; transform: scale(var(--s)); transform-origin: 50% 0; perspective: 1800px; perspective-origin: 50% 30%; }
  .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(4deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out; }
  .floor { position: absolute; left: -80px; top: 220px; width: 1600px; height: 1000px; transform: rotateX(78deg); background-image: linear-gradient(rgba(var(--accent-rgb), 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), 0.3) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 45% 40% at 50% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 45% 40% at 50% 50%, #000 0%, transparent 100%); }
  /* translateZ keeps the blurred glow behind the tilted phone; at z=0 it cut through the phone screen as a diagonal line */
  .floor-glow { position: absolute; left: 470px; top: 640px; width: 500px; height: 140px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.42); filter: blur(50px); transform: translateZ(-160px); }

  .coin-pos { position: absolute; width: var(--size); height: var(--size); transform-style: preserve-3d; }
  .coin-pos > .dx-float, .coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
  .coin { animation: dxCoin 9s linear infinite; }
  .coin i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #6A6A72 0%, #2A2A2F 45%, #0E0E10 100%); }
  .coin .face { position: absolute; inset: 0; border-radius: 50%; background-size: cover; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.9), inset -6px -8px 18px rgba(0,0,0,0.18); }
  .coin .front { transform: translateZ(calc(var(--d) / 2)); }
  .coin .rear { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
  .coin-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35) 0%, transparent 65%); transform: translateZ(-40px); }
  @keyframes dxCoin { from { transform: rotateX(-12deg) rotateY(0deg); } to { transform: rotateX(-12deg) rotateY(360deg); } }
  .fcard-pos { position: absolute; transform-style: preserve-3d; }
  .fcard { padding: 16px 18px; border-radius: 22px; background: rgba(28,28,30,0.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 30px 60px rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; align-items: center; gap: 14px; }
  .fcard .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); }
  .fcard .t { display: block; font-size: 15px; font-weight: 600; }
  .fcard .s { display: block; font-size: 13px; color: var(--muted); }
  .fcard-mobile { display: none; }
  @media (max-width: 760px) { .fcard-desk { display: none; } .fcard-mobile { display: block; } }
  .demo-pill { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(28,28,30,0.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); font-size: 13px; font-weight: 500; white-space: nowrap; }
  .demo-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

  /* ---------- Phone ---------- */
  .phone-pos { position: absolute; left: 560px; top: 40px; width: 320px; height: 660px; transform-style: preserve-3d; transform: rotateY(-20deg) rotateX(4deg); }
  .phone { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
  .layer { position: absolute; inset: 0; border-radius: 56px; background: #2A2A2F; }
  .layer.alt { background: #3A3A40; }
  .back { position: absolute; inset: 0; border-radius: 56px; background: #0E0E10; transform: translateZ(-28px); box-shadow: 0 60px 140px rgba(0,0,0,0.8); }
  .body { position: absolute; inset: 0; border-radius: 56px; padding: 11px; background: linear-gradient(150deg, #55555C 0%, #232326 34%, #111113 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), inset 0 0 0 3px rgba(0,0,0,0.6); }
  .screen { position: relative; width: 100%; height: 100%; border-radius: 46px; background: #07070A; padding: 26px 16px 12px; display: flex; flex-direction: column; overflow: hidden; }
  .glare { position: absolute; inset: 0; border-radius: 46px; background: linear-gradient(118deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0) 30%); pointer-events: none; }
  .view { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
  .row { display: flex; justify-content: space-between; align-items: center; }
  .app-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
  .player { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 11px; color: #D2D2D7; }
  .player i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #64D2FF, #8B5CF6); }
  .glass { border-radius: 22px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
  .mono-s { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
  .mission { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  .mission .goal { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
  .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
  .bar i { display: block; width: 0%; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.3s ease; }
  .btn-play { margin-top: 4px; height: 44px; border: 0; border-radius: 999px; background: var(--accent); color: #000000; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .btn-play:hover { filter: brightness(1.1); }
  .small-label { font-size: 12px; font-weight: 600; color: var(--muted); }
  .tiles6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tiles6 button { aspect-ratio: 1; border: 0; border-radius: 18px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); transition: transform 0.15s ease; }
  .tiles6 button:hover { transform: scale(1.05); }
  .contracts { padding: 12px 14px; border-radius: 20px; display: flex; align-items: center; gap: 12px; }
  .contracts .ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(var(--accent-rgb), 0.14); display: grid; place-items: center; }
  .contracts .t { display: block; font-size: 13px; font-weight: 600; }
  .contracts .s { display: block; font-size: 11px; color: var(--muted-2); }
  .tabbar { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.08); }
  .icon-btn { width: 44px; height: 44px; margin: -10px 0 -10px -10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
  .tag { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 11px; color: #D2D2D7; }
  .score { font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
  .grid9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .grid9 button { aspect-ratio: 1; border: 0; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
  .grid9 button.lit { background: var(--accent); box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.75), inset 0 0 0 1px rgba(255,255,255,0.55); transform: scale(1.05); }
  .hint { margin-top: auto; padding-bottom: 6px; text-align: center; font-size: 12px; color: var(--muted-2); }
  .done { align-items: center; justify-content: center; gap: 20px; perspective: 800px; }
  .ccard { width: 200px; height: 250px; padding: 18px 20px 20px; border-radius: 26px; background: linear-gradient(160deg, #144F80 0%, #0B0B10 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 24px 70px rgba(var(--accent-rgb), 0.42); display: flex; flex-direction: column; justify-content: space-between; }
  .ccard .mid { align-self: center; width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); display: grid; place-items: center; }
  .done-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
  .done-sub { font-size: 13px; color: var(--muted); text-align: center; }
  .btn-row { display: flex; gap: 10px; width: 100%; }
  .btn-row button { flex: 1; height: 44px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
  .btn-row .soft { background: rgba(255,255,255,0.1); color: var(--text); }
  .btn-row .solid { background: var(--accent); color: #000000; }

  /* ---------- Motion ---------- */
  @keyframes dxSpin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
  @keyframes dxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  @keyframes dxPop { from { transform: rotateY(-80deg) scale(0.85); opacity: 0.2; } to { transform: rotateY(0deg) scale(1); opacity: 1; } }
  @keyframes dxPulse { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
  .dx-spin { animation: dxSpin 16s linear infinite; }
  .dx-float { animation: dxFloat 6s ease-in-out infinite; }
  .dx-pop { animation: dxPop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .dx-pulse { animation: dxPulse 1.6s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) {
    .dx-spin, .dx-float, .dx-pop, .dx-pulse, .coin { animation: none; }
    .tilt { transition: none; }
  }

  /* ---------- Statement ---------- */
  .statement-sec { border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
  .statement { margin: 24px auto 0; max-width: 1120px; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.08; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
  .statement span { color: var(--muted-l); }

  /* ---------- Games ---------- */
  .games-sec { background: transparent; }
  .games-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
  .games-head .lede { max-width: 520px; }
  .arrows { display: flex; gap: 12px; }
  .arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); display: grid; place-items: center; cursor: pointer; }
  .arrow:hover { background: rgba(255,255,255,0.18); }
  
  
  
  
  
  
  
  
  
  
  


  /* ---------- Playable demo ---------- */
  
  
  .demo-sec { background: radial-gradient(60% 70% at 75% 50%, rgba(214,160,60,0.10), transparent 70%); border-top: 1px solid rgba(255,255,255,0.06); scroll-margin-top: 64px; }
  .demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .demo-copy { display: flex; flex-direction: column; gap: 18px; }
  .demo-copy .lede { max-width: 480px; }
  .demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
  .demo-actions button.store { border: 0; cursor: pointer; font-family: inherit; }
  .demo-device { position: relative; display: grid; place-items: center; }
  .demo-glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: rgba(214,160,60,0.28); filter: blur(100px); }
  .demo-phone { position: relative; width: min(390px, 100%); aspect-ratio: 390 / 800; padding: 11px; border-radius: 54px; background: linear-gradient(150deg, #55555C 0%, #232326 34%, #111113 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24), 0 60px 120px rgba(0,0,0,0.6); }
  .demo-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #0B0D0A; }
  .demo-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0B0D0A; }
  .demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; }
  .demo-poster-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px 56px; background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%); color: var(--text); }
  .demo-play { width: 72px; height: 72px; border-radius: 50%; background: #F0C46A; display: grid; place-items: center; box-shadow: 0 0 40px rgba(240,196,106,0.55); transition: transform 0.2s ease; padding-left: 4px; }
  .demo-poster:hover .demo-play { transform: scale(1.06); }
  /* Liquid metal: a hand-written WebGL plate drawn over the button. No third-party code;
     without WebGL (or with reduced motion) the flat button below stays exactly as it is. */
  .demo-play { position: relative; }
  .demo-play.is-metal { background: none; box-shadow: none; padding-left: 0; }
  .demo-play.is-metal svg { display: none; }
  .demo-play canvas { display: block; }
  .demo-poster-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
  .demo-poster-sub { font-size: 14px; color: #D2D2D7; }
  @media (max-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
  /* ---------- Missions ---------- */
  /* ---------- Genesis NFT teaser (home) ---------- */
  .nf-sec { --nf-card: clamp(150px, 15vw, 210px); position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); background: radial-gradient(60% 50% at 50% 62%, rgba(255,179,64,0.10), transparent 70%); }
  .nf-stage { position: relative; height: calc(var(--nf-card) * 1.62); margin-top: 48px; perspective: 1500px; perspective-origin: 50% 30%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
  .nf-stage.is-drag { cursor: grabbing; }
  .nf-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 24px; }
  .nf-halo { position: absolute; left: 50%; top: 50%; width: min(900px, 90vw); height: 70%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(255,179,64,0.22), transparent 70%); filter: blur(30px); pointer-events: none; }
  .nf-floor { position: absolute; left: 50%; bottom: 4%; width: min(60%, 640px); height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(255,179,64,0.35), transparent 70%); filter: blur(6px); pointer-events: none; }
  .nf-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
  .nf-card { position: absolute; left: 50%; top: 50%; width: var(--nf-card); aspect-ratio: 440 / 614; margin: 0; padding: 0; border: 0; border-radius: calc(var(--nf-card) * 0.07); background: transparent; cursor: pointer; will-change: transform, opacity; visibility: hidden; }
  .nf-card.is-on { visibility: visible; }
  .nf-3d { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; }   /* a <button> cannot host 3D children itself */
  .nf-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #0d0f14; box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; -webkit-user-drag: none; }
  .nf-card .nf-b { transform: rotateY(180deg); }
  .nf-glow2 { position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1.5px rgba(255,207,138,0.9), 0 0 40px rgba(255,179,64,0.55), 0 30px 80px rgba(255,179,64,0.25); transition: opacity 0.4s ease; }   /* inside .nf-3d so it turns with the card */
  .nf-card.is-focus .nf-glow2 { opacity: 1; }
  .nf-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .nf-cur { margin: 8px auto 0; display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
  .nf-cur b { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: #FFB340; }
  .nf-cur i { font-style: normal; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(255,179,64,0.16); color: #FFCF8A; }
  .nf-cur i em { font-style: normal; color: var(--muted-2); }
  .nf-facts { margin: 40px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nf-facts > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,0.08); }
  .nf-facts > div:first-child { border-left: 0; }
  .nf-facts b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .nf-facts span { font-size: 13.5px; color: var(--muted); }
  .nf-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
  @media (max-width: 760px) {
    .nf-sec { --nf-card: min(150px, 38vw); }
    .nf-stage { margin-top: 32px; perspective: 1100px; }
    .nf-facts { grid-template-columns: 1fr; }
    .nf-facts > div { flex-direction: row; justify-content: space-between; border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 4px; }
    .nf-facts > div:first-child { border-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) { .nf-glow2 { transition: none; } }
  .missions-foot { margin: 64px auto 0; max-width: 760px; text-align: center; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.015em; }
  .missions-foot span { color: var(--muted); }

  /* ---------- Community ---------- */
  .community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
  .feature-list { margin-top: 40px; }
  .feature { display: flex; gap: 18px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
  .feature:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .feature svg { flex-shrink: 0; margin-top: 2px; }
  .feature .t { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
  .feature .p { display: block; margin-top: 4px; font-size: 17px; color: var(--muted); }
  .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: var(--text); font-size: 14px; }
  .chip:hover { background: rgba(255,255,255,0.08); }
  .board-wrap { position: relative; }
  .board-glow { position: absolute; left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 50%; background: rgba(var(--accent-rgb), 0.42); filter: blur(120px); opacity: 0.7; }
  .board { position: relative; padding: 32px; border-radius: 36px; background: rgba(28,28,30,0.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); display: flex; flex-direction: column; gap: 22px; }
  .board .title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
  .lb-row { display: flex; align-items: center; gap: 16px; }
  .lb-row .rank { width: 20px; font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
  .lb-row .av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; }
  .lb-row .nm { width: 80px; font-size: 16px; font-weight: 500; }
  .lb-row .track { flex-grow: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
  .lb-row .track i { display: block; height: 100%; border-radius: 99px; }
  .event { margin-top: 6px; padding: 20px 22px; border-radius: 24px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .event .t { display: block; font-size: 18px; font-weight: 600; }
  .join { min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--light); color: #000000; font-size: 14px; font-weight: 600; }
  @media (max-width: 960px) { .community { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
  @media (max-width: 480px) { .board { padding: 22px; } .lb-row { gap: 12px; } .lb-row .nm { width: 56px; font-size: 14px; } }

  /* ---------- Existing users ---------- */
  .checks { margin-top: 56px; }
  .check { display: flex; align-items: center; gap: 16px; padding: 28px 30px; border-radius: 26px; background: var(--white); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
  .check .b { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
  .check .b.plus { background: var(--accent-ink); }
  .faq { display: block; margin-top: 48px; text-align: center; font-size: 19px; color: var(--accent-ink); }
  .faq:hover { text-decoration: underline; }
  .big { font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.05em; }
  @media (max-width: 860px) { .check { padding: 22px; font-size: 18px; } }

  /* ---------- Partners ---------- */
  .pcard { min-height: 360px; padding: 36px; border-radius: 32px; background: var(--card-2); border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 14px; }
  .pcard.inv { background: var(--light); color: var(--ink); border-color: transparent; }
  .pcard .k { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
  .pcard.inv .k, .pcard.inv .p { color: var(--muted-l); }
  .pcard .t { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
  .pcard .p { font-size: 17px; line-height: 1.5; color: var(--muted); }
  .pcard .go { margin-top: auto; font-size: 17px; }
  .pcard.inv .go { color: var(--accent-ink); }
  .pcard .go:hover { text-decoration: underline; }
  .partners-grid { margin-top: 56px; }
  @media (max-width: 860px) { .pcard { min-height: 0; padding: 28px; } .pcard .go { margin-top: 8px; } }

  /* ---------- Footer ---------- */
  .footer { padding-block: 72px 48px; border-top: 1px solid rgba(255,255,255,0.1); }
  .foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
  .foot-cols { display: flex; gap: 96px; }
  .foot-col { display: flex; flex-direction: column; gap: 12px; }
  .foot-col .h { font-size: 13px; font-weight: 600; }
  .foot-col a { font-size: 14px; color: var(--muted); }
  .foot-col a:hover { color: var(--text); }
  .foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
  @media (max-width: 600px) { .foot-cols { gap: 48px; } }
  /* ---------- Brand ---------- */
  .tok { background-image: url("/assets/img/tok-ad59bd74.png"); }
  .brand-mark { display: block; width: 42px; height: 47px; background: url("/assets/img/brand-mark-e297a17a.png") center / contain no-repeat; }
  .brand-word { display: block; width: 104px; height: 15px; background: url("/assets/img/brand-word-8714d8ed.png") left center / contain no-repeat; }
  .logo-full { display: block; width: 104px; height: 140px; background: url("/assets/img/logo-full-f5b217a2.png") center / contain no-repeat; }
  .tok-s { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background-size: cover; vertical-align: middle; }
  /* ---------- Game icons ---------- */
  .ic-panda { background-image: url("/assets/img/ic-panda-efc03ef4.jpg"); }
  .ic-egg { background-image: url("/assets/img/ic-egg-9034a9a0.jpg"); }
  .ic-fvf { background-image: url("/assets/img/ic-fvf-19043fe3.jpg"); }
  .ic-fox { background-image: url("/assets/img/ic-fox-dd5d6ef9.jpg"); }
  .ic-cat { background-image: url("/assets/img/ic-cat-33b23cce.jpg"); }
  .ic-airship { background-image: url("/assets/img/ic-airship-a54ce2ae.jpg"); }
  .ic-shiba { background-image: url("/assets/img/ic-shiba-fedd7606.jpg"); }
  .ic-ghost { background-image: url("/assets/img/ic-ghost-82286927.jpg"); }
  .ic-lantern { background-image: url("/assets/img/ic-lantern-7f4392ca.jpg"); }
  .ic-catmart { background-image: url("/assets/img/ic-catmart-2225ee76.jpg"); }
  
  
  
  .tiles6 button { background-size: cover; background-position: center; }
  .icon-tile { position: absolute; width: 104px; height: 104px; transform-style: preserve-3d; }
  .icon-tile > div { width: 100%; height: 100%; border-radius: 24px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 30px 60px rgba(0,0,0,0.55), 0 0 40px rgba(var(--accent-rgb), 0.25); }
  .m-only { display: none; }
  @media (max-width: 760px) { .icon-tile:not(.m-only), .coin-pos:not(.m-only) { display: none; } .m-only { display: block; } .icon-tile.m-only > div { border-radius: 16px; } }

  /* ---------- Community links ---------- */
  .co-join { margin-top: clamp(72px, 9vw, 120px); }
/* the NFT section sits right above Join the community: no extra lead-in margin there, and tighter section padding (Alice 2026-09-29) */
#community > .co-join:first-child { margin-top: 0; }
.nf-sec.sec { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
#missions.sec { padding-bottom: clamp(48px, 6vw, 88px); }
#community.sec { padding-top: clamp(56px, 7vw, 104px); }
  .join-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .join-title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
  .soc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .soc { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border-radius: 20px; background: var(--card); border: 1px solid rgba(255,255,255,0.08); color: var(--text); transition: background 0.2s ease, transform 0.2s ease; }
  .soc:hover { background: #1C1C1F; transform: translateY(-2px); }
  .soc-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
  .soc-name { flex: 1; font-size: 16px; font-weight: 500; }
  .soc-go { color: var(--muted-2); font-size: 15px; }
  .soc:hover .soc-go { color: var(--text); }
  /* at rest the button stays the flat card below; the plate only fades in under the pointer,
     and the card steps aside only then */
  .soc.is-metal { transition: background 0.26s ease, border-color 0.26s ease, transform 0.2s ease; }
  .soc.is-metal:hover, .soc.is-metal:focus-visible { background: transparent; border-color: transparent; }
  .soc.is-metal > span { position: relative; z-index: 1; }
  .soc.is-metal > canvas { z-index: 0; opacity: 0; transition: opacity 0.26s ease; }
  .soc.is-metal:hover > canvas, .soc.is-metal:focus-visible > canvas { opacity: 1; }
  @media (max-width: 960px) { .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 420px) { .soc { gap: 10px; padding: 10px 12px; } .soc-ic { width: 38px; height: 38px; } .soc-name { font-size: 15px; } }
  @media (max-width: 760px) { .foot-cols { flex-wrap: wrap; gap: 40px 56px; } }

  /* ---------- Missions flow ---------- */
  .mi-lede { margin: 20px auto 0; max-width: 640px; text-align: center; color: var(--muted); }
  /* ---------- MISSIONS: 3D flow stage ---------- */
  .mi3 { --mi-edge: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); position: relative; margin-top: 56px; perspective: 1500px; perspective-origin: 50% 24%; }
  .mi3-glow { position: absolute; left: 50%; top: 42%; width: min(1100px, 100%); height: 700px; transform: translate(-50%, -50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0) 72%); }
  .mi3-stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px); transform-style: preserve-3d;
    transform: rotateX(var(--mi-rx, 9deg)) rotateY(var(--mi-ry, 0deg)); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .mi3-floor { position: absolute; left: 4%; right: 4%; bottom: -56px; height: 150px; transform: translateZ(-120px) rotateX(72deg); transform-origin: 50% 0;
    background: radial-gradient(60% 100% at 50% 0%, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0) 72%); filter: blur(18px); pointer-events: none; }

  /* the line that carries the pulse from step 01 to step 03 */
  .mi3-rail { position: absolute; left: 6%; right: 6%; bottom: -34px; height: 2px; transform: translateZ(10px); background: linear-gradient(90deg, rgba(var(--accent-rgb),0), rgba(var(--accent-rgb),0.4) 12%, rgba(var(--accent-rgb),0.4) 88%, rgba(var(--accent-rgb),0)); }
  .mi3-rail b { position: absolute; top: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0B0E13; box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.6), 0 0 16px rgba(var(--accent-rgb),0.5); }
  .mi3-rail b:nth-of-type(1) { left: 16.6%; } .mi3-rail b:nth-of-type(2) { left: 50%; } .mi3-rail b:nth-of-type(3) { left: 83.4%; }
  .mi3-line { position: absolute; inset: 0; overflow: hidden; }
  .mi3-line i { position: absolute; top: -3px; left: -18%; width: 18%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--accent-rgb),0), #CFE6FF, rgba(var(--accent-rgb),0)); filter: blur(1px); animation: mi-run 3.6s cubic-bezier(0.55, 0, 0.45, 1) infinite; }
  @keyframes mi-run { 0% { left: -18%; } 70%, 100% { left: 108%; } }

  .mi3-card {
    --lift: 0; position: relative; isolation: isolate; display: grid; gap: 14px; align-content: start;
    padding: clamp(24px, 2.2vw, 34px); border-radius: 30px;
    background: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.2px) 0 0 / 6px 6px, linear-gradient(168deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 44%), #0B0E13;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 1px rgba(255,255,255,0.07), inset 0 0 0 1px rgba(255,255,255,0.06);
    transform-style: preserve-3d;
    transform: translate3d(0, calc(var(--y, 0px) + var(--lift) * -16px), calc(var(--z, 0px) + var(--lift) * 70px)) rotateY(var(--ry, 0deg)) rotateX(calc(var(--lift) * -7deg));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
  }
  .mi3-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: calc(0.25 + var(--lift) * 0.75);
    background: linear-gradient(120deg, rgba(var(--accent-rgb),0) 32%, rgba(var(--accent-rgb),0.5) 50%, rgba(var(--accent-rgb),0) 68%) border-box;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; padding: 1px; transition: opacity 0.4s ease; }
  .mi3-card:hover, .mi3-card:focus-within { --lift: 1; box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 60px rgba(var(--accent-rgb),0.2), inset 0 1px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.09); }
  .mi3-card .mi3-ic { width: clamp(72px, 7vw, 104px); height: clamp(72px, 7vw, 104px); background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: drop-shadow(0 18px 26px rgba(0,0,0,0.55)); transform: translateZ(40px); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .mi3-card:hover .mi3-ic { transform: translateZ(70px) scale(1.06); }
  .mi3-card .mi3-n { position: absolute; top: clamp(18px, 1.8vw, 26px); right: clamp(18px, 1.8vw, 26px); padding: 5px 10px; border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
    font: 500 11px var(--mono); letter-spacing: 0.16em; color: var(--accent); transform: translateZ(30px); }
  .mi3-card.is-last .mi3-n { background: rgba(255, 179, 64, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.4); }
  .mi3-card .mi3-t { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.03em; transform: translateZ(22px); }
  .mi3-card .mi3-p { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; transform: translateZ(14px); }
  .mi3-card.is-last .mi3-n { color: #FFB340; }
  .mi3-card.is-last::after { background: linear-gradient(120deg, rgba(255,179,64,0) 32%, rgba(255,179,64,0.55) 50%, rgba(255,179,64,0) 68%); }
  .mi3-card.is-last:hover { box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 60px rgba(255,179,64,0.18), inset 0 1px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.09); }

  /* the DxSxT token: a still coin before the script runs, a live orb after it */
  .mi3-token { position: absolute; left: -22px; top: -30px; width: 72px; height: 72px; pointer-events: none; background-size: contain; background-repeat: no-repeat;
    transform: translateZ(90px) rotate(-8deg); filter: drop-shadow(0 16px 26px rgba(0,0,0,0.6)); animation: mi-token 3.6s ease-in-out infinite; }
  @keyframes mi-token { 0%, 62% { transform: translateZ(90px) rotate(-8deg) scale(1); filter: drop-shadow(0 16px 26px rgba(0,0,0,0.6)); }
    72% { transform: translateZ(130px) rotate(6deg) scale(1.18); filter: drop-shadow(0 16px 30px rgba(0,0,0,0.6)) drop-shadow(0 0 28px rgba(255,179,64,0.8)); }
    88%, 100% { transform: translateZ(90px) rotate(-8deg) scale(1); } }

  /* once live it leaves the card and floats over the seam between the last step and the
     daily-rewards panel, so it reads as ecosystem ambience and not as the mission reward */
  .mi3-in { position: relative; }
  .mi3-token.is-orb { z-index: 6; background-image: none; filter: none; animation: none; transform: none; }
  .mi3-token.is-orb canvas { display: block; width: 100%; height: 100%; }
  /* the copy keeps to the left so the token never sits on top of a line of text */
  .mi3-card.has-orb .mi3-p { max-width: 44%; }

  /* ---------- daily check-in: a rolling day counter inside an orbit of Contracts ---------- */
  .mi3-streak { position: relative; margin-top: clamp(28px, 3vw, 44px); padding: clamp(24px, 2.4vw, 36px); border-radius: 32px;
    background: linear-gradient(168deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), #0A0D12; border: 1px solid rgba(255,255,255,0.08);
    display: grid; gap: 28px; align-items: center; overflow: hidden; }
  @media (min-width: 900px) { .mi3-streak { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; } }
  .mi3-streak .k { font: 500 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
  .mi3-streak .t { display: block; margin-top: 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
  .mi3-streak .p { display: block; margin-top: 10px; color: var(--muted); line-height: 1.55; }

  /* the one reward the streak pays out, called out under the copy */
  .mi3-prize { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 16px 7px 7px; border-radius: 999px;
    background: rgba(255, 179, 64, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.28); color: var(--text); font-size: 15px; line-height: 1.35; }
  .mi3-prize b { padding: 4px 10px; border-radius: 999px; background: rgba(255, 179, 64, 0.18); color: #FFCF8A;
    font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

  .mi3-orbit { position: relative; display: grid; place-items: center; min-height: clamp(280px, 30vw, 400px); isolation: isolate; }
  /* the canvas covers its own cell only: it composites as its own layer, so anything it
     overlaps would be dimmed. the glow inside it fades to nothing before every edge. */
  .mi3-orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .mi3-orbit .back { z-index: 1; }
  .mi3-orbit .front { z-index: 3; }
  .mi3-seed { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

  /* two scenes share the field: the day counter, then the reward it pays out */
  .mi3-scene { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .mi3-scene-b { opacity: 0; transform: scale(1.16); pointer-events: none; }
  .mi3-orbit.is-grow .mi3-scene-a { opacity: 0; transform: scale(1.34); }
  .mi3-orbit.show-b .mi3-scene-b { opacity: 1; transform: none; }

  /* the counter itself: a strip of days that ticks up and rests on day 7 */
  .mi3-roll { position: relative; overflow: hidden; line-height: 1.14;
    font-size: clamp(54px, 8vw, 124px); font-weight: 650; letter-spacing: -0.05em; text-align: center; }
  .mi3-roll-in { display: grid; transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
  /* the type is the object here, so it is lit like one: a soft top-down gradient.
     no filter on these nodes — it breaks background-clip and leaks the gradient box. */
  .mi3-roll-in span { display: block; white-space: nowrap;
    background-image: linear-gradient(174deg, #FFFFFF 4%, #EAF4FF 34%, #B9D4F2 72%, #9CBEE4 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mi3-roll[data-fast="1"] .mi3-roll-in { transition-duration: 0.13s; transition-timing-function: cubic-bezier(0.3, 0.9, 0.4, 1); }
  .mi3-orbit.is-last .mi3-roll-in span { background-image: linear-gradient(174deg, #FFF6E6 4%, #FFDDA6 38%, #F5B65C 78%, #E39A33 100%); }

  /* scene two: the Contract itself, with what the seventh day pays */
  .mi3-reward-art { position: absolute; right: -3%; top: 50%; width: clamp(200px, 26vw, 330px); height: clamp(200px, 26vw, 330px);
    transform: translateY(-50%) rotate(7deg); background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.6)); }
  .mi3-reward { position: relative; justify-self: start; margin-left: clamp(8px, 3vw, 40px); display: grid; gap: 6px; text-align: left; }
  .mi3-reward b { font-size: clamp(58px, 8.5vw, 132px); font-weight: 650; letter-spacing: -0.05em; line-height: 1;
    background-image: linear-gradient(174deg, #FFF6E6 4%, #FFDDA6 38%, #F5B65C 78%, #E39A33 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mi3-reward .u { font: 500 clamp(11px, 1.1vw, 13px) var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: #FFCF8A; }

  /* partner line: the other side of the mission list */
  .mi3-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: clamp(24px, 2.6vw, 36px); text-align: center; color: var(--muted); }
  .mi3-foot b { color: var(--text); font-weight: 500; }
  .mi3-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
  .mi3-foot a:hover { text-decoration: underline; }

  /* entry animation */
  html.mi3-anim .mi3-in .mi3-card, html.mi3-anim .mi3-in .mi3-streak { opacity: 0; transform: translate3d(0, 34px, -40px) rotateX(10deg); }
  html.mi3-anim .mi3-in.is-shown .mi3-card, html.mi3-anim .mi3-in.is-shown .mi3-streak { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  .mi3-in.is-shown .mi3-card:nth-child(2) { transition-delay: 0.12s; }
  .mi3-in.is-shown .mi3-card:nth-child(3) { transition-delay: 0.24s; }
  .mi3-in.is-shown .mi3-streak { transition-delay: 0.3s; }

  @media (max-width: 860px) {
    .mi3 { perspective: 900px; margin-top: 36px; }
    .mi3-stage { grid-template-columns: 1fr; gap: 14px; transform: none; }
    .mi3-line { display: none; }
    .mi3-card { border-radius: 26px; }
    .mi3-token { left: auto; right: 14px; top: -22px; width: 56px; height: 56px; }
    /* the orb moves to its own band at the foot of the card, so the copy gets the full width back */
    .mi3-card.has-orb .mi3-p { max-width: none; }
    /* and a little more air under that card, so the part of the orb that hangs past it has
       somewhere to go before the daily panel starts */
    .mi3-streak { margin-top: 44px; }
    .mi3-prize { border-radius: 18px; padding: 10px 14px; }
    .mi3-orbit { min-height: 260px; }
    .mi3-roll { font-size: clamp(50px, 15vw, 76px); }
    .mi3-reward b { font-size: clamp(54px, 16vw, 82px); }
    .mi3-reward-art { right: -14%; width: 210px; height: 210px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mi3-line i, .mi3-token { animation: none; }
    .mi3-roll-in { transition: none; }
    html.mi3-anim .mi3-in .mi3-card, html.mi3-anim .mi3-in .mi3-streak { opacity: 1; transform: none; }
  }

  /* per-card depth: the row reads as a receding path, not three flat boxes */
  .mi3-card:nth-child(2) { --z: 0px; --ry: 8deg; --y: 10px; }
  .mi3-card:nth-child(3) { --z: 26px; --ry: 2deg; --y: 0px; }
  .mi3-card:nth-child(4) { --z: 58px; --ry: -7deg; --y: -12px; }
  @media (max-width: 860px) {
    .mi3-card:nth-child(2), .mi3-card:nth-child(3), .mi3-card:nth-child(4) { --z: 0; --ry: 0deg; --y: 0; }
    .mi3-rail, .mi3-floor { display: none; }
  }

  /* ---------- Demo: game screen + app icon ---------- */
  .demo-shot { background-image: url("/assets/img/demo-shot-92a594c9.jpg"); background-size: 100% auto !important; background-position: center top !important; background-repeat: no-repeat; background-color: #100D08; }
  .demo-appicon { display: block; width: 88px; height: 88px; border-radius: 22px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 16px 48px rgba(214,160,60,0.28); margin-bottom: 6px; }
  @media (max-width: 860px) { .demo-appicon { width: 72px; height: 72px; border-radius: 18px; } }

  /* ---------- 3D DST token render ---------- */
  .tok3d { background-image: url("/assets/img/tok3d-dd67151d.webp"); background-size: contain; background-repeat: no-repeat; background-position: center; }
  .coin3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: dxCoin3d 7s ease-in-out infinite; }
  @keyframes dxCoin3d { 0%, 100% { transform: rotateX(-6deg) rotateY(-16deg) rotateZ(-5deg); } 50% { transform: rotateX(6deg) rotateY(16deg) rotateZ(5deg); } }
  @media (prefers-reduced-motion: reduce) { .coin3d { animation: none; } }
  .dl-token.tok3d { width: 132px; height: 132px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3)); }

  /* ---------- 3D icons ---------- */
  .i3d-reward { background-image: url("/assets/img/i3d-reward-714eeab4.svg"); }
  .i3d { display: block; background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
  .i3d-channels { background-image: url("/assets/img/i3d-channels-9f9956de.webp"); }
  .i3d-brands { background-image: url("/assets/img/i3d-brands-0453ac5c.webp"); }
  .i3d-events { background-image: url("/assets/img/i3d-events-523610df.webp"); }
  .i3d-contract { background-image: url("/assets/img/i3d-contract-7c47588d.webp"); }
  .i3d-leaderboard { background-image: url("/assets/img/i3d-leaderboard-516d2b72.webp"); }
  .i3d-download { background-image: url("/assets/img/i3d-download-51028f14.webp"); }
  .i3d-mission { background-image: url("/assets/img/i3d-mission-10acb88b.webp"); }
  .i3d-studios { background-image: url("/assets/img/i3d-studios-9d8f56ce.webp"); }
  .i3d-investors { background-image: url("/assets/img/i3d-investors-de47abd4.webp"); }
  .fcard .ic.ic3d { background: none !important; width: 48px; height: 48px; margin: -4px 0; }
  .ic3d .i3d { width: 100%; height: 100%; }
  .glass .ic.ic3d { background: none !important; }
  .ccard .mid.mid3d { background: none; box-shadow: none; width: 104px; height: 104px; }
  .feature .i3d { width: 56px; height: 56px; margin-top: -6px; }
  .pcard .i3d { width: 84px; height: 84px; margin: -8px 0 0 -8px; }
  @media (max-width: 860px) { .feature .i3d { width: 48px; height: 48px; } .pcard .i3d { width: 72px; height: 72px; } }

  .ic-cube { background-image: url("/assets/img/ic-cube-102033fd.jpg"); }

  /* ---------- Hero 3D: flat mode for Safari / iOS and touch screens ----------
     Safari sorts intersecting 3D layers in pieces, so the phone's back plate showed through the
     screen as a black wedge. In flat mode each floating object keeps its own 3D look, but objects
     no longer depth-sort against each other; z-index sets the stacking instead. */
  .flat3d .tilt { transform-style: flat; perspective: 1800px; perspective-origin: 50% 30%; }
  .flat3d .tilt > .floor, .flat3d .tilt > .floor-glow { z-index: 0; }
  .flat3d .tilt > .phone-pos { z-index: 1; }
  .flat3d .tilt > .coin-pos, .flat3d .tilt > .fcard-pos, .flat3d .tilt > .icon-tile, .flat3d .tilt > .demo-pill { z-index: 2; }

  /* ---------- HERO: WebGL scroll story (4 scenes). Without WebGL or with reduced motion it becomes a still, stacked version (.hx-off) ---------- */
  .hx { --hx-top: calc(env(safe-area-inset-top, 0px) + 65px); --hx-edge: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); --hx-line: rgba(245,245,247,0.14); --hx-line-2: rgba(245,245,247,0.28); position: relative; height: 440vh; background: #000000; }
  .hx { --hx-token: url("/assets/img/hx-ad59bd74.png"); }
  .hx { --hx-mark: url("/assets/img/hx-693dde66.png"); }
  html.hx-on { scroll-snap-type: y proximity; }
  .hx-snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; top: calc((100% - 100vh + var(--hx-top)) * var(--f) - var(--hx-top)); top: calc((100% - 100svh + var(--hx-top)) * var(--f) - var(--hx-top)); }
  .hx-on .hx-snap { scroll-snap-align: start; }
  .hx-stick { position: sticky; top: var(--hx-top); height: calc(100vh - var(--hx-top)); height: calc(100svh - var(--hx-top)); overflow: hidden; background: transparent; }
  #hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hx-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.32) 34%, rgba(0,0,0,0) 56%), linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%); }
  .hx-poster { display: none; }
  .hx-ch { position: absolute; left: var(--hx-edge); top: 50%; width: min(600px, 46vw); transform: translateY(-50%); opacity: 0; pointer-events: none; }
  .hx-ch[data-ch="0"] { opacity: 1; }
  .hx-ch.is-on { pointer-events: auto; }
  .hx-on .hx-ch { will-change: opacity, transform; }
  .hx-k { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font: 500 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
  .hx-k .n { color: var(--accent); }
  .hx-k .n::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--hx-line-2); }
  .hx .hx-title { position: relative; max-width: none; margin: 20px 0 22px; font-size: clamp(42px, 5.6vw, 92px); font-weight: 600; line-height: 0.98; letter-spacing: -0.038em; text-wrap: balance; }
  .hx h2.hx-title { font-size: clamp(38px, 4.6vw, 76px); }
  html:lang(zh-Hant) .hx .hx-title { font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
  .hx-ch.glitch .hx-title { animation: hx-g-body 0.62s steps(1) both; }
  .hx-ch.glitch .hx-title .gtx-ghost.r { animation: hx-g-red 0.62s steps(1) both; }
  .hx-ch.glitch .hx-title .gtx-ghost.b { animation: hx-g-blue 0.62s steps(1) both; }
  @keyframes hx-g-body { 0% { transform: translate(3px, 0) skewX(-4deg); } 20% { transform: translate(-2px, 0); } 40% { transform: translate(1px, 0) skewX(2deg); } 60%, 100% { transform: none; } }
  @keyframes hx-g-red { 0% { opacity: 0.95; clip-path: inset(10% 0 68% 0); transform: translate(-9px, 0); } 16% { clip-path: inset(58% 0 14% 0); transform: translate(7px, 0); } 32% { clip-path: inset(34% 0 44% 0); transform: translate(-4px, 0); } 48% { clip-path: inset(78% 0 4% 0); transform: translate(10px, 0); } 64% { opacity: 0.7; clip-path: inset(0 0 0 0); transform: translate(-3px, 0); } 82% { opacity: 0.35; transform: translate(-1px, 0); } 100% { opacity: 0; } }
  @keyframes hx-g-blue { 0% { opacity: 0.95; clip-path: inset(62% 0 8% 0); transform: translate(8px, 0); } 16% { clip-path: inset(6% 0 76% 0); transform: translate(-6px, 0); } 32% { clip-path: inset(44% 0 30% 0); transform: translate(5px, 0); } 48% { clip-path: inset(20% 0 60% 0); transform: translate(-10px, 0); } 64% { opacity: 0.7; clip-path: inset(0 0 0 0); transform: translate(3px, 0); } 82% { opacity: 0.35; transform: translate(1px, 0); } 100% { opacity: 0; } }
  .hx-p { max-width: 44ch; margin: 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; }
  .hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .hx .store.ghost { background: rgba(10,12,18,0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
  .hx-steps li { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--hx-line-2); font-size: 17px; font-weight: 500; }
  .hx-steps .n { font: 500 12px var(--mono); letter-spacing: 0.12em; }
  .hx-steps li:nth-child(1) { border-top-color: #EC4952; } .hx-steps li:nth-child(1) .n { color: #EC4952; }
  .hx-steps li:nth-child(2) { border-top-color: #F2A94B; } .hx-steps li:nth-child(2) .n { color: #F2A94B; }
  .hx-steps li:nth-child(3) { border-top-color: var(--accent); } .hx-steps li:nth-child(3) .n { color: var(--accent); }
  .hx-rail { position: absolute; right: var(--hx-edge); top: 50%; transform: translateY(-50%); display: grid; gap: 16px; justify-items: end; }
  .hx-rail button { display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; cursor: pointer; color: var(--muted-2); font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s ease; }
  .hx-rail button::after { content: ""; width: 16px; height: 1px; background: currentColor; transition: width 0.35s ease, background-color 0.35s ease; }
  .hx-rail button:hover { color: var(--muted); }
  .hx-rail button.on { color: var(--text); }
  .hx-rail button.on::after { width: 44px; background: var(--accent); }
  .hx-cue { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--muted-2); font: 500 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; pointer-events: none; }
  .hx-cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: var(--hx-line); }
  .hx-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: hx-cue 1.8s ease-in-out infinite; }
  @keyframes hx-cue { to { top: 100%; } }
  .hx-fps { position: absolute; left: var(--gutter); bottom: 10px; margin: 0; color: var(--muted-2); font: 11px var(--mono); }
  @media (max-width: 860px) {
    .hx { height: 380vh; }
    .hx-stick { background: radial-gradient(120% 70% at 50% 34%, #06101F 0%, #000000 62%); }
    .hx-shade { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 26%, rgba(0,0,0,0) 42%); }
    .hx-ch { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); left: var(--gutter); right: var(--gutter); width: auto; transform: none; }
    .hx .hx-title { margin: 14px 0; font-size: clamp(36px, 10.5vw, 54px); }
    .hx h2.hx-title { font-size: clamp(32px, 9vw, 46px); }
    .hx-p { font-size: 15px; }
    .hx-cta { margin-top: 22px; gap: 10px; }
    .hx .store { height: 44px; padding: 0 16px; font-size: 14px; }
    .hx-steps { gap: 10px; margin-top: 20px; }
    .hx-steps li { font-size: 15px; }
    .hx-rail { top: 12px; left: var(--gutter); right: var(--gutter); transform: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; justify-items: stretch; }
    .hx-rail button { flex-direction: column-reverse; align-items: stretch; gap: 8px; font-size: 10px; letter-spacing: 0.1em; text-align: left; }
    .hx-rail button::after { width: 100%; height: 2px; background: var(--hx-line); }
    .hx-rail button.on::after { width: 100%; }
    .hx-cue { display: none; }
  }
  @media (max-width: 860px) and (max-height: 560px) {
    .hx .hx-title { font-size: 30px; }
    .hx-p { display: none; }
  }
  .hx-off .hx { height: auto; }
  .hx-off .hx-stick { position: relative; top: 0; height: auto; overflow: visible; padding-block: clamp(56px, 8vw, 96px) 72px; }
  .hx-off #hx-canvas, .hx-off .hx-rail, .hx-off .hx-cue, .hx-off .hx-shade { display: none; }
  .hx-off .hx-poster { display: block; width: min(240px, 52vw); aspect-ratio: 1; margin: 0 0 40px var(--hx-edge); filter: drop-shadow(0 0 70px rgba(41,151,255,0.35)); }
  .hx-off .hx-chs { display: grid; gap: 88px; }
  .hx-off .hx-ch { position: relative; inset: auto; left: auto; width: auto; max-width: 640px; margin-inline: var(--hx-edge) var(--gutter); transform: none; opacity: 1; pointer-events: auto; }
  @media (prefers-reduced-motion: reduce) {
    .hx-cue i::after, .hx-ch.glitch .hx-title, .hx-ch.glitch .hx-title .gtx-ghost { animation: none; }
  }

  /* Official store badges (used in the hero and on /download/) */
  .store-badge { display: inline-block; flex: none; width: calc(52px * 1884 / 630); height: 52px; border-radius: 9px; background-size: 100% 100%; background-repeat: no-repeat; transition: transform 0.2s ease; }
  .store-badge:hover { transform: translateY(-2px); }
  .badge-google-play { background-image: url("/assets/img/badge-google-play-2a7965da.png"); }
  .badge-app-store { background-image: url("/assets/img/badge-app-store-5cd74a2e.png"); }
  @media (max-width: 860px) { .hx .store-badge { width: calc(46px * 1884 / 630); height: 46px; } }
  /* ---------- GAMES: drifting card wave ---------- */
  .gw { --gw-edge: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); position: relative; margin-top: 44px; height: 580px; overflow: hidden; perspective: 1400px; perspective-origin: 50% 46%; touch-action: pan-y; }
  .gw::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(ellipse at 50% 44%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.35) 82%, rgba(0,0,0,0.72) 100%); }
  .gw-glow { position: absolute; left: 50%; top: 46%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(41,151,255,0.18), rgba(41,151,255,0) 62%); pointer-events: none; }
  /* the deck plane sits at z=0 and would swallow clicks meant for the cards behind it
     (only the lifted centre card was clickable); the cards set their own pointer-events */
  .gw-deck { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
  .gw-card {
    --near: 0;
    position: absolute; left: 50%; top: 50%; width: 214px; margin: -184px 0 0 -107px;
    display: flex; flex-direction: column; gap: 0; padding: 14px 14px 16px;
    border-radius: 28px; border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(168deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 38%), #0C0F14;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    color: var(--text); text-align: left; cursor: pointer; will-change: transform, opacity;
    transform-style: preserve-3d; backface-visibility: hidden;
  }
  .gw-card .gw-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
  .gw-card .gw-chip { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(4,6,10,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 11px var(--sans); color: #D2D2D7; }
  .gw-card .gw-meta { display: grid; gap: 4px; padding: 12px 4px 0; opacity: calc(0.3 + 0.7 * var(--near)); }
  .gw-card .gw-genre { font: 500 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
  .gw-card .gw-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
  .gw-card.is-focus .gw-name { font-size: 19px; }
  .gw-card .gw-line { margin: 0; max-height: 0; overflow: hidden; opacity: 0; color: var(--muted); font-size: 14px; line-height: 1.45; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease; }
  .gw-card .gw-play { display: none; align-items: center; justify-content: center; gap: 7px; height: 38px; margin-top: 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; }
  .gw-card.is-focus { border-color: rgba(41,151,255,0.45); box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(41,151,255,0.25), 0 0 60px rgba(41,151,255,0.22); }
  .gw-card.is-focus .gw-line { max-height: 84px; margin-top: 8px; opacity: 1; }
  .gw-card.is-focus .gw-play { display: flex; }
  .gw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .gw-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; color: var(--muted-2); font: 500 11px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; pointer-events: none; transition: opacity 0.4s ease; }
  @media (max-width: 860px) {
    .gw { height: 470px; margin-top: 28px; }
    .gw-card { width: 150px; margin: -140px 0 0 -75px; padding: 10px 10px 12px; border-radius: 20px; }
    .gw-card .gw-meta { padding-top: 9px; }
    .gw-card .gw-genre { font-size: 8px; letter-spacing: 0.12em; }
    .gw-card .gw-chip { top: 7px; right: 7px; padding: 3px 7px; font-size: 9px; }
    .gw-card .gw-name { font-size: 17px; }
    .gw-card .gw-line { font-size: 13px; }
  }
  /* no JS / reduced motion: plain grid, nothing moves */
  .gw-static { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; padding-inline: var(--gw-edge, var(--gutter)); }
  .gw-off .gw { height: auto; overflow: visible; perspective: none; }
  .gw-off .gw-deck { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding-inline: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); }
  .gw-off .gw-card { position: static; width: auto; margin: 0; transform: none !important; opacity: 1 !important; }
  .gw-off .gw-card .gw-line { max-height: 90px; opacity: 1; margin-top: 8px; }
  .gw-off .gw-glow, .gw-off .gw-hint, .gw-off .gw::before { display: none; }

  .gw-card .gw-art { background-size: cover; background-position: center; }
  .gw-card .gw-chip.dev { background: rgba(255,159,10,0.2); color: #FFB340; }
  .gw-play { text-decoration: none; }

  /* ---------- Primary buttons: a light travelling around the edge ---------- */
  .beam { position: relative; isolation: isolate; overflow: hidden; border: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05), 0 0 46px rgba(var(--accent-rgb), 0.3);
    transition: box-shadow 0.35s ease, transform 0.2s ease; }
  .store.beam, .pill-btn.beam, button.beam { background: #0B0E13; color: var(--text); }
  .beam::before { content: ""; position: absolute; inset: -70%; z-index: -2;
    background: conic-gradient(from 0deg, rgba(var(--accent-rgb),0) 0 46%, rgba(var(--accent-rgb),0.25) 58%, rgba(var(--accent-rgb),1) 70%, #DCEEFF 75%, rgba(var(--accent-rgb),1) 80%, rgba(var(--accent-rgb),0.25) 90%, rgba(var(--accent-rgb),0) 98%);
    animation: beam-spin 4.2s linear infinite; }
  .beam::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit;
    background: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.2px) 0 0 / 5px 5px, radial-gradient(130% 150% at 50% -30%, #1A212C 0%, #0A0D12 66%); }
  .beam:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08), 0 0 62px rgba(var(--accent-rgb), 0.42); transform: translateY(-1px); }
  .beam:hover::before { animation-duration: 1.8s; }
  .beam svg [fill="#000"], .beam svg [fill="#0B0E13"] { fill: currentColor; }
  .beam svg [stroke="#000"] { stroke: currentColor; }
  @keyframes beam-spin { to { transform: rotate(1turn); } }
  @media (prefers-reduced-motion: reduce) { .beam::before { animation: none; } }

  /* ---------- Pages: shared ---------- */
  .page-view { min-height: 70vh; }
  .zh-only { display: none; }
  html:lang(zh-Hant) .zh-only { display: block; }
  .links a.active { color: var(--text); }
  .doc-hero { padding-block: clamp(56px, 8vw, 104px) 40px; display: flex; flex-direction: column; gap: 16px; }
  .doc-title { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; max-width: 960px; text-wrap: balance; }
  .doc-lede { max-width: 640px; }
  .doc-note { padding: 10px 14px; border-radius: 12px; background: rgba(var(--accent-rgb), 0.12); color: #9FCBFF; font-size: 14px; align-self: flex-start; }

  /* ---------- Whitepaper ---------- */
  .doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 140px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 48px; }
  .toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 110px); overflow-y: auto; }
  .toc-box summary { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); cursor: pointer; list-style: none; padding: 0 0 14px 14px; }
  .toc-box summary::-webkit-details-marker { display: none; }
  .toc nav { display: flex; flex-direction: column; }
  .toc nav a { padding: 9px 14px; border-left: 2px solid rgba(255,255,255,0.1); color: var(--muted); font-size: 14px; line-height: 1.35; }
  .toc nav a:hover { color: var(--text); }
  .toc nav a.active { color: var(--text); border-left-color: var(--accent); }
  .prose { max-width: 840px; color: #D2D2D7; font-size: 17px; line-height: 1.7; }
  .prose h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: var(--text); margin: 96px 0 20px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); scroll-margin-top: 88px; text-wrap: balance; }
  .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .prose h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--text); margin: 44px 0 12px; }
  .prose p { margin: 0 0 16px; }
  .prose ul { margin: 0 0 22px; padding-left: 22px; }
  .prose li { margin: 7px 0; }
  .prose li::marker { color: var(--accent); }
  .prose strong { color: var(--text); font-weight: 600; }
  .table-wrap { overflow-x: auto; margin: 20px 0 30px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; }
  .prose table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
  .prose th { text-align: left; background: rgba(255,255,255,0.05); color: var(--text); font-weight: 600; padding: 12px 16px; vertical-align: bottom; }
  .prose td { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
  .prose td:first-child { color: var(--text); font-weight: 500; }
  .wp-fig { margin: 24px 0 36px; }
  .wp-fig img { display: block; width: 100%; height: auto; border-radius: 18px; background: #FFFFFF; }
  .wp-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted-2); }
  .fig-fallback { display: none; aspect-ratio: 16 / 9; border-radius: 18px; border: 1px dashed rgba(255,255,255,0.18); background: radial-gradient(60% 60% at 50% 40%, rgba(var(--accent-rgb), 0.12), transparent 70%), #0B0B0E; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-size: 14px; }
  .fig-fallback .tok { width: 56px; height: 56px; border-radius: 50%; background-size: cover; opacity: 0.85; }
  .wp-fig.img-missing img { display: none; }
  .wp-fig.img-missing .fig-fallback { display: grid; }
  @media (max-width: 960px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
    .toc { position: static; max-height: none; }
    .toc-box { border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 14px 6px 8px; }
    .toc-box summary { padding-bottom: 8px; }
    .prose { font-size: 16px; }
    .prose h2 { margin-top: 72px; }
  }

  /* ---------- Notice ---------- */
  .notice-list { padding-bottom: 140px; }
  .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
  .tab { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
  .tab:hover { color: var(--text); }
  .tab[aria-selected="true"] { background: var(--light); color: #000000; border-color: var(--light); }
  .notice-status { margin: -12px 0 24px; font-size: 13px; color: var(--muted-2); }
  .notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ncard { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid rgba(255,255,255,0.08); color: var(--text); transition: transform 0.25s ease, border-color 0.25s ease; }
  .ncard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
  .nimg { aspect-ratio: 4 / 3; background: radial-gradient(70% 70% at 30% 20%, rgba(var(--accent-rgb), 0.25), transparent 70%), #0E0E12; overflow: hidden; display: grid; place-items: center; }
  .nimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .nimg .tok { display: none; width: 64px; height: 64px; border-radius: 50%; background-size: cover; opacity: 0.8; }
  .nimg.noimg img { display: none; }
  .nimg.noimg .tok { display: block; }
  .nbody { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
  .ncat { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 12px; font-weight: 500; color: #D2D2D7; }
  .ncat.n { background: rgba(100,210,255,0.14); color: #8EDCFF; }
  .ncat.e { background: rgba(255,159,10,0.16); color: #FFB340; }
  .ntitle { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nsum { font-size: 14.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .nmeta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
  .nlikes { display: inline-flex; align-items: center; gap: 6px; }
  .notice-more { display: flex; justify-content: center; margin-top: 40px; }
  .more-btn { min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: transparent; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
  .more-btn:hover { background: rgba(255,255,255,0.08); }
  .notice-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }
  .notice-detail { max-width: 880px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 140px; }
  .is-detail .doc-hero { display: none; }
  .back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 28px; }
  .nd-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .nd-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
  .nd-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted-2); }
  .nd-img { border-radius: 24px; overflow: hidden; margin-bottom: 32px; background: #0E0E12; }
  .nd-img img { display: block; width: 100%; height: auto; }
  .nd-img.noimg { display: none; }
  .nd-body { color: #D2D2D7; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
  .nd-body p { margin: 0 0 14px; }
  .nd-body p:empty { margin: 0 0 6px; }
  .nd-body strong { color: var(--text); }
  @media (max-width: 1020px) { .notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .notice-grid { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Legal, download, contact, contract ---------- */
  .legal-layout { padding: 48px var(--gutter) 140px; border-top: 1px solid rgba(255,255,255,0.08); }
  .legal { margin-inline: auto; max-width: 820px; }
  .legal h2 { margin-top: 64px; padding-top: 28px; }
  .legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
  .legal-foot { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--muted); font-size: 15px; }
  .legal-view .doc-hero, .legal-view .doc-note { max-width: 820px; }
  .legal-view .doc-hero { margin-inline: auto; box-sizing: content-box; }

  .dl { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-block: 96px 120px; }
  .dl-token { display: block; width: 88px; height: 88px; border-radius: 50%; background-size: cover; margin-bottom: 8px; box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.35); }
  .dl-title { max-width: 820px; }
  .dl-ref { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.12); color: #9FCBFF; font-size: 15px; }
  .dl-ref strong { color: var(--text); font-family: var(--mono); letter-spacing: 0.04em; }
  .dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

  .ct-wrap { padding-bottom: 140px; }
  .ct-form { max-width: 720px; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--card); border: 1px solid rgba(255,255,255,0.08); }
  .ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .field label { font-size: 14px; font-weight: 500; color: var(--text); }
  .field .req { color: #FF6B6B; }
  .field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #0B0B0D; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
  .field textarea { resize: vertical; min-height: 180px; line-height: 1.5; }
  .field input::placeholder, .field textarea::placeholder { color: #6E6E73; }
  .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
  .field [aria-invalid="true"] { border-color: #FF6B6B; }
  .field-err { margin: 0; font-size: 13px; color: #FF8A8A; }
  .ct-msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .ct-msg.ok { background: rgba(48, 209, 88, 0.14); color: #7EE2A0; }
  .ct-msg.err { background: rgba(255, 107, 107, 0.12); color: #FF9D9D; }
  .ct-btn { align-self: flex-start; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #000; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
  .ct-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .ct-alt { margin: 0; font-size: 14px; color: var(--muted); }
  .ct-alt a { color: var(--accent); }
  @media (max-width: 640px) { .ct-row { grid-template-columns: minmax(0, 1fr); } .ct-btn { align-self: stretch; } }

  .contract-wrap { padding-bottom: 140px; }
  .contract-app { min-height: 360px; }

  /* ---------- /nft/ : DxsxtNFTHero (first screen) + DxsxtNFT (cards, series, detail) ---------- */
  .nft-page { background: #000; }
  .nft-page #dxsxt-nft-hero { --dxh-offset: 64px; }
  .nft-page #dxsxt-nft { padding-bottom: 40px; }
  .nft-page .dxn-foot { display: none; }            /* the site footer already carries this line */
  .nft-page .dxn-wrap > .dxn-sec:first-child { margin-top: clamp(48px, 7vw, 88px); }
