:root{--key-bg:linear-gradient(180deg,#ffffff 0%,#eceafa 45%,#d6d1ec 100%)}
/* 仅主行动按钮：首页 CTA、图鉴按钮、区块 CTA */
#homeCta .pbtn, .sec .pbtn, .hero .pbtn, .final .pbtn, #finalGo, .btnmini, a.btnmini, .tcgcta a{
  border:3px solid #171422 !important;
  border-radius:16px !important;
  background:var(--key-bg) !important;
  color:#3a3350 !important;
  box-shadow: inset 0 -5px 0 #cdc7e0, 0 6px 0 #171422 !important;
  font-family:'Press Start 2P','Ark Pixel','PX UI',monospace !important;
  font-weight:700 !important;
  transition: transform .06s, box-shadow .06s !important;
  text-shadow:0 1px 0 rgba(255,255,255,.85) !important;
}
#homeCta .pbtn:active, #finalGo:active, .btnmini:active{
  transform: translateY(3px) !important;
  box-shadow: inset 0 -3px 0 #cdc7e0, 0 3px 0 #171422 !important;
}
/* Dashboard 主按钮 */
#continueBtn, #openBackpack, #viewDex, #startDaily, .dashbtn{
  border:3px solid #171422 !important;border-radius:14px !important;
  background:var(--key-bg) !important;color:#3a3350 !important;
  box-shadow: inset 0 -4px 0 #cdc7e0, 0 5px 0 #171422 !important;
  font-family:'Press Start 2P','Ark Pixel','PX UI',monospace !important;font-weight:700 !important;
}

/* 首页 CTA 文字尺寸约束 */
#homeCta .pbtn{font-size:14px !important; line-height:1 !important; white-space:nowrap !important; padding:0 16px !important; letter-spacing:0 !important; width:300px !important;}
#homeCta .pbtn span{font-size:14px !important;}

/* 按下效果：整体下沉、底影收缩、轻微变暗 */
#homeCta .pbtn, .btnmini, #finalGo, #continueBtn, #openBackpack, #viewDex, #startDaily{
  transition: transform .05s ease, box-shadow .05s ease, filter .05s ease !important;
}
#homeCta .pbtn:active, .btnmini:active, #finalGo:active,
#continueBtn:active, #openBackpack:active, #viewDex:active, #startDaily:active{
  transform: translateY(5px) !important;
  box-shadow: inset 0 -2px 0 #cdc7e0, 0 1px 0 #171422 !important;
  filter: brightness(.96) !important;
}

/* 内容页 header（about / pricing / 法律 / 博客）：压成一行 */
header.site{background:#fff;border-bottom:2px solid #e6dfd2 !important;padding:0 !important}
header.site .wrap{display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:18px !important;flex-wrap:wrap !important;max-width:1200px;margin:0 auto;padding:10px 18px !important;min-height:0 !important}
header.site .brand{font-size:18px !important;line-height:1.2 !important;flex:0 0 auto}
header.site nav{display:flex !important;align-items:center !important;gap:6px !important;flex-wrap:wrap !important;justify-content:flex-end !important}
header.site nav a,header.site nav span{font-size:12px !important;line-height:1.6 !important;padding:3px 9px !important;border-radius:999px !important}
@media (max-width:760px){header.site .wrap{padding:8px 12px !important}header.site nav a{font-size:11px !important}}

#homeCta .pbtn,#homeCta .pbtn *{font-family:'Press Start 2P','Ark Pixel','PX UI',monospace !important}

/* CJK 页面：按钮优先使用点阵中文字体 */
html[lang^="zh"] #homeCta .pbtn, html[lang^="zh"] #homeCta .pbtn *,
html[lang="zh-TW"] #homeCta .pbtn, html[lang="zh-TW"] #homeCta .pbtn *,
html[lang="ja"] #homeCta .pbtn, html[lang="ja"] #homeCta .pbtn *,
html[lang="ko"] #homeCta .pbtn, html[lang="ko"] #homeCta .pbtn *{
  font-family:'Ark Pixel','Press Start 2P','PX UI',monospace !important;
}

/* 语言下拉：拉丁用像素英文，中文/日文/韩文用点阵 */
#langPanel, #langPanel a, #langPanel button, #langPanel div, #langPanel span{
  font-family:'Press Start 2P','Ark Pixel','PX UI',monospace !important;
}
html[lang^="zh"] #langPanel, html[lang^="zh"] #langPanel *,
html[lang="zh-TW"] #langPanel, html[lang="zh-TW"] #langPanel *,
html[lang="ja"] #langPanel, html[lang="ja"] #langPanel *,
html[lang="ko"] #langPanel, html[lang="ko"] #langPanel *{
  font-family:'Ark Pixel','Press Start 2P','PX UI',monospace !important;
}

/* dropdown-cjk-size：中文/日文/韩文下拉项放大并加粗，匹配拉丁像素字 */
html[lang^="zh"] #langPanel a, html[lang^="zh"] #langPanel button,
html[lang="zh-TW"] #langPanel a, html[lang="zh-TW"] #langPanel button,
html[lang="ja"] #langPanel a, html[lang="ja"] #langPanel button,
html[lang="ko"] #langPanel a, html[lang="ko"] #langPanel button{
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:.5px !important;
  -webkit-text-stroke:.35px currentColor;
  line-height:1.5 !important;
}

