
  button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
  * { box-sizing: border-box; }
  :root{
    --bg:#ffedb8;
    --bg-soft:#fff6d8;
    --paper:#fffdf4;
    --card:#ffffff;
    --ink:#211503;
    --muted:#6f5a33;
    --yellow:#ffd21f;
    --yellow-deep:#ffb800;
    --orange:#ff7a1a;
    --orange-deep:#e85d04;
    --red:#e6392b;
    --green:#1d9e5f;
    --line:#211503;
    --shadow:6px 6px 0 var(--line);
    --shadow-sm:4px 4px 0 var(--line);
    --radius:18px;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --bg:#241a05;
      --bg-soft:#2e2107;
      --paper:#33270a;
      --card:#3a2d0c;
      --ink:#ffeec2;
      --muted:#d8bd82;
      --line:#ffeec2;
      --shadow:6px 6px 0 #000;
      --shadow-sm:4px 4px 0 #000;
    }
  }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
    background:
      radial-gradient(circle at 12% 0%, rgba(255,210,31,.35), transparent 420px),
      var(--bg);
    color:var(--ink);
    line-height:1.65;
    overflow-x:hidden;
  }
  .font-display{ font-family:"ZCOOL KuaiLe","Noto Sans SC","PingFang SC",sans-serif; letter-spacing:.5px; }
  a{ color:inherit; }
  img{ max-width:100%; }

  /* ---------- 跑马灯 ---------- */
  .marquee{
    background:var(--ink); color:var(--yellow);
    border-bottom:3px solid var(--line);
    overflow:hidden; white-space:nowrap;
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:17px; padding:7px 0;
  }
  @media (prefers-color-scheme: dark){ .marquee{ background:#000; color:var(--yellow); border-bottom-color:#000; } }
  .marquee-track{ display:inline-block; animation:marquee 26s linear infinite; will-change:transform; }
  @keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
  @media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }

  /* ---------- 顶栏 ---------- */
  header.topbar{
    position:sticky; top:0; z-index:60;
    background:var(--yellow);
    border-bottom:3px solid var(--line);
  }
  @media (prefers-color-scheme: dark){ header.topbar{ background:#3a2d0c; } }
  .topbar-inner{
    max-width:1120px; margin:0 auto; padding:10px 16px;
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  }
  .brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
  .brand img{
    width:44px; height:44px; border-radius:50%;
    border:3px solid var(--line); object-fit:cover; background:#fff6d8; display:block;
  }
  .brand-name{ font-size:26px; line-height:1.1; }
  .brand-sym{
    font-size:12px; font-weight:900; background:var(--ink); color:var(--yellow);
    padding:2px 9px; border-radius:999px; vertical-align:middle;
  }
  @media (prefers-color-scheme: dark){ .brand-sym{ background:var(--yellow); color:#211503; } }
  nav.main-nav{ margin-left:auto; display:flex; gap:4px; flex-wrap:wrap; }
  nav.main-nav a{
    text-decoration:none; font-weight:900; font-size:16px;
    padding:9px 14px; border-radius:10px; border:3px solid transparent;
    display:inline-flex; align-items:center; min-height:44px;
  }
  nav.main-nav a:hover{ border-color:var(--line); background:var(--paper); }
  .top-actions{ display:flex; gap:8px; align-items:center; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    cursor:pointer; text-decoration:none; font-family:inherit;
    font-weight:900; font-size:16px; color:var(--ink);
    background:var(--paper); border:3px solid var(--line); border-radius:12px;
    padding:8px 18px; min-height:44px;
    box-shadow:4px 4px 0 var(--line);
    transition:transform .08s ease, box-shadow .08s ease;
  }
  .btn:active{ transform:translate(3px,3px); box-shadow:1px 1px 0 var(--line); }
  .btn.primary{ background:var(--orange); color:#fff8ea; }
  .btn.dark{ background:var(--ink); color:var(--yellow); }
  @media (prefers-color-scheme: dark){ .btn.dark{ background:var(--yellow); color:#211503; } }
  .btn.small{ font-size:15px; padding:6px 14px; min-height:40px; }
  .btn.icon-btn{ width:44px; padding:0; font-size:19px; }
  .btn[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:4px 4px 0 var(--line); transform:none; }
  .btn.copied{ background:var(--green); color:#fff; }

  main{ max-width:1120px; margin:0 auto; padding:0 16px 70px; }
  section{ margin-top:54px; scroll-margin-top:110px; }
  .sec-head{ margin-bottom:20px; }
  .sec-head h2{
    display:inline-block; margin:0;
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(30px,5vw,42px); font-weight:400; line-height:1.25;
    background:var(--ink); color:var(--bg-soft);
    padding:6px 20px 8px; border:3px solid var(--line); border-radius:14px;
    box-shadow:var(--shadow-sm);
  }
  @media (prefers-color-scheme: dark){ .sec-head h2{ background:var(--yellow); color:#211503; } }
  .sec-head p{ margin:10px 2px 0; color:var(--muted); font-weight:700; }

  .card{
    background:var(--card); border:3px solid var(--line); border-radius:var(--radius);
    box-shadow:var(--shadow); padding:26px;
  }
  .hint{ color:var(--muted); font-weight:500; font-size:15px; }
  .row{
    display:flex; justify-content:space-between; align-items:baseline; gap:16px;
    padding:10px 0; border-bottom:2px dashed rgba(127,102,52,.35);
  }
  .row:last-of-type{ border-bottom:none; }
  .row span{ color:var(--muted); font-weight:700; }
  .row b{ text-align:right; font-weight:900; }
  .addr{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:14px; word-break:break-all; font-weight:700;
  }

  /* ---------- Hero ---------- */
  .hero{
    margin-top:26px;
    background:
      repeating-linear-gradient(0deg, transparent 0 44px, rgba(33,21,3,.10) 44px 47px),
      linear-gradient(160deg, #ffe259, #ffb800);
    border:4px solid var(--line); border-radius:24px;
    box-shadow:var(--shadow);
    padding:34px 28px 30px;
    display:grid; grid-template-columns:1.2fr .85fr; gap:26px; align-items:center;
    position:relative; overflow:hidden; color:#211503;
  }
  .hero-kicker{
    display:inline-block; margin:0 0 12px; font-weight:900; font-size:14px;
    background:#211503; color:#ffd21f; padding:4px 12px; border-radius:999px;
  }
  .hero-title{
    margin:0; font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(64px,11vw,118px); line-height:1.02; font-weight:400;
    color:#fffdf4; -webkit-text-stroke:3px #211503;
    text-shadow:7px 7px 0 #211503;
  }
  .hero-tag{
    margin:14px 0 4px; font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(26px,4vw,38px); color:#211503;
  }
  .hero-sub{ margin:0 0 14px; font-weight:700; color:#4a3503; max-width:36em; font-size:17px; }
  .hero-security{
    display:inline-block; margin:0 0 20px; font-weight:900; font-size:15px;
    background:#fffdf4; border:3px solid #211503; border-radius:999px;
    padding:4px 14px; box-shadow:3px 3px 0 #211503;
  }
  .hero-btns{ display:flex; gap:12px; flex-wrap:wrap; }
  .btn.hero-btn{ font-size:19px; padding:12px 28px; border-color:#211503; box-shadow:5px 5px 0 #211503; }
  .btn.hero-btn:active{ box-shadow:1px 1px 0 #211503; }
  .hero .refund-cd{ grid-column:1 / -1; margin-top:0; }
  .mascot-wrap{ text-align:center; position:relative; z-index:1; }
  .mascot-bubble{
    display:inline-block; position:relative;
    background:#fffdf4; border:3px solid #211503; border-radius:16px;
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; font-size:24px;
    padding:6px 18px 8px; margin-bottom:14px; box-shadow:4px 4px 0 #211503; color:#211503;
  }
  .mascot-bubble::after{
    content:""; position:absolute; left:50%; bottom:-13px; transform:translateX(-50%);
    border:7px solid transparent; border-top:9px solid #211503;
  }
  .mascot-btn{
    background:none; border:none; cursor:pointer; padding:0; display:block; margin:0 auto;
    -webkit-tap-highlight-color:transparent; min-height:0;
  }
  .mascot-frame{
    position:relative; display:block;
    width:min(320px,74vw); aspect-ratio:1/1; margin:0 auto;
    border:4px solid #211503; border-radius:26px; overflow:hidden;
    background:#fff6d8; box-shadow:7px 8px 0 rgba(33,21,3,.85);
  }
  .mascot-frame img, .mascot-frame video{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; display:block;
  }
  .mascot-frame video{ opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease; }
  .mascot-wrap.dancing .mascot-frame video{ opacity:1; visibility:visible; }
  .mascot-wrap.dancing .mascot-frame img{ opacity:0; }
  .mascot-frame img{ transition:opacity .3s ease; }
  .mascot-frame .mascot-still{
    left:50%; top:50%; right:auto; bottom:auto;
    width:min(260px,92%); height:auto; aspect-ratio:217/236;
    object-fit:contain;
    transform:translate(-50%,-50%);
    animation:mascot-idle 1.7s ease-in-out infinite;
    will-change:transform;
  }
  .mascot-wrap.dancing .mascot-frame .mascot-still{ animation-play-state:paused; }
  @keyframes mascot-idle{
    0%,100%{ transform:translate(-50%,-50%) translateY(4px) rotate(-2deg); }
    25%{ transform:translate(-50%,-50%) translateY(-6px) rotate(0deg); }
    50%{ transform:translate(-50%,-50%) translateY(4px) rotate(2deg); }
    75%{ transform:translate(-50%,-50%) translateY(-6px) rotate(0deg); }
  }
  .mascot-tip{ font-weight:900; color:#211503; margin:12px 0 0; font-size:15px; }
  .mascot-stage{ position:relative; width:min(320px,74vw); margin:0 auto; }
  /* ---------- 篮球运球动效 ---------- */
  .bball{
    position:absolute; right:-38px; bottom:-10px; z-index:2;
    width:82px; height:96px; pointer-events:none;
  }
  .bball-ball{
    position:absolute; left:0; top:0; width:82px; height:82px;
    animation:bball-bounce .8s ease-in-out infinite;
    will-change:transform;
  }
  .bball-ball svg{
    display:block; width:100%; height:100%;
    filter:drop-shadow(3px 3px 0 rgba(33,21,3,.45));
  }
  .bball-shadow{
    position:absolute; left:9px; bottom:0; width:64px; height:11px;
    background:rgba(33,21,3,.38); border-radius:50%;
    animation:bball-shadow .8s ease-in-out infinite;
    will-change:transform,opacity;
  }
  @keyframes bball-bounce{
    0%{ transform:translateY(-32px) scale(1,1); }
    52%{ transform:translateY(0) scale(1,1); }
    64%{ transform:translateY(3px) scale(1.14,.82); }
    76%{ transform:translateY(-4px) scale(.97,1.05); }
    100%{ transform:translateY(-32px) scale(1,1); }
  }
  @keyframes bball-shadow{
    0%{ transform:scaleX(.55); opacity:.55; }
    52%{ transform:scaleX(1); opacity:1; }
    64%{ transform:scaleX(1.12); opacity:1; }
    76%{ transform:scaleX(.8); opacity:.8; }
    100%{ transform:scaleX(.55); opacity:.55; }
  }
  @media (prefers-reduced-motion: reduce){
    .bball-ball, .bball-shadow, .mascot-frame .mascot-still{ animation:none; }
  }
  @media (max-width:560px){
    .bball{ right:-20px; bottom:-8px; width:58px; height:70px; }
    .bball-ball{ width:58px; height:58px; }
    .bball-shadow{ left:6px; width:46px; height:8px; }
  }
  @media (max-width:860px){
    .hero{ grid-template-columns:1fr; }
  }

  /* ---------- 横幅 ---------- */
  .banners{ margin-top:22px; display:grid; gap:12px; }
  .banner{
    border:3px solid var(--line); border-radius:14px; box-shadow:var(--shadow-sm);
    padding:12px 18px; font-weight:900; font-size:clamp(16px,2.6vw,20px); text-align:center;
  }
  .banner.b1{ background:var(--yellow); }
  .banner.b2{ background:var(--orange); color:#fff8ea; }
  .banner.b3{ background:var(--paper); }

  /* ---------- 进度区 ---------- */
  .big-num{
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(46px,8vw,72px); line-height:1.1; margin:6px 0 4px;
  }
  .big-num .total{ color:var(--muted); font-size:.55em; }
  .big-num .unit{ font-size:.45em; color:var(--muted); }
  .progress{
    height:30px; border:3px solid var(--line); border-radius:999px;
    background:var(--paper); overflow:hidden; margin:14px 0 6px;
  }
  .progress .fill{
    height:100%; width:9.7%;
    background:repeating-linear-gradient(45deg, var(--orange) 0 16px, var(--orange-deep) 16px 32px);
    border-right:3px solid var(--line);
  }
  .progress-scale{ display:flex; justify-content:space-between; font-size:13px; font-weight:900; color:var(--muted); margin-bottom:8px; }
  .holder-card{
    margin-top:20px; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
    justify-content:space-between;
  }
  .holder-num{
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(52px,9vw,76px); color:var(--red); line-height:1;
  }
  .holder-num span{ font-size:.4em; color:var(--ink); }
  .card-divider{ border-top:3px dashed rgba(127,102,52,.45); margin:22px 0; }
  .holder-inner{
    display:flex; align-items:center; gap:20px; flex-wrap:wrap;
    justify-content:space-between;
  }
  .refund-cd{
    margin-top:18px;
    background:var(--bg-soft); border:3px solid var(--line); border-radius:14px;
    box-shadow:var(--shadow-sm); padding:14px 18px;
    display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap;
  }
  .refund-cd .cd-label{ font-weight:900; font-size:17px; }
  .refund-cd .cd-time{
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(30px,5vw,40px); color:var(--red); line-height:1.1;
  }
  .refund-cd .cd-sub{ flex:1 1 100%; margin:0; color:var(--muted); font-weight:500; font-size:14px; }
  .refund-btn{ margin-left:auto; flex:0 0 auto; }
  .refund-btn[disabled]{
    background:#a89a7d; color:#f7f1dd;
    box-shadow:none; opacity:1; cursor:not-allowed;
  }
  .refund-btn[disabled]:active{ transform:none; box-shadow:none; }
  #refundCmdBox{ scroll-margin-top:120px; }
  @media (max-width:560px){
    .refund-btn{ flex:1 1 100%; margin-left:0; }
  }

  /* ---------- 铸造票 ---------- */
  .ticket{
    background:var(--paper); border:4px solid var(--line); border-radius:22px;
    box-shadow:var(--shadow); padding:28px; position:relative;
  }
  .ticket-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; }
  .ticket-kicker{ margin:0; font-weight:900; color:var(--muted); letter-spacing:2px; font-size:13px; }
  .ticket-title{ margin:2px 0 0; font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; font-size:40px; line-height:1.15; }
  .ticket-status{
    font-weight:900; background:var(--yellow); border:3px solid var(--line);
    border-radius:999px; padding:5px 16px; box-shadow:3px 3px 0 var(--line); font-size:15px;
  }
  .ticket-perf{ border-top:3px dashed rgba(127,102,52,.45); margin:20px -28px; }
  .ticket-sub{ font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; font-size:26px; margin:0 0 8px; font-weight:400; }

  /* ---------- 邀人 ---------- */
  .ref-headline{
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:clamp(30px,5.5vw,44px); margin:4px 0 8px; color:var(--orange-deep); line-height:1.25;
  }
  .invite-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
  .invite-row input{
    flex:1 1 260px; min-width:0; font-family:inherit; font-size:16px; font-weight:700;
    border:3px solid var(--line); border-radius:12px; padding:10px 14px;
    background:var(--bg-soft); color:var(--muted); min-height:48px;
  }
  .ladder{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin:20px 0 6px; }
  .ladder-step{
    border:3px solid var(--line); border-radius:14px; background:var(--bg-soft);
    box-shadow:var(--shadow-sm); padding:14px 16px;
  }
  .ladder-step .range{ font-weight:900; display:block; }
  .ladder-step .mult{
    font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
    font-size:34px; color:var(--orange-deep); line-height:1.2;
  }
  .ladder-step .note{ color:var(--muted); font-weight:700; font-size:14px; display:block; }
  .top5-row b{ color:var(--orange-deep); }
  .lb-empty{
    border:3px dashed rgba(127,102,52,.5); border-radius:14px;
    padding:26px 16px; text-align:center; font-weight:900; color:var(--muted); font-size:18px;
    margin:12px 0;
  }

  /* ---------- 资金 ---------- */
  .flow-row{ display:flex; align-items:center; gap:12px; margin:12px 0; flex-wrap:wrap; }
  .flow-label{ font-weight:900; flex:0 0 92px; }
  .flow-track{
    flex:1 1 180px; height:26px; border:3px solid var(--line); border-radius:999px;
    background:var(--paper); overflow:hidden;
  }
  .flow-fill{ height:100%; background:repeating-linear-gradient(45deg, var(--yellow-deep) 0 14px, var(--yellow) 14px 28px); }
  .flow-fill.orange{ background:repeating-linear-gradient(45deg, var(--orange) 0 14px, var(--orange-deep) 14px 28px); }
  .flow-value{ font-weight:900; flex:0 0 auto; }
  .funds-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-top:18px; }
  .funds-box{
    border:3px solid var(--line); border-radius:14px; background:var(--bg-soft);
    box-shadow:var(--shadow-sm); padding:18px;
  }
  .funds-box h3{ margin:0 0 8px; font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; font-size:23px; font-weight:400; }
  .funds-box p{ margin:0; font-weight:500; }
  .funds-box.alert{ background:#ffe3dd; }
  @media (prefers-color-scheme: dark){ .funds-box.alert{ background:#4a1f16; } }
  .funds-box.safe{ background:#dcf5e7; }
  @media (prefers-color-scheme: dark){ .funds-box.safe{ background:#123b26; } }

  /* ---------- 指令 ---------- */
  .cmd-box{
    background:var(--card); border:3px solid var(--line); border-radius:var(--radius);
    box-shadow:var(--shadow-sm); margin-bottom:16px; overflow:hidden;
  }
  .cmd-box-head{ display:flex; align-items:stretch; gap:0; }
  .cmd-toggle{
    flex:1 1 auto; display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:none; border:none; cursor:pointer; font-family:inherit;
    font-weight:900; font-size:17px; color:var(--ink); text-align:left;
    padding:16px 18px; min-height:56px;
  }
  .cmd-toggle .cmd-arrow{
    font-family:"ZCOOL KuaiLe",sans-serif; color:var(--orange-deep); font-size:24px;
    flex:0 0 auto; transition:transform .2s ease; line-height:1;
  }
  .cmd-box.open .cmd-toggle .cmd-arrow{ transform:rotate(45deg); }
  .cmd-box-head .copy-btn{ align-self:center; margin-right:14px; flex:0 0 auto; }
  .cmd-body{ display:none; padding:0 18px 18px; }
  .cmd-box.open .cmd-body{ display:block; }
  .cmd-label{ font-weight:900; font-size:17px; margin:0; }
  .cmd-text{
    margin:0; border:3px solid var(--line); border-radius:14px; background:var(--bg-soft);
    padding:18px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans SC",monospace;
    font-size:14px; line-height:1.75; white-space:pre-wrap; word-break:break-word;
    max-height:430px; overflow-y:auto;
  }

  /* ---------- 四格故事 ---------- */
  .story-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
  .story-card{
    background:var(--card); border:3px solid var(--line); border-radius:16px;
    box-shadow:var(--shadow-sm); overflow:hidden; margin:0;
  }
  .story-card img{ display:block; width:100%; height:auto; border-bottom:3px solid var(--line); }
  .story-body{ padding:14px 16px 16px; }
  .story-no{ font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; color:var(--orange-deep); font-size:20px; }
  .story-bubble{ font-weight:900; font-size:19px; margin:2px 0 6px; }
  .story-body p{ margin:0; color:var(--muted); font-weight:500; font-size:15px; }

  /* ---------- 问答 ---------- */
  .faq-item{
    border:3px solid var(--line); border-radius:14px; background:var(--card);
    box-shadow:var(--shadow-sm); margin-bottom:14px; overflow:hidden;
  }
  .faq-item summary{
    cursor:pointer; font-weight:900; font-size:18px; padding:16px 20px;
    list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
    min-height:52px;
  }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary .arrow{ font-family:"ZCOOL KuaiLe",sans-serif; color:var(--orange-deep); font-size:24px; transition:transform .2s ease; flex:0 0 auto; }
  .faq-item[open ] summary .arrow{ transform:rotate(45deg); }
  .faq-item .faq-body{ padding:0 20px 18px; color:var(--muted); font-weight:500; }
  .faq-item .faq-body p{ margin:0; }

  /* ---------- 规则 ---------- */
  ol.rules{ margin:0; padding-left:26px; }
  ol.rules li{ padding:9px 0; font-weight:500; border-bottom:2px dashed rgba(127,102,52,.3); }
  ol.rules li:last-child{ border-bottom:none; }
  .contract-row{
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
    padding:14px 0; border-bottom:2px dashed rgba(127,102,52,.35);
  }
  .contract-row:last-child{ border-bottom:none; }
  .contract-row .c-label{ font-weight:900; flex:0 0 86px; }
  .contract-row .addr{ flex:1 1 280px; }

  /* ---------- 页脚 ---------- */
  footer{
    margin-top:56px; border-top:3px solid var(--line);
    padding:26px 4px 10px; text-align:center;
  }
  footer .foot-line{ font-weight:900; margin:0 0 10px; }
  footer .disclaimer{ color:var(--muted); font-size:14px; max-width:52em; margin:0 auto; }

  /* ---------- 手机端 ---------- */
  @media (max-width:560px){
    .topbar-inner{ padding:8px 12px; gap:8px; }
    .brand img{ width:38px; height:38px; }
    .brand-name{ font-size:22px; }
    nav.main-nav{ order:3; flex:1 1 100%; margin-left:0; justify-content:space-between; }
    nav.main-nav a{ padding:7px 10px; font-size:15px; }
    .top-actions{ margin-left:auto; }
    main{ padding:0 12px 56px; }
    section{ margin-top:42px; }
    .card{ padding:20px; }
    .hero{ padding:26px 18px 24px; }
    .ticket{ padding:22px; }
    .row{ gap:10px; }
    .flow-label{ flex-basis:76px; }
    .modal{ padding:22px; }
  }

  html[lang="en"] .flow-label{ flex-basis:132px; }
  html[lang="en"] .contract-row .c-label{ flex-basis:118px; }

  /* ---------- 登录弹窗 ---------- */
  .modal-backdrop{
    position:fixed; inset:0; z-index:100;
    background:rgba(20,12,0,.55);
    display:none; align-items:center; justify-content:center; padding:18px;
  }
  .modal-backdrop.open{ display:flex; }
  .modal{
    background:var(--paper); border:4px solid var(--line); border-radius:20px;
    box-shadow:8px 8px 0 var(--line); max-width:440px; width:100%;
    padding:26px; position:relative;
  }
  .modal h3{ margin:0; font-family:"ZCOOL KuaiLe","Noto Sans SC",sans-serif; font-size:32px; font-weight:400; }
  .modal .modal-sub{ margin:4px 0 16px; color:var(--muted); font-weight:700; }
  .modal label{ font-weight:900; display:block; margin-bottom:8px; }
  .modal input{
    width:100%; font-family:inherit; font-size:17px; font-weight:700;
    border:3px solid var(--line); border-radius:12px; padding:11px 14px;
    background:var(--card); color:var(--ink); min-height:50px;
  }
  .modal .modal-hint{ color:var(--muted); font-size:14px; margin:10px 0 0; }
  .modal .modal-empty{ color:var(--red); font-weight:900; font-size:14px; margin:8px 0 0; display:none; }
  .modal-btns{ display:flex; gap:12px; margin-top:20px; }
  .modal-btns .btn{ flex:1; }
  .modal-close{
    position:absolute; top:12px; right:12px;
    width:44px; height:44px; min-height:44px; padding:0;
    font-size:20px; line-height:1;
  }

/* ---------- 线上站保留功能样式（模板里没有、线上站必需，变量与模板一致） ---------- */
.hidden { display: none !important; }

/* Hero 标题里的 JNTM 小字（app.js 注入的 .sym）：小字号不能用标题的 7px 大阴影，会糊成重影 */
.hero-title .sym {
  font-size: .32em; letter-spacing: 2px; color: var(--yellow);
  -webkit-text-stroke: 1.5px #211503; text-shadow: 3px 3px 0 #211503; vertical-align: baseline;
}

/* 音乐按钮关闭态（app.js 的 initMusic 切换 .music-off） */
#btnMusic.music-off { opacity: .45; }

/* 部署提示条（已部署时隐藏，仅作兜底） */
.deploy-banner {
  padding: 12px 14px; border-radius: var(--radius);
  background: #fff3c9; border: 3px solid var(--line); color: var(--ink);
  font-size: 13px; box-shadow: var(--shadow-sm); margin-top: 18px;
}
.wallet-error { color: var(--red); font-weight: 700; }

/* 前 5 名占位者（排行榜 JS 填充） */
.row .top5-holder {
  flex: 1 1 auto; text-align: center; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---- 邀人排行榜（app.js 渲染 .lb-row） ---- */
.leaderboard { margin-top: 18px; border-top: 2px dashed rgba(127,102,52,.35); padding-top: 6px; }
.lb-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.lb-row {
  display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 10px; align-items: center;
  background: var(--bg-soft); border: 3px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: 14px; box-shadow: var(--shadow-sm);
}
.lb-rank { font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif; font-size: 19px; color: var(--orange-deep); line-height: 1; }
.lb-addr { font-variant-numeric: tabular-nums; word-break: break-all; }
.lb-invites { font-weight: 700; white-space: nowrap; }
.lb-mult { font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif; font-size: 18px; color: var(--orange-deep); white-space: nowrap; line-height: 1; }
.lb-bnb { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .lb-row { grid-template-columns: 26px 1fr auto auto auto; gap: 8px; padding: 8px 10px; font-size: 13px; }
  .lb-rank { font-size: 17px; }
  .lb-mult { font-size: 16px; }
}

/* ---- ID 登录弹窗（输入 Agent ID，链上校验；模板弹窗只有界面，线上站用这套功能版） ---- */
.login-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 12, 0, .55); }
.login-modal.hidden { display: none !important; }
.login-modal-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border: 4px solid var(--line); border-radius: 20px; box-shadow: 8px 8px 0 var(--line); padding: 22px 22px 18px; text-align: center; }
.login-modal-x { position: absolute; top: 10px; right: 12px; border: 3px solid var(--line); background: var(--card); border-radius: 8px; width: 32px; height: 32px; min-height: 32px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.login-modal-title { margin: 0 0 4px; font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif; font-size: 28px; font-weight: 400; }
.login-modal-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-label { display: block; text-align: left; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.login-input { width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 15px; border: 3px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); margin-bottom: 8px; }
.login-error { color: var(--red); font-weight: 700; font-size: 13.5px; margin: 0 0 8px; text-align: left; }
.login-hint { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; text-align: left; }
.login-actions { display: flex; gap: 10px; }
.login-actions button { flex: 1; padding: 12px; font-size: 15px; font-weight: 700; border: 3px solid var(--line); border-radius: 10px; cursor: pointer; }
.login-btn-cancel { background: var(--card); color: var(--ink); }
.login-btn-submit { background: var(--ink); color: var(--yellow); }
.login-btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.login-account { font-size: 15px; font-weight: 700; margin: 6px 0 16px; word-break: break-all; }
.notice-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 12, 0, .55); }
.notice-modal.hidden { display: none !important; }
.notice-modal-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border: 4px solid var(--line); border-radius: 20px; box-shadow: 8px 8px 0 var(--line); padding: 22px 22px 18px; text-align: center; }
.notice-modal-body { margin: 0 0 16px; font-size: 15px; font-weight: 700; line-height: 1.7; text-align: left; }
