/* =========================================================
   v9.1 → v9.2 卡片鑑定中心（js/grade.js＋js/gcmap.js）
   =========================================================
   v9.2 使用者：「卡片鑑定中心的 UI 質感提升一點」「越高等的鑑定所，鑑定卡殼外觀應該要更酷」「爆改成像寶可夢中心一樣」
   → 畫面是一張可以走的大廳（canvas），上面疊：頂部木條、左下提示、右下按鈕列、寶可夢式對話框、置中的面板（.gp）。
   → 鑑定卡四家長得完全不一樣：夜市塑膠套＋手寫標、佛心竹框＋朱印、PSB 經典紅標、BBHG 金屬卡磚＋全像鍍膜邊＋子分數（黑標：黑金光暈）。
   設計語彙沿用全站：像素方鈕（.px-btn）、奶油色紙面、4px 黑框＋內斜角、.pxi 像素圖示、木紋橫條。
   ========================================================= */

/* ---------- 基地：卡片鑑定（紫）與卡片工坊 ---------- */
.base-bottom .base-shop.base-grade{margin:0 0 0 auto;--f1:#d2a9f5;--f2:#8b47cf;--hi:#efdcff;--lo:#5a2a91;color:#fff !important;text-shadow:0 2px 0 #00000066 !important}
.base-bottom .base-grade + .base-shop{margin:0 auto 0 0}
.base-grade,#base-workshop{position:relative}
.grade-badge,.work-badge{position:absolute;top:-11px;right:-10px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:900;
  color:#fff;background:#e0392b;border:3px solid #000;animation:grd-badge 1s ease-in-out infinite}
.work-badge{top:-8px;right:-8px;min-width:19px;height:19px;font-size:11px;background:#3f9c48}
.grade-badge.hidden,.work-badge.hidden{display:none}
@keyframes grd-badge{50%{transform:translateY(-3px) scale(1.08)}}
/* 卡片下緣：裝備中的鑑定卡（「PSB 9.5」小牌子） */
.tcb-gr{left:50%;bottom:-9px;transform:translateX(-50%);padding:1px 5px;font-size:10px;letter-spacing:.5px;white-space:nowrap;color:#fff;background:var(--cc,#c8102e);
  text-shadow:0 1px 0 #0008;box-shadow:0 2px 0 #0007}
/* 升級畫面名牌上的鑑定卡、戰鬥說明、射程天賦 */
.dxx-chip.grc-chip{color:#fff;background:var(--c);text-shadow:0 1px 0 #0008}
.tip-gr{color:#ffd0f0}
.tip-gr .pxi{width:14px;height:14px;vertical-align:-3px;margin-right:3px}
.gr-plus{margin-left:3px;font-style:normal;font-size:.85em;color:#8b47cf}
.tip-row .gr-plus{color:#ffb0f0}
/* 儲藏庫右邊五列 */
#sto-res{gap:6px}
#sto-res .sto-r{padding:5px 9px}
#sto-res .sto-r-ico .pxi{width:32px;height:32px}
#sto-res .sto-r-txt span{line-height:1.35}
.sto-r.gr{background:linear-gradient(#f6ecff,#dcc2ff);box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #b99ae8,0 4px 0 #00000059}
.sto-r.gr .sto-r-txt strong{color:#6a2aa8}
/* 商店六個頁籤 */
#scr-shop .shx-tab{flex:1 1 auto;justify-content:center;gap:3px;padding:6px 6px;font-size:12.5px;white-space:nowrap}
#scr-shop .shx-tab .pxi{width:16px;height:16px}

/* =========================================================
   大廳畫面
   ========================================================= */
#scr-grade{background:#12101a}
.gc-top{position:relative;z-index:3;height:46px;flex:0 0 46px;display:flex;align-items:center;gap:10px;padding:0 12px;
  background:repeating-linear-gradient(92deg,var(--wood) 0 7px,var(--wood-d) 7px 11px,var(--wood-l) 11px 15px);border-bottom:4px solid #2c1806;box-shadow:0 3px 8px #0008}
.gc-top .back-btn{padding:4px 12px;font-size:13px}
.gc-top h2{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font-size:21px;font-weight:900;letter-spacing:4px;color:#fff6dd;
  text-shadow:0 0 4px #3d2308,2px 2px 0 #3d2308,-2px 2px 0 #3d2308,2px -2px 0 #3d2308,-2px -2px 0 #3d2308}
.gc-top h2 .pxi{width:24px;height:24px;filter:drop-shadow(0 2px 0 #3d2308)}
#scr-grade .shop-wallet{display:flex;gap:5px}
#scr-grade .shop-wallet .cur{background:linear-gradient(#1c1206,#0d0803);border:2.5px solid var(--gold-d);border-radius:22px;color:#ffe9a8;font-weight:900;padding:3px 10px;font-size:13px}
#scr-grade .shop-wallet .cur .pxi{width:15px;height:15px;vertical-align:-3px}
.gc-stage{position:relative;flex:1;min-height:0;overflow:hidden}
#gc-cv{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:pointer;image-rendering:auto}
.gc-hint{position:absolute;left:8px;bottom:8px;z-index:2;display:flex;align-items:center;gap:5px;max-width:330px;padding:4px 9px;font-size:10.5px;font-weight:800;line-height:1.35;
  color:#fff6dd;background:#1d1a2ecc;border:2px solid #000;box-shadow:inset 0 0 0 1px #ffffff22;pointer-events:none}
.gc-hint .pxi{width:15px;height:15px;flex:0 0 auto}
.gc-quick{position:absolute;right:8px;bottom:8px;z-index:2;display:flex;gap:6px}
.gc-qg{position:relative;display:flex;gap:3px;padding:14px 4px 4px;background:#1d1a2ed9;border:3px solid #000;box-shadow:inset 0 0 0 1px #ffffff26,0 4px 0 #0007}
.gc-qg>small{position:absolute;left:6px;top:1px;font-size:9px;font-weight:900;letter-spacing:2px;color:#c9b27a}
.gc-q{position:relative;width:44px;height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;cursor:pointer;font-family:inherit;
  --f1:#e8e8e8;--f2:#c6c6c6;--hi:#fafafa;--lo:#8a8a8a;background:linear-gradient(var(--f1),var(--f2));border:2px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo)}
.gc-q:hover{filter:brightness(1.08);transform:translateY(-2px)}
.gc-q:active{transform:translateY(1px)}
.gc-q .pxi{width:22px;height:22px}
.gc-q span{font-size:9.5px;font-weight:900;color:#1c1c1c;white-space:nowrap;letter-spacing:-.3px}
.gc-q em{position:absolute;top:-8px;right:-6px;min-width:16px;height:16px;padding:0 3px;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:900;color:#fff;
  background:#e0392b;border:2px solid #000;animation:grd-badge 1s ease-in-out infinite}
.gc-q.exit{--f1:#ffd98a;--f2:#f0b429;--hi:#fff3c4;--lo:#a9761a}
.gc-logo{width:28px;height:22px;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:900;letter-spacing:-.5px;color:#fff;background:var(--cc);border:2px solid #000;text-shadow:0 1px 0 #0008}
.gc-logo.l3{font-size:9.5px;letter-spacing:-.6px}
.gc-logo.l4{font-size:7.5px;letter-spacing:-.7px}
.gc-logo.l5,.gc-logo.l6{font-size:6.5px;letter-spacing:-.8px}
/* 寶可夢式對話框 */
.gc-talk{position:absolute;left:50%;bottom:10px;z-index:6;width:640px;min-height:78px;margin-left:-320px;padding:16px 20px 12px;cursor:pointer;
  background:#fbf8ef;border:4px solid #1d1a2e;box-shadow:inset 0 0 0 3px #fbf8ef,inset 0 0 0 5px #3f6fa8,0 6px 0 #0008;animation:gc-talk-in .18s ease}
.gc-talk.hidden{display:none}
@keyframes gc-talk-in{from{opacity:0;transform:translateY(10px)}}
.gc-talk b{position:absolute;left:14px;top:-15px;padding:2px 10px;font-size:13px;font-weight:900;letter-spacing:1px;color:#fff;background:#3f6fa8;border:3px solid #1d1a2e}
.gc-talk b:empty{display:none}
.gc-talk p{margin:0;font-size:15px;font-weight:800;line-height:1.6;color:#1d1a2e}
.gc-talk-arrow{position:absolute;right:14px;bottom:6px;font-style:normal;font-size:13px;color:#c8102e;opacity:0}
.gc-talk.done .gc-talk-arrow{opacity:1;animation:gc-arrow .6s steps(2) infinite}
@keyframes gc-arrow{50%{transform:translateY(3px)}}
/* 面板的底：半透明暗幕＋置中的面板 */
.gc-panel{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#05060c8c}
.gc-panel.hidden{display:none}

/* =========================================================
   面板（.gp）：深色木頭標題列＋奶油色紙面
   ========================================================= */
.gp{--pc:#8a5a2a;width:904px;height:440px;display:flex;flex-direction:column;border:4px solid #000;background:linear-gradient(#fdf2d8,#ecd6a6);
  box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #c9ab72,0 8px 0 #00000080,0 16px 40px #000a}
.gp.pop{animation:gp-pop .26s cubic-bezier(.2,1.5,.4,1)}
@keyframes gp-pop{from{opacity:0;transform:scale(.92) translateY(10px)}}
.gp-head{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:6px 8px 6px 10px;border-bottom:4px solid #000;
  background:repeating-linear-gradient(92deg,var(--wood) 0 7px,var(--wood-d) 7px 11px,var(--wood-l) 11px 15px)}
.gp-ic{flex:0 0 auto;width:40px;height:40px;display:grid;place-items:center;background:#1d1a2e;border:3px solid #000;box-shadow:inset 0 0 0 2px #ffffff30}
.gp-ic .pxi{width:28px;height:28px}
.gp-tt{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.gp-tt b{font-size:19px;font-weight:900;letter-spacing:2px;color:#fff;white-space:nowrap;filter:drop-shadow(2px 0 0 #000) drop-shadow(-2px 0 0 #000) drop-shadow(0 2px 0 #000) drop-shadow(0 -2px 0 #000)}
.gp-tt small{font-size:11px;font-weight:800;color:#ffe9a8;text-shadow:0 1px 0 #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.gp-tabs{flex:1;display:flex;justify-content:flex-end;gap:5px}
.gp-tab{position:relative;display:flex;align-items:center;gap:4px;padding:5px 10px;cursor:pointer;font-family:inherit;font-size:12.5px;font-weight:900;color:#1c1c1c;
  --f1:#d4d4d4;--f2:#b8b8b8;--hi:#efefef;--lo:#8a8a8a;background:linear-gradient(var(--f1),var(--f2));border:3px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo),0 3px 0 #0006}
.gp-tab .pxi{width:16px;height:16px}
.gp-tab.on{--f1:#ffd98a;--f2:#f0b429;--hi:#fff3c4;--lo:#a9761a;transform:translateY(-2px)}
.gp-tab em{position:absolute;top:-9px;right:-7px;padding:0 4px;font-style:normal;font-size:10px;line-height:15px;color:#fff;background:#e0392b;border:2px solid #000}
.gp-x{flex:0 0 auto;margin-left:6px;width:34px;height:34px;padding:0;cursor:pointer;font-family:inherit;font-size:15px;font-weight:900;color:#fff;
  --f1:#f0a09b;--f2:#c2372f;--hi:#ffd0cc;--lo:#7d1f19;background:linear-gradient(var(--f1),var(--f2));border:3px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo),0 3px 0 #0006;text-shadow:0 2px 0 #0006}
.gp-x:hover{filter:brightness(1.08)}
.gp-body{flex:1;min-height:0;display:flex;padding:9px 10px 10px;overflow:hidden}
.gp-body>*{flex:1;min-width:0;min-height:0}
.grx-h{display:flex;align-items:center;gap:6px;margin:0 0 5px;font-size:13px;font-weight:900;color:#3d2308}
.grx-h b{width:20px;height:20px;display:grid;place-items:center;font-size:12px;color:#fff;background:#3d2308;border:2px solid #000}
.grx-h .pxi{width:17px;height:17px}
.grx-h small{font-size:10.5px;font-weight:800;color:#8a5a12}
.grx-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px;text-align:center;font-size:12.5px;font-weight:800;line-height:1.7;color:#6b4a1e}
.grx-empty>.pxi{width:46px;height:46px;opacity:.85}
.grx-empty b{color:#b4530a}
.gco-chip{font-style:normal;padding:1px 6px;font-size:11px;font-weight:900;color:#fff;background:var(--cc);border:2px solid var(--ci,#000);text-shadow:0 1px 0 #0007;white-space:nowrap}
.gco-logo{flex:0 0 auto;width:40px;height:40px;display:grid;place-items:center;font-size:15px;font-weight:900;letter-spacing:-.5px;color:#fff;background:var(--cc);border:3px solid var(--ci);
  box-shadow:inset 2px 2px 0 #ffffff55,inset -2px -2px 0 #0004;text-shadow:0 2px 0 #0007}
.gco-logo.co-psb,.gco-logo.co-iron{font-size:11px}
.gp-co .gp-ic{background:none;border:0;box-shadow:none;width:auto;height:auto}
.gp-co .gp-head{background:linear-gradient(var(--cc),color-mix(in srgb,var(--cc),#000 38%))}
.gi-box{flex:0 0 auto;width:18px;height:18px;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:900;color:#1f6a2c;background:#fff;border:2px solid #000}
/* 分數分布 */
.gco-hist{position:relative;display:flex;align-items:flex-end;gap:2px;height:46px;padding:2px 3px 11px;background:#1d1a2e;border:2px solid #000}
.gco-hist i{position:relative;flex:1;background:#c2372f;font-style:normal}
.gco-hist i.mid{background:#4fbd7c}
.gco-hist i.hi{background:#ffd75e;box-shadow:0 0 5px #ffd75e}
.gco-hist>em{position:absolute;bottom:0;font-style:normal;font-size:8px;font-weight:900;color:#c9cdd6;line-height:10px}
.gco-hist>em:first-of-type{left:4px}
.gco-hist>em:last-of-type{right:4px}
.gco-hist.big{height:104px;padding-top:15px;padding-bottom:12px}
.gco-hist.big i b{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin-bottom:1px;font-size:8.5px;color:#fff;white-space:nowrap}

/* ---------- 櫃台窗口：送件 ---------- */
.co-send{display:flex;gap:10px}
.co-left{flex:0 0 400px;min-height:0;display:flex;flex-direction:column}
.co-cards{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:7px 4px;align-content:start;padding:3px 3px 8px;
  background:#00000010;border:2px solid #0000002e;box-shadow:inset 0 2px 6px #0002}
.co-cards .grx-empty{grid-column:1/-1}
.co-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 1px 3px;cursor:pointer;border:3px solid #0000;transition:transform .12s}
.co-card:hover{transform:translateY(-3px)}
.co-card.sel{border-color:#000;background:#fff7d6;box-shadow:0 0 0 2px #ffd75e,0 4px 0 #0005}
.co-card.auto{background:linear-gradient(#fff6c2,#ffe27a);border-color:#c98a1e}
.co-card.auto.sel{box-shadow:0 0 0 2px #ff7aa0,0 0 14px #ffd75e}
.co-card .tcb{display:none}
.co-cnt{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}
.co-cnt span{padding:0 4px;font-size:9.5px;font-weight:900;line-height:14px;color:#fff;border:1.5px solid #000;white-space:nowrap}
.co-cnt .d{background:#b4530a}
.co-cnt .r{background:#4a6a8a}
.co-cnt .a{background:linear-gradient(90deg,#ff7aa0,#ffd75e,#72ccff);color:#1d1a2e}
.co-right{flex:1;min-width:0;display:flex;flex-direction:column}
.co-right .grx-h + *{margin-bottom:7px}
.co-cases{display:flex;gap:4px}
.co-case{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:0;padding:4px 1px 3px;cursor:pointer;font-family:inherit;
  --f1:#e8e8e8;--f2:#c6c6c6;--hi:#fafafa;--lo:#8a8a8a;background:linear-gradient(var(--f1),var(--f2));border:3px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo),0 3px 0 #0005}
.co-case .pxi{width:24px;height:24px}
.co-case span{font-size:10.5px;font-weight:900;color:#1c1c1c}
.co-case small{font-size:9.5px;font-weight:900;color:#b4530a}
.co-case b{position:absolute;top:-8px;right:-5px;padding:0 3px;font-size:9.5px;color:#fff;background:#3d2308;border:1.5px solid #000}
.co-case.on{--f1:#ffd98a;--f2:#f0b429;--hi:#fff3c4;--lo:#a9761a;transform:translateY(-2px)}
.co-case.off{filter:grayscale(1) brightness(.85);opacity:.7}
.co-none{width:24px;height:24px;display:grid;place-items:center;font-style:normal;font-size:15px;font-weight:900;color:#8a8a8a}
.co-distw{display:flex;gap:8px;align-items:stretch}
.co-distw .gco-hist{flex:1;height:58px}
.co-hi{flex:0 0 76px;display:grid;grid-template-columns:1fr;align-content:center;text-align:center;background:#1d1a2e;border:2px solid #000;padding:2px 0}
.co-hi small{font-size:9.5px;font-weight:800;color:#c9cdd6}
.co-hi b{font-size:15px;font-weight:900;color:#ffd75e;line-height:1.1}
.co-ins{display:flex;align-items:center;gap:6px;padding:5px 8px;text-align:left;cursor:pointer;font-family:inherit;color:#1d1a2e;
  background:linear-gradient(#f0fff0,#cdeebc);border:3px solid #000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #9fcf8a,0 3px 0 #0005}
.co-ins>.pxi{width:26px;height:26px;flex:0 0 auto}
.co-ins span{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.co-ins span b{font-size:12.5px;font-weight:900}
.co-ins small{font-size:10px;font-weight:700;color:#3a5a2a}
.co-ins.on{background:linear-gradient(#e6ffd9,#9fe07e);box-shadow:0 0 0 2px #3f9c48,inset 2px 2px 0 #fff,0 3px 0 #0005}
.co-ins.off{filter:grayscale(.85);opacity:.8}
.co-go{margin-top:auto;display:flex;align-items:center;gap:8px;padding:7px 8px;background:#1d1a2e;border:3px solid #000;box-shadow:inset 0 2px 6px #000a}
.co-src{display:flex;flex:0 0 auto}
.co-src button{padding:3px 8px;cursor:pointer;font-family:inherit;font-size:11px;font-weight:900;color:#c9cdd6;background:#34303f;border:2px solid #000}
.co-src button.on{color:#3d2308;background:#ffd75e}
.co-sum{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3;font-size:12.5px;font-weight:900;color:#fff}
.co-what{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.co-what i{padding:0 5px;font-style:normal;font-size:10px;line-height:15px;color:#1d1a2e;background:#e8dcc0}
.co-what i.au{background:linear-gradient(90deg,#ff7aa0,#ffd75e,#72ccff)}
.co-sum small{font-size:10.5px;font-weight:800;color:#c9cdd6}
.co-sum small b{color:#ffd75c}
.co-sum small .pxi{width:12px;height:12px;vertical-align:-2px}
.co-sum .bad{font-style:normal;color:#ff9a8a;font-size:11px}
.co-send-btn{flex:0 0 auto;padding:9px 20px;font-size:16px;letter-spacing:2px}
/* ---------- 櫃台窗口：公司簡介 ---------- */
.co-prof{display:flex;gap:12px}
.co-pl{flex:0 0 360px;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:4px}
.co-clerk{display:flex;align-items:center;gap:10px;padding:6px;background:#fff8e6;border:3px solid #000;box-shadow:0 3px 0 #0003}
.co-face{width:60px;height:60px;border:3px solid #000;image-rendering:pixelated;background:#fff6dd}
.co-clerk small{display:block;font-size:10.5px;font-weight:800;color:#8a5a12}
.co-clerk b{font-size:16px;font-weight:900;color:#3d2308}
.co-story{margin:0;font-size:12.5px;font-weight:700;line-height:1.7;color:#3d2308}
.co-motto{padding:6px 10px;font-size:13px;font-weight:900;color:#fff;background:var(--cc);border:3px solid var(--ci);text-shadow:0 1px 0 #0008;box-shadow:0 3px 0 #0004}
.co-traits{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.co-traits li{display:flex;align-items:flex-start;gap:6px;padding:4px 6px;font-size:11.5px;font-weight:800;line-height:1.45;color:#3d2308;background:#fffdf5;border:2px solid #000}
.co-traits li .pxi{width:18px;height:18px;flex:0 0 auto}
.co-traits li.auto{background:linear-gradient(90deg,#fff0f6,#fff8d6,#e8f6ff);border-color:#c98a1e}
.co-pr{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.co-pr>*{flex-shrink:0}
.co-axis{display:flex;flex-direction:column}
.co-axis .gco-hist.big{height:88px;padding:15px 3px 2px;border-bottom:0}
.co-axis .gco-hist>em{display:none}
.co-axis .co-ruler{border-top:0;padding:0 calc(5% - 1px) 13px;background:#1d1a2e;height:26px}
.co-axis .co-ruler i{background:#9aa3b2}
.co-axis .co-ruler i.mj{background:#fff}
.co-axis .co-ruler i b{color:#fff}
.co-ruler{position:relative;height:30px;display:flex;align-items:flex-end;justify-content:space-between;padding:0 6px 13px;background:#fff8e6;border:3px solid #000}
.co-ruler i{position:relative;width:1px;height:6px;background:#8a5a2a;font-style:normal}
.co-ruler i.mj{width:2px;height:12px;background:#3d2308}
.co-ruler i b{position:absolute;left:50%;top:100%;transform:translateX(-50%);font-size:9px;font-weight:900;color:#3d2308}
.co-ruler.st05 i{height:8px}
.co-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin:3px 0}
.co-stats span{display:flex;flex-direction:column;align-items:center;padding:2px 0;background:#1d1a2e;border:2px solid #000}
.co-stats small{font-size:9.5px;font-weight:800;color:#c9cdd6}
.co-stats b{font-size:12.5px;font-weight:900;color:#ffd75c;white-space:nowrap}
.co-stats b .pxi{width:12px;height:12px;vertical-align:-2px}
.co-samples{flex:1 1 auto !important;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:22px;padding:4px 6px 8px;
  background:radial-gradient(60% 70% at 50% 45%,#ffffff,#0000 70%),#2c3442;border:3px solid #000}
.co-samples .gslab{zoom:.9}

/* ---------- 取件處 ---------- */
.gp-pickup .gp-body{flex-direction:column;gap:7px}
.pk-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.pk-row{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:52px 1fr 250px 128px;align-items:center;gap:12px;padding:3px 12px 3px 16px;
  border:3px solid #000;background:linear-gradient(#fffdf5,#f1e3c0);box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #d2bb85,0 3px 0 #0005}
.pk-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--cc)}
.pk-row.done{background:linear-gradient(#fffbe6,#ffe8a8);animation:pk-done 1.4s ease-in-out infinite}
@keyframes pk-done{50%{box-shadow:inset 2px 2px 0 #fff,0 0 14px #ffd75e,0 3px 0 #0005}}
.pk-row.empty{display:flex;align-items:center;justify-content:center;border-style:dashed;border-color:#0000004d;background:#0000000d;box-shadow:none;font-size:12px;font-weight:800;color:#0000006b}
.pk-row.empty::before{display:none}
.pk-row.empty .pxi{width:18px;height:18px;opacity:.4;vertical-align:-4px;margin-right:4px}
.pk-card{height:100%;display:grid;place-items:center;overflow:hidden}
.pk-card .tcard{zoom:.62}
.pk-card .tcb{display:none}
.pk-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.pk-info>b{font-size:15px;font-weight:900;color:#3d2308}
.pk-info>b .au{margin-left:6px;padding:0 5px;font-style:normal;font-size:10px;color:#1d1a2e;background:linear-gradient(90deg,#ff7aa0,#ffd75e,#72ccff);border:1.5px solid #000;vertical-align:2px}
.pk-info>span{display:flex;flex-wrap:wrap;gap:4px}
.pk-tag{display:inline-flex;align-items:center;gap:2px;font-style:normal;padding:0 5px;font-size:10.5px;font-weight:900;color:#3d2308;background:#fff;border:2px solid #000}
.pk-tag .pxi{width:14px;height:14px}
.pk-tag.ins{background:#d8ffd0}
.pk-bar{position:relative;height:24px;background:#1d1a2e;border:3px solid #000;box-shadow:inset 0 2px 4px #000a}
.pk-bar i{position:absolute;left:0;top:0;bottom:0;background:repeating-linear-gradient(135deg,var(--cc,#3f9c48) 0 8px,color-mix(in srgb,var(--cc,#3f9c48),#fff 25%) 8px 16px);transition:width .9s linear}
.pk-bar b{position:absolute;inset:0;display:grid;place-items:center;font-size:12.5px;font-weight:900;color:#fff;text-shadow:0 0 3px #000,0 2px 0 #000;font-variant-numeric:tabular-nums}
.pk-row.done .pk-bar i{background:linear-gradient(90deg,#ffd75e,#fff3c4,#ffd75e);background-size:200% 100%;animation:pk-shine 1.2s linear infinite}
@keyframes pk-shine{to{background-position:-200% 0}}
.pk-rush{padding:6px 8px;font-size:12px}
.pk-open{padding:8px 10px;font-size:15px;animation:pk-open .9s ease-in-out infinite}
@keyframes pk-open{50%{transform:translateY(-3px) scale(1.04)}}
.pk-foot{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.pk-fast{display:flex;align-items:center;gap:6px;padding:5px 10px;cursor:pointer;font-size:12.5px;font-weight:900;color:#3d2308;background:#fff8e6;border:3px solid #000;user-select:none}
.pk-fast small{font-size:10.5px;font-weight:700;color:#8a5a12}
.pk-fast.on{background:linear-gradient(#e6ffd9,#bfefa8)}
.pk-all{margin-left:auto;padding:8px 18px;font-size:15px}

/* ---------- 鑑定卡倉庫（電腦） ---------- */
.pc-wrap{display:flex;gap:10px}
.pc-left{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px}
.pc-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.pc-bar>i{flex:1}
.pc-f,.pc-s{padding:3px 8px;cursor:pointer;font-family:inherit;font-size:11.5px;font-weight:900;color:#3d2308;background:#fff8e6;border:2px solid #000;box-shadow:0 2px 0 #0004}
.pc-f.on{color:#fff;background:var(--cc,#3d2308)}
.pc-s.on{background:#ffd75e}
.pc-grid{flex:1;min-height:0;overflow-y:auto;display:flex;flex-wrap:wrap;gap:14px 10px;align-content:flex-start;padding:10px 10px 16px;
  background:repeating-linear-gradient(0deg,#0000 0 156px,#3a2410 156px 168px,#0000 168px 178px),linear-gradient(#5a3a1c,#3d2710);border:3px solid #000;box-shadow:inset 0 4px 12px #000a}
.pc-side{flex:0 0 344px;min-height:0;display:flex;flex-direction:column;gap:6px;padding:7px;background:#fff8e6;border:3px solid #000;box-shadow:0 3px 0 #0004}
.pc-top{flex:0 0 auto;display:flex;gap:8px}
.pc-stage{flex:0 0 100px;height:138px;display:grid;place-items:center;
  background:radial-gradient(50% 55% at 50% 45%,color-mix(in srgb,var(--cc),#fff 70%) 0,#0000 70%),linear-gradient(#2c3442,#1c222c);border:3px solid #000;box-shadow:inset 0 3px 10px #000a}
.pc-stage .gslab.big{zoom:.62}
.pc-head{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.pc-head>b{font-size:17px;font-weight:900;color:#3d2308;line-height:1.15}
.pc-tags{display:flex;gap:4px;min-height:0}
.pc-head .si-top{margin-top:auto;flex-wrap:wrap;row-gap:0}
.pc-head .si-g{font-size:40px}
.pc-val{display:flex;align-items:center;gap:3px;font-size:11.5px;font-weight:800;color:#6b4a1e;white-space:nowrap}
.pc-val .pxi{width:15px;height:15px}
.pc-val b{color:#b4530a;font-size:13px}
.pc-val em{margin-left:3px;padding:0 4px;font-style:normal;font-size:10px;color:#fff;background:#e0392b}
.si-meta{margin-top:auto;padding-top:2px;font-size:10px;font-weight:700;color:#8a7a5a;border-top:1px dashed #0000002e}
.pc-on{padding:1px 8px;font-style:normal;font-size:11px;font-weight:900;color:#3d2308;background:linear-gradient(#fff3c4,#ffca4a);border:2px solid #000}
.pc-on.sh{background:linear-gradient(#e2f0ff,#9fd0f5)}
.pc-info{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.pc-btns{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.pc-btns .px-btn{display:flex;align-items:center;justify-content:center;gap:2px;padding:5px 2px;font-size:11px;border-width:3px;white-space:nowrap;letter-spacing:-.3px}
.pc-btns .px-btn .pxi{width:14px;height:14px}
.pc-btns .wide{grid-column:1/-1;font-size:13px;animation:pk-open .9s ease-in-out infinite}
/* 鑑定卡的詳細資訊（倉庫、報價共用） */
.si-top{display:flex;align-items:center;gap:8px}
.si-g{font-size:34px;font-weight:900;line-height:1;color:var(--cc);text-shadow:2px 2px 0 #0003}
.si-top span{display:flex;flex-direction:column;font-size:12.5px;font-weight:900;color:#1d1a2e;line-height:1.2}
.si-top small{font-size:11px;color:#6b4a1e}
.si-subs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}
.si-subs span{display:flex;flex-direction:column;align-items:center;padding:2px 0;background:#1b1e24;border:2px solid #000}
.si-subs small{font-size:9px;font-weight:800;color:#9aa3b2}
.si-subs b{font-size:13px;font-weight:900;color:#e8ecf2}
.si-row{display:flex;align-items:flex-start;gap:5px;font-size:11.5px;font-weight:800;color:#3d2308;line-height:1.35}
.si-row>.pxi{width:17px;height:17px;flex:0 0 auto}
.si-row span{display:flex;flex-direction:column}
.si-row b{color:#b4530a}
.si-row small{font-size:10.5px;font-weight:700;color:#6b4a1e}
.si-row .si-st{font-style:normal;font-size:11px;color:#e0932b;letter-spacing:1px}
.si-row.hot b{color:#e0392b}
.si-row.au{padding:3px 4px;background:linear-gradient(90deg,#fff0f6,#fff8d6,#e8f6ff);border:2px solid #c98a1e}
.si-row.dim{opacity:.8}

/* ---------- 展示架 ---------- */
.sh-wrap{display:flex;gap:10px}
.sh-left{flex:0 0 400px;min-height:0;display:flex;flex-direction:column;justify-content:center}
.sh-cab{flex:0 0 auto;padding:6px 6px 0;background:linear-gradient(#8a5a2a,#6a4420);border:4px solid #1d1a2e;box-shadow:0 4px 0 #0006}
.sh-glass{display:flex;justify-content:space-around;gap:4px;padding:5px 6px 3px;border:3px solid #1d1a2e;
  background:linear-gradient(160deg,#ffffffcc 0 7%,#0000 8% 42%,#ffffff55 43% 46%,#0000 47%),linear-gradient(#bfe4f5,#8cc4e0)}
.sh-board{height:10px;margin:0 -6px;background:linear-gradient(#c89a64,#9a6434);border-top:2px solid #1d1a2e;border-bottom:2px solid #1d1a2e}
.sh-base{height:14px;margin:0 -6px;background:linear-gradient(#b07a42,#8a5a2a);border-top:3px solid #1d1a2e}
.sh-slot{position:relative;width:94px;height:150px;display:grid;place-items:center;cursor:pointer;border:3px dashed #0000;transition:transform .12s}
.sh-slot:hover{transform:translateY(-3px)}
.sh-slot .gslab{zoom:.94}
.sh-slot.sel{border-color:#ffd75e;background:#ffffff55;box-shadow:0 0 12px #ffd75e}
.sh-slot.empty{border-color:#ffffff99;background:#ffffff33;color:#1d1a2e99;flex-direction:column;display:flex;align-items:center;justify-content:center}
.sh-slot.empty b{font-size:30px;line-height:1}
.sh-slot.empty small{font-size:11px;font-weight:900}
.sh-ph{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.sh-ph .px-btn{display:flex;align-items:center;gap:3px;padding:4px 12px;font-size:12px;border-width:3px}
.sh-ph .px-btn .pxi{width:15px;height:15px}
.sh-pgrid{flex:1;min-height:0;overflow-y:auto;display:flex;flex-wrap:wrap;gap:12px 10px;align-content:flex-start;padding:8px;background:#00000012;border:2px solid #0000002e}
.sh-pgrid .grx-empty{width:100%}
.sh-right{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.of-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px}
.of-row{display:grid;grid-template-columns:44px 1fr auto;grid-template-rows:auto auto;gap:3px 8px;align-items:center;padding:6px 8px;background:#fffdf5;border:3px solid #000;box-shadow:0 3px 0 #0004;animation:gp-pop .3s ease}
.of-face{grid-row:1/3;width:44px;height:44px;border:2px solid #000;image-rendering:pixelated}
.of-txt{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.of-txt b{font-size:13px;font-weight:900;color:#3d2308}
.of-txt small{font-size:10.5px;font-weight:700;color:#6b4a1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
.of-price b{font-size:18px;font-weight:900;color:#b4530a}
.of-price small{font-size:10px;font-weight:900}
.up{color:#2e8a3e}.dn{color:#c2372f}
.of-btns{grid-column:2/4;display:flex;gap:5px}
.of-btns .px-btn{display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 10px;font-size:11.5px;border-width:3px}
.of-btns .px-btn .pxi{width:14px;height:14px}
.of-btns .px-btn:first-child{flex:1}
.of-btns .px-btn.red{margin-left:auto}
/* 報價視窗（跟客人說話） */
.ofd{display:flex;gap:12px;align-items:stretch}
.ofd-l{flex:0 0 220px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px;background:#fff8e6;border:3px solid #000}
.ofd-face{width:120px;height:120px;border:3px solid #000;image-rendering:pixelated}
.ofd-line{margin:0;font-size:13.5px;font-weight:800;line-height:1.7;color:#3d2308;text-align:center}
.ofd-m{flex:0 0 190px;display:grid;place-items:center;background:radial-gradient(60% 60% at 50% 45%,#ffffffcc,#0000 70%),#2c3442;border:3px solid #000}
.ofd-r{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding:8px;background:#fff8e6;border:3px solid #000}
.ofd-price{display:flex;align-items:baseline;gap:8px;margin-top:auto;padding:6px 10px;background:#1d1a2e;border:3px solid #000}
.ofd-price small{font-size:11px;font-weight:800;color:#c9cdd6}
.ofd-price b{font-size:26px;font-weight:900;color:#ffd75c}
.ofd-price span{font-size:12px;font-weight:900}
.ofd-price .up{color:#8ef07a}.ofd-price .dn{color:#ff9a8a}
.ofd-btns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.ofd-btns .px-btn{padding:8px 0;font-size:14px}

/* ---------- 公布欄 ---------- */
.gp-board .gp-body{background:repeating-linear-gradient(45deg,#0000 0 6px,#00000008 6px 7px),linear-gradient(#c98a4a,#b07a3a);box-shadow:inset 0 0 0 3px #8a5a2a}
.bd-news{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:6px;overflow-y:auto}
.bd-note{position:relative;padding:18px 14px 10px;background:#fbf8ef;border:2px solid #0003;box-shadow:3px 4px 0 #0003;transform:rotate(-1deg)}
.bd-note:nth-child(2){transform:rotate(1.2deg);background:#fff3a0}
.bd-note:nth-child(3){transform:rotate(.6deg);background:#dff0ff}
.bd-note:nth-child(4){transform:rotate(-1.4deg);background:#ffd6e8}
.bd-note::before{content:"";position:absolute;left:50%;top:5px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#e0392b;box-shadow:inset -2px -2px 0 #9e1f16}
.bd-note b{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:900;color:#3d2308}
.bd-note b .pxi{width:20px;height:20px}
.bd-note p{margin:6px 0 0;font-size:12px;font-weight:700;line-height:1.7;color:#3d2308}
.bd-reqs{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding:4px}
.bd-req{position:relative;display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fbf8ef;border:3px solid #3d2308;box-shadow:3px 4px 0 #0003}
.bd-req.done{opacity:.7}
.bd-rq-card .tcard{zoom:.8}
.bd-rq-card .tcb{display:none}
.bd-rq-txt{flex:1;display:flex;flex-direction:column;gap:2px}
.bd-rq-txt small{font-size:10.5px;font-weight:900;color:#8a5a12;letter-spacing:1px}
.bd-rq-txt b{font-size:15px;font-weight:900;color:#3d2308}
.bd-rq-txt span{font-size:12px;font-weight:800;color:#3d2308}
.bd-rq-txt span b{font-size:13px;color:#c2372f}
.bd-rq-txt em{font-style:normal;font-size:12px;font-weight:900;color:#2e8a3e}
.bd-stamp{position:absolute;right:20px;top:50%;margin-top:-18px;padding:2px 12px;font-style:normal;font-size:20px;font-weight:900;color:#c2372f;border:4px solid #c2372f;transform:rotate(-12deg);background:#fff8}
.bd-reqs .sh-pgrid{background:#fbf8ef99;border-color:#3d2308}
.bd-ph{margin:4px 0 0;color:#fff6dd;text-shadow:0 1px 0 #3d2308}
.bd-ph small{color:#ffe9a8}
.bd-foot{margin:4px 0 0;font-size:11px;font-weight:800;line-height:1.6;color:#3d2308}
.gp-board .bd-foot{color:#fff6dd;text-shadow:0 1px 0 #3d2308}
.bd-mk{display:flex;flex-direction:column;gap:8px;padding:4px;overflow-y:auto}
.bd-hot{display:flex;align-items:center;gap:14px;padding:8px 12px;background:linear-gradient(90deg,#fff3a0,#ffd98a);border:3px solid #3d2308;box-shadow:3px 4px 0 #0003}
.bd-hot>div>small{display:block;font-size:11px;font-weight:900;color:#c2372f;letter-spacing:2px}
.bd-hot>div>b{font-size:20px;font-weight:900;color:#3d2308}
.bd-hot>div>span{display:block;font-size:12px;font-weight:800;color:#3d2308}
.bd-hot-card .tcb{display:none}
.bd-mk .grx-h{color:#fff6dd;text-shadow:0 1px 0 #3d2308}
.bd-top{display:flex;flex-direction:column;gap:4px}
.bd-tr{display:flex;align-items:center;gap:10px;padding:4px 10px;background:#fbf8ef;border:2px solid #3d2308}
.bd-tr>b{width:22px;height:22px;display:grid;place-items:center;font-size:12px;color:#fff;background:#3d2308}
.bd-tr span{flex:1;font-size:13px;font-weight:900;color:#3d2308}
.bd-tr small{margin-left:6px;font-size:11px;color:#6b4a1e}
.bd-tr em{font-style:normal;font-size:14px;font-weight:900;color:#b4530a}
.bd-pop{padding:6px;overflow-y:auto}
.bd-pop table{width:100%;border-collapse:collapse;background:#fbf8ef;border:3px solid #3d2308}
.bd-pop th{padding:6px;font-size:12px;font-weight:900;color:#fff6dd;background:#3d2308}
.bd-pop td{padding:6px;text-align:center;font-size:14px;font-weight:900;color:#3d2308;border-top:2px solid #3d23082e}

/* ---------- 黑市 ---------- */
.gp-black{background:linear-gradient(#2a2238,#1a1424);box-shadow:inset 2px 2px 0 #4a3a6a,inset -2px -2px 0 #0d0a14,0 8px 0 #00000080,0 16px 40px #000a}
.gp-black .gp-head{background:linear-gradient(#3a2a4a,#1d1428)}
.gp-black .gp-tt small{color:#ff9ad0}
.gp-black .grx-h,.gp-black .grx-empty{color:#e8dcf8}
.gp-black .grx-h small{color:#b9a8d6}
.gp-black .grx-h b{background:#ff4aa8}
.bk-stock{display:flex;flex-direction:column;gap:8px}
.bk-row{flex:1;display:flex;justify-content:space-around;gap:10px;padding:10px;background:radial-gradient(60% 60% at 50% 50%,#ff4aa822,#0000 70%);border:3px solid #000}
.bk-item{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px;background:#241c34;border:3px solid #4a3a6a;box-shadow:0 4px 0 #0008}
.bk-item>b{font-size:14px;font-weight:900;color:#fff}
.bk-item>small{font-size:11px;font-weight:800;color:#b9a8d6;text-align:center;min-height:30px}
.bk-item .px-btn{padding:6px 12px;font-size:13px}
.bk-slab .gslab.big{zoom:.84}
.bk-item.sus{border-color:#ff9a3a;box-shadow:0 0 12px #ff9a3a66,0 4px 0 #0008}
.bk-sus{position:absolute;top:-10px;right:-8px;padding:1px 8px;font-style:normal;font-size:11px;font-weight:900;color:#1d1a2e;background:#ff9a3a;border:2px solid #000;transform:rotate(8deg)}
.bk-foot{display:flex;align-items:center;gap:5px;margin:0;font-size:11.5px;font-weight:800;line-height:1.5;color:#d9cfe8}
.bk-foot .pxi{width:16px;height:16px}
.bk-foot b{color:#ffd75c}
.bk-fu{display:flex;gap:10px}
.bk-fl{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.bk-fgrid{flex:1;min-height:0;overflow-y:auto;display:flex;flex-wrap:wrap;gap:10px 8px;align-content:flex-start;padding:8px;background:#0d0a14;border:3px solid #000}
.bk-fgrid .gslab{zoom:.82}
.bk-fr{flex:0 0 300px;display:flex;flex-direction:column;gap:4px}
.bk-fids,.bk-fcos{display:flex;flex-wrap:wrap;gap:4px;min-height:24px}
.bk-fcos .pc-f.on{background:var(--cc);color:#fff}
.bk-dim{margin:0;font-size:12px;font-weight:800;color:#8a7aa8}
.bk-quote{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px;background:radial-gradient(60% 60% at 50% 50%,#ff4aa833,#0000 70%),#120e1a;border:3px solid #000}
.bk-qtxt{display:flex;flex-direction:column;line-height:1.3}
.bk-qtxt small{font-size:10.5px;font-weight:800;color:#b9a8d6}
.bk-qtxt b{font-size:17px;font-weight:900;color:#fff}
.bk-qtxt b.up{color:#8ef07a}
.bk-go{padding:9px 0;font-size:15px}
.bk-sell{display:flex;flex-direction:column;gap:6px}
.bk-sgrid{flex:1;min-height:0;overflow-y:auto;display:flex;flex-wrap:wrap;gap:12px 10px;align-content:flex-start;padding:8px;background:#0d0a14;border:3px solid #000}
.bk-sitem{display:flex;flex-direction:column;align-items:center;gap:4px}
.bk-sitem .px-btn{padding:3px 8px;font-size:11.5px;border-width:3px}

/* ---------- 工坊 ---------- */
.gp-work .gp-body{flex-direction:column;gap:6px;background:linear-gradient(#f3e3c0,#e6cf9c)}
.wk-benches{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.wk-bench{position:relative;display:flex;flex-direction:column;gap:6px;padding:7px;background:linear-gradient(#fffdf5,#f1e3c0);border:3px solid #000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #d2bb85,0 3px 0 #0005}
.wk-bench.empty,.wk-bench.lock{align-items:center;justify-content:center;text-align:center;background:repeating-linear-gradient(45deg,#0000 0 8px,#00000010 8px 16px),#e8dcc0}
.wk-bench.empty b,.wk-bench.lock b{display:flex;align-items:center;gap:4px;font-size:12.5px;font-weight:900;color:#6b4a1e}
.wk-bench.lock b .pxi{width:16px;height:16px}
.wk-bench.lock small{font-size:10.5px;font-weight:800;color:#8a7a5a}
.wk-bench .px-btn{padding:4px 6px;font-size:11.5px;border-width:3px}
.wk-who{display:flex;align-items:center;gap:6px}
.wk-face{width:42px;height:42px;flex:0 0 auto;border:2px solid #000;image-rendering:pixelated}
.wk-face.big{width:72px;height:72px;border-width:3px}
.wk-who span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.wk-who b{font-size:13.5px;font-weight:900;color:#3d2308}
.wk-who small{font-size:10px;font-weight:800;color:#6b4a1e}
.wk-xp{display:block;height:6px;margin-top:2px;background:#1d1a2e;border:1.5px solid #000}
.wk-xp i{display:block;height:100%;background:#8ef07a}
.wk-xpt{font-size:9.5px !important;color:#8a7a5a !important;margin-top:1px}
.wk-mid{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
.wk-mid small{font-size:10.5px;font-weight:800;line-height:1.5;color:#8a7a5a}
.wk-mid .pxi{width:54px;height:54px;filter:drop-shadow(0 3px 0 #0004)}
.wk-mid.on .pxi{animation:wk-bump .44s steps(2) infinite}
@keyframes wk-bump{50%{transform:translateY(-4px) rotate(-4deg) scale(1.05)}}
.wk-spark{position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-34px 0 0 22px;background:#ffd75e;box-shadow:-40px 6px 0 #ffd75e,-8px -8px 0 #fff3c4,6px 20px 0 #ffb03a;animation:wk-spark .44s steps(2) infinite}
@keyframes wk-spark{50%{opacity:0}}
.wk-fire{position:absolute;top:3px;right:3px;width:18px;height:18px;padding:0;cursor:pointer;font-family:inherit;font-size:10px;font-weight:900;color:#fff;background:#c2372f;border:2px solid #000}
.wk-job{display:flex;flex-direction:column;gap:5px;margin-top:auto}
.wk-job>span:first-child{display:flex;align-items:center;gap:3px;font-size:11px;font-weight:800;color:#3d2308}
.wk-job .pxi{width:16px;height:16px}
.wk-order{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:auto}
.wk-lv{display:flex;flex-direction:column;align-items:center;padding:3px 0;cursor:pointer;font-family:inherit;--f1:#e8e8e8;--f2:#c6c6c6;--hi:#fafafa;--lo:#8a8a8a;
  background:linear-gradient(var(--f1),var(--f2));border:2px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo)}
.wk-lv:last-child{grid-column:1/-1}
.wk-lv .pxi{width:20px;height:20px}
.wk-lv b{font-size:11px;font-weight:900;color:#1c1c1c}
.wk-lv small{font-size:9px;font-weight:800;color:#6b4a1e}
.wk-lv:not(.off):hover{--f1:#ffd98a;--f2:#f0b429}
.wk-lv.off{filter:grayscale(1);opacity:.55}
.wk-foot{flex:0 0 auto !important;display:flex;align-items:center;gap:5px;margin:0;font-size:11px;font-weight:800;line-height:1.5;color:#6b4a1e}
.wk-foot .pxi{width:16px;height:16px;flex:0 0 auto}
.wk-cands{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.wk-cand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px 10px;background:linear-gradient(#fffdf5,#f1e3c0);border:3px solid #000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #d2bb85,0 4px 0 #0005}
.wk-cand>b{font-size:18px;font-weight:900;color:#3d2308}
.wk-cand span{font-size:12.5px;font-weight:800;color:#3d2308}
.wk-cand span b{color:#b4530a}
.wk-cand .px-btn{margin-top:6px;padding:7px 14px;font-size:14px}
.wk-can{max-width:220px;text-align:center;font-size:11px;font-weight:800;line-height:1.5;color:#6b4a1e}
.wk-can b{color:#b4530a}
.wk-store{display:flex;flex-direction:column;gap:5px}
.wk-mats,.wk-cases,.wk-tools{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.wk-cases{grid-template-columns:repeat(5,1fr)}
.wk-mat,.wk-case,.wk-tool{position:relative;display:flex;align-items:center;gap:5px;padding:4px 6px 14px;background:#8b8b8b;border:3px solid #000;box-shadow:inset 3px 3px 0 #373737,inset -3px -3px 0 #ffffffb0}
.wk-mat .pxi,.wk-case .pxi,.wk-tool .pxi{width:26px;height:26px;flex:0 0 auto;filter:drop-shadow(0 2px 0 #0006)}
.wk-mat b,.wk-case b,.wk-tool b{font-size:16px;font-weight:900;color:#fff;text-shadow:2px 2px 0 #3f3f3f}
.wk-mat small,.wk-case small{position:absolute;left:0;right:0;bottom:1px;text-align:center;font-size:9px;font-weight:900;color:#fff;text-shadow:1px 1px 0 #000;white-space:nowrap}
.wk-mat.t1{box-shadow:inset 3px 3px 0 #373737,inset -3px -3px 0 #ffffffb0,0 0 0 2px #9b6bff}
.wk-mat.t2{box-shadow:inset 3px 3px 0 #373737,inset -3px -3px 0 #ffffffb0,0 0 0 2px #ffd75e}
.wk-tool{padding:4px 6px;background:#fff8e6;box-shadow:none;border-width:2px}
.wk-tool small{flex:1;display:flex;flex-direction:column;font-size:10.5px;font-weight:900;color:#3d2308;line-height:1.15}
.wk-tool small i{font-style:normal;font-size:9px;color:#c2372f}
.wk-tool b{color:#b4530a;text-shadow:none}
.wk-sbtns{display:flex;gap:8px;margin-top:6px}
.wk-sbtns .px-btn{padding:7px 12px;font-size:12.5px}

/* ---------- 結算畫面：這一場掉的鑑定材料 ---------- */
.gr-drops{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:5px;margin-bottom:8px;padding:5px 8px;background:linear-gradient(#eef4ff,#d4e2f6);
  border:3px solid #2a3a5a;border-radius:9px;animation:unlock-in .5s ease 1s both}
.gr-drops>em{display:flex;align-items:center;gap:3px;font-style:normal;font-size:11.5px;font-weight:900;color:#2a3a5a;letter-spacing:1px}
.gr-drops>em .pxi{width:16px;height:16px}
.grd-drop{display:flex;align-items:center;gap:2px;padding:1px 6px 1px 3px;font-size:11.5px;font-weight:900;color:#1d2a3a;background:#fff;border:2px solid #1d2a3a;border-radius:6px}
.grd-drop .pxi{width:18px;height:18px}
.grd-drop b{color:#b4530a}
.grd-drop.t1{background:#f0e6ff;border-color:#6a3fc4}
.grd-drop.t2{background:#fff6cc;border-color:#c98a1e;box-shadow:0 0 8px #ffd75e}

/* =========================================================
   鑑定卡（評級卡磚）：共同骨架＋四家各自的材質
   小張 86×152（卡片 xs）、大張 118×204（卡片 s）
   ========================================================= */
.gslab{position:relative;flex:0 0 auto;width:86px;height:152px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 6px 7px;cursor:pointer;
  transition:transform .12s;--cc:#c8102e;--ci:#2e0508}
.gslab:hover{transform:translateY(-3px)}
.gslab.demo{cursor:default}
.gslab.demo:hover{transform:none}
.gsl-case{position:absolute;top:0;bottom:0;width:50%;z-index:0;background:linear-gradient(135deg,#f6fcff 0%,#d8eaf6 45%,#b5cde0 100%);background-size:200% 100%;
  border:3px solid #1d2a3a;box-shadow:inset 2px 2px 0 #ffffffcc,0 4px 0 #0006}
.gsl-case.l{left:0;border-right:0;background-position:0 0}
.gsl-case.r{right:0;border-left:0;background-position:100% 0;box-shadow:inset -2px -2px 0 #7f9ab0,0 4px 0 #0006}
.gslab.sel .gsl-case{box-shadow:inset 2px 2px 0 #ffffffcc,0 0 0 3px #ffd75e,0 6px 0 #0006}
.gsl-label{position:relative;z-index:1;align-self:stretch;height:30px;flex:0 0 auto;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;column-gap:2px;
  padding:2px 3px;line-height:1;background:#fbf8ef;border:2px solid var(--cc);box-shadow:inset 0 0 0 1px #fff}
.gsl-logo{justify-self:start;font-style:normal;font-size:7.5px;font-weight:900;letter-spacing:.3px;color:#fff;background:var(--cc);padding:1px 2px}
.gsl-name{grid-column:1;font-size:8.5px;font-weight:900;color:#1d1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center}
.gsl-cert{grid-column:1;font-size:6px;font-weight:700;color:#6a6a7a;letter-spacing:.3px;white-space:nowrap}
.gsl-g{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:1px}
.gsl-g small{font-size:5.5px;font-weight:900;color:var(--ci);white-space:nowrap}
.gsl-g em{font-style:normal;font-size:16px;font-weight:900;color:var(--cc);line-height:.9;font-variant-numeric:tabular-nums}
.gsl-win{position:relative;z-index:1;flex:1;align-self:stretch;display:grid;place-items:center;overflow:hidden;background:linear-gradient(#eef7fd,#c9dded);border:2px solid #8fa9bf;
  box-shadow:inset 0 0 0 2px #ffffff88,inset 0 3px 6px #0002}
.gsl-win .tcard{pointer-events:none}
/* 標籤越厚、多一條簽名帶，窗口就越矮 → 卡片跟著縮，不要被切掉 */
.gslab.co-iron .gsl-win .tcard.sz-xs{zoom:.58}
.gslab.auto .gsl-win .tcard.sz-xs{zoom:.56}
.gslab.auto.co-iron .gsl-win .tcard.sz-xs{zoom:.48}
.gslab.big.auto .gsl-win .tcard.sz-s{zoom:.72}
.gslab.big.auto.co-iron .gsl-win .tcard.sz-s{zoom:.64}
.gslab .tcb{display:none}
.gsl-shine{position:absolute;inset:3px;z-index:2;pointer-events:none;background:linear-gradient(115deg,#0000 35%,#ffffff66 46%,#0000 57%);background-size:260% 100%;background-position:120% 0}
.gslab:hover .gsl-shine,.gslab.stamped .gsl-shine{animation:gsl-shine .9s ease}
@keyframes gsl-shine{from{background-position:120% 0}to{background-position:-60% 0}}
/* BBHG 的金屬卡磚每隔幾秒自己閃一道光（黑標是金色的光） */
.gslab.co-iron .gsl-shine{animation:gsl-shine-loop 4.2s ease-in-out infinite;animation-delay:calc(var(--sd, 0) * -1s)}
.gslab.co-iron.bl .gsl-shine{background-image:linear-gradient(115deg,#0000 35%,#ffe9a066 46%,#0000 57%);animation-duration:3s}
@keyframes gsl-shine-loop{0%,64%{background-position:120% 0}100%{background-position:-60% 0}}
.gsl-on{position:absolute;z-index:3;left:50%;bottom:-9px;transform:translateX(-50%);padding:1px 6px;font-style:normal;font-size:9.5px;font-weight:900;white-space:nowrap;
  color:#3d2308;background:linear-gradient(#fff3c4,#ffca4a);border:2px solid #000;box-shadow:0 2px 0 #0007}
.gsl-on.sh{background:linear-gradient(#e2f0ff,#9fd0f5)}
.gsl-tal{position:absolute;z-index:3;right:-7px;top:32px;width:22px;height:22px;display:grid;place-items:center;background:#1d1a2e;border:2px solid #ffd75e;box-shadow:0 2px 0 #0007}
.gsl-tal .pxi{width:15px;height:15px}
.gslab.co-iron .gsl-tal,.gslab.co-iron .gsl-new{top:46px}
.gslab.co-night .gsl-tal,.gslab.co-night .gsl-new{top:30px}
.gsl-new{position:absolute;z-index:3;left:-7px;top:30px;padding:1px 4px;font-style:normal;font-size:9.5px;font-weight:900;color:#fff;background:#e0392b;border:2px solid #000;
  transform:rotate(-8deg);animation:grd-badge 1s ease-in-out infinite}
.gsl-bm{position:absolute;z-index:3;left:-6px;bottom:10px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-style:normal;font-size:11px;font-weight:900;
  color:#ffd6f0;background:#1d1428;border:2px solid #ff4aa8;transform:rotate(-12deg)}
.gsl-fake{position:absolute;z-index:4;left:50%;top:50%;padding:2px 8px;font-style:normal;font-size:15px;font-weight:900;letter-spacing:2px;color:#e0392b;background:#fffc;border:3px solid #e0392b;
  transform:translate(-50%,-50%) rotate(-18deg)}
.gslab.fake .gsl-win .tcard{filter:grayscale(1) brightness(.8)}
/* 簽名（AUTO）帶：彩虹全像 */
.gsl-auto{position:relative;z-index:1;align-self:stretch;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:2px;height:12px;padding:0 3px;font-style:normal;overflow:hidden;
  background:linear-gradient(100deg,#ff7aa0,#ffd75e,#8ef0a8,#72ccff,#c09aff,#ff7aa0);background-size:300% 100%;border:1.5px solid #1d1a2e;animation:gsl-holo 3s linear infinite}
.gsl-auto span{font-size:5px;font-weight:900;letter-spacing:.5px;color:#1d1a2e;white-space:nowrap}
.gsl-auto b{font-size:7px;font-weight:900;color:#1d1a2e;background:#fffc;padding:0 2px;white-space:nowrap}
.gslab:not(.big) .gsl-auto{justify-content:center}
.gslab:not(.big) .gsl-auto span{display:none}
@keyframes gsl-holo{to{background-position:300% 0}}
.gslab.auto .gsl-case{box-shadow:inset 2px 2px 0 #ffffffcc,0 0 10px #ffd75e99,0 4px 0 #0006}
.gslab.autoin .gsl-auto{animation:gsl-holo 3s linear infinite,gsl-autoin .5s cubic-bezier(.2,1.8,.4,1)}
@keyframes gsl-autoin{from{transform:scale(1.4)}}

/* ---- 夜市：軟塑膠套＋膠帶＋手寫標籤（歪歪的、紅圈圈分數） ---- */
.gslab.co-night{transform:rotate(-1.2deg)}
.gslab.co-night:hover{transform:rotate(-1.2deg) translateY(-3px)}
.co-night .gsl-case{background:linear-gradient(135deg,#ffffffd9,#eef4f8b0);border:2px solid #b9c6d2;box-shadow:inset 1px 1px 0 #fff,0 3px 0 #0004}
.co-night .gsl-label{height:26px;background:#fff3a0;border:2px dashed #e0392b;box-shadow:none;grid-template-rows:1fr}
.co-night .gsl-hand{grid-column:1;align-self:center;font-family:"Segoe Print","Comic Sans MS","DFKai-SB","KaiTi",cursive;font-size:10px;font-weight:700;color:#3d2308;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:rotate(-3deg)}
.co-night .gsl-g{grid-row:1}
.co-night .gsl-g em{width:22px;height:22px;display:grid;place-items:center;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:13px;color:#e0392b;border:2px solid #e0392b;border-radius:50%;transform:rotate(-8deg)}
.co-night .gsl-win{border:1px solid #c9d6e0;background:#f4f8fb;box-shadow:none}
.gsl-tape{position:absolute;z-index:3;right:-8px;top:-3px;width:34px;height:12px;background:#f3e6c0cc;border:1px solid #d8c9a0;transform:rotate(28deg);box-shadow:0 1px 0 #0002}
/* ---- 佛心：竹框＋宣紙＋朱紅印章 ---- */
.co-budda .gsl-case{background:repeating-linear-gradient(180deg,#d8b86a 0 26px,#a07830 26px 29px,#c9a45a 29px 31px);background-size:100% 100%;border:3px solid #6a4a1a;
  box-shadow:inset 3px 0 0 #e8d08a,inset -3px 0 0 #8a6428,0 4px 0 #0006}
.co-budda .gsl-case.r{box-shadow:inset -3px 0 0 #8a6428,0 4px 0 #0006}
.co-budda .gsl-label{height:28px;background:linear-gradient(#fbf3de,#f1e4c2);border:2px solid #8a6428;box-shadow:none}
.co-budda .gsl-name{font-family:"Noto Serif TC","PMingLiU","MingLiU",serif;font-size:10px}
.co-budda .gsl-cert{font-family:"Noto Serif TC","PMingLiU",serif;color:#8a6428}
.co-budda .gsl-g em{width:22px;height:22px;display:grid;place-items:center;font-family:"Noto Serif TC","PMingLiU",serif;font-size:13px;color:#fff;background:#c8102e;border:2px solid #8e0b20;
  border-radius:3px;transform:rotate(6deg);box-shadow:inset 0 0 0 1px #ff6a7a}
.co-budda .gsl-win{border-color:#8a6428;background:linear-gradient(#fbf3de,#eadcb6)}
/* ---- PSB：經典透明卡磚＋紅框白標＋條碼 ---- */
.co-psb .gsl-label{border-color:#c8102e}
.gsl-bar{position:absolute;right:26px;bottom:2px;width:22px;height:5px;background:repeating-linear-gradient(90deg,#1d1a2e 0 1px,#0000 1px 2px,#1d1a2e 2px 4px,#0000 4px 5px)}
/* ---- BBHG：厚重金屬卡磚＋金色螺絲＋全像鍍膜邊＋深色標籤＋四項子分數 ---- */
.gslab.co-iron{padding:7px 7px 8px}
.co-iron .gsl-case{background:linear-gradient(135deg,#7a8494 0%,#3a414e 40%,#252a33 100%);background-size:200% 100%;border:3px solid #0d0f14;
  box-shadow:inset 2px 2px 0 #9aa3b2,inset -2px -2px 0 #0d0f14,0 5px 0 #0008}
.co-iron .gsl-case.r{box-shadow:inset -2px -2px 0 #0d0f14,0 5px 0 #0008}
.gslab.co-iron::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border:2px solid #0000;
  background:linear-gradient(120deg,#ff7aa0,#ffd75e,#8ef0a8,#72ccff,#c09aff,#ff7aa0) border-box;background-size:300% 100%;
  -webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) padding-box exclude,linear-gradient(#000 0 0);
  animation:gsl-holo 4s linear infinite;opacity:.95}
.gslab.co-iron::after{content:"";position:absolute;inset:3px;z-index:2;pointer-events:none;
  background:radial-gradient(circle at 4px 4px,#ffe9a0 0 1.5px,#8a5a12 2px 2.5px,#0000 3px),radial-gradient(circle at calc(100% - 4px) 4px,#ffe9a0 0 1.5px,#8a5a12 2px 2.5px,#0000 3px),
    radial-gradient(circle at 4px calc(100% - 4px),#ffe9a0 0 1.5px,#8a5a12 2px 2.5px,#0000 3px),radial-gradient(circle at calc(100% - 4px) calc(100% - 4px),#ffe9a0 0 1.5px,#8a5a12 2px 2.5px,#0000 3px)}
.co-iron .gsl-label{height:42px;display:flex;flex-direction:column;justify-content:space-between;gap:1px;padding:2px 3px 2px;background:linear-gradient(#262a32,#15181e);border:2px solid #c9a24a;box-shadow:inset 0 0 0 1px #000}
.gsl-top,.gsl-mid{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0}
.gsl-mid{align-items:flex-end}
.gsl-gn{font-size:5.5px;font-weight:900;letter-spacing:.3px;color:#c9a24a;white-space:nowrap;line-height:1}
.co-iron .gsl-mid .gsl-name{flex:1;min-width:0}
.co-iron .gsl-g{display:block;line-height:.9}
.co-iron .gsl-logo{background:linear-gradient(#ffe9a0,#c98a1e);color:#1d1a2e}
.co-iron .gsl-name{color:#e8ecf2}
.gsl-subs{display:grid;grid-template-columns:repeat(4,1fr);gap:1px}
.gsl-subs span{display:flex;flex-direction:column;align-items:center;line-height:1;background:#0d0f14}
.gsl-subs small{font-size:4px;color:#9aa3b2;font-weight:800;line-height:1.1}
.gsl-subs b{font-size:6px;color:#fff;font-weight:900;line-height:1.05}
.gsl-subs span.pop{animation:gsl-sub .35s cubic-bezier(.2,1.8,.4,1)}
@keyframes gsl-sub{from{transform:scale(1.8);background:#ffd75e}}
.co-iron .gsl-g em{font-size:16px;background:linear-gradient(#ffffff,#b7bec9 55%,#ffffff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 0 #000)}
.co-iron .gsl-win{border-color:#0d0f14;background:linear-gradient(#3a414e,#1d2129);box-shadow:inset 0 0 0 2px #c9a24a55,inset 0 3px 8px #000a}
.co-iron.g10 .gsl-g em{background:linear-gradient(#fff6c2,#ffca4a 50%,#c98a1e);-webkit-background-clip:text;background-clip:text}
.co-iron.bl .gsl-label{background:#050507;border-color:#ffd75e;box-shadow:inset 0 0 0 1px #000,0 0 10px #ffd75eaa}
.co-iron.bl .gsl-gn{color:#ffd75e}
.co-iron.bl .gsl-g em{background:linear-gradient(#fff6c2,#ffd75e 50%,#c98a1e);-webkit-background-clip:text;background-clip:text}
.co-iron.bl .gsl-case{background:linear-gradient(135deg,#2a2a2e,#050507);box-shadow:inset 2px 2px 0 #ffd75e66,0 0 16px #ffd75e88,0 5px 0 #0008}
.co-iron.bl{animation:gsl-bl 2.4s ease-in-out infinite}
@keyframes gsl-bl{50%{filter:drop-shadow(0 0 8px #ffd75e)}}
/* 10 分：標籤閃一下金光（夜市、佛心、PSB） */
.gslab.g10:not(.co-iron) .gsl-label{box-shadow:inset 0 0 0 1px #fff,0 0 8px #ffd75e}
.gslab.g10.co-psb .gsl-label{background:linear-gradient(#fffbe8,#fff1c2)}
/* 大張 */
.gslab.big{width:118px;height:204px;padding:7px 7px 9px;gap:5px;cursor:default}
.gslab.big:hover{transform:none}
.gslab.big.co-night:hover{transform:rotate(-1.2deg)}
.gslab.big .gsl-label{height:40px;padding:3px 4px;border-width:3px}
.gslab.big .gsl-logo{font-size:10px;padding:1px 3px}
.gslab.big .gsl-name{font-size:11.5px}
.gslab.big .gsl-cert{font-size:8px}
.gslab.big .gsl-g small{font-size:7.5px}
.gslab.big .gsl-g em{font-size:23px}
.gslab.big.co-night .gsl-label{height:34px}
.gslab.big.co-night .gsl-hand{font-size:13px}
.gslab.big.co-night .gsl-g em,.gslab.big.co-budda .gsl-g em{width:30px;height:30px;font-size:17px}
.gslab.big.co-budda .gsl-label{height:38px}
.gslab.big.co-budda .gsl-name{font-size:12.5px}
.gslab.big.co-iron .gsl-label{height:58px;padding:3px 4px}
.gslab.big .gsl-gn{font-size:7.5px}
.gslab.big.co-iron .gsl-g em{font-size:22px}
.gslab.big .gsl-subs small{font-size:5.5px}
.gslab.big .gsl-subs b{font-size:8.5px}
.gslab.big .gsl-auto{height:16px}
.gslab.big .gsl-auto span{font-size:6.5px}
.gslab.big .gsl-auto b{font-size:9.5px}
.gslab.big .gsl-on{font-size:11px;bottom:-11px}
.gslab.big .gsl-tal{width:28px;height:28px;right:-9px;top:44px}
.gslab.big.co-iron .gsl-tal,.gslab.big.co-iron .gsl-new{top:62px}
.gslab.big .gsl-tal .pxi{width:19px;height:19px}
.gslab.big .gsl-bm{width:26px;height:26px;font-size:14px}
.gslab.big .gsl-fake{font-size:22px}
.gslab.big .gsl-tape{width:44px;height:15px}
/* 蓋章、拆殼、驗貨 */
.gslab.stamped .gsl-label{animation:gsl-stamp .45s cubic-bezier(.2,1.8,.4,1)}
@keyframes gsl-stamp{from{transform:scale(1.35)}}
.gslab .gsl-crk{display:none}
.gslab.cracking{animation:gsl-shake .2s steps(2) infinite}
@keyframes gsl-shake{50%{transform:translate(2px,-1px) rotate(1deg)}}
.gslab.cracking .gsl-shine,.gslab.split .gsl-shine,.gslab.broke .gsl-shine{
  inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160' shape-rendering='crispEdges'%3E%3Cpath d='M52 0 L46 22 L58 40 L44 64 L56 88 L42 112 L54 136 L48 160 M58 40 L78 52 M44 64 L22 70 M56 88 L80 98 M42 112 L18 122' fill='none' stroke='%231d1a2e' stroke-width='3'/%3E%3Cpath d='M53 0 L47 22 L59 40 L45 64 L57 88 L43 112 L55 136 L49 160' fill='none' stroke='%23ffffff' stroke-width='1' opacity='.8'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  animation:gsl-crk .8s steps(4) both;z-index:5}
@keyframes gsl-crk{from{opacity:0}to{opacity:1}}
.gslab.split .gsl-shine{animation:gsl-fade .5s ease forwards}
@keyframes gsl-fade{from{opacity:1}to{opacity:0}}
.gslab.split .gsl-case.l{animation:gsl-half-l .7s cubic-bezier(.3,.6,.4,1) forwards}
.gslab.split .gsl-case.r{animation:gsl-half-r .7s cubic-bezier(.3,.6,.4,1) forwards}
@keyframes gsl-half-l{to{transform:translate(-70px,40px) rotate(-24deg);opacity:0}}
@keyframes gsl-half-r{to{transform:translate(70px,40px) rotate(24deg);opacity:0}}
.gslab.split::before,.gslab.split::after{opacity:0;transition:opacity .3s}
.gslab.split .gsl-label,.gslab.split .gsl-auto{animation:gsl-lab-off .6s ease forwards}
.gslab.split .gsl-on,.gslab.split .gsl-tape,.gslab.split .gsl-tal,.gslab.split .gsl-bm,.gslab.split .gsl-new{opacity:0;transition:opacity .25s}
@keyframes gsl-lab-off{to{transform:translateY(-50px) rotate(-14deg);opacity:0}}
.gslab.split .gsl-win{animation:gsl-free .7s cubic-bezier(.2,1.5,.4,1) .15s forwards;border-color:#0000;background:none;box-shadow:none;overflow:visible}
@keyframes gsl-free{to{transform:translateY(-18px) scale(1.18);filter:drop-shadow(0 0 10px #ffd75e)}}
.gslab.broke{animation:gsl-drop .5s ease forwards}
@keyframes gsl-drop{30%{transform:translateY(-6px) rotate(-3deg)}to{transform:translateY(8px) rotate(4deg)}}
.gslab.broke .gsl-shine{opacity:1;animation:none}
.gslab.broke .gsl-win .tcard{filter:grayscale(1) brightness(.7) contrast(.9);clip-path:polygon(0 0,100% 0,100% 38%,62% 46%,80% 58%,100% 62%,100% 100%,0 100%,0 70%,30% 58%,12% 44%,0 40%)}
.gslab.broke .gsl-case{filter:grayscale(.6) brightness(.8)}
.gslab.uv{filter:hue-rotate(260deg) saturate(1.6) brightness(.8);animation:gsl-uv .3s steps(2) infinite}
@keyframes gsl-uv{50%{filter:hue-rotate(250deg) saturate(1.8) brightness(1)}}

/* =========================================================
   演出覆蓋層（#gr-ov）
   ========================================================= */
#gr-ov{position:absolute;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:#05060cd8;backdrop-filter:blur(2px)}
#gr-ov.hidden{display:none}
#gr-ov h3{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-size:22px;font-weight:900;letter-spacing:3px;color:#fff;
  filter:drop-shadow(2px 0 0 #000) drop-shadow(-2px 0 0 #000) drop-shadow(0 2px 0 #000) drop-shadow(0 -2px 0 #000)}
#gr-ov h3 .pxi{width:28px;height:28px}
#gr-ov p{margin:4px 0 0;text-align:center;font-size:12.5px;font-weight:800;line-height:1.6;color:#e8dcc0}
#gr-ov p b{color:#ffd75c}
#gr-ov .bad{color:#ff8a7a}
#gr-ov .px-btn.big{min-width:150px;padding:9px 20px;font-size:16px;letter-spacing:2px}
.grr-skip{margin-top:4px;font-size:10.5px;font-weight:800;color:#ffffff66}
.grr-stamp{position:absolute;z-index:8;left:50%;top:38%;padding:2px 14px;font-size:30px;font-weight:900;letter-spacing:2px;white-space:nowrap;pointer-events:none;
  color:#ffd75e;border:5px solid #ffd75e;background:#1d1a2ecc;opacity:0;transform:translate(-50%,-50%) rotate(-12deg) scale(2.2)}
.grr-stamp.on{animation:grr-stamp .45s cubic-bezier(.2,1.6,.4,1) .15s forwards}
@keyframes grr-stamp{to{opacity:1;transform:translate(-50%,-50%) rotate(-12deg) scale(1)}}
.grr-stamp.pay{color:#ff5a4a;border-color:#ff5a4a;background:#fff4f0e6}
.grr-stamp.sad{color:#c9cdd6;border-color:#8a8f9a;font-size:24px}
.grr-stamp.ok{color:#8ef07a;border-color:#8ef07a}
.grr-stamp.bl{color:#ffd75e;border-color:#ffd75e;background:#050507ee;box-shadow:0 0 24px #ffd75e}
/* 開箱 */
.grr{display:flex;flex-direction:column;align-items:center;gap:6px;width:560px;cursor:pointer}
.grr.landed{cursor:default}
.grr-stage{position:relative;width:440px;height:290px}
.grr-rays{position:absolute;left:50%;top:40%;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,#ffd75e44 0 10deg,#0000 10deg 22deg);mask:radial-gradient(closest-side,#000 30%,#0000);-webkit-mask:radial-gradient(closest-side,#000 30%,#0000);transition:opacity .5s}
.grr.landed.hi .grr-rays,.grr.landed.bl .grr-rays{opacity:1;animation:grr-spin 9s linear infinite}
.grr.landed.bl .grr-rays{background:repeating-conic-gradient(from 0deg,#ffd75e66 0 6deg,#0000 6deg 14deg)}
@keyframes grr-spin{to{transform:rotate(360deg)}}
.grr-box{position:absolute;left:50%;bottom:6px;width:190px;height:118px;margin-left:-95px;z-index:3}
.grr-body{position:absolute;inset:18px 0 0;background:linear-gradient(#d8a06a,#b87a44);border:4px solid #3d2308;box-shadow:inset 4px 4px 0 #f0c898,inset -4px -4px 0 #8a5a2a,0 6px 0 #0008}
.grr-lid{position:absolute;left:-8px;right:-8px;top:4px;height:22px;background:linear-gradient(#e8b47e,#c98a50);border:4px solid #3d2308;box-shadow:inset 3px 3px 0 #f8d8a8;z-index:2;transform-origin:50% 100%}
.grr-tape{position:absolute;left:50%;top:0;width:30px;height:60px;margin-left:-15px;z-index:3;background:linear-gradient(90deg,#e8dcc0,#fff4d8,#e8dcc0);border:2px solid #8a6a3a;opacity:.95}
.grr-stk{position:absolute;left:50%;bottom:22px;z-index:3;transform:translateX(-50%) rotate(-4deg);padding:3px 10px;font-size:16px;font-weight:900;letter-spacing:1px;color:#fff;
  background:var(--cc);border:3px solid var(--ci);box-shadow:0 2px 0 #0006;text-shadow:0 2px 0 #0007}
.grr-slab{position:absolute;left:50%;bottom:30px;z-index:2;transform:translate(-50%,40px) scale(.7);opacity:0}
.grr.fast .grr-box{display:none}
.grr.fast .grr-slab{transform:translate(-50%,-36px) scale(1.12);opacity:1}
.grr.shake .grr-box{animation:grr-shake .16s steps(2) 3}
@keyframes grr-shake{50%{transform:translate(4px,-3px) rotate(2deg)}}
.grr.open .grr-lid{animation:grr-lid .5s cubic-bezier(.3,.6,.4,1) forwards}
@keyframes grr-lid{to{transform:translate(-40px,-90px) rotate(-38deg);opacity:0}}
.grr.open .grr-tape{animation:grr-tape .5s cubic-bezier(.3,.6,.4,1) forwards}
@keyframes grr-tape{to{transform:translate(50px,-80px) rotate(30deg);opacity:0}}
.grr.open:not(.fast) .grr-slab{animation:grr-rise .7s cubic-bezier(.2,1.2,.4,1) .15s forwards}
@keyframes grr-rise{0%{opacity:1;transform:translate(-50%,40px) scale(.7)}100%{opacity:1;transform:translate(-50%,-36px) scale(1.12)}}
.grr.open .grr-box{animation:grr-box-down .6s ease .5s forwards}
@keyframes grr-box-down{to{transform:translateY(40px) scale(.8);opacity:0}}
.grr.rolling .gsl-g em{animation:grr-roll .09s steps(2) infinite}
@keyframes grr-roll{50%{transform:translateY(-2px)}}
.grr.landed.hi .grr-slab .gslab{filter:drop-shadow(0 0 14px #ffd75e)}
.grr.landed.lo .grr-slab .gslab{filter:grayscale(.35) brightness(.85)}
.grr-info{min-height:66px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:#fff}
.grr-hint{font-size:17px;font-weight:900;letter-spacing:2px;color:#ffe9a8;animation:grr-hint 1s ease-in-out infinite}
@keyframes grr-hint{50%{opacity:.45}}
.grr-g{display:flex;align-items:center;gap:10px;animation:gp-pop .3s ease both}
.grr-g>b{font-size:44px;font-weight:900;line-height:1;color:var(--cc);filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)}
.grr.landed.hi .grr-g>b,.grr.landed.bl .grr-g>b{color:#ffd75e;filter:drop-shadow(2px 0 0 #3d2308) drop-shadow(-2px 0 0 #3d2308) drop-shadow(0 2px 0 #3d2308) drop-shadow(0 -2px 0 #3d2308) drop-shadow(0 0 10px #ffd75e)}
.grr-g span{display:flex;flex-direction:column;align-items:flex-start;font-size:15px;font-weight:900;letter-spacing:2px;color:#fff}
.grr-g small{font-size:13px;letter-spacing:1px;color:#e8dcc0}
.grr-line{font-size:13px;font-weight:800;color:#e8dcc0}
.grr-line b{color:#8ef07a}
.grr-line em,.grt-info em{margin-left:6px;padding:1px 6px;font-style:normal;font-size:11px;font-weight:900;color:#3d2308;background:linear-gradient(#fff3c4,#ffca4a);border:2px solid #000}
.grr-ins{display:flex;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:800;color:#c9cdd6;background:#ffffff12;border:2px solid #ffffff30}
.grr-ins .pxi{width:20px;height:20px}
.grr-ins.pay{color:#fff;background:#c2372f;border-color:#ff9a8a;animation:gp-pop .35s ease .3s both}
.grr-ins.pay b{margin-right:6px;color:#ffe9a8}
.grr-btns{display:flex;gap:10px;min-height:48px}
.gr-conf{position:absolute;left:50%;top:38%;z-index:7;width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--c);pointer-events:none;animation:gr-conf 1.4s cubic-bezier(.2,.7,.4,1) both}
@keyframes gr-conf{0%{transform:none;opacity:1}55%{transform:translate(var(--dx),var(--dy)) rotate(calc(var(--r) * .6));opacity:1}100%{transform:translate(var(--dx),calc(var(--dy) + 110px)) rotate(var(--r));opacity:0}}
/* 全部開箱 */
.gra{display:flex;flex-direction:column;align-items:center;gap:10px;width:900px}
.gra-row{display:flex;justify-content:center;gap:18px;padding:18px 10px 24px}
.gra-cell{position:relative;padding:6px;border:3px solid #0000;animation:gp-pop .4s ease both}
.gra-cell.hi{border-color:#ffd75e;box-shadow:0 0 18px #ffd75e88}
.gra-cell.lo{filter:saturate(.7)}
.gra-sum{display:flex;gap:14px;font-size:13.5px;font-weight:900;color:#e8dcc0}
.gra-sum b{color:#ffd75c}
.gra-sum .pay{color:#ff9a8a}
/* 發現（天賦三選一／四選一） */
.grdr{display:flex;flex-direction:column;align-items:center;gap:8px;width:820px}
.grdr h3 .pxi{animation:grd-badge 1s ease-in-out infinite}
.grdr.au h3{color:#ffd75e}
.grdr-cards{display:flex;gap:14px;margin-top:8px;perspective:900px}
.grdr-card{width:190px;height:236px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 10px 10px;cursor:pointer;font-family:inherit;text-align:center;
  color:#1d1a2e;background:linear-gradient(#fffdf5,#f1e3c0);border:4px solid #000;box-shadow:inset 3px 3px 0 #fff,inset -3px -3px 0 #d2bb85,0 0 0 3px var(--cc),0 8px 0 #000a;
  animation:grdr-in .5s cubic-bezier(.2,1.3,.4,1) var(--d) both;transition:transform .15s,box-shadow .15s}
.grdr-cards.n4 .grdr-card{width:168px}
@keyframes grdr-in{from{opacity:0;transform:rotateY(90deg) translateY(20px)}}
.grdr-card:hover{transform:translateY(-8px);box-shadow:inset 3px 3px 0 #fff,inset -3px -3px 0 #d2bb85,0 0 0 3px #ffd75e,0 0 22px #ffd75e88,0 14px 0 #000a}
.grdr-card.t2{background:linear-gradient(#f4f8ff,#d6e4fb)}
.grdr-card.t3{background:linear-gradient(#fffbe6,#ffe8a8)}
.grdr-card.t4{background:linear-gradient(#2a2a2e,#050507);color:#fff}
.grdr-card.t4 b,.grdr-card.t4 span{color:#ffe9a0}
.grdr.au .grdr-card{background:linear-gradient(135deg,#fff0f6,#fff8d6,#e8f6ff)}
.grdr-ic{width:72px;height:72px;display:grid;place-items:center;background:radial-gradient(circle,#fff6d0,#ffd98a 60%,#e0a020);border:3px solid #000;box-shadow:inset 3px 3px 0 #fff8,inset -3px -3px 0 #a9761a}
.grdr-ic .pxi{width:46px;height:46px;filter:drop-shadow(0 3px 0 #0005)}
.grdr-card b{font-size:17px;font-weight:900;color:#3d2308}
.grdr-card em{font-style:normal;font-size:13px;font-weight:900;color:#e0932b;letter-spacing:2px}
.grdr-card span{font-size:11.5px;font-weight:800;line-height:1.5;color:#6b4a1e}
.grdr.done .grdr-card:not(.pick){opacity:.25;transform:scale(.92);filter:grayscale(1)}
.grdr-card.pick{transform:translateY(-12px) scale(1.06);box-shadow:inset 3px 3px 0 #fff,0 0 0 4px #ffd75e,0 0 30px #ffd75e,0 14px 0 #000a}
.grdr-foot{display:flex;gap:10px;margin-top:10px}
.grdr-foot .px-btn{padding:6px 14px;font-size:13px}
/* 拆殼、驗貨 */
.grc{display:flex;flex-direction:column;align-items:center;gap:6px;width:600px}
.grc-stage{position:relative;width:300px;height:232px;display:grid;place-items:center;
  background:radial-gradient(50% 55% at 50% 45%,color-mix(in srgb,var(--cc),#fff 70%) 0,#0000 70%),linear-gradient(#2c3442,#1c222c);border:4px solid #000;box-shadow:inset 0 3px 10px #000a}
.grc-stage .grr-stamp{top:46%;font-size:26px}
.grc-tools{display:flex;gap:8px}
.grc-tool{width:140px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;cursor:pointer;font-family:inherit;
  --f1:#e8e8e8;--f2:#c6c6c6;--hi:#fafafa;--lo:#8a8a8a;background:linear-gradient(var(--f1),var(--f2));border:3px solid #000;box-shadow:inset 2px 2px 0 var(--hi),inset -2px -2px 0 var(--lo),0 3px 0 #0006}
.grc-tool .pxi{width:30px;height:30px}
.grc-tool b{font-size:13px;font-weight:900;color:#1c1c1c}
.grc-tool small{font-size:10.5px;font-weight:800;color:#3a3a3a}
.grc-tool small em{font-style:normal;color:#c2372f}
.grc-tool.on{--f1:#ffd98a;--f2:#f0b429;--hi:#fff3c4;--lo:#a9761a;transform:translateY(-3px)}
.grc-tool.off{filter:grayscale(1) brightness(.7);cursor:not-allowed}
.grc-msg{min-height:20px;font-size:12.5px;font-weight:800;color:#ffd0a0;text-align:center;line-height:1.5}
.grc-msg b{color:#fff}
.grc-btns{display:flex;gap:10px}
/* 黑市合卡 */
.grt{display:flex;flex-direction:column;align-items:center;gap:8px;width:600px}
.grt-stage{position:relative;width:520px;height:260px;border:4px solid #000;overflow:hidden;background:radial-gradient(50% 50% at 50% 50%,#ff4aa833,#0000 70%),repeating-linear-gradient(0deg,#1a1624 0 22px,#141020 22px 24px)}
.grt-in{position:absolute;left:50%;top:50%}
.grt-in .gslab{position:absolute;left:-43px;top:-76px;transform:translateX(calc(var(--i) * 100px)) rotate(calc(var(--i) * 5deg));transition:transform .8s cubic-bezier(.5,0,.7,.4),opacity .8s}
.grt.merge .grt-in .gslab{transform:translateX(0) rotate(0) scale(.5);opacity:0}
.grt-out{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.2);opacity:0}
.grt.reveal .grt-out{animation:grt-out .6s cubic-bezier(.2,1.5,.4,1) forwards}
@keyframes grt-out{to{transform:translate(-50%,-50%) scale(1);opacity:1}}
.grt-flash{position:absolute;inset:0;background:radial-gradient(circle,#fff,#ff4aa8 40%,#0000 70%);opacity:0;pointer-events:none}
.grt.reveal .grt-flash{animation:grt-flash .6s ease}
@keyframes grt-flash{20%{opacity:1}100%{opacity:0}}
.grt-info{min-height:24px;font-size:13px;font-weight:800;color:#e8dcf8;text-align:center}
.grt-info b{color:#fff}
.grt-btns{display:flex;gap:10px;min-height:48px}

/* ---------- 減少特效 ---------- */
body.fx-lite .grr-rays,body.fx-lite .pk-row.done,body.fx-lite .gsl-auto,body.fx-lite .gslab.co-iron::before,body.fx-lite .co-iron.bl,body.fx-lite .gslab.co-iron .gsl-shine{animation:none !important}
body.fx-lite .gr-conf{display:none}
body.fx-lite .wk-mid.on .pxi,body.fx-lite .wk-spark{animation:none}

/* =========================================================
   v9.3：對話框的大頭照、合卡規則、黑市一鍵收購、送件的 +值提醒
   ========================================================= */
.gc-talk-face{position:absolute;left:14px;top:50%;width:60px;height:60px;margin-top:-30px;image-rendering:pixelated;border:3px solid #1d1a2e;background:#fff6dd;box-shadow:0 2px 0 #0004}
.gc-talk:not(.face) .gc-talk-face{display:none}
.gc-talk.face{padding-left:94px}
.pc-f.off,.pc-f:disabled{opacity:.38;cursor:not-allowed;filter:grayscale(.6)}
.bk-rule{margin:2px 0 0;font-size:10.5px;font-weight:800;line-height:1.45;color:#b9a8d6}
.bk-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.bk-bulk .px-btn{display:flex;align-items:center;gap:4px;padding:5px 10px;font-size:12px;border-width:3px}
.bk-bulk .px-btn .pxi{width:15px;height:15px}
.bk-bulk small{font-size:10.5px;font-weight:800;color:#8a7aa8}
.co-sum small.co-plus{color:#ffb86a}
