/* ==========================================================
   小游戏合集 · 样式表 v2  —— 深色霓虹 / 玻璃拟态
   ========================================================== */

:root{
  --bg:#060a14;
  --bg2:#0b1222;
  --panel:rgba(19,27,45,.72);
  --panel-2:rgba(28,39,63,.9);
  --line:rgba(148,163,184,.16);
  --line-2:rgba(148,163,184,.28);
  --txt:#e9effb;
  --muted:#8fa1c0;
  --acc:#22d3ee;
  --acc-2:#a78bfa;
  --ok:#34d399;
  --bad:#fb7185;
  --r:18px;
  --shadow:0 18px 40px -22px rgba(0,0,0,.9);
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  min-height:100vh;
  color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Segoe UI",system-ui,sans-serif;
  font-size:15px;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(34,211,238,.16), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(167,139,250,.16), transparent 60%),
    radial-gradient(700px 620px at 50% 108%, rgba(244,114,182,.10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, #070c17 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}
button{ font:inherit; color:inherit; }
.hidden{ display:none !important; }
::selection{ background:rgba(34,211,238,.35); }

/* ---------------- 顶栏 ---------------- */
.topbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:calc(10px + env(safe-area-inset-top)) 16px 10px;
  background:linear-gradient(180deg, rgba(8,13,24,.94), rgba(8,13,24,.62));
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:11px; min-width:0; }
.brand .logo{
  display:grid; place-items:center;
  width:40px; height:40px; border-radius:13px; font-size:20px;
  background:linear-gradient(145deg, rgba(34,211,238,.28), rgba(167,139,250,.28));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 22px -10px rgba(34,211,238,.9), inset 0 1px 0 rgba(255,255,255,.16);
}
.brand-txt{ min-width:0; }
.brand-txt h1{
  margin:0; font-size:17px; font-weight:800; letter-spacing:.4px;
  background:linear-gradient(92deg,#e9effb,#7ee7fb 55%,#c4b5fd);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  white-space:nowrap;
}
.brand-txt p{ margin:3px 0 0; font-size:11px; color:var(--muted); white-space:nowrap; }
.brand-txt p b{ color:#7ee7fb; font-weight:800; }
.top-actions{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }

.icon-btn{
  width:38px; height:38px; border-radius:12px; font-size:17px; line-height:1;
  display:grid; place-items:center; cursor:pointer;
  background:rgba(255,255,255,.06); border:1px solid var(--line);
  transition:transform .14s, background .18s, border-color .18s;
}
.icon-btn:hover{ background:rgba(255,255,255,.12); border-color:var(--line-2); }
.icon-btn:active{ transform:scale(.93); }

/* ---------------- 分类 / 搜索 ---------------- */
.hub-tools{
  position:sticky; top:0; z-index:19;
  padding:8px 0 6px;
  background:linear-gradient(180deg, rgba(7,11,22,.96) 30%, rgba(7,11,22,.72) 78%, transparent);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
body.playing .hub-tools,
body.lbopen .hub-tools{ display:none; }

.tabs{
  display:flex; gap:8px; overflow-x:auto; padding:0 14px 6px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  flex:0 0 auto; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 13px; border-radius:999px; font-size:13px; font-weight:600;
  color:var(--muted);
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  transition:all .18s ease;
}
.tab i{
  font-style:normal; font-size:10.5px; font-weight:700;
  padding:1px 6px; border-radius:999px;
  background:rgba(255,255,255,.09); color:var(--muted);
}
.tab.on{
  color:#04121a;
  background:linear-gradient(135deg, var(--tc, #22d3ee), color-mix(in srgb, var(--tc, #22d3ee) 55%, #a78bfa));
  background:linear-gradient(135deg, var(--tc, #22d3ee), #a78bfa);
  border-color:transparent;
  box-shadow:0 10px 24px -12px var(--tc, #22d3ee);
}
.tab.on i{ background:rgba(0,0,0,.22); color:#04121a; }

.search-wrap{ padding:4px 14px 2px; max-width:1100px; margin:0 auto; }
.search{
  width:100%; padding:11px 15px; font-size:14px; color:var(--txt);
  background:rgba(255,255,255,.05); border:1px solid var(--line);
  border-radius:14px; outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.search::placeholder{ color:#66779a; }
.search:focus{
  border-color:rgba(34,211,238,.55); background:rgba(34,211,238,.07);
  box-shadow:0 0 0 3px rgba(34,211,238,.14);
}

/* ---------------- 游戏大厅 ---------------- */
.hub{ padding-bottom:12px; }
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(168px, 1fr));
  gap:11px;
  padding:10px 14px 24px;
  max-width:1120px; margin:0 auto;
}
.card{
  position:relative; overflow:hidden;
  display:flex; align-items:flex-start; gap:11px;
  padding:13px; border-radius:var(--r);
  text-align:left; cursor:pointer; font:inherit;
  background:linear-gradient(158deg, rgba(31,43,70,.86), rgba(14,21,37,.92));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  animation:cardIn .38s cubic-bezier(.2,.9,.3,1.3) backwards;
  transition:transform .16s ease, border-color .2s, box-shadow .2s;
}
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 22px 44px -22px var(--accent, #22d3ee), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.card:active{ transform:translateY(-1px) scale(.985); }
.card-glow{
  position:absolute; inset:-55% 30% 45% -35%;
  background:radial-gradient(circle at 34% 34%, var(--accent, #22d3ee), transparent 68%);
  opacity:.18; filter:blur(10px); pointer-events:none;
  transition:opacity .25s;
}
.card:hover .card-glow{ opacity:.4; }
.card-icon{ font-size:27px; line-height:1.1; flex:0 0 auto; position:relative; }
.card-body{ display:flex; flex-direction:column; gap:5px; min-width:0; flex:1; position:relative; }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.card-top b{ font-size:14.5px; font-weight:800; letter-spacing:.2px; white-space:nowrap; }
.card-top em{
  font-style:normal; font-size:10px; color:var(--muted); flex:0 0 auto;
  padding:2px 6px; border-radius:999px; background:rgba(255,255,255,.07);
}
.card-desc{
  font-size:11.5px; line-height:1.5; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card-foot{
  display:flex; justify-content:space-between; gap:6px;
  font-size:10.5px; color:#6f81a6; margin-top:1px;
}
.card-best{ color:var(--accent, #22d3ee); font-weight:700; }
.card-king{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:56%; }
.card-best:empty + .card-king{ display:none; }

.empty{ text-align:center; color:var(--muted); font-size:13px; padding:40px 20px; }
.foot{
  text-align:center; font-size:11.5px; color:#5f7091;
  padding:6px 20px calc(30px + env(safe-area-inset-bottom));
}

/* ---------------- 排行榜 ---------------- */
.lb-view{ max-width:820px; margin:0 auto; padding:0 14px 40px; }
.lb-page-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  padding:16px 2px 12px; flex-wrap:wrap;
}
.lb-title h2{ margin:0; font-size:20px; letter-spacing:.4px; }
.lb-title p{ margin:5px 0 0; font-size:12px; color:var(--muted); }
.lb-name-box{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }
.name-input{
  width:96px; padding:7px 10px; font-size:13px; color:var(--txt);
  background:rgba(255,255,255,.06); border:1px solid var(--line);
  border-radius:10px; outline:none;
}
.name-input:focus{ border-color:rgba(34,211,238,.5); }

.lb-cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:11px; }
.lb-card{
  padding:13px 14px; border-radius:16px; cursor:pointer;
  background:linear-gradient(160deg, rgba(30,42,68,.8), rgba(13,20,35,.92));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .15s, border-color .2s;
}
.lb-card:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.2); }
.lb-card-top{ display:flex; align-items:center; gap:8px; }
.lb-ico{ font-size:19px; }
.lb-card-top b{ font-size:14px; flex:1; }
.lb-cnt{ font-size:10.5px; color:var(--muted); }
.lb-card ol{ list-style:none; margin:9px 0 0; padding:0; display:flex; flex-direction:column; gap:5px; }
.lb-card li{
  display:flex; align-items:center; gap:8px; font-size:12px;
  padding:5px 8px; border-radius:9px; background:rgba(255,255,255,.04);
}
.lb-card li i{ font-style:normal; width:16px; text-align:center; }
.lb-card li span{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#c9d6ee; }
.lb-card li em{ font-style:normal; font-weight:700; color:var(--accent, #22d3ee); font-variant-numeric:tabular-nums; }
.lb-card li:first-child{ background:linear-gradient(90deg, rgba(251,191,36,.16), rgba(255,255,255,.03)); }
.lb-foot{ display:flex; justify-content:center; padding:22px 0 10px; }

/* 等级榜表格（弹窗内） */
.lb-table{ display:flex; flex-direction:column; gap:5px; }
.lb-row{
  display:grid; grid-template-columns:34px 1fr auto auto; align-items:center; gap:8px;
  padding:8px 10px; border-radius:10px; font-size:13px;
  background:rgba(255,255,255,.04);
}
.lb-head-row{ background:transparent; color:var(--muted); font-size:11px; }
.lb-rank{ text-align:center; font-size:15px; }
.lb-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lb-val{ font-weight:800; color:var(--acc); font-variant-numeric:tabular-nums; }
.lb-time{ font-size:11px; color:var(--muted); }
.lb-mine{ outline:1px solid rgba(34,211,238,.5); background:rgba(34,211,238,.1); }

/* ---------------- 游戏页 ---------------- */
.game-view{
  max-width:820px; margin:0 auto;
  padding:0 14px calc(38px + env(safe-area-inset-bottom));
}
.game-bar{
  display:flex; align-items:center; gap:10px;
  padding:10px 0 8px;
}
.game-title-box{ flex:1; min-width:0; text-align:center; }
.game-bar h2{
  margin:0; font-size:16.5px; font-weight:800; letter-spacing:.3px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.hint{
  display:block; font-size:11px; color:var(--muted); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.stage{ position:relative; max-width:720px; margin:0 auto; padding:4px 0 18px; }

/* ---------------- 数值条 ---------------- */
.statbar{
  display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
  margin:2px 0 12px;
}
.stat{
  min-width:78px; padding:7px 13px; border-radius:13px; text-align:center;
  background:linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.stat span{ display:block; font-size:10px; color:var(--muted); letter-spacing:.08em; margin-bottom:2px; }
.stat b{ font-size:16px; font-variant-numeric:tabular-nums; letter-spacing:.3px; }

/* ---------------- 按钮 ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  padding:10px 16px; border-radius:13px; font-size:13.5px; font-weight:700;
  cursor:pointer; border:1px solid var(--line);
  background:rgba(255,255,255,.07);
  color:var(--txt);
  transition:transform .13s, background .18s, border-color .18s, box-shadow .2s;
}
.btn:hover{ background:rgba(255,255,255,.13); }
.btn:active{ transform:scale(.96); }
.btn.primary{
  border-color:transparent; color:#04141b;
  background:linear-gradient(135deg, #22d3ee, #38bdf8 60%, #a78bfa);
  box-shadow:0 12px 26px -14px rgba(56,189,248,.95);
}
.btn.primary:hover{ filter:brightness(1.07); }
.btn.ghost{ background:rgba(255,255,255,.04); color:#c2d1ea; }
.btn.danger{
  color:#fff; border-color:rgba(251,113,133,.45);
  background:linear-gradient(135deg, rgba(244,63,94,.85), rgba(190,18,60,.85));
}
.btn.chip{
  padding:8px 12px; font-size:12.5px; border-radius:999px;
  background:rgba(255,255,255,.07);
}
.btnrow{
  display:flex; gap:9px; justify-content:center; flex-wrap:wrap;
  margin:14px 0 4px;
}
.padrow{ display:flex; gap:9px; justify-content:center; flex-wrap:wrap; margin:12px 0 0; }
.padrow .btn{ min-width:56px; padding:11px 14px; font-size:14px; }

/* 方向键 */
.dpad{
  display:grid; grid-template-columns:repeat(3,58px); grid-template-rows:repeat(2,58px);
  gap:8px; justify-content:center; margin:14px auto 0; touch-action:none;
}
.dbtn{
  display:grid; place-items:center; font-size:19px; cursor:pointer;
  border-radius:15px; border:1px solid var(--line);
  background:rgba(255,255,255,.07); color:var(--txt);
  user-select:none; -webkit-user-select:none;
}
.dbtn:active{ background:rgba(34,211,238,.3); transform:scale(.94); }
.d-up{ grid-area:1 / 2; }
.d-left{ grid-area:2 / 1; }
.d-down{ grid-area:2 / 2; }
.d-right{ grid-area:2 / 3; }

/* ---------------- 覆盖层 / 弹窗 / toast ---------------- */
.overlay{
  position:absolute; inset:0; z-index:25;
  display:flex; align-items:center; justify-content:center;
  padding:18px; border-radius:var(--r);
  background:radial-gradient(circle at 50% 30%, rgba(12,20,36,.78), rgba(4,8,16,.9));
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  animation:fadeIn .2s ease-out;
}
.overlay-card{
  width:100%; max-width:340px; text-align:center;
  padding:24px 20px 20px; border-radius:20px;
  background:linear-gradient(165deg, rgba(34,48,78,.96), rgba(12,19,33,.98));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 60px -26px #000, inset 0 1px 0 rgba(255,255,255,.1);
  animation:pop .28s cubic-bezier(.2,.9,.3,1.4);
}
.ov-emoji{ font-size:42px; line-height:1; filter:drop-shadow(0 6px 18px rgba(34,211,238,.45)); }
.overlay-card h3{ margin:10px 0 6px; font-size:19px; letter-spacing:.3px; }
.overlay-card p{ margin:0 0 16px; font-size:13px; line-height:1.7; color:#b9c8e2; }
.overlay-card p b{ color:#7ee7fb; }
.ov-actions{ display:flex; gap:9px; justify-content:center; flex-wrap:wrap; }

.modal-mask{
  position:fixed; inset:0; z-index:60;
  display:flex; align-items:center; justify-content:center; padding:18px;
  background:rgba(3,7,14,.7);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; transition:opacity .22s;
}
.modal-mask.show{ opacity:1; }
.modal-card{
  width:100%; max-width:420px; max-height:82vh; display:flex; flex-direction:column;
  border-radius:20px; overflow:hidden;
  background:linear-gradient(168deg, rgba(32,45,72,.98), rgba(11,17,30,.99));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 34px 70px -30px #000;
  transform:translateY(14px) scale(.97); transition:transform .24s cubic-bezier(.2,.9,.3,1.3);
}
.modal-mask.show .modal-card{ transform:none; }
.modal-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:15px 17px; border-bottom:1px solid var(--line);
}
.modal-head h3{ margin:0; font-size:16px; }
.modal-x{
  width:30px; height:30px; border-radius:9px; cursor:pointer; font-size:14px;
  background:rgba(255,255,255,.07); border:1px solid var(--line);
}
.modal-body{ padding:14px 17px; overflow:auto; }
.modal-foot{ display:flex; gap:9px; justify-content:flex-end; padding:12px 17px; border-top:1px solid var(--line); }

.toast{
  position:fixed; left:50%; bottom:calc(30px + env(safe-area-inset-bottom));
  transform:translate(-50%, 14px); z-index:80;
  padding:11px 18px; border-radius:999px; font-size:13px; font-weight:600;
  background:rgba(20,30,50,.96); border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 36px -18px #000;
  opacity:0; pointer-events:none; transition:opacity .22s, transform .22s;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ---------------- 引擎组件 ---------------- */
.canvas-box{ display:flex; justify-content:center; }
.game-canvas{
  display:block; width:100%; max-width:420px; border-radius:var(--r);
  border:1px solid var(--line);
  box-shadow:0 20px 44px -26px #000, inset 0 0 0 1px rgba(255,255,255,.03);
  touch-action:none;
}
.arena{
  position:relative; overflow:hidden;
  width:100%; max-width:420px; height:min(58vh, 420px); margin:0 auto;
  border-radius:var(--r); border:1px solid var(--line);
  background:
    radial-gradient(400px 260px at 30% 0%, rgba(34,211,238,.12), transparent 70%),
    linear-gradient(180deg, #0a1322, #0e1a2c);
  box-shadow:0 20px 44px -26px #000;
  touch-action:none;
}
.timebar{
  position:relative; width:100%; max-width:420px; height:8px; margin:10px auto 0;
  border-radius:999px; overflow:hidden; background:rgba(255,255,255,.08);
}
.timebar i{
  display:block; height:100%; width:100%; border-radius:999px;
  background:linear-gradient(90deg,#34d399,#fbbf24,#fb7185);
  transition:width .2s linear;
}
.float-txt{
  position:absolute; font-weight:800; font-size:15px; pointer-events:none;
  color:#fbbf24; text-shadow:0 2px 10px rgba(0,0,0,.7);
  animation:floatUp .8s ease-out forwards;
}

/* 通用网格 */
.bx-grid{
  display:grid;
  grid-template-columns:repeat(var(--cols, 4), 1fr);
  gap:7px; width:100%; max-width:420px; margin:0 auto;
}
.bx-cell{
  aspect-ratio:1 / 1; display:flex; align-items:center; justify-content:center;
  border-radius:12px; font-size:15px; font-weight:700; cursor:pointer;
  color:var(--txt); border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.045);
  transition:transform .12s, background .18s, border-color .18s;
  font-variant-numeric:tabular-nums;
}
.bx-cell:active{ transform:scale(.94); }

/* 答题引擎 */
.qz-card{
  width:100%; max-width:440px; margin:6px auto 12px;
  padding:26px 18px; border-radius:20px; text-align:center;
  background:linear-gradient(165deg, rgba(33,46,74,.9), rgba(12,19,34,.96));
  border:1px solid var(--line);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
}
.qz-q{ font-size:25px; font-weight:800; line-height:1.35; letter-spacing:.5px; }
.qz-sub{ margin-top:7px; font-size:12px; color:var(--muted); min-height:15px; }
.qz-opts{
  display:grid; grid-template-columns:repeat(2,1fr); gap:9px;
  width:100%; max-width:440px; margin:0 auto;
}
.qz-opt{
  padding:15px 10px; border-radius:14px; font-size:16px; font-weight:700;
  cursor:pointer; color:var(--txt);
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border:1px solid var(--line);
  transition:transform .12s, background .18s, border-color .2s;
}
.qz-opt:active{ transform:scale(.96); }
.qz-opt.ok{ background:linear-gradient(160deg, rgba(52,211,153,.42), rgba(16,185,129,.28)); border-color:rgba(52,211,153,.7); }
.qz-opt.bad{ background:linear-gradient(160deg, rgba(244,63,94,.42), rgba(190,18,60,.3)); border-color:rgba(251,113,133,.7); }

/* ==========================================================
   各游戏专属样式
   ========================================================== */

/* ---------- 2048 ---------- */
.g2048{
  position:relative; width:100%; max-width:440px; margin:0 auto;
  aspect-ratio:1 / 1; border-radius:20px;
  touch-action:none; -webkit-user-select:none; user-select:none;
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.g2048-bg{
  position:absolute; inset:3%;
  display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(4,1fr);
  gap:8px;
}
.g2048-bg i{ border-radius:11px; background:rgba(255,255,255,.045); }
.g2048-tiles{ position:absolute; inset:3%; }
.tile{
  position:absolute;
  width:calc((100% - 24px) / 4);
  height:calc((100% - 24px) / 4);
  left:calc(var(--c) * ((100% - 24px) / 4 + 8px));
  top:calc(var(--r) * ((100% - 24px) / 4 + 8px));
  border-radius:11px;
  display:grid; place-items:center;
  font-weight:800; font-size:clamp(17px,6.4vw,30px);
  font-variant-numeric:tabular-nums;
  color:#eaf2ff;
  background:rgba(255,255,255,.1);
  transition:left .1s ease, top .1s ease, background .12s;
  will-change:left, top;
}
.tile.sm{ font-size:clamp(13px,4.6vw,22px); }
.tile.pop{ animation:tilePop .16s ease-out; }
@keyframes tilePop{ 0%{transform:scale(.72)} 70%{transform:scale(1.06)} 100%{transform:scale(1)} }
.t2{ background:#1e2b47; color:#cfe1ff; }
.t4{ background:#24375e; color:#dbe9ff; }
.t8{ background:#1c5bc4; }
.t16{ background:#2a86ff; box-shadow:0 0 18px -6px #2a86ff; }
.t32{ background:#22d3ee; color:#04222b; box-shadow:0 0 20px -6px #22d3ee; }
.t64{ background:#14b8a6; color:#032620; box-shadow:0 0 22px -6px #14b8a6; }
.t128{ background:#a78bfa; color:#1b1140; box-shadow:0 0 24px -6px #a78bfa; }
.t256{ background:#8b5cf6; box-shadow:0 0 26px -6px #8b5cf6; }
.t512{ background:#f472b6; color:#33091f; box-shadow:0 0 26px -6px #f472b6; }
.t1024{ background:#fb7185; color:#330810; box-shadow:0 0 28px -6px #fb7185; }
.t2048{ background:linear-gradient(135deg,#fbbf24,#f97316); color:#2b1500; box-shadow:0 0 32px -4px #fbbf24; }
.tbig{ background:linear-gradient(135deg,#c084fc,#f472b6); color:#2a0b26; }

/* ---------- 扫雷 ---------- */
.ms-wrap{
  display:grid; grid-template-columns:repeat(10,1fr); gap:4px;
  width:100%; max-width:460px; margin:0 auto;
  padding:8px; border-radius:18px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
}
.ms-cell{
  aspect-ratio:1 / 1; border-radius:7px; cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  display:grid; place-items:center;
  font-weight:800; font-size:clamp(11px,3.2vw,18px); color:#eaf2ff;
  user-select:none; touch-action:manipulation;
  transition:background .12s, transform .1s;
}
.ms-cell:active{ transform:scale(.93); }
.ms-cell.open{
  background:rgba(10,16,30,.65); border-color:rgba(255,255,255,.05);
  cursor:default; transform:none;
}
.ms-cell.flag{ background:linear-gradient(160deg, rgba(251,191,36,.35), rgba(251,191,36,.14)); }
.ms-cell.boom{ background:linear-gradient(160deg,#ef4444,#b91c1c); }
.ms-cell.n1{ color:#60a5fa } .ms-cell.n2{ color:#34d399 } .ms-cell.n3{ color:#f87171 }
.ms-cell.n4{ color:#c084fc } .ms-cell.n5{ color:#fbbf24 } .ms-cell.n6{ color:#22d3ee }
.ms-cell.n7{ color:#f472b6 } .ms-cell.n8{ color:#e5e7eb }

/* ---------- 记忆翻牌 ---------- */
.mem-wrap{
  display:grid; grid-template-columns:repeat(4,1fr); gap:9px;
  width:100%; max-width:430px; margin:0 auto;
}
.mem-card{ aspect-ratio:3 / 4; perspective:700px; cursor:pointer; }
.mem-inner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  transition:transform .38s cubic-bezier(.3,.8,.3,1);
}
.mem-card.flipped .mem-inner{ transform:rotateY(180deg); }
.mem-face{
  position:absolute; inset:0; border-radius:13px;
  display:grid; place-items:center;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  border:1px solid var(--line);
}
.mem-front{
  background:linear-gradient(160deg, rgba(99,102,241,.35), rgba(34,211,238,.18));
  font-size:22px; color:rgba(255,255,255,.55);
}
.mem-back{
  transform:rotateY(180deg);
  background:linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  font-size:clamp(22px,7vw,34px);
}
.mem-card.done .mem-inner{ opacity:.55; }
.mem-card.done{ pointer-events:none; }

/* ---------- 井字棋 ---------- */
.ttt-wrap{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  width:100%; max-width:340px; margin:0 auto;
}
.ttt-cell{
  aspect-ratio:1 / 1; border-radius:16px; cursor:pointer;
  border:1px solid var(--line);
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  display:grid; place-items:center;
  font-size:clamp(34px,13vw,54px); font-weight:800;
  transition:background .15s, transform .12s;
  touch-action:manipulation;
}
.ttt-cell:active{ transform:scale(.95); }
.ttt-cell.x{ color:#22d3ee; text-shadow:0 0 22px rgba(34,211,238,.6); }
.ttt-cell.o{ color:#f472b6; text-shadow:0 0 22px rgba(244,114,182,.6); }
.ttt-cell.win{ background:linear-gradient(160deg, rgba(250,204,21,.35), rgba(250,204,21,.1)); border-color:rgba(250,204,21,.6); }
.ttt-cell.taken{ cursor:default; }

/* ---------- 数字华容道 ---------- */
.p15{
  position:relative; width:100%; max-width:420px; margin:0 auto;
  aspect-ratio:1 / 1; border-radius:18px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
}
.p15-inner{ position:absolute; inset:3%; }
.p15-tile{
  position:absolute; width:calc((100% - 24px) / 4); height:calc((100% - 24px) / 4);
  left:calc(var(--c) * ((100% - 24px) / 4 + 8px));
  top:calc(var(--r) * ((100% - 24px) / 4 + 8px));
  border-radius:13px; cursor:pointer;
  display:grid; place-items:center;
  font-size:clamp(18px,6vw,28px); font-weight:800;
  color:#eaf2ff;
  background:linear-gradient(160deg, rgba(99,102,241,.55), rgba(34,211,238,.35));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 8px 18px -10px #000;
  transition:left .13s ease, top .13s ease, transform .12s;
  touch-action:manipulation;
}
.p15-tile:active{ transform:scale(.94); }
.p15-tile.ok{
  background:linear-gradient(160deg, rgba(16,185,129,.5), rgba(34,211,238,.28));
}

/* ---------- 消消乐 ---------- */
.m3-wrap{
  display:grid; grid-template-columns:repeat(8,1fr); gap:5px;
  width:100%; max-width:470px; margin:0 auto;
  padding:8px; border-radius:18px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
}
.m3-cell{
  aspect-ratio:1 / 1; border-radius:9px; cursor:pointer;
  display:grid; place-items:center; font-size:clamp(14px,4vw,22px);
  transition:transform .16s, opacity .16s, background .16s;
  user-select:none; touch-action:manipulation;
}
.m3-cell.sel{ outline:2px solid #22d3ee; outline-offset:-2px; transform:scale(1.06); }
.m3-cell.clear{ transform:scale(.2); opacity:0; }
.m3-cell.drop{ animation:m3drop .18s ease-out; }
@keyframes m3drop{ from{ transform:translateY(-14px); opacity:.4 } to{ transform:none; opacity:1 } }

/* ---------- 打字 ---------- */
.type-wrap{ max-width:560px; margin:0 auto; text-align:center; }
.type-word{
  font-size:clamp(30px,10vw,52px); font-weight:800; letter-spacing:2px;
  margin:6px 0 4px; min-height:1.25em;
  background:linear-gradient(92deg,#a5f3fc,#c4b5fd,#fbcfe8);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.type-input{
  width:100%; margin:14px 0 0; padding:13px 16px;
  border-radius:14px; font-size:17px; letter-spacing:1px;
  color:var(--txt); background:rgba(255,255,255,.07);
  border:1px solid var(--line-2); outline:none;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.type-input:focus{ border-color:rgba(34,211,238,.6); box-shadow:0 0 0 3px rgba(34,211,238,.14); }
.type-log{
  min-height:22px; font-size:13px; color:var(--muted);
  margin-top:10px; font-family:ui-monospace,monospace;
}
.type-bar{
  height:6px; border-radius:99px; overflow:hidden;
  background:rgba(255,255,255,.08); margin:12px auto 0; max-width:420px;
}
.type-bar i{
  display:block; height:100%; width:100%;
  background:linear-gradient(90deg,#22d3ee,#a78bfa);
  transform-origin:left; transition:transform .2s linear;
}

/* ---------- 打地鼠 ---------- */
.whack-wrap{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
  width:100%; max-width:420px; margin:0 auto;
}
.hole{
  aspect-ratio:1 / 1; border-radius:50%; position:relative;
  background:radial-gradient(circle at 50% 70%, rgba(255,255,255,.09), rgba(0,0,0,.35) 72%);
  border:2px solid rgba(255,255,255,.08);
  overflow:hidden; cursor:pointer;
  box-shadow:inset 0 8px 18px rgba(0,0,0,.6);
  touch-action:manipulation;
}
.mole{
  position:absolute; left:50%; bottom:-6%;
  transform:translate(-50%,110%); font-size:clamp(28px,9vw,44px);
  transition:transform .12s ease-out;
  pointer-events:none;
}
.hole.up .mole{ transform:translate(-50%,4%); }
.hole.hit{ animation:hitFlash .2s; }
@keyframes hitFlash{ 0%{background:rgba(34,211,238,.5)} 100%{background:transparent} }

/* ---------- 跳一跳 / 通用提示 ---------- */
.jump-tip{
  text-align:center; font-size:12px; color:var(--muted); margin:12px 0 0;
}

/* ==========================================================
   扩展包专属样式
   ========================================================== */

/* ---------------- 通用格子组件 ---------------- */
.lights-grid{
  max-width:360px;
  padding:10px; border-radius:18px;
  background:rgba(255,255,255,.03); border:1px solid var(--line);
}
.lights-grid .bx-cell{
  background:linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow:inset 0 2px 6px rgba(0,0,0,.4);
}
.lights-grid .bx-cell.on{
  background:linear-gradient(150deg,#22d3ee,#3b82f6);
  box-shadow:0 0 18px rgba(34,211,238,.55), inset 0 0 12px rgba(255,255,255,.4);
  border-color:rgba(255,255,255,.4);
}
.odd-grid{ max-width:400px; gap:9px; }
.odd-grid .bx-cell{
  font-size:clamp(16px,5vw,24px);
  background:linear-gradient(160deg, rgba(167,139,250,.16), rgba(255,255,255,.04));
  border-color:rgba(167,139,250,.28);
}
.odd-grid .bx-cell.sel{
  background:linear-gradient(160deg,#a78bfa,#7c3aed);
  border-color:#c4b5fd; color:#fff;
  box-shadow:0 0 22px rgba(167,139,250,.6);
}
.spot-grid{
  max-width:400px; gap:5px;
  padding:9px; border-radius:16px;
  background:rgba(255,255,255,.03); border:1px solid var(--line);
}
.spot-grid .bx-cell{
  border-radius:9px; font-size:16px;
  background:rgba(255,255,255,.05);
}
.fn-grid{ max-width:400px; gap:8px; }
.fn-grid .bx-cell{
  font-size:clamp(15px,4.6vw,20px); font-weight:800;
  background:linear-gradient(160deg, rgba(52,211,153,.15), rgba(255,255,255,.04));
  border-color:rgba(52,211,153,.26);
}
.fn-grid .bx-cell.sel, .fn-grid .bx-cell.hit{
  background:linear-gradient(160deg,#34d399,#059669); color:#04231a;
  box-shadow:0 0 20px rgba(52,211,153,.55);
}
.fn-grid .bx-cell.bad{ background:linear-gradient(160deg,#f43f5e,#9f1239); color:#fff; }
.mf-grid{ max-width:320px; gap:10px; }
.mf-grid .bx-cell{ border-radius:14px; }
.mf-grid .bx-cell.on{ background:linear-gradient(160deg,#fbbf24,#f59e0b); box-shadow:0 0 22px rgba(251,191,36,.6); }
.mf-grid .bx-cell.ok{ background:linear-gradient(160deg,#34d399,#059669); }
.mf-grid .bx-cell.bad{ background:linear-gradient(160deg,#fb7185,#be123c); }

/* ---------------- 反应 ---------------- */
.rx-pad{
  display:grid; place-items:center; text-align:center;
  width:100%; max-width:420px; height:min(52vh,340px); margin:0 auto;
  border-radius:22px; font-size:20px; font-weight:800; letter-spacing:.6px;
  cursor:pointer; user-select:none; -webkit-user-select:none;
  border:1px solid var(--line); transition:background .18s, border-color .18s, transform .1s;
}
.rx-pad.idle{ background:linear-gradient(160deg, rgba(59,130,246,.22), rgba(15,23,42,.9)); color:#c9d9f5; }
.rx-pad.wait{ background:linear-gradient(160deg, rgba(244,63,94,.3), rgba(30,15,25,.92)); color:#ffd7de; border-color:rgba(251,113,133,.5); }
.rx-pad.go{
  background:radial-gradient(circle at 50% 45%, #4ade80, #15803d 70%);
  color:#052e16; border-color:#86efac;
  box-shadow:0 0 60px -8px rgba(74,222,128,.75);
  font-size:30px;
}
.rx-pad.bad{ background:radial-gradient(circle at 50% 45%, #f43f5e, #7f1d1d 72%); color:#fff; }
.rx-pad.done{ background:linear-gradient(160deg, rgba(251,191,36,.28), rgba(30,22,10,.92)); color:#ffe9b6; }

.aim-arena{ cursor:crosshair; }
.aim-target{
  position:absolute; left:0; top:0; display:grid; place-items:center;
  width:52px; height:52px;
  border-radius:50%; font-size:11px; font-weight:800; color:#04141b;
  background:radial-gradient(circle at 36% 32%, #fff, #22d3ee 55%, #0e7490);
  border:2px solid rgba(255,255,255,.85);
  box-shadow:0 0 22px rgba(34,211,238,.7);
  cursor:pointer; animation:aimIn .16s ease-out;
}
.tap-arena{ display:block; }
.tap-btn{
  position:absolute; left:0; top:0; margin:0;
  padding:18px 30px; border-radius:22px; cursor:pointer;
  transition:left .07s ease-out, top .07s ease-out, transform .08s;
  font-size:22px; font-weight:900; letter-spacing:2px; color:#04141b;
  background:linear-gradient(150deg,#67e8f9,#22d3ee 45%,#a78bfa);
  border:none; box-shadow:0 20px 44px -18px rgba(34,211,238,.9);
  transition:transform .08s;
}
.tap-btn:active{ transform:scale(.93); }

/* 打字序列 */
.ks-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.ks-code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:clamp(19px,6vw,27px); font-weight:800; letter-spacing:5px;
  padding:20px 12px; margin-bottom:12px; border-radius:16px;
  background:linear-gradient(160deg, rgba(34,211,238,.14), rgba(255,255,255,.03));
  border:1px solid rgba(34,211,238,.28);
  color:#9df1ff; word-break:break-all;
}
.ks-code.ok{ color:#86efac; border-color:rgba(52,211,153,.55); }
.ks-code.bad{ color:#fda4af; border-color:rgba(251,113,133,.55); }
.ks-input{
  width:100%; padding:13px 15px; font-size:17px; text-align:center;
  font-family:ui-monospace,Menlo,Consolas,monospace; letter-spacing:3px;
  color:var(--txt); background:rgba(255,255,255,.06);
  border:1px solid var(--line); border-radius:14px; outline:none;
}
.ks-input:focus{ border-color:rgba(34,211,238,.6); box-shadow:0 0 0 3px rgba(34,211,238,.14); }

/* 颜色反应 */
.cr-chip{
  width:100%; max-width:420px; margin:0 auto 12px;
  padding:30px 14px; border-radius:20px; text-align:center;
  font-size:clamp(20px,6vw,26px); font-weight:900; letter-spacing:2px;
  border:1px solid var(--line); background:rgba(255,255,255,.05);
  transition:background .12s;
}
.cr-opts{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; max-width:420px; margin:0 auto; }
.cr-btn{
  padding:20px 6px; border-radius:16px; cursor:pointer;
  font-size:15px; font-weight:800; color:#fff;
  border:1px solid rgba(255,255,255,.2);
  transition:transform .1s, filter .16s;
}
.cr-btn:active{ transform:scale(.95); }
.cr-btn.ok{ box-shadow:0 0 0 3px #34d399 inset; }
.cr-btn.bad{ box-shadow:0 0 0 3px #fb7185 inset; }

/* 气球 / 打点 */
.balloon-arena{ overflow:hidden; }
.balloon{
  position:absolute; display:grid; place-items:center;
  width:46px; height:56px; margin-left:-23px;
  border-radius:50% 50% 46% 46%; font-size:20px; cursor:pointer;
  background:radial-gradient(circle at 34% 30%, rgba(255,255,255,.85), rgba(255,255,255,.14) 42%, transparent 70%),
             linear-gradient(160deg,#f472b6,#be185d);
  box-shadow:0 0 20px -4px rgba(244,114,182,.85);
  will-change:transform;
}
.balloon.pop{ animation:balloonPop .22s ease-out forwards; }

/* ---------------- 猜拳 ---------------- */
.rps-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.rps-stage{
  display:flex; align-items:center; justify-content:center; gap:14px;
  padding:18px 10px; border-radius:20px;
  background:linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
}
.rps-hand{
  flex:1; display:grid; place-items:center;
  font-size:clamp(34px,11vw,48px); min-height:64px;
}
.rps-vs{ font-size:12px; font-weight:800; color:var(--muted); letter-spacing:2px; }
.rps-tip{ margin:12px 0; font-size:14px; color:#c6d5ee; min-height:20px; }
.rps-btns{ display:flex; gap:9px; justify-content:center; }
.rps-btn{
  flex:1; padding:13px 8px; border-radius:15px; cursor:pointer;
  font-size:15px; font-weight:700; color:var(--txt);
  background:linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border:1px solid var(--line);
  display:flex; flex-direction:column; align-items:center; gap:3px;
}
.rps-btn span{ font-size:18px; }
.rps-btn:active{ transform:scale(.95); }

/* ---------------- 骰子 ---------------- */
.dice-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.dice-row{ display:flex; gap:9px; justify-content:center; align-items:center; flex-wrap:wrap; }
.dice-face{
  width:52px; height:52px; border-radius:13px; display:grid; place-items:center;
  font-size:26px; font-weight:900; color:#0b1220;
  background:linear-gradient(150deg,#fff,#cbd5e1);
  box-shadow:0 8px 18px -8px rgba(0,0,0,.9), inset 0 1px 0 #fff;
}
.dice-mid{ font-size:12px; font-weight:900; color:var(--muted); letter-spacing:1px; }
.dice-tip{ margin-top:14px; font-size:14px; color:#c6d5ee; min-height:20px; }

/* ---------------- 硬币 ---------------- */
.coin-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.coin-face{
  width:110px; height:110px; margin:6px auto 0; border-radius:50%;
  display:grid; place-items:center; font-size:52px;
  background:radial-gradient(circle at 34% 30%, #fde68a, #d97706 70%);
  box-shadow:0 18px 40px -18px rgba(251,191,36,.95), inset 0 2px 0 rgba(255,255,255,.6);
  transition:transform .5s cubic-bezier(.4,0,.3,1);
}
.coin-face.flip{ transform:rotateY(900deg) scale(1.06); }
.coin-tip{ margin-top:16px; font-size:14px; color:#c6d5ee; min-height:20px; }

/* ---------------- 点击器 ---------------- */
.clicker-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.clicker-btn{
  width:180px; height:180px; border-radius:50%; cursor:pointer;
  font-size:17px; font-weight:900; letter-spacing:2px; color:#04141b;
  background:radial-gradient(circle at 34% 30%, #a5f3fc, #22d3ee 55%, #7c3aed);
  border:none; box-shadow:0 22px 50px -20px rgba(34,211,238,.95);
  transition:transform .07s;
}
.clicker-btn:active{ transform:scale(.94); }

/* ---------------- 找数字 ---------------- */
.fn-target{
  width:100%; max-width:400px; margin:0 auto 10px;
  padding:14px; border-radius:16px; text-align:center;
  font-size:26px; font-weight:900; letter-spacing:2px; color:#9df1ff;
  background:rgba(34,211,238,.1); border:1px solid rgba(34,211,238,.3);
}

/* ---------------- 刮刮乐 ---------------- */
.scratch-holder{
  position:relative; width:100%; max-width:340px; aspect-ratio:1 / 1;
  margin:0 auto; border-radius:20px; overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 20px 44px -24px #000;
}
.scratch-base{
  position:absolute; inset:0; display:grid; place-items:center;
  font-size:clamp(22px,7vw,34px); font-weight:900; text-align:center;
  padding:16px; color:#04141b;
  background:radial-gradient(circle at 40% 30%, #fef3c7, #fbbf24 60%, #f59e0b);
}
.scratch-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  border-radius:20px; touch-action:none; cursor:crosshair;
}

/* ---------------- 汉诺塔 ---------------- */
.hanoi{ display:flex; gap:10px; width:100%; max-width:460px; margin:0 auto; }
.hpeg{
  flex:1; min-height:210px; padding:8px 4px 6px;
  display:flex; flex-direction:column-reverse; align-items:center; gap:3px;
  border-radius:14px; cursor:pointer;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.06));
  box-shadow:inset 0 -4px 0 rgba(255,255,255,.12);
  transition:background .18s, box-shadow .18s;
}
.hpeg.pick{ background:rgba(167,139,250,.18); box-shadow:inset 0 0 0 2px rgba(167,139,250,.6); }
.hdisk{
  height:19px; border-radius:9px;
  background:linear-gradient(150deg,#c4b5fd,#8b5cf6);
  box-shadow:0 3px 8px -3px #000, inset 0 1px 0 rgba(255,255,255,.4);
}

/* ---------------- 推箱子 ---------------- */
.soko{
  display:grid; grid-template-columns:repeat(var(--cols, 7), 1fr);
  gap:3px; width:100%; max-width:400px; margin:0 auto;
  padding:9px; border-radius:16px;
  background:rgba(255,255,255,.03); border:1px solid var(--line);
}
.scell{
  aspect-ratio:1 / 1; border-radius:6px; display:grid; place-items:center;
  font-size:clamp(11px,3.4vw,17px); background:rgba(255,255,255,.04);
}
.scell.wall{ background:linear-gradient(160deg,#334155,#1e293b); box-shadow:inset 0 1px 0 rgba(255,255,255,.1); }
.scell.goal{ background:rgba(251,191,36,.16); box-shadow:inset 0 0 0 1px rgba(251,191,36,.4); }
.scell.goal::after{ content:'·'; color:#fbbf24; font-size:18px; line-height:0; }
.scell.box{ background:linear-gradient(160deg,#f59e0b,#b45309); box-shadow:inset 0 1px 0 rgba(255,255,255,.35); }
.scell.box::after{ content:'📦'; font-size:clamp(10px,3vw,15px); }
.scell.player{ background:linear-gradient(160deg,#22d3ee,#0e7490); box-shadow:0 0 12px rgba(34,211,238,.6); }
.scell.player::after{ content:'🧍'; font-size:clamp(10px,3vw,15px); }
.scell.goal.box{ background:linear-gradient(160deg,#34d399,#047857); }

/* ---------------- 数独 ---------------- */
.sd-wrap{
  display:grid; grid-template-columns:repeat(var(--n, 9), 1fr);
  gap:3px; width:100%; max-width:400px; margin:0 auto;
  padding:8px; border-radius:16px;
  background:rgba(255,255,255,.035); border:1px solid var(--line);
}
.sd-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:7px; font-size:clamp(13px,4vw,19px); font-weight:700;
  color:#9df1ff; font-variant-numeric:tabular-nums;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06);
}
.sd-cell.given{ color:#e9effb; background:rgba(255,255,255,.1); }
.sd-cell.sel{ background:rgba(34,211,238,.26); box-shadow:inset 0 0 0 2px rgba(34,211,238,.8); }
.sd-cell.bad{ color:#fda4af; background:rgba(244,63,94,.24); }
.sd-pad{
  display:grid; grid-template-columns:repeat(5,1fr); gap:7px;
  width:100%; max-width:400px; margin:12px auto 0;
}
.sd-num{ padding:11px 4px; font-size:15px; font-weight:800; }

/* ---------------- 连连看 ---------------- */
.link-wrap{
  display:grid; grid-template-columns:repeat(var(--cols, 6), 1fr);
  gap:6px; width:100%; max-width:400px; margin:0 auto;
}
.lk-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:10px; font-size:clamp(14px,4.4vw,20px);
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  transition:transform .1s, box-shadow .16s, background .16s;
}
.lk-cell:active{ transform:scale(.93); }
.lk-cell.sel{ box-shadow:inset 0 0 0 2px #22d3ee; background:rgba(34,211,238,.22); }
.lk-cell.src{ box-shadow:inset 0 0 0 2px #a78bfa; }
.lk-cell.dst{ box-shadow:inset 0 0 0 2px #34d399; }
.lk-cell.gone{ visibility:hidden; }

/* ---------------- 珠玑妙算 ---------------- */
.mm-wrap{ width:100%; max-width:400px; margin:0 auto; }
.mm-slots{ display:flex; gap:8px; justify-content:center; }
.mm-slot{
  width:38px; height:38px; border-radius:50%; cursor:pointer; padding:0;
  border:2px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06);
}
.mm-slot.sel{ border-color:#22d3ee; box-shadow:0 0 14px rgba(34,211,238,.7); }
.mm-palette{ display:flex; gap:8px; justify-content:center; margin-top:12px; flex-wrap:wrap; }
.mm-c{
  width:34px; height:34px; border-radius:50%; cursor:pointer; padding:0;
  border:2px solid rgba(255,255,255,.22); transition:transform .1s;
}
.mm-c:active{ transform:scale(.9); }
.mm-hist{ margin-top:12px; display:flex; flex-direction:column; gap:5px; max-height:190px; overflow:auto; }
.mm-row{
  display:flex; align-items:center; gap:6px;
  padding:5px 8px; border-radius:10px; background:rgba(255,255,255,.04);
}
.mm-fb{ font-size:12px; color:#c6d5ee; letter-spacing:1px; margin-left:auto; }

/* ---------------- 水排序 ---------------- */
.ws-wrap{
  display:flex; gap:11px; justify-content:center; flex-wrap:wrap;
  width:100%; max-width:440px; margin:0 auto;
}
.ws-tube{
  width:52px; height:160px; padding:4px; cursor:pointer;
  display:flex; flex-direction:column-reverse; gap:2px;
  border-radius:10px 10px 18px 18px;
  border:2px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.04);
  box-shadow:inset 0 8px 16px rgba(0,0,0,.45);
  transition:transform .14s, border-color .18s;
}
.ws-tube.pick{ transform:translateY(-8px); border-color:#22d3ee; box-shadow:0 0 20px rgba(34,211,238,.6); }
.ws-layer{ height:23px; border-radius:7px; transition:background .12s, opacity .12s; }
.ws-layer.empty{ background:rgba(255,255,255,.05); }

/* ---------------- 猜数字 ---------------- */
.gn-wrap{ width:100%; max-width:400px; margin:0 auto; }
.gn-log{
  display:flex; flex-direction:column; gap:5px; max-height:180px; overflow:auto;
  margin-bottom:10px; padding:8px; border-radius:14px;
  background:rgba(255,255,255,.035); border:1px solid var(--line);
}
.gn-line{
  margin:0; font-size:12.5px; color:#c6d5ee;
  padding:5px 9px; border-radius:8px; background:rgba(255,255,255,.05);
}
.gn-row{ display:flex; gap:8px; }
.gn-input{
  flex:1; padding:11px 13px; font-size:16px; color:var(--txt);
  background:rgba(255,255,255,.06); border:1px solid var(--line);
  border-radius:12px; outline:none;
  font-variant-numeric:tabular-nums;
}
.gn-input:focus{ border-color:rgba(34,211,238,.6); }
.gn-tip{ margin-top:9px; text-align:center; font-size:13px; color:var(--muted); }

/* ---------------- 排序 ---------------- */
.ord-wrap{
  display:grid; grid-template-columns:repeat(var(--cols, 4), 1fr);
  gap:7px; width:100%; max-width:400px; margin:0 auto;
}
.ord-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:12px; font-size:clamp(14px,4.4vw,19px); font-weight:800;
  background:linear-gradient(160deg, rgba(56,189,248,.16), rgba(255,255,255,.04));
  border:1px solid rgba(56,189,248,.26);
  color:#bfe9ff; font-variant-numeric:tabular-nums;
}
.ord-cell.sel{ background:linear-gradient(160deg,#38bdf8,#1d4ed8); color:#fff; }
.ord-cell.done{ background:linear-gradient(160deg,#34d399,#047857); color:#04231a; border-color:#6ee7b7; }

/* ---------------- 翻牌配对 ---------------- */
.pr-wrap{
  display:grid; grid-template-columns:repeat(var(--cols, 4), 1fr);
  gap:8px; width:100%; max-width:400px; margin:0 auto;
}
.pr-card{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:13px; font-size:clamp(15px,4.6vw,22px); font-weight:800;
  color:#0b1220;
  background:linear-gradient(160deg,#e2e8f0,#94a3b8);
  box-shadow:0 6px 14px -8px #000;
  transition:transform .14s, background .16s;
}
.pr-card.ans{
  background:linear-gradient(160deg,#a5f3fc,#22d3ee);
  box-shadow:0 0 22px -4px rgba(34,211,238,.8);
}
.pr-card.done{ opacity:.4; transform:scale(.94); pointer-events:none; }
.pr-card.sel{ box-shadow:0 0 0 3px #a78bfa inset; }

/* ---------------- 接水管 ---------------- */
.pipe-wrap{
  display:grid; grid-template-columns:repeat(var(--cols, 5), 1fr);
  gap:5px; width:100%; max-width:380px; margin:0 auto;
  padding:8px; border-radius:16px;
  background:rgba(255,255,255,.035); border:1px solid var(--line);
}
.pp-cell{
  position:relative; aspect-ratio:1 / 1; cursor:pointer;
  border-radius:8px; background:rgba(255,255,255,.04);
  transition:transform .18s, background .18s;
}
.pp-cell.src{ background:rgba(52,211,153,.22); box-shadow:inset 0 0 0 1px rgba(52,211,153,.55); }
.pp-cell.dst{ background:rgba(251,191,36,.22); box-shadow:inset 0 0 0 1px rgba(251,191,36,.55); }
.pp-pipe{ position:absolute; inset:0; border-radius:8px; }
.pp-arm{
  position:absolute; background:linear-gradient(180deg,#38bdf8,#0284c7);
  border-radius:4px; box-shadow:0 0 8px -2px rgba(56,189,248,.8);
}
.pp-n{ left:50%; top:0; width:26%; height:52%; transform:translateX(-50%); }
.pp-s{ left:50%; bottom:0; width:26%; height:52%; transform:translateX(-50%); }
.pp-e{ top:50%; right:0; height:26%; width:52%; transform:translateY(-50%); }
.pp-w{ top:50%; left:0; height:26%; width:52%; transform:translateY(-50%); }
.pp-pipe::after{
  content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:34%; height:34%; border-radius:50%;
  background:radial-gradient(circle,#7dd3fc,#0369a1);
}

/* ---------------- 数图 ---------------- */
.ng-wrap{
  display:grid; grid-template-columns:34px repeat(var(--cols, 5), 1fr);
  gap:3px; width:100%; max-width:360px; margin:0 auto;
  padding:8px; border-radius:16px;
  background:rgba(255,255,255,.035); border:1px solid var(--line);
}
.ng-corner{ }
.ng-clue{
  display:grid; place-items:center; font-size:10.5px; line-height:1.15;
  color:#b9c8e2; font-variant-numeric:tabular-nums; text-align:center;
}
.ng-cell{
  aspect-ratio:1 / 1; border-radius:6px; cursor:pointer;
  background:rgba(255,255,255,.06);
}
.ng-cell.on{ background:linear-gradient(160deg,#22d3ee,#0e7490); box-shadow:0 0 12px -2px rgba(34,211,238,.8); }

/* ---------------- 找词 ---------------- */
.ws-grid{
  display:grid; grid-template-columns:repeat(var(--cols, 8), 1fr);
  gap:3px; width:100%; max-width:400px; margin:0 auto;
  padding:8px; border-radius:16px;
  background:rgba(255,255,255,.035); border:1px solid var(--line);
}
.ws-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:6px; font-size:clamp(10px,3.2vw,15px); font-weight:700;
  color:#cfdcef; background:rgba(255,255,255,.05);
  font-family:ui-monospace,Menlo,Consolas,monospace;
  transition:background .14s;
}
.ws-cell.sel{ background:rgba(167,139,250,.35); box-shadow:inset 0 0 0 1px #a78bfa; }
.ws-cell.hit{ background:linear-gradient(160deg,#34d399,#047857); color:#04231a; }

/* ---------------- 24 点 ---------------- */
.g24-wrap{ width:100%; max-width:400px; margin:0 auto; }
.g24-nums{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.g24-num{
  padding:16px 4px; border-radius:13px; cursor:pointer;
  font-size:19px; font-weight:800; color:#bfe9ff;
  background:linear-gradient(160deg, rgba(56,189,248,.18), rgba(255,255,255,.04));
  border:1px solid rgba(56,189,248,.3);
  font-variant-numeric:tabular-nums;
}
.g24-num.sel{ background:linear-gradient(160deg,#38bdf8,#1d4ed8); color:#fff; border-color:#7dd3fc; }
.g24-ops{ display:flex; gap:8px; justify-content:center; margin:12px 0; }
.g24-op{
  width:52px; height:44px; border-radius:12px; cursor:pointer;
  font-size:19px; font-weight:900; color:#c6d5ee;
  background:rgba(255,255,255,.06); border:1px solid var(--line);
}
.g24-op.sel{ background:linear-gradient(160deg,#a78bfa,#6d28d9); color:#fff; border-color:#c4b5fd; }
.g24-acts{ display:flex; gap:8px; justify-content:center; }
.g24-tip{ margin-top:12px; text-align:center; font-size:13px; color:var(--muted); min-height:19px; }

/* ---------------- 皇后 ---------------- */
.qn-wrap{
  display:grid; grid-template-columns:repeat(var(--cols, 8), 1fr);
  gap:2px; width:100%; max-width:400px; margin:0 auto;
  padding:7px; border-radius:14px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
}
.qn-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:5px; font-size:clamp(12px,3.6vw,18px);
  background:rgba(255,255,255,.08); border:none; color:#04141b;
}
.qn-cell.dark{ background:rgba(0,0,0,.32); }
.qn-cell.q{ background:linear-gradient(160deg,#fbbf24,#d97706); box-shadow:0 0 12px -3px rgba(251,191,36,.9); }
.qn-cell.bad{ background:linear-gradient(160deg,#f43f5e,#9f1239); }

/* ---------------- 四子棋 / 黑白棋 / 战舰 / 跳棋 ---------------- */
.c4-grid{ max-width:400px; gap:6px; }
.c4-cell{
  aspect-ratio:1 / 1; border-radius:50%; cursor:pointer; padding:0;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  transition:background .16s, transform .12s;
}
.c4-cell.me{ background:radial-gradient(circle at 36% 30%,#fda4af,#e11d48); box-shadow:0 0 14px -3px #f43f5e; }
.c4-cell.ai{ background:radial-gradient(circle at 36% 30%,#fef3c7,#f59e0b); box-shadow:0 0 14px -3px #fbbf24; }
.c4-cell.win{ box-shadow:0 0 0 3px #fff inset; }

.rv-grid{ max-width:400px; gap:5px; }
.rv-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:8px; font-size:clamp(15px,4.6vw,22px);
  background:linear-gradient(160deg,#1f7a4d,#14532d);
  border:1px solid rgba(255,255,255,.08);
}
.rv-cell.can{ box-shadow:inset 0 0 0 2px rgba(34,211,238,.6); }

.bs-grid{ max-width:360px; gap:5px; }
.bs-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:7px; font-size:15px;
  background:linear-gradient(160deg, rgba(56,189,248,.14), rgba(255,255,255,.03));
  border:1px solid rgba(56,189,248,.22); color:#9df1ff;
}
.bs-cell.hit{ background:linear-gradient(160deg,#f43f5e,#7f1d1d); border-color:#fda4af; }
.bs-cell.miss{ background:rgba(255,255,255,.05); color:#66779a; }

.ck-grid{ max-width:400px; gap:4px; }
.ck-cell{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:7px; font-size:clamp(13px,4vw,19px);
  background:#22304a; border:none; color:#0b1220;
}
.ck-cell.dark{ background:#16233a; }
.ck-cell.me{ color:#22d3ee; text-shadow:0 0 10px rgba(34,211,238,.8); }
.ck-cell.ai{ color:#f472b6; text-shadow:0 0 10px rgba(244,114,182,.8); }
.ck-cell.sel{ box-shadow:inset 0 0 0 2px #fbbf24; }
.ck-cell.can{ box-shadow:inset 0 0 0 2px rgba(52,211,153,.55); }

.md-grid{ max-width:340px; gap:8px; }
.md-card{
  aspect-ratio:1 / 1; display:grid; place-items:center; cursor:pointer;
  border-radius:12px; font-size:clamp(16px,5vw,24px); font-weight:800;
  background:linear-gradient(160deg,#e2e8f0,#94a3b8); color:#0b1220;
  border:none; transition:transform .14s, background .16s;
}
.md-card.gone{ background:rgba(255,255,255,.05); color:#66779a; cursor:default; }
.md-card.hit{ box-shadow:0 0 0 3px #34d399 inset; }
.md-card.bad{ background:linear-gradient(160deg,#fda4af,#be123c); }

/* 取石子 */
.nim-pile{
  display:flex; gap:6px; flex-wrap:wrap; justify-content:center;
  min-height:56px; padding:14px; border-radius:16px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  font-size:24px; line-height:1;
}
.nim-stone{ animation:aimIn .18s ease-out; }
.nim-tip{ text-align:center; margin-top:10px; font-size:13px; color:var(--muted); }

/* 21 点 */
.bj-wrap{ width:100%; max-width:420px; margin:0 auto; }
.bj-label{ font-size:11px; color:var(--muted); letter-spacing:.1em; margin:8px 0 5px; }
.bj-row{ display:flex; gap:7px; flex-wrap:wrap; min-height:56px; }
.bj-card{
  width:39px; height:55px; border-radius:8px; display:grid; place-items:center;
  font-size:15px; font-weight:800; color:#0b1220;
  background:linear-gradient(160deg,#fff,#cbd5e1);
  box-shadow:0 6px 14px -8px #000, inset 0 1px 0 #fff;
}
.bj-tip{ margin-top:12px; text-align:center; font-size:13px; color:#c6d5ee; min-height:20px; }

/* 骰子对战 */
.db-wrap{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  width:100%; max-width:420px; margin:0 auto;
}
.db-side{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap;
  padding:12px; border-radius:16px; min-height:52px;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  font-size:26px;
}
.db-mid{ font-size:12px; font-weight:900; color:var(--muted); letter-spacing:2px; }

/* 西蒙 */
.simon{
  display:grid; grid-template-columns:repeat(2,1fr); gap:11px;
  width:100%; max-width:300px; margin:0 auto;
}
.simon-pad{
  aspect-ratio:1 / 1; border-radius:18px; cursor:pointer;
  background:var(--c, #22d3ee); opacity:.34;
  border:1px solid rgba(255,255,255,.16);
  transition:opacity .1s, box-shadow .1s, transform .08s;
}
.simon-pad.lit{ opacity:1; box-shadow:0 0 34px var(--c, #22d3ee); transform:scale(1.04); }
.simon-pad:active{ transform:scale(.97); }

/* 斯特鲁普 */
.st-card{
  width:100%; max-width:420px; margin:0 auto 12px;
  padding:26px 14px; border-radius:20px; text-align:center;
  background:linear-gradient(165deg, rgba(33,46,74,.9), rgba(12,19,34,.96));
  border:1px solid var(--line);
}
.st-word{ font-size:clamp(30px,10vw,44px); font-weight:900; letter-spacing:3px; }
.st-opts{ display:grid; grid-template-columns:repeat(2,1fr); gap:9px; max-width:420px; margin:0 auto; }
.st-opt{
  padding:16px 8px; border-radius:14px; cursor:pointer;
  font-size:17px; font-weight:800; color:#fff;
  border:1px solid rgba(255,255,255,.2);
  transition:transform .1s;
}
.st-opt:active{ transform:scale(.96); }
.st-opt.ok{ box-shadow:0 0 0 3px #34d399 inset; }
.st-opt.bad{ box-shadow:0 0 0 3px #fb7185 inset; }

/* 数字记忆 */
.dm-wrap{ width:100%; max-width:400px; margin:0 auto; text-align:center; }
.dm-show{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:clamp(26px,8vw,38px); font-weight:900; letter-spacing:6px;
  padding:22px 10px; margin-bottom:12px; border-radius:18px;
  color:#9df1ff; background:rgba(34,211,238,.1);
  border:1px solid rgba(34,211,238,.3);
  word-break:break-all;
}
.dm-input{
  width:100%; padding:13px 15px; font-size:19px; text-align:center;
  letter-spacing:4px; color:var(--txt);
  background:rgba(255,255,255,.06); border:1px solid var(--line);
  border-radius:14px; outline:none;
  font-family:ui-monospace,Menlo,Consolas,monospace;
}
.dm-input:focus{ border-color:rgba(34,211,238,.6); }

/* 拼单词 */
.sp-wrap{ width:100%; max-width:420px; margin:0 auto; text-align:center; }
.sp-clue{ font-size:14px; color:#c6d5ee; margin-bottom:12px; }
.sp-letters{ display:flex; gap:7px; justify-content:center; flex-wrap:wrap; margin-bottom:14px; }
.sp-l{
  width:38px; height:44px; display:grid; place-items:center;
  border-radius:10px; font-size:19px; font-weight:900; color:#04141b;
  background:linear-gradient(160deg,#fde68a,#f59e0b);
  box-shadow:0 6px 14px -8px #000;
}
.sp-input{
  width:100%; padding:12px 14px; font-size:17px; text-align:center;
  letter-spacing:3px; text-transform:uppercase; color:var(--txt);
  background:rgba(255,255,255,.06); border:1px solid var(--line);
  border-radius:13px; outline:none;
}
.sp-input:focus{ border-color:rgba(34,211,238,.6); }

/* ---------------- 动画 ---------------- */
@keyframes cardIn{ from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }
@keyframes fadeIn{ from{ opacity:0 } to{ opacity:1 } }
@keyframes pop{ from{ opacity:0; transform:scale(.9) translateY(12px) } to{ opacity:1; transform:none } }
@keyframes floatUp{ from{ opacity:1; transform:translateY(0) scale(1) } to{ opacity:0; transform:translateY(-38px) scale(1.15) } }
@keyframes balloonPop{ to{ opacity:0; transform:translateY(-18px) scale(1.35) } }
@keyframes aimIn{ from{ opacity:0; transform:scale(.4) } to{ opacity:1; transform:none } }

/* ---------------- 响应式 ---------------- */
@media (max-width:420px){
  .grid{ grid-template-columns:repeat(2,1fr); gap:10px; padding:8px 12px 20px; }
  .brand-txt h1{ font-size:16px; }
  .brand-txt p{ font-size:10.5px; }
  .card{ padding:11px; gap:9px; border-radius:16px; }
  .card-icon{ font-size:23px; }
  .card-top b{ font-size:13.5px; }
  .card-desc{ font-size:11px; -webkit-line-clamp:2; }
  .card-foot{ font-size:10px; }
  .qz-q{ font-size:21px; }
  .sd-pad{ grid-template-columns:repeat(5,1fr); }
  .ws-tube{ width:44px; height:140px; }
  .ws-layer{ height:20px; }
}
@media (min-width:900px){
  .grid{ grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); }
  .qz-q{ font-size:29px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ---------------- 排行榜弹窗补充 ---------------- */
.lb-detail{ display:flex; flex-direction:column; gap:10px; }
.lb-mine{
  padding:10px 13px; border-radius:12px; font-size:12.5px; color:#c6d5ee;
  background:linear-gradient(90deg, rgba(34,211,238,.16), rgba(34,211,238,.05));
  border:1px solid rgba(34,211,238,.32);
}
.lb-mine b{ color:#7ee7fb; font-size:15px; }
.lb-empty{ padding:26px 12px; text-align:center; font-size:12.5px; color:var(--muted); }
.lb-row.top1{
  background:linear-gradient(90deg, rgba(251,191,36,.18), rgba(255,255,255,.03));
  box-shadow:inset 0 0 0 1px rgba(251,191,36,.3);
}
.lb-row.top1 .lb-val{ color:#fbbf24; }

/* 数图线索方向 */
.ng-clue.ng-top{ align-items:end; }
.ng-clue.ng-left{ justify-items:start; padding-left:2px; }

/* 西蒙失败态 */
.simon-pad.dead{ opacity:.12; }

/* ---------------- 玩家名 / 分数分隔（修复名字与分数粘连） ---------------- */
.lb-who{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:#c9d6ee; font-weight:600; margin-right:6px;
}
.lb-pv{
  flex:0 0 auto; font-style:normal; font-weight:800; color:var(--accent, #22d3ee);
  font-variant-numeric:tabular-nums; letter-spacing:.3px;
  padding-left:8px; border-left:1px solid rgba(255,255,255,.16);
}
.lb-card li i{ flex:0 0 16px; }
.lb-card li em::before{ content:none; }
.overlay-card p em{
  font-style:normal; font-weight:800; color:#fbbf24; margin-right:4px;
}
@media (max-width:380px){
  .lb-row{ grid-template-columns:30px 1fr auto; }
  .lb-row .lb-time{ display:none; }
}

/* ==========================================================
   扩展包 3 · 新游戏样式
   ========================================================== */

/* ---------- 猜单词 ---------- */
.wl-board{ display:flex; flex-direction:column; gap:6px; align-items:center; margin:2px auto 12px; }
.wl-row{ display:flex; gap:6px; }
.wl-cell{
  width:clamp(42px,12.4vw,56px); aspect-ratio:1 / 1;
  display:grid; place-items:center; border-radius:10px;
  font-size:clamp(17px,5.4vw,23px); font-weight:900; text-transform:uppercase;
  color:var(--txt); background:rgba(255,255,255,.05);
  border:2px solid rgba(255,255,255,.12);
  transition:background .16s, border-color .16s, transform .12s;
}
.wl-cell.cur{ border-color:rgba(34,211,238,.8); box-shadow:0 0 16px -4px rgba(34,211,238,.9); }
.wl-cell.ok{ background:linear-gradient(160deg,#34d399,#047857); border-color:#6ee7b7; color:#04231a; }
.wl-cell.near{ background:linear-gradient(160deg,#fbbf24,#b45309); border-color:#fcd34d; color:#2b1500; }
.wl-cell.no{ background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.08); color:#8fa1c0; }
.wl-keys{ display:flex; flex-direction:column; gap:6px; width:100%; max-width:460px; margin:0 auto; }
.wl-krow{ display:flex; gap:5px; justify-content:center; }
.wl-key{
  flex:1; min-width:26px; padding:12px 0; border-radius:8px; cursor:pointer;
  font-size:13px; font-weight:800; color:var(--txt);
  background:rgba(255,255,255,.08); border:1px solid var(--line);
  transition:transform .1s, background .16s;
}
.wl-key:active{ transform:scale(.94); }
.wl-key.wide{ flex:1.7; font-size:11px; }
.wl-key.ok{ background:#059669; color:#fff; border-color:#34d399; }
.wl-key.near{ background:#b45309; color:#fff; border-color:#fbbf24; }
.wl-key.no{ background:rgba(255,255,255,.06); color:#5f7091; }

/* ---------- 点线棋 ---------- */
.dt-wrap{ width:100%; max-width:400px; margin:0 auto; }
.dt-board{
  display:grid; grid-template-columns:repeat(var(--side, 11), 1fr);
  gap:2px; align-items:center;
  padding:10px; border-radius:16px;
  background:rgba(255,255,255,.03); border:1px solid var(--line);
}
.dt-dot{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.24); justify-self:center; align-self:center; }
.dt-line{ border:none; padding:0; cursor:pointer; background:rgba(255,255,255,.07); border-radius:3px; }
.dt-h{ height:6px; width:100%; align-self:center; }
.dt-v{ width:6px; height:100%; min-height:14px; justify-self:center; }
.dt-line.on{ background:linear-gradient(90deg,#22d3ee,#0ea5e9); box-shadow:0 0 10px -2px rgba(34,211,238,.9); }
.dt-line.on.ai{ background:linear-gradient(90deg,#fb7185,#e11d48); box-shadow:0 0 10px -2px rgba(251,113,133,.9); }
.dt-cell{ aspect-ratio:1 / 1; display:grid; place-items:center; border-radius:6px; font-size:10px; font-weight:800; }
.dt-cell.me{ background:rgba(34,211,238,.18); color:#9df1ff; box-shadow:inset 0 0 0 1px rgba(34,211,238,.5); }
.dt-cell.ai{ background:rgba(251,113,133,.18); color:#ffd7de; box-shadow:inset 0 0 0 1px rgba(251,113,133,.5); }

/* ---------- 记忆路径 ---------- */
.mp-grid{ max-width:330px; gap:9px; }
.mp-grid .bx-cell{
  border-radius:14px;
  background:linear-gradient(160deg, rgba(167,139,250,.14), rgba(255,255,255,.03));
  border-color:rgba(167,139,250,.22);
}
.mp-grid .bx-cell.on{
  background:linear-gradient(160deg,#c4b5fd,#7c3aed); border-color:#ddd6fe;
  box-shadow:0 0 26px -2px rgba(167,139,250,.85); transform:scale(1.05);
}
.mp-grid .bx-cell.ok{ background:linear-gradient(160deg,#34d399,#047857); border-color:#6ee7b7; }
.mp-grid .bx-cell.bad{ background:linear-gradient(160deg,#fb7185,#be123c); border-color:#fda4af; }

/* ---------- 打字对战 ---------- */
.tf-wrap{ width:100%; max-width:440px; margin:0 auto; }
.tf-word{
  padding:18px 12px; border-radius:16px; text-align:center;
  font-size:clamp(18px,5.4vw,25px); font-weight:900; letter-spacing:1.5px;
  color:#bfe9ff; background:rgba(56,189,248,.1); border:1px solid rgba(56,189,248,.28);
  word-break:break-word;
}
.tf-word.ok{ color:#86efac; border-color:rgba(52,211,153,.6); background:rgba(52,211,153,.12); }
.tf-word.bad{ color:#fda4af; border-color:rgba(251,113,133,.6); background:rgba(251,113,133,.12); }
.tf-bar{ height:10px; border-radius:999px; background:rgba(255,255,255,.08); margin-top:8px; overflow:hidden; }
.tf-bar i{ display:block; height:100%; width:0; border-radius:999px; transition:width .1s linear; }
.tf-wrap > .tf-bar:nth-child(2) i{ background:linear-gradient(90deg,#22d3ee,#38bdf8); }
.tf-wrap > .tf-bar:nth-child(3) i{ background:linear-gradient(90deg,#fb7185,#f43f5e); }
.tf-input{
  width:100%; margin-top:12px; padding:13px 15px; font-size:16px; color:var(--txt);
  background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:13px; outline:none;
  font-family:ui-monospace,Menlo,Consolas,monospace;
}
.tf-input:focus{ border-color:rgba(34,211,238,.6); box-shadow:0 0 0 3px rgba(34,211,238,.14); }
.tf-input.bad{ border-color:rgba(251,113,133,.8); background:rgba(251,113,133,.1); }
.tf-tip{ margin-top:9px; text-align:center; font-size:12px; color:var(--muted); }

/* ---------- 算术打地鼠 ---------- */
.mm-target{
  width:100%; max-width:340px; margin:0 auto 10px; padding:12px;
  border-radius:14px; text-align:center; font-size:20px; font-weight:900; letter-spacing:1px;
  color:#fbbf24; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.3);
}
.mh-grid{ max-width:330px; gap:10px; }
.mh-grid .bx-cell{
  border-radius:50%; font-size:clamp(12px,3.6vw,16px); font-weight:800;
  opacity:.26; color:#cbd8ee;
  background:radial-gradient(circle at 40% 32%, rgba(255,255,255,.1), rgba(0,0,0,.35));
  border-color:rgba(255,255,255,.1);
}
.mh-grid .bx-cell.up{
  opacity:1; color:#2b1500;
  background:linear-gradient(160deg,#fbbf24,#b45309);
  border-color:#fcd34d; box-shadow:0 0 20px -4px rgba(251,191,36,.85);
}
.mh-grid .bx-cell.good{ opacity:1; background:linear-gradient(160deg,#34d399,#047857); border-color:#6ee7b7; color:#04231a; }
.mh-grid .bx-cell.bad{ opacity:1; background:linear-gradient(160deg,#fb7185,#be123c); border-color:#fda4af; color:#fff; }

/* ---------- 看钟读时间 ---------- */
.ck-opts{ display:grid; grid-template-columns:repeat(2,1fr); gap:9px; width:100%; max-width:420px; margin:12px auto 0; }
.ck-opt{
  padding:15px 8px; border-radius:14px; cursor:pointer;
  font-size:19px; font-weight:800; letter-spacing:1px;
  font-variant-numeric:tabular-nums;
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border:1px solid var(--line); color:var(--txt);
  transition:transform .1s, background .16s;
}
.ck-opt:active{ transform:scale(.96); }
.ck-opt.ok{ background:linear-gradient(160deg,#34d399,#047857); border-color:#6ee7b7; color:#04231a; }
.ck-opt.bad{ background:linear-gradient(160deg,#fb7185,#be123c); border-color:#fda4af; color:#fff; }

/* ---------- 金字塔纸牌 ---------- */
.py-wrap{ display:flex; flex-direction:column; align-items:center; gap:4px; width:100%; margin:0 auto; }
.py-row{ display:flex; gap:4px; }
.py-card{
  width:clamp(34px,10vw,46px); aspect-ratio:5 / 7;
  display:grid; place-items:center; cursor:pointer;
  border-radius:7px; font-size:clamp(13px,3.8vw,17px); font-weight:900; color:#0b1220;
  background:linear-gradient(160deg,#ffffff,#cbd5e1);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 5px 12px -8px #000, inset 0 1px 0 #fff;
  transition:transform .12s, opacity .16s, outline-color .12s;
  padding:0;
}
.py-card.gone{ visibility:hidden; pointer-events:none; }
.py-card.lock{ opacity:.46; filter:saturate(.45); cursor:default; }
.py-card.sel{ outline:3px solid #fbbf24; outline-offset:0; transform:translateY(-4px); }
.py-hand{ display:flex; gap:8px; justify-content:center; margin-top:14px; }
.py-handcard{ width:clamp(40px,11.5vw,52px); }
.py-handcard.empty{ opacity:.18; }
.py-handcard.sel{ outline:3px solid #22d3ee; }
.py-tip{ margin-top:10px; text-align:center; font-size:12px; color:var(--muted); }

@media (max-width:380px){
  .wl-key{ min-width:22px; font-size:11.5px; padding:10px 0; }
  .dt-board{ gap:1px; padding:7px; }
  .ck-opt{ font-size:16px; padding:12px 6px; }
}

/* ==========================================================
   扩展包 4 · 抖音爆款复刻 12 款
   ========================================================== */

/* ---------- 羊了个羊 ---------- */
.sh-wrap{ width:100%; max-width:460px; margin:0 auto; }
.sh-pile{
  position:relative; height:min(46vh,300px); border-radius:16px;
  background:radial-gradient(circle at 50% 0%, rgba(163,230,53,.08), rgba(255,255,255,.02) 70%);
  border:1px solid var(--line); overflow:hidden;
}
.sh-card{
  position:absolute; width:38px; height:44px; padding:0; cursor:pointer;
  display:grid; place-items:center; font-size:19px; line-height:1;
  border-radius:8px; border:1px solid rgba(255,255,255,.7);
  background:linear-gradient(160deg,#ffffff,#cbd5e1);
  box-shadow:0 3px 8px -4px #000, inset 0 1px 0 #fff;
  transition:transform .16s, opacity .16s;
}
.sh-card:active{ transform:scale(.94); }
.sh-card.out{ opacity:0; transform:scale(.4) translateY(-14px); pointer-events:none; }
.sh-card.boom{ animation:shBoom .22s ease-out forwards; }
@keyframes shBoom{
  0%{ transform:scale(1); opacity:1; }
  100%{ transform:scale(1.5); opacity:0; }
}
.sh-tray{ display:flex; gap:6px; justify-content:center; margin-top:12px; }
.sh-slot{
  width:38px; height:44px; border-radius:8px;
  display:grid; place-items:center; font-size:19px;
  border:1px dashed rgba(255,255,255,.22); background:rgba(255,255,255,.03);
  transition:background .15s, border-color .15s;
}
.sh-slot.on{
  border-style:solid; border-color:rgba(163,230,53,.7);
  background:linear-gradient(160deg,#ffffff,#cbd5e1); color:#0b1220;
}

/* ---------- 汉字找茬 ---------- */
.hz-grid{ width:100%; max-width:400px; margin:0 auto; gap:6px; }
.hz-grid .bx-cell{
  display:grid; place-items:center;
  font-size:clamp(20px,6vw,30px); font-weight:700; color:#e8eefc;
  background:linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border:1px solid var(--line); border-radius:12px;
  font-family:"Songti SC", "Noto Serif CJK SC", serif;
}
.hz-grid .bx-cell.bad{ background:rgba(251,113,133,.25); border-color:#fb7185; }

/* ---------- 拧螺丝 ---------- */
.sc-wrap{ width:100%; max-width:420px; margin:0 auto; }
.sc-plate{
  display:grid; gap:14px; padding:18px; border-radius:20px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.014) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, rgba(148,163,184,.16), rgba(30,41,59,.5));
  border:1px solid rgba(148,163,184,.3);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.08), 0 18px 40px -30px #000;
}
.sc-screw{
  position:relative; width:100%; aspect-ratio:1 / 1; padding:0; cursor:pointer;
  border:0; border-radius:50%;
  background:radial-gradient(circle at 34% 28%, #f1f5f9, #94a3b8 45%, #475569 78%, #1e293b);
  box-shadow:0 4px 10px -4px #000, inset 0 -2px 4px rgba(0,0,0,.5), inset 0 2px 3px rgba(255,255,255,.5);
  transition:transform .12s, filter .16s;
}
.sc-screw::before{
  content:''; position:absolute; inset:26%; border-radius:4px;
  background:linear-gradient(160deg,#334155,#0f172a);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.35);
  transform:rotate(35deg);
}
.sc-screw::after{
  content:''; position:absolute; inset:-4px; border-radius:50%;
  background:conic-gradient(#22d3ee calc(var(--p, 0) * 360deg), rgba(255,255,255,.07) 0);
  -webkit-mask:radial-gradient(circle, transparent 54%, #000 56%);
  mask:radial-gradient(circle, transparent 54%, #000 56%);
  pointer-events:none;
}
.sc-screw.turn{ transform:rotate(120deg) scale(.97); }
.sc-screw.out{
  animation:scOut .32s ease-in forwards;
  pointer-events:none;
}
@keyframes scOut{
  0%{ transform:scale(1) rotate(0); opacity:1; }
  100%{ transform:scale(.4) rotate(220deg) translateY(26px); opacity:0; }
}

/* ---------- 挪车出库 ---------- */
.pk-wrap{ width:100%; max-width:420px; margin:0 auto; }
.pk-grid{
  position:relative; display:grid;
  grid-template-columns:repeat(6,1fr); grid-template-rows:repeat(6,1fr);
  aspect-ratio:1 / 1; border-radius:16px; padding:6px; gap:4px;
  background:linear-gradient(160deg, rgba(148,163,184,.1), rgba(15,23,42,.6));
  border:1px solid var(--line); touch-action:manipulation;
}
.pk-cell{
  border:1px dashed rgba(255,255,255,.07); border-radius:8px;
  background:rgba(255,255,255,.02); padding:0; cursor:pointer;
}
.pk-cell.exit{
  border:1px dashed rgba(74,222,128,.6);
  background:linear-gradient(90deg, rgba(74,222,128,.06), rgba(74,222,128,.22));
}
.pk-car{
  position:absolute; display:grid; place-items:center;
  margin:6px; border-radius:10px; font-size:18px; pointer-events:auto;
  background:linear-gradient(160deg,#94a3b8,#475569);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 6px 14px -8px #000, inset 0 1px 0 rgba(255,255,255,.35);
  transition:left .16s, top .16s, box-shadow .16s;
  cursor:pointer;
}
.pk-car.red{ background:linear-gradient(160deg,#fb7185,#b91c1c); }
.pk-car.sel{ box-shadow:0 0 0 2px #22d3ee, 0 8px 18px -8px #000; }
.pk-car.v{ font-size:16px; }

/* ---------- 戳泡泡 ---------- */
.bw-wrap{ width:100%; max-width:430px; margin:0 auto; }
.bw-board{
  display:grid; grid-template-columns:repeat(8,1fr); gap:5px;
  padding:12px; border-radius:18px;
  background:linear-gradient(160deg, rgba(56,189,248,.08), rgba(15,23,42,.55));
  border:1px solid var(--line);
}
.bw-bub{
  width:100%; aspect-ratio:1 / 1; padding:0; border:0; cursor:pointer;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%, #ffffff, #7dd3fc 42%, #0369a1 100%);
  box-shadow:inset 0 -2px 4px rgba(0,0,0,.35), 0 2px 6px -3px #000;
  transition:transform .12s, opacity .18s, filter .18s;
}
.bw-bub:active{ transform:scale(.9); }
.bw-bub.popped{
  background:radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:inset 0 2px 5px rgba(0,0,0,.5);
  transform:scale(.88); opacity:.55;
}

/* ---------- 合并十 ---------- */
.m10-grid{ width:100%; max-width:360px; margin:0 auto; gap:8px; }
.m10-grid .bx-cell{
  display:grid; place-items:center;
  font-size:clamp(20px,6vw,28px); font-weight:900;
  font-variant-numeric:tabular-nums; color:#dff5ea;
  background:linear-gradient(160deg, rgba(52,211,153,.18), rgba(255,255,255,.03));
  border:1px solid rgba(52,211,153,.25); border-radius:14px;
  transition:transform .12s, box-shadow .12s, background .2s;
}
.m10-grid .bx-cell.sel{
  box-shadow:0 0 0 2px #34d399, 0 0 18px -2px rgba(52,211,153,.8);
  transform:scale(1.05);
}
.m10-grid .bx-cell.gone{ opacity:.15; }

/* ---------- 拼图 ---------- */
.js-grid{ width:100%; max-width:380px; margin:0 auto; gap:4px; }
.js-grid .bx-cell{
  aspect-ratio:1 / 1; border-radius:9px; padding:0; cursor:pointer;
  border:2px solid rgba(255,255,255,.1);
  background-repeat:no-repeat;
  transition:transform .12s, box-shadow .12s, border-color .12s;
}
.js-grid .bx-cell.sel{
  border-color:#f472b6; box-shadow:0 0 0 2px rgba(244,114,182,.6);
  transform:scale(1.03);
}

@media (max-width:380px){
  .sh-card, .sh-slot{ width:32px; height:38px; font-size:16px; }
  .bw-board{ gap:4px; padding:8px; }
  .sc-plate{ gap:10px; padding:12px; }
  .m3-grid{ gap:3px; }
}

/* 受击反馈：战机被打中时画面抖一下 */
.was-hit{ animation:hitShake .3s ease-out; }
@keyframes hitShake{
  0%{ transform:translateX(0) scale(1); filter:brightness(1.8) saturate(1.5); }
  25%{ transform:translateX(-5px) scale(1.01); }
  55%{ transform:translateX(5px) scale(1.01); }
  100%{ transform:translateX(0) scale(1); filter:none; }
}

/* ---------------- 共享排行榜：全网 / 本机切换 ---------------- */
.lb-tabs{ padding:0; margin:0 0 12px; gap:7px; }
.lb-tabs .tab{ padding:6px 12px; font-size:12px; }
.lb-page-body, .lb-view-body{ min-height:60px; }
.lb-loading{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:26px 10px; font-size:13px; color:var(--muted);
  border-radius:14px; background:rgba(255,255,255,.03); border:1px dashed var(--line);
  animation:lbPulse 1.4s ease-in-out infinite;
}
@keyframes lbPulse{ 0%,100%{ opacity:.72 } 50%{ opacity:1 } }

/* 自己的那一行高亮 */
.lb-row.me{
  background:linear-gradient(90deg, rgba(34,211,238,.18), rgba(255,255,255,.03));
  box-shadow:inset 0 0 0 1px rgba(34,211,238,.35);
}
.lb-row.me .lb-name{ color:#e8fbff; font-weight:700; }
.lb-card li.me{
  background:linear-gradient(90deg, rgba(34,211,238,.18), rgba(255,255,255,.03));
  box-shadow:inset 0 0 0 1px rgba(34,211,238,.3);
}
.lb-card li.me span{ color:#e8fbff; font-weight:700; }


/* ---------------- 难度 ---------------- */
.diff-row{
  display:flex; gap:4px; justify-content:center; margin-top:5px;
}
.diff-btn{
  font: inherit; font-size:10.5px; line-height:1;
  padding:4px 7px; border-radius:999px; cursor:pointer;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05); color:var(--muted);
  display:flex; align-items:center; gap:3px;
  transition:transform .12s ease, background .15s, color .15s, border-color .15s;
}
.diff-btn:active{ transform:scale(.94); }
.diff-btn.on{
  color:#0b1020; font-weight:800;
  background:linear-gradient(135deg,#22d3ee,#a78bfa);
  border-color:transparent;
}
.diff-btn.d-hard.on{ background:linear-gradient(135deg,#fb7185,#f59e0b); }

/* 排行榜难度筛选 */
.lb-diff-box{ display:flex; justify-content:center; margin:10px 0 4px; }
.diff-chips{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.diff-chips .chip{
  font: inherit; font-size:11.5px; padding:5px 10px; border-radius:999px;
  cursor:pointer; color:var(--muted);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
}
.diff-chips .chip.on{
  color:#0b1020; font-weight:800; border-color:transparent;
  background:linear-gradient(135deg,#22d3ee,#a78bfa);
}
.lb-row.with-diff{ grid-template-columns:34px 1fr 30px 74px 76px; }
.lb-diff{ font-size:12px; text-align:center; opacity:.85; }
.lb-head-row.with-diff{ font-size:10.5px; }

/* 全网榜连不上的提示条（带重试） */
.lb-offline { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lb-retry {
  padding: 4px 14px; border-radius: 999px; font-size: 12px; cursor: pointer;
  color: #e6edf7; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}
.lb-retry:active { transform: scale(.95); }
.lb-offline-box { display: flex; flex-direction: column; gap: 10px; }

/* 卡片里的难度标（全部难度视图） */
.lb-card li .lb-rd{ flex:0 0 auto; width:auto; font-size:11px; line-height:1; opacity:.9; }
.lb-card li .lb-rd-easy{ filter:saturate(1.1); }

/* ---------------- 设置面板（顶栏 ⚙️） ---------------- */
.icon-btn.off{
  background:rgba(255,255,255,.03);
  border-color:rgba(148,163,184,.22);
  opacity:.62;
}

.set-list{ display:flex; flex-direction:column; gap:2px; min-width:min(86vw,340px); }
.set-row{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:11px 2px; border-bottom:1px solid var(--line);
}
.set-row:last-child{ border-bottom:0; }
.set-left{ min-width:0; }
.set-title{ font-size:14px; font-weight:700; color:var(--txt); }
.set-hint{ margin-top:3px; font-size:11.5px; color:var(--muted); line-height:1.35; }
.set-right{ flex:0 0 auto; display:flex; align-items:center; gap:8px; }
.set-vol{ display:flex; align-items:center; gap:8px; }
.set-range{
  width:118px; height:4px; border-radius:999px; cursor:pointer;
  accent-color:#22d3ee; background:rgba(255,255,255,.14);
}
.set-pct{
  min-width:38px; text-align:right; font-size:12px; font-weight:700;
  color:#7ee7fb; font-variant-numeric:tabular-nums;
}
.set-name{
  width:118px; padding:8px 10px; border-radius:11px; font-size:13px;
  background:rgba(255,255,255,.06); border:1px solid var(--line); color:var(--txt);
  text-align:center;
}
.set-name:focus{ outline:none; border-color:rgba(126,231,251,.55); }
.set-warn{ font-size:13px; line-height:1.6; color:#dbe5f5; }

/* 开关（纯 CSS，checkbox 伪装成滑块） */
input.switch{
  -webkit-appearance:none; appearance:none; flex:0 0 auto;
  width:48px; height:28px; border-radius:999px; margin:0; cursor:pointer;
  background:rgba(255,255,255,.14); border:1px solid var(--line);
  position:relative; transition:background .18s, border-color .18s;
}
input.switch::after{
  content:''; position:absolute; top:3px; left:3px;
  width:20px; height:20px; border-radius:50%; background:#fff;
  transition:transform .18s ease;
}
input.switch:checked{
  background:linear-gradient(135deg,#22d3ee,#a78bfa); border-color:transparent;
}
input.switch:checked::after{ transform:translateX(20px); }

@media (max-width:360px){
  .set-range{ width:96px; }
  .set-name{ width:96px; }
  .set-list{ min-width:0; }
}

/* 全网榜没人时的小提示条 */
.lb-note{
  font-size:12px; color:var(--txt-dim, #9aa3b2); text-align:center;
  margin:0 0 10px; padding:8px 10px; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px dashed var(--line);
}

/* 脚本还在下载时的占位 */
.hub-loading{
  grid-column:1/-1; text-align:center; padding:48px 12px; line-height:1.8;
  color:var(--txt-dim, #9aa3b2); font-size:14px;
}
.hub-loading .btn{ margin-top:12px; display:inline-block; }