a.backlink,button.backlink{background:none!important;border:0!important;box-shadow:none!important;color:#0b2e6f!important;text-decoration:underline!important;padding:6px 0!important;font-family:'Press Start 2P',monospace!important;font-size:12px!important;transform:none!important}

/* ================= 像素键帽按钮（2026-12-03）=================
   白 = 普通按钮，黄 = 主要按钮，蓝 = 领取/确认。9-slice 像素图：/img/pk_{white,yellow,blue}[_down].png
   放在 keycap.css 末尾，前缀 html body 提高优先级，盖过各页面里旧的白色渐变圆角键帽。 */
html body #homeCta .pbtn, html body #homeCta #hMyDex, html body #homeCta a, html body #homeCta button,
html body #dexMoreWrap #dexMore, html body #dexMoreWrap #myDexBtn, html body #dexMoreWrap #dexMoreBtn,
html body #eggOpen2, html body #finalGo, html body #pickGo, html body #authSubmit, html body .final .pbtn, html body .sec .pbtn, html body .hero .pbtn,
html body .btnmini, html body a.btnmini, html body .tcgcta a,
html body main .jump .btn, html body main .card .btn, html body main a.btn, html body #continueBtn, html body #openBackpack, html body #viewDex, html body #startDaily, html body .dashbtn,
html body .plan .btn, html body .row a.go, html body .editbtn, html body .databtn, html body .cmBtn, html body form .save, html body button.save,
html body .rwd .rchip:not(.done) {
  border-style:solid!important; border-width:9px 12px 18px 12px!important; border-color:transparent!important;
  border-image:url(/img/pk_white.png) 3 4 6 4 fill!important; border-radius:0!important;
  background:none!important; box-shadow:none!important; image-rendering:pixelated;
  color:#3a3350!important; text-shadow:none!important; filter:none!important;
  padding-top:3px!important; padding-bottom:1px!important; transform:none!important;
  transition:none!important;
}
html body #homeCta .pbtn:active, html body #homeCta a:active, html body #homeCta button:active,
html body #dexMoreWrap #dexMore:active, html body #dexMoreWrap #myDexBtn:active, html body #dexMoreWrap #dexMoreBtn:active,
html body #eggOpen2:active, html body #finalGo:active, html body #pickGo:active, html body #authSubmit:active, html body .final .pbtn:active, html body .sec .pbtn:active, html body .hero .pbtn:active,
html body .btnmini:active, html body .tcgcta a:active,
html body main .jump .btn:active, html body main .card .btn:active, html body main a.btn:active, html body #continueBtn:active, html body #openBackpack:active, html body #viewDex:active, html body #startDaily:active, html body .dashbtn:active,
html body .plan .btn:active, html body .row a.go:active, html body .editbtn:active, html body .databtn:active, html body .cmBtn:active, html body form .save:active, html body button.save:active,
html body .rwd .rchip:not(.done):active {
  border-width:15px 12px 12px 12px!important; border-image:url(/img/pk_white_down.png) 5 4 4 4 fill!important; transform:none!important;
}
/* 黄色：主要按钮 */
html body #homeCta > .pbtn:first-child:not(.alt), html body #finalGo, html body #pickGo, html body #authSubmit,
html body main .jump .btn.pri, html body main .card .btn.pri, html body main a.btn.pri, html body #continueBtn, html body .plan .btn.pri {
  border-image-source:url(/img/pk_yellow.png)!important; color:#3a2600!important;
}
html body #homeCta > .pbtn:first-child:not(.alt):active, html body #finalGo:active, html body #pickGo:active, html body #authSubmit:active,
html body main .jump .btn.pri:active, html body main .card .btn.pri:active, html body main a.btn.pri:active, html body #continueBtn:active, html body .plan .btn.pri:active {
  border-image-source:url(/img/pk_yellow_down.png)!important;
}
/* 蓝色：领取 / 确认 */
html body .rwd .rchip:not(.done) { border-image-source:url(/img/pk_blue.png)!important; color:#fff!important; text-shadow:2px 2px 0 #122a55!important; }
html body .rwd .rchip:not(.done):active { border-image-source:url(/img/pk_blue_down.png)!important; }
html body #pickGo:disabled, html body .pbtn:disabled { opacity:.55!important; border-image-source:url(/img/pk_white.png)!important; color:#3a3350!important; }

/* 2026-12-04 防闪：首页大标题和副标题在新样式就位前先隐藏；sitefoot 就位后给 html 加 cmHeroOk。万一脚本没跑，1.5 秒后自动显示 */
html:not(.cmHeroOk) #bigLogo,html:not(.cmHeroOk) #home .hero-line{visibility:hidden;animation:cmHeroShow 0s linear 1.5s forwards}
@keyframes cmHeroShow{to{visibility:visible}}
