  /* One deliberate look: a red-and-gold night poster. Every colour is set explicitly. */
  :root {
    --ink: #0e0404; --ink2: #1a0707; --panel: #220a09; --line: #4a1712;
    --red: #e3262a; --red2: #b3141b; --gold: #ffc94a; --gold2: #d9a12c;
    --paper: #f7ecd9; --muted: #c9ab95; --ok: #7fd18b; --bad: #ff8a7a;
    --zh: "Ma Shan Zheng", "STKaiti", "KaiTi", "Noto Serif SC", serif;
    --zh2: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --en: "Anton", "Impact", "Arial Narrow", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--body); overflow-x: hidden; }
  body::before { /* paper grain + red glow */
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227,38,42,.28), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .8  0 0 0 0 .6  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  main, header, footer { position: relative; z-index: 1; }
  a { color: var(--gold); }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
  h1, h2, h3 { text-wrap: balance; margin: 0; }
  .zh { font-family: var(--zh); font-weight: 400; }
  .en { font-family: var(--en); letter-spacing: .02em; text-transform: uppercase; }
  .eyebrow { font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

  /* entry gate: sound can only start after a tap */
  #gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center;
          background: radial-gradient(ellipse at 50% 40%, #3a0b0a 0%, var(--ink) 70%); padding: 24px 16px; }
  #gate .seal { width: min(46vw, 220px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px var(--gold), 0 20px 60px rgba(227,38,42,.5); }
  #gate h1 { font-family: var(--zh); font-size: clamp(64px, 16vw, 150px); line-height: 1; color: var(--red);
             text-shadow: 0 0 30px rgba(255,201,74,.45), 3px 3px 0 #1a0000; margin-top: 18px; }
  #gate .en { font-size: clamp(22px, 5vw, 40px); color: var(--paper); }
  .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
  .btn { appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
         font: 800 15px/1 var(--body); padding: 15px 22px; border-radius: 999px; min-height: 48px; }
  .btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 #6d0b0d; }
  .btn-red:active { transform: translateY(3px); box-shadow: 0 3px 0 #6d0b0d; }
  .btn-ghost { background: transparent; color: var(--paper); border: 2px solid var(--line); }
  .btn-gold { background: var(--gold); color: #2a0606; box-shadow: 0 6px 0 #8a5d10; }
  .btn:focus-visible, input:focus-visible, .frame:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

  /* top bar */
  header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(14,4,4,.86); backdrop-filter: blur(8px);
           border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); margin-right: auto; }
  .brand img { width: 38px; height: 38px; border-radius: 50%; }
  .brand b { font-family: var(--zh); font-size: 24px; color: var(--red); font-weight: 400; }
  .brand span { font-family: var(--en); font-size: 15px; letter-spacing: .04em; }
  nav { display: flex; gap: 16px; }
  nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
  nav a:hover { color: var(--gold); }
  #music { border: 2px solid var(--gold); background: transparent; color: var(--gold); border-radius: 999px; padding: 8px 14px;
           font: 700 13px/1 var(--body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; }
  #music .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
  #music .bars i { width: 3px; background: var(--gold); height: 4px; }
  #music.on .bars i { animation: eq .9s ease-in-out infinite; }
  #music.on .bars i:nth-child(2) { animation-delay: .2s } #music.on .bars i:nth-child(3) { animation-delay: .4s }
  @keyframes eq { 0%,100% { height: 4px } 50% { height: 14px } }
  @media (max-width: 720px) { nav { display: none; } .brand span { display: none; } }

  /* hero */
  .hero { padding-block: 40px 56px; }
  .hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: 24px; align-items: center; }
  .side { text-align: center; }
  .side .zh-v { writing-mode: vertical-rl; font-family: var(--zh); font-size: clamp(44px, 6vw, 84px); line-height: 1.05; margin: 0 auto;
                color: var(--red); text-shadow: 0 0 22px rgba(255,201,74,.35), 3px 3px 0 #1a0000; }
  .side.r .zh-v { color: var(--gold); text-shadow: 0 0 22px rgba(227,38,42,.5), 3px 3px 0 #1a0000; }
  .side .en { display: block; margin-top: 14px; font-size: 18px; color: var(--muted); }
  .hero h1 { text-align: center; margin-bottom: 18px; }
  .hero h1 .zh { display: block; font-size: clamp(56px, 11vw, 120px); line-height: 1; color: var(--red);
                 text-shadow: 0 0 34px rgba(255,201,74,.4), 4px 4px 0 #1a0000; }
  .hero h1 .en { display: block; font-size: clamp(26px, 5vw, 48px); line-height: 1.1; color: var(--paper); margin-top: 6px; }
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .frame-box { grid-column: 1 / -1; order: -1; }
    .side .zh-v { writing-mode: horizontal-tb; font-size: 40px; }
  }

  .frame-box { position: relative; }
  .frame { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #2a0d0b; border-radius: 6px;
           cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
           box-shadow: 0 0 0 4px var(--gold), 0 0 0 10px var(--red2), 0 30px 80px rgba(0,0,0,.6); }
  .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
  #suitL { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0); pointer-events: none; }
  #suit { transform: scale(1.06); transform-origin: 50% 50%; }
  #frail { transform: scale(1.0335); transform-origin: 41.31% 38.12%; }
  .divider { position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: 3px; margin-left: -1.5px; background: var(--gold);
             box-shadow: 0 0 14px rgba(255,201,74,.8); pointer-events: none; }
  .knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
          background: var(--red); border: 3px solid var(--gold); color: #fff; display: grid; place-items: center;
          font: 400 22px/1 var(--zh); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
  .tag { position: absolute; top: 12px; padding: 6px 10px; font: 800 12px/1.1 var(--body); letter-spacing: .08em; text-transform: uppercase;
         background: rgba(14,4,4,.78); border: 1px solid var(--line); border-radius: 4px; pointer-events: none; }
  .tag b { display: block; font: 400 18px/1.1 var(--zh); letter-spacing: 0; }
  .tag.l { left: 12px; color: var(--muted); } .tag.r { right: 12px; color: var(--gold); text-align: right; }
  .hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
  .chip { border: 1px solid var(--line); background: var(--ink2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
  .chip b { color: var(--gold); }

  section { padding-block: 64px; border-top: 1px solid var(--line); }
  .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 28px; }
  .head .zh { font-size: clamp(40px, 7vw, 64px); color: var(--red); line-height: 1; text-shadow: 3px 3px 0 #1a0000; }
  .head .en { font-size: clamp(22px, 3.5vw, 34px); }
  .lede { max-width: 62ch; color: var(--muted); margin: 0 0 28px; }

  /* story */
  .story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  @media (max-width: 860px) { .story { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 540px) { .story { grid-template-columns: minmax(0, 1fr); } }
  .beat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
  .beat figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .beat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
  .beat:hover img { transform: scale(1.05); }
  .beat .num { position: absolute; left: 10px; top: 8px; font: 400 34px/1 var(--zh); color: var(--gold); text-shadow: 2px 2px 0 #1a0000; }
  .beat div { padding: 14px 16px 18px; }
  .beat h3 { font: 400 26px/1.1 var(--zh); color: var(--red); }
  .beat h3 small { font: 400 16px/1 var(--en); color: var(--paper); letter-spacing: .04em; margin-left: 8px; text-transform: uppercase; }
  .beat p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

  /* home on chain */
  .home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
  @media (max-width: 860px) { .home { grid-template-columns: minmax(0, 1fr); } }
  .home img { width: 100%; border-radius: 6px; box-shadow: 0 0 0 3px var(--gold); }
  .facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
  .facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .facts li span:first-child { color: var(--muted); }
  .facts li span:last-child { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
  .warn { margin-top: 18px; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--ink2); font-size: 14px; color: var(--paper); }

  /* airdrop */
  .drop { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
  @media (max-width: 860px) { .drop { grid-template-columns: minmax(0, 1fr); } }
  .pool { background: linear-gradient(160deg, var(--red2), #5a0b0c); border: 2px solid var(--gold); border-radius: 8px; padding: 22px; text-align: center; }
  .pool .big { font: 400 clamp(44px, 8vw, 72px)/1 var(--en); color: var(--gold); font-variant-numeric: tabular-nums; }
  .pool .zh { font-size: 28px; }
  .pool .row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-weight: 700; }
  .pool .row span { background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 999px; }
  .rules { margin: 18px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
  .rules li { margin-bottom: 6px; }

  .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
  .step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 16px 64px; position: relative; }
  .step::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
                  background: var(--red); color: #fff; display: grid; place-items: center; font: 400 20px/1 var(--en); }
  .step.done::before { content: "✓"; background: var(--ok); color: #0e2a12; }
  .step h3 { font-size: 17px; font-weight: 800; }
  .step h3 .zh { color: var(--gold); font-size: 20px; margin-left: 6px; }
  .step p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
  .card-prev { width: 100%; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 12px; display: block; }
  .tweet { background: var(--ink2); border: 1px dashed var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; margin-bottom: 12px; overflow-wrap: anywhere; }
  label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px; }
  input[type=text], input[type=url] { width: 100%; padding: 13px 14px; min-height: 48px; border-radius: 6px; border: 1px solid var(--line);
         background: var(--ink); color: var(--paper); font: 15px var(--body); }
  input.err { border-color: var(--bad); }
  .msg { font-size: 13px; margin-top: 6px; min-height: 1em; }
  .msg.bad { color: var(--bad); } .msg.good { color: var(--ok); }
  .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
  .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
  #result { margin-top: 14px; padding: 14px; border-radius: 6px; background: var(--ink2); border: 1px solid var(--gold); }

  footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 13px; }
  footer .wrap { display: grid; gap: 10px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

  /* language switch */
  .lang { border: 1px solid var(--line); background: var(--ink2); color: var(--paper); border-radius: 999px; padding: 8px 12px;
          font: 800 13px/1 var(--body); cursor: pointer; min-height: 40px; min-width: 52px; }
  .lang:hover { border-color: var(--gold); color: var(--gold); }
  .gate-lang { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
  /* English mode: every Chinese-styled heading switches to the poster sans, upper case, set horizontally */
  .lang-en .zh { font-family: var(--en); text-transform: uppercase; letter-spacing: .02em; }
  .lang-en #gate h1 { font-family: var(--en); font-size: clamp(48px, 11vw, 110px); }
  .lang-en .hero h1 .zh { font-size: clamp(48px, 9.5vw, 104px); }
  .lang-en .hero h1 .en { color: var(--gold); }
  .lang-en .side .zh-v { writing-mode: horizontal-tb; font-family: var(--en); text-transform: uppercase; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
  .lang-en .head .zh { font-size: clamp(36px, 6vw, 56px); }
  .lang-en .beat h3 { font-size: 24px; }
  .lang-en .beat .num { font-family: var(--en); }
  .lang-en .brand b { font-size: 18px; }
  .lang-en .brand span { display: none; }
  .lang-en .knob { font: 800 22px/1 var(--body); }
  .lang-en .tag { font-size: 13px; }
  .lang-en .pool .zh { font-size: 26px; }

  .btns-l { justify-content: flex-start; }
  .btns-tight { margin-top: 0; }
  .foot-brand { color: var(--red); font-size: 20px; }
  .foot-brand-en { font-family: var(--en); font-size: 18px; letter-spacing: .03em; }
  .nf { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; }
  .nf h1 { font-size: clamp(56px, 14vw, 120px); color: var(--red); }
  /* risk notice */
  .risk { margin: 28px auto 0; max-width: 820px; border: 2px solid var(--gold); background: var(--ink2); border-radius: 8px; padding: 18px 20px; }
  .risk h2 { font: 800 15px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: flex; gap: 10px; align-items: center; }
  .risk h2::before { content: "!"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #2a0606; font-size: 16px; }
  .risk ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
  .risk li b { color: var(--gold); }
  .gate-risk { max-width: 34em; margin: 18px auto 0; font-size: 13px; color: var(--muted); }
  .social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--paper); background: var(--ink2); }
  .social:hover { color: var(--gold); border-color: var(--gold); }
  .socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
  .social-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink2); color: var(--paper); text-decoration: none; font-weight: 700; }
  .social-pill:hover { border-color: var(--gold); color: var(--gold); }
  /* airdrop stages */
  .stages { display: grid; gap: 22px; }
  .stage-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 800 18px/1.2 var(--body); margin-bottom: 12px; }
  .stage-n { font: 400 14px/1 var(--en); letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; padding: 6px 10px; border-radius: 4px; }
  .stage-badge { margin-left: auto; font: 800 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
  .stage-badge.open { border-color: var(--ok); color: var(--ok); }
  .stage-lock { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 6px; color: var(--gold); font-size: 14px; }
  .stage.locked form { opacity: .45; filter: grayscale(.7) blur(1.5px); pointer-events: none; user-select: none; }
  #joinTg svg { flex: none; }
  /* music player: play button + volume slider */
  .player { display: inline-flex; align-items: center; gap: 8px; }
  #vol { -webkit-appearance: none; appearance: none; width: 92px; height: 28px; background: transparent; cursor: pointer; margin: 0; }
  #vol::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--v, 60%), var(--line) var(--v, 60%)); }
  #vol::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
  #vol::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
  #vol::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--red); border: 2px solid var(--gold); }
  #vol::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2px solid var(--gold); }
  #vol:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
  /* phones: keep the header on one line */
  @media (max-width: 520px) {
    header .wrap { gap: 8px; }
    .brand b { display: none; }
    #vol { width: 64px; }
    #music { padding: 8px 10px; }
    .social, .lang { width: 38px; min-width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }
    .step { padding: 14px 14px 14px 56px; }
    .step::before { left: 12px; }
    .hero { padding-block: 24px 40px; }
    section { padding-block: 48px; }
  }
