/* =========================================================
   v9.6：上線前的一輪（功能照章節解鎖、真型態、玩家名片、表情輪盤…）的共用樣式
   載在最後（online.css 後面）
   ========================================================= */

/* ---------- 照章節解鎖：還沒開放的鈕（瑟琴大廳、卡片工坊、養成機、大廳快捷列的櫃台／工坊） ---------- */
.base-grade.locked,#base-workshop.locked,.base-vpet.locked{filter:grayscale(.85) brightness(.72);cursor:not-allowed}
.base-grade.locked .grade-badge,#base-workshop.locked .work-badge{display:none}
.base-vpet.locked .bv-lcd{opacity:.25}
.base-vpet.locked .bv-tag{background:#3a3f4c;color:#e8e8ef}
.gc-q.locked{filter:grayscale(1) brightness(.7);opacity:.75}
.gc-q.locked::after{content:"";position:absolute;right:3px;top:3px;width:12px;height:14px;pointer-events:none;
  background:linear-gradient(#1c1c1c,#1c1c1c) 2px 6px/8px 7px no-repeat,
    radial-gradient(circle at 50% 100%,transparent 2.5px,#1c1c1c 2.6px,#1c1c1c 4px,transparent 4.1px) 1px 0/10px 8px no-repeat}

/* ---------- 卡片工坊：花耖幣換一批應徵者 ---------- */
.wk-reroll{display:flex;align-items:center;gap:10px;margin-top:8px}
.wk-reroll .px-btn{padding:6px 14px}
.wk-reroll .pxi{width:16px;height:16px;vertical-align:-3px}
.wk-reroll small{font-size:11px;font-weight:800;color:#8a5a12}

/* ---------- 劇情回顧：跟著進度（沒打到的鎖著） ---------- */
.sl-tab.locked{opacity:.5;cursor:not-allowed}
.sl-tab .pxi{width:14px;height:14px;vertical-align:-2px;margin-right:4px}
.sl-row.locked{opacity:.55}
.sl-row.locked .sl-desc{font-style:italic}
.sl-row.cur{box-shadow:inset 4px 0 0 #ffd75e;background:#fff3c422}
.sl-new{margin-left:6px;padding:0 6px;font-style:normal;font-size:10.5px;font-weight:900;color:#3d2308;background:#ffd75e;border:2px solid #000;vertical-align:1px}
.sl-lock{display:inline-flex;align-items:center;gap:3px;opacity:.75}
.sl-lock .pxi{width:13px;height:13px}

/* ---------- 名片（玩家證）：底色、稱號、自我介紹、展示的鑑定卡、市價標籤 ---------- */
.th-gold,.nt-lic{--lb1:#fff8dc;--lb2:#f7e3a8;--lring:#ffd75e;--lt1:#8a5423;--lt2:#6f4420;--lt3:#a06a33;--link:#3d2308;--lsub:#8a5a12;--lbox:#fffdf5}
.th-night{--lb1:#2e3b6e;--lb2:#141a3a;--lring:#7a9cff;--lt1:#27356e;--lt2:#1b2552;--lt3:#34468a;--link:#f2f5ff;--lsub:#a9b8ff;--lbox:#222c58}
.th-sakura{--lb1:#fff0f5;--lb2:#ffc4d8;--lring:#ff8ab0;--lt1:#d85a88;--lt2:#b8406c;--lt3:#e8779f;--link:#5a1a36;--lsub:#b0406a;--lbox:#fff7fa}
.th-mint{--lb1:#effff6;--lb2:#b8eed0;--lring:#5fd39a;--lt1:#2f9a68;--lt2:#237a52;--lt3:#3fb57d;--link:#123d2a;--lsub:#2a7a52;--lbox:#f7fffb}
.th-ruby{--lb1:#ffe9e6;--lb2:#ffb0a4;--lring:#e0392b;--lt1:#a8231a;--lt2:#861a13;--lt3:#c83226;--link:#4a0f0a;--lsub:#a8231a;--lbox:#fff6f4}
.th-black{--lb1:#3d3731;--lb2:#141210;--lring:#d9a520;--lt1:#1d1a17;--lt2:#0f0d0b;--lt3:#2a2520;--link:#ffd75e;--lsub:#d6b06a;--lbox:#2a2521}
.nt-lic{background:linear-gradient(135deg,var(--lb1),var(--lb2));box-shadow:0 5px 0 #0005,inset 0 0 0 3px var(--lring)}
.nt-lic .nt-lic-top{background:repeating-linear-gradient(92deg,var(--lt1) 0 7px,var(--lt2) 7px 11px,var(--lt3) 11px 15px)}
.nt-lic .nt-lic-name,.nt-lic .nt-lic-stats b{color:var(--link)}
.nt-lic .nt-lic-info>small,.nt-lic .nt-lic-stats small,.nt-lic .nt-lic-sub small,.nt-lic .nt-lic-inv{color:var(--lsub)}
.nt-lic .nt-lic-stats span{background:var(--lbox)}
.nt-lic-title{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;padding:1px 8px 1px 5px;font-style:normal;font-size:11.5px;font-weight:900;color:#3d2308;
  background:linear-gradient(#fff1b8,#f0b429);border:2px solid #000;box-shadow:0 2px 0 #0004}
.nt-lic-title .pxi{width:14px;height:14px}
.nt-lic-bio{display:block;margin:3px 0 0;padding:4px 8px;font-size:12px;font-weight:800;line-height:1.45;color:var(--link);background:#ffffff5c;border-left:4px solid var(--lring);quotes:none;word-break:break-all}
.nt-lic-bio::before,.nt-lic-bio::after{content:none}
.nt-lic-bio.empty{opacity:.55;font-style:italic}
.nt-show{margin:0 14px 10px;padding:5px 8px 8px;background:#00000010;border:2px dashed var(--lsub)}
.nt-show.empty{padding:6px 8px}
.nt-show-h{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:900;color:var(--lsub)}
.nt-show-h .pxi{width:14px;height:14px}
.nt-show-row{display:flex;gap:12px;margin-top:4px;flex-wrap:wrap}
.nt-show-it{display:flex;flex-direction:column;align-items:center;gap:3px}
.nt-show-sl .gslab{zoom:.55}
.nt-show-it .px-btn{padding:2px 10px;font-size:12px}
.nt-show-it .px-btn .pxi{width:14px;height:14px;vertical-align:-2px}
.nt-mv{display:inline-flex;align-items:center;gap:2px;padding:0 5px;font-style:normal;font-size:10.5px;font-weight:900;line-height:16px;color:#0f4a2a;background:#c9f7dc;border:2px solid #000;font-variant-numeric:tabular-nums;white-space:nowrap}
.nt-mv .pxi{width:12px;height:12px}
.nt-sl .nt-mv,.nt-tslab .nt-mv{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);z-index:2;pointer-events:none}
.nt-tslab{position:relative;display:inline-block;margin-bottom:6px}
.nt-slabs{row-gap:10px}
.nt-lic-foot{padding:0 14px 12px;margin:0}
.nt-lic-foot small{font-size:11px;font-weight:800;color:var(--lsub)}
.nt-lic-card .nt-lic-inv{margin:0;padding:0 14px 6px}
.gp.nt-small{max-height:min(620px,94%)}
.gp.nt-small .gp-body{overflow-y:auto}
.nt-me .nt-lic{overflow-y:auto}
.nt-ftitle{margin-left:6px;padding:0 5px;font-style:normal;font-size:10px;font-weight:900;color:#3d2308;background:#ffe89a;border:1.5px solid #000;vertical-align:1px}
.nt-st.offer{background:#1f9a5a}

/* ---------- 編輯名片 ---------- */
.nt-edit{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:10px}
.nt-ecol{min-height:0;display:flex;flex-direction:column;gap:6px}
.nt-eprev{overflow-y:auto;padding:2px}
.nt-eform{overflow-y:auto;padding:6px 8px 10px;background:#fff8e6;border:3px solid #000}
.nt-eform>*{flex-shrink:0}   /* v9.11 使用者：「滑不到最下面去」—— 右欄是 flex 直排，展示鑑定卡那一格（自己會捲）被壓扁成 10px，捲到底也看不到 */
#nt-ebio{flex:none}
.nt-ttls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.nt-ttl{display:flex;flex-direction:column;align-items:flex-start;padding:3px 7px;cursor:pointer;font-family:inherit;text-align:left;background:#fff;border:2px solid #000}
.nt-ttl b{font-size:12px;font-weight:900;color:#3d2308}
.nt-ttl small{font-size:9.5px;font-weight:800;color:#8a5a12}
.nt-ttl.on{background:linear-gradient(#fff1b8,#f0b429);box-shadow:0 0 0 2px #ffd75e}
.nt-ttl.locked{opacity:.45;cursor:not-allowed}
.nt-ttl .pxi{width:11px;height:11px;vertical-align:-1px;margin-right:2px}
.nt-sws{display:flex;gap:6px;flex-wrap:wrap}
.nt-sw{display:flex;flex-direction:column;align-items:center;gap:2px;padding:3px 4px;cursor:pointer;font-family:inherit;background:none;border:2px solid transparent}
.nt-sw i{width:46px;height:28px;border:2px solid #000;border-radius:5px;background:linear-gradient(135deg,var(--lb1),var(--lb2));box-shadow:inset 0 0 0 2px var(--lring)}
.nt-sw small{font-size:10px;font-weight:900;color:#3d2308}
.nt-sw.on{border-color:#000;background:#fff3c4}
.nt-epick{padding:2px 2px 8px}   /* v9.11 拿掉自己的捲軸：外層右欄捲到底就看得到全部，不用捲兩層 */
.nt-efoot{flex:0 0 auto !important;display:flex;justify-content:flex-end;gap:8px}

/* ---------- 綠寶石出價 ---------- */
.nt-offer{flex:1;min-height:0;display:flex;gap:6px;align-items:stretch}
.nt-offer .nt-arrow .pxi{width:26px;height:26px}
.nt-ocol{gap:8px}
.nt-opick{display:flex;gap:10px;align-items:center;padding:6px 8px;background:#fff;border:2px solid #000}
.nt-opsl .gslab{zoom:.7}
.nt-opcard{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 12px;background:#fff3c4;border:2px solid #000}
.nt-opcard .pxi{width:34px;height:34px}
.nt-opcard small{font-size:10px;font-weight:900;color:#8a5a12}
.nt-oinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.nt-oinfo>b{font-size:13.5px;font-weight:900;color:#3d2308}
.nt-oinfo small{font-size:10.5px;font-weight:800;color:#8a5a12}
.nt-omv{margin:0;display:flex;align-items:center;gap:4px;font-size:15px;font-weight:900;color:#0f6a3a}
.nt-omv .pxi{width:18px;height:18px}
.nt-oqty{display:flex;align-items:center;gap:6px;margin-top:4px}
.nt-oamt{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.nt-oamt>small{font-size:12.5px;font-weight:900;color:#3d2308}
.nt-oin{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;background:#fff;border:3px solid #000}
.nt-oin .pxi{width:18px;height:18px}
.nt-oin input{width:100px;padding:0;border:0;outline:0;font-family:inherit;font-size:18px;font-weight:900;color:#0f6a3a;background:transparent;text-align:right}
.nt-oquick{display:flex;gap:4px;flex-wrap:wrap}
.nt-ohave{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:12px;font-weight:800;color:#3d2308}
.nt-ohave .pxi{width:15px;height:15px}
.nt-ohave .bad{color:#d8303f}.nt-ohave .up{color:#d8303f}.nt-ohave .dn{color:#1f8a4c}
.nt-oit{cursor:pointer;text-align:left;font-family:inherit;width:100%}
.nt-onote{display:flex;gap:5px;align-items:center;font-size:11px;font-weight:800;line-height:1.35;color:#6b4a1e}
.nt-onote .pxi{flex:0 0 auto;width:14px;height:14px}
.nt-hbtn{margin-left:auto;display:inline-flex;align-items:center;gap:3px;padding:1px 8px;cursor:pointer;font-family:inherit;font-size:11px;font-weight:900;color:#0f4a2a;background:#c9f7dc;border:2px solid #000;box-shadow:0 2px 0 #0004}
.nt-hbtn .pxi{width:13px;height:13px}
.nt-hbtn:hover{background:#a8f0c6}
.nt-omv2{margin:0;align-self:center;display:flex;align-items:center;gap:5px;padding:4px 12px;font-size:12.5px;font-weight:900;color:#0f4a2a;background:#dff9ea;border:2px solid #000}
.nt-omv2 .pxi{width:16px;height:16px}

/* ---------- 大廳：表情／聊天按鈕、聊天紀錄（像 Minecraft）、打字框、表情輪盤 ---------- */
.gc-social{position:absolute;left:8px;bottom:46px;z-index:3;display:flex;gap:5px}
.gc-sb{display:flex;align-items:center;gap:4px;padding:3px 8px;cursor:pointer;font-family:inherit;font-size:11.5px;font-weight:900;color:#fff6dd;background:#1d1a2ee6;border:2px solid #000;box-shadow:0 2px 0 #0006}
.gc-sb .pxi{width:14px;height:14px}
.gc-sb kbd{padding:0 4px;font-family:inherit;font-size:10px;line-height:14px;color:#1d1a2e;background:#ffd75e;border:1.5px solid #000}
.gc-sb:hover{background:#3a3560}
.gc-chatlog{position:absolute;left:8px;bottom:78px;z-index:3;width:min(390px,62%);max-height:170px;overflow:hidden;display:flex;flex-direction:column;pointer-events:none}
.gc-chatlog.open{overflow-y:auto;pointer-events:auto;background:#00000040}
.gcl{margin:0;padding:1px 7px;font-size:12.5px;font-weight:800;line-height:1.45;color:#fff;background:#00000066;text-shadow:1px 1px 0 #3f3f3f;word-break:break-all;animation:gcl-fade 12s linear forwards}
.gcl b{margin-right:6px;color:#fff}
.gcl b::before{content:'<'}.gcl b::after{content:'>'}
.gcl.me b{color:#ffd75e}
.gcl.sys{color:#ffff55;text-shadow:1px 1px 0 #3f3f15}
.gc-chatlog.open .gcl{animation:none;opacity:1}
@keyframes gcl-fade{0%,85%{opacity:1}100%{opacity:0}}
.gc-chatbox{position:absolute;left:8px;bottom:44px;z-index:4;width:min(390px,62%);display:flex}
.gc-chatbox.hidden{display:none}
.gc-chatbox input{flex:1;min-width:0;padding:6px 9px;font-family:inherit;font-size:14px;font-weight:800;color:#fff;background:#000000c0;border:2px solid #ffd75e;outline:0}
.gc-chatbox input::placeholder{color:#fff9}
.gc-wheel{position:absolute;inset:0;z-index:7;display:grid;place-items:center;background:radial-gradient(circle,#0000 0 150px,#0007 330px)}
.gc-wheel.hidden{display:none}
.gw-ring{position:relative;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,#1d1a2ef0 0 64px,#1d1a2e8c 65px 160px,transparent 161px);animation:gw-pop .12s ease-out}
@keyframes gw-pop{from{transform:scale(.7);opacity:0}to{transform:none;opacity:1}}
.gw-it{position:absolute;width:62px;height:62px;margin:-31px 0 0 -31px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;color:#3d2308;
  background:#fff;border:3px solid #000;border-radius:12px;box-shadow:0 3px 0 #0006;transition:transform .08s}
.gw-it b{font-size:20px;font-weight:900;line-height:1.05}
.gw-it small{font-size:9.5px;font-weight:900;color:#6b4a1e}
.gw-it .pxi{width:24px;height:24px}
.gw-it kbd{position:absolute;right:-7px;top:-8px;min-width:15px;padding:0 3px;font-family:inherit;font-size:9.5px;font-weight:900;line-height:14px;color:#1d1a2e;background:#ffd75e;border:1.5px solid #000}
.gw-it.on,.gw-it:hover{transform:scale(1.18);background:#fff3c4;box-shadow:0 0 0 3px #ffd75e,0 3px 0 #0006}
.gw-it.act{background:#e3f0ff}
.gw-mid{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:118px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;color:#fff6dd;cursor:pointer}
.gw-mid b{font-size:16px;font-weight:900}
.gw-mid small{font-size:10px;font-weight:800;line-height:1.3;opacity:.8}

/* 名片太高（展示卡＋按鈕被擠到下面要捲）：展示卡改成「卡＋右邊的市價／出價」、頭像小一點 */
.nt-show-it{display:grid;grid-template-columns:auto auto;align-content:center;align-items:center;justify-items:start;column-gap:6px;row-gap:5px}
.nt-show-sl{grid-row:1 / span 2}
.nt-show-sl .gslab{zoom:.5}
.nt-show-row{gap:14px}
.nt-lic-card .nt-face.huge,.nt-lic-prev .nt-face.huge{width:108px;height:108px}
.nt-lic-card .nt-lic-body{padding:10px 14px 6px;gap:12px}
.nt-lic-card .nt-lic-stats{margin-top:4px}
.nt-lic-card .nt-lic-stats b{font-size:16px}
.gp.nt-small{width:600px}

/* 修：基地「好友」的紅點以前沒有樣式 —— 有人提出交易／邀請時數字直接掉進按鈕文字下面（看起來像 UI 卡住） */
.net-badge{position:absolute;top:-4px;right:-4px;z-index:2;min-width:18px;height:18px;line-height:18px;padding:0 4px;border-radius:9px;
  background:#e0392b;color:#fff;font-size:11px;font-weight:900;font-style:normal;text-align:center;box-shadow:0 1px 3px #0006;animation:net-badge-pop .5s ease-out}
.net-badge.hidden{display:none}
@keyframes net-badge-pop{0%{transform:scale(.3)}60%{transform:scale(1.25)}100%{transform:none}}
.nt-obig{display:flex;align-items:center;gap:8px;align-self:flex-start;margin:6px 4px;padding:8px 16px;background:linear-gradient(#eafff2,#c9f7dc);border:3px solid #000;box-shadow:0 4px 0 #0004}
.nt-obig .pxi{width:34px;height:34px}
.nt-obig b{font-size:30px;font-weight:900;color:#0f6a3a;font-variant-numeric:tabular-nums;text-shadow:0 2px 0 #fff}
.nt-obig small{font-size:12px;font-weight:900;color:#2a7a52;align-self:flex-end;margin-bottom:5px}

/* 大廳左下：操作說明拿掉了 → 「表情／聊天／大廳 N 人」貼在最下面；輪盤半徑加大（數字標籤不會被隔壁蓋到） */
.gc-hint{display:none !important}
.gc-social{bottom:8px}
/* v9.11 使用者：「打字的話……字幕的背景覆蓋到按鈕上」—— 聊天紀錄／打字框原本寬 390px，蓋到右下櫃台面板（從 x≈309 開始）的 PY、ADZL，
   打字框（bottom:6px）還壓在「表情／聊天」上 → 都縮到 292px（櫃台面板左邊）；打字框放在表情／聊天那一排上面，打開時紀錄再往上讓位 */
.gc-chatlog{bottom:40px;width:292px}
.gc-chatlog.open{bottom:76px}
.gc-chatbox{bottom:40px;width:292px}
.gc-sb.who{cursor:default;color:#bfffd0;background:#1f4a2ee6}
.gc-sb.who b{color:#fff;margin:0 2px}
.gc-sb.who.hidden{display:none}
.gw-ring{width:372px;height:372px;background:radial-gradient(circle,#1d1a2ef0 0 70px,#1d1a2e8c 71px 180px,transparent 181px)}
.gw-it{width:60px;height:60px;margin:-30px 0 0 -30px}
.gw-it kbd{right:-5px;top:-6px}
.gw-mid{width:128px}
.gw-mid small{font-size:10.5px}
.nt-tview.offer .nt-tslab .gslab{zoom:.9}
.gw-it kbd{z-index:3}

/* （v9.9 召喚翻面的「封印」演出拿掉了 —— 使用者：「這個『封』字很醜，就正常抽卡就好」） */
/* v9.9 說明頁的屬性字：騷逼（粉紅）、黑色 */
.hl-red{color:#d6338a}
.hl-black{color:#3a2a6a;font-weight:900}

/* =================== v9.6 進化演出（重做，ui.js playEvolution）=================== */
#evo-overlay .e2{position:absolute;inset:0;overflow:hidden;background:radial-gradient(60% 60% at 50% 42%,#2a1d3e 0%,#0d0817 62%,#030206 100%)}
.e2-fx{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
.e2-rays{position:absolute;left:50%;top:42%;width:1300px;height:1300px;margin:-650px 0 0 -650px;opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,#ffd75e3a 0deg 7deg,#ffd75e00 7deg 18deg);-webkit-mask:radial-gradient(circle,#000 8%,#0000 60%);mask:radial-gradient(circle,#000 8%,#0000 60%)}
.e2.burst .e2-rays{opacity:1;transition:opacity .4s;animation:bb-spin 16s linear infinite}
.e2-circle{position:absolute;left:50%;top:42%;width:440px;height:440px;margin:-220px 0 0 -220px;pointer-events:none;opacity:0;transform:scale(.4)}
.e2.go .e2-circle{animation:e2-circle-in .6s cubic-bezier(.2,1.2,.4,1) forwards}
.e2.burst .e2-circle{animation:e2-circle-out .6s ease-out forwards}
.e2-circle i{position:absolute;border-radius:50%}
.e2-circle .a{inset:0;border:2px solid #ffd75e88;box-shadow:0 0 18px #ffd75e55,inset 0 0 18px #ffd75e33;
  background:repeating-conic-gradient(from 0deg,#ffe9a0 0deg 1.2deg,#0000 1.2deg 10deg);-webkit-mask:radial-gradient(circle,#0000 calc(100% - 16px),#000 calc(100% - 15px));mask:radial-gradient(circle,#0000 calc(100% - 16px),#000 calc(100% - 15px));animation:bb-spin 9s linear infinite}
.e2-circle .b{inset:48px;border:2px dashed #ffe27a99;animation:bb-spin 6s linear infinite reverse}
.e2-circle .c{inset:96px;border:3px solid #ffb34766;background:repeating-conic-gradient(from 15deg,#ffb34755 0deg 3deg,#0000 3deg 30deg);animation:bb-spin 4s linear infinite}
.e2.charge .e2-circle .a{animation-duration:3s}.e2.charge .e2-circle .b{animation-duration:2s}.e2.charge .e2-circle .c{animation-duration:1.3s}
@keyframes e2-circle-in{to{opacity:1;transform:none}}
@keyframes e2-circle-out{from{opacity:1;transform:none}to{opacity:0;transform:scale(1.8)}}
.e2-stage{position:absolute;left:50%;top:42%;width:240px;height:330px;margin:-165px 0 0 -120px;z-index:3}
.e2-card,.e2-shard{position:absolute;inset:0;display:grid;place-items:center}
.e2-card .tc-holo{animation:tc-holo 2.6s ease-in-out infinite alternate}
.e2-new{opacity:0}
.e2.go .e2-old{animation:e2-old-in .35s cubic-bezier(.2,1.3,.4,1)}
.e2.charge .e2-old{animation:e2-shake 1.6s ease-in forwards}
@keyframes e2-old-in{from{transform:scale(.8);opacity:0}}
@keyframes e2-shake{0%{transform:none;filter:none}
  20%{transform:translate(1px,-1px) rotate(.4deg);filter:brightness(1.1) drop-shadow(0 0 6px #ffd75e)}
  40%{transform:translate(-2px,1px) rotate(-.6deg);filter:brightness(1.25) drop-shadow(0 0 12px #ffd75e)}
  60%{transform:translate(3px,-2px) rotate(.9deg) scale(1.02);filter:brightness(1.45) drop-shadow(0 0 18px #ffd75e)}
  80%{transform:translate(-4px,2px) rotate(-1.2deg) scale(1.03);filter:brightness(1.8) drop-shadow(0 0 26px #ffe9a0)}
  90%{transform:translate(4px,-3px) rotate(1.4deg) scale(1.04);filter:brightness(2.3) drop-shadow(0 0 32px #fff)}
  100%{transform:translate(-3px,3px) rotate(-1deg) scale(1.05);filter:brightness(2.8) drop-shadow(0 0 40px #fff)}}
.e2-cracks{position:absolute;left:50%;top:50%;z-index:2;overflow:visible;pointer-events:none;filter:drop-shadow(0 0 3px #ffd75e) drop-shadow(0 0 6px #ff9a3c)}
.e2-old .e2-cracks{width:var(--cw,236px);height:var(--ch,330px);transform:translate(-50%,-50%)}
.e2-cracks path{fill:none;stroke:#fff3c4;stroke-width:2.2;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.e2.charge .e2-cracks path{animation:e2-crack .32s ease-out var(--d) forwards}
@keyframes e2-crack{to{stroke-dashoffset:0}}
.e2-shards{position:absolute;inset:0;pointer-events:none}
.e2-shard{opacity:0}
.e2.burst .e2-old{visibility:hidden}
.e2.burst .e2-shard{opacity:1;animation:e2-shard 1s cubic-bezier(.15,.6,.35,1) forwards}
.e2.burst .e2-shard .tcard{filter:brightness(1.6) saturate(.4)}
@keyframes e2-shard{0%{transform:none;opacity:1}70%{opacity:.85}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--r)) scale(.82);opacity:0}}
.e2.burst .e2-new{opacity:1;animation:e2-new .75s cubic-bezier(.2,1.5,.35,1) .05s both;filter:drop-shadow(0 14px 18px #000a) drop-shadow(0 0 26px #ffd75ecc)}
@keyframes e2-new{0%{transform:scale(.55);filter:brightness(3) saturate(0)}60%{transform:scale(1.08)}100%{transform:none}}
.e2.burst .e2-new .tc-holo{animation:e2-holo 1.2s ease-out .3s,tc-holo 2.6s ease-in-out 1.5s infinite alternate}
@keyframes e2-holo{from{--mx:-30%;opacity:1}to{--mx:130%;opacity:1}}
.e2-flash{position:absolute;inset:0;z-index:6;background:#fff;opacity:0;pointer-events:none}
.e2.burst .e2-flash{animation:e2-flash .8s ease-out}
@keyframes e2-flash{0%{opacity:1}100%{opacity:0}}
.e2-wave{position:absolute;left:50%;top:42%;width:40px;height:40px;margin:-20px 0 0 -20px;z-index:5;border-radius:50%;border:6px solid #fff4c0;opacity:0;pointer-events:none}
.e2.burst .e2-wave{animation:e2-wave .7s ease-out}
@keyframes e2-wave{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(26);border-width:1px}}
.e2-info{position:absolute;left:50%;bottom:22px;z-index:7;width:min(620px,92%);transform:translate(-50%,24px);opacity:0;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;gap:7px;cursor:default}
.e2.info .e2-info{opacity:1;transform:translate(-50%,0);pointer-events:auto;transition:opacity .4s,transform .45s cubic-bezier(.2,1.3,.4,1)}
.e2-name{display:flex;align-items:center;gap:10px}
.e2-name b{font-size:30px;font-weight:900;letter-spacing:3px;color:#fff6dd;text-shadow:0 3px 0 #000,0 0 18px #ffd75e88}
.e2-name i{padding:2px 10px;font-style:normal;font-size:14px;font-weight:900;color:#3d2308;background:linear-gradient(#fff1b8,#f0b429);border:3px solid #000;box-shadow:0 3px 0 #0006}
.e2-stats{display:flex;gap:16px}
.e2-stats span{display:flex;align-items:center;gap:6px;padding:4px 12px;font-size:13px;font-weight:900;color:#e8d8b0;background:#000a;border:2px solid #ffd75e66;border-radius:6px}
.e2-stats .pxi{width:16px;height:16px}
.e2-stats b{font-size:16px;color:#fff6dd;font-variant-numeric:tabular-nums}
.e2-stats b.up{font-size:19px;color:#7dff8a;text-shadow:0 0 10px #3fbf4a88}
.e2-stats em{font-style:normal;color:#ffd75e}
.e2-abil{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px}
.e2-abil small{font-size:12px;font-weight:900;color:#ffd75e;margin-right:2px}
.e2-pick{display:flex;align-items:center;gap:6px}
.e2-pick small{font-size:12px;font-weight:900;color:#e8d8b0}
.e2-pick span{font-size:11px;font-weight:700;color:#b8a888}
.e2-pick button,.upx-pick button{padding:3px 14px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:900;color:#3d2308;background:#d9d2c0;border:2px solid #000;box-shadow:0 2px 0 #0006}
.e2-pick button.on,.upx-pick button.on{background:linear-gradient(#fff1b8,#f0b429);box-shadow:0 0 0 2px #ffd75e,0 2px 0 #0006}
.e2 #evo-ok{width:230px;opacity:1;pointer-events:auto}
.upx-pick{display:flex;align-items:center;gap:4px;margin-left:auto}
.upx-pick small{font-size:11px;font-weight:900;color:#8a5a12;margin-right:2px}
.upx-pick button{padding:2px 9px;font-size:12px}
.e2-old .tcard{position:relative}
.e2-old .tcard .e2-cracks{position:absolute;left:0;top:0;width:100%;height:100%;transform:none;z-index:5}
/* 結尾：資訊欄出來的時候卡片往上移、縮小一點（不然會被資訊欄蓋住下半部）；印章往右移開 +值徽章 */
.e2-stage{transition:transform .55s cubic-bezier(.2,1.2,.4,1)}
.e2.info .e2-stage{transform:translateY(-58px) scale(.78)}
.e2-info{bottom:14px;gap:5px}
.e2-name b{font-size:26px}
.e2-stats span{padding:3px 10px}
.e2 #evo-ok{margin-top:2px}
/* 升級畫面的進化區塊：右欄窄的時候文字被擠成一個字一行 → 文字至少 130px，放不下就把按鈕／卡圖選擇換到下一行 */
.upx-evo{flex-wrap:wrap;row-gap:5px}
.upx-evotxt{flex:1 1 130px}
.upx-evobtn,.upx-pick{margin-left:auto}

/* ---------- 新功能開放的公告（ui.js unlockNewsShow） ---------- */
.unlock-ov{position:absolute;inset:0;z-index:90;display:grid;place-items:center;background:#05060cc4;animation:unlock-bg .25s ease-out}
.unlock-ov.out{animation:unlock-bg .25s ease-in reverse forwards}
@keyframes unlock-bg{from{opacity:0}}
.unlock-box{position:relative;width:min(520px,90%);display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 26px 18px;text-align:center;overflow:hidden;
  background:linear-gradient(#fff8dc,#f7e3a8);border:4px solid #000;border-radius:14px;box-shadow:0 8px 0 #0008,inset 0 0 0 3px #ffd75e;animation:unlock-pop .5s cubic-bezier(.2,1.5,.35,1)}
@keyframes unlock-pop{from{transform:scale(.6) rotate(-3deg);opacity:0}}
.unlock-rays{position:absolute;left:50%;top:70px;width:520px;height:520px;margin:-260px 0 0 -260px;pointer-events:none;opacity:.55;
  background:repeating-conic-gradient(from 0deg,#ffd75e66 0deg 8deg,#ffd75e00 8deg 20deg);-webkit-mask:radial-gradient(circle,#000 8%,#0000 55%);mask:radial-gradient(circle,#000 8%,#0000 55%);animation:bb-spin 12s linear infinite}
.unlock-ic{position:relative;display:grid;place-items:center;width:84px;height:84px;background:#fff;border:4px solid #000;border-radius:18px;box-shadow:0 5px 0 #0006}
.unlock-ic .pxi{width:56px;height:56px}
.unlock-box small{position:relative;padding:1px 10px;font-size:12px;font-weight:900;letter-spacing:2px;color:#fff;background:#c8102e;border:2px solid #000}
.unlock-box b{position:relative;font-size:24px;font-weight:900;color:#3d2308}
.unlock-box p{position:relative;margin:0 0 6px;font-size:14px;font-weight:700;line-height:1.65;color:#5a3a12}
.unlock-btns{position:relative;display:flex;gap:10px}
.unlock-btns .px-btn{padding:8px 22px;font-size:15px}
.unlock-btns .pxi{width:18px;height:18px;vertical-align:-4px}
.base-vpet.hidden,#base-workshop.hidden,.base-grade.hidden{display:none !important}

/* ---------- 教學（js/tutorial.js） ---------- */
.tut-ov{position:absolute;inset:0;z-index:95;display:grid;place-items:center;background:#05060cd0;animation:unlock-bg .2s ease-out}
.tut-ov.hidden{display:none}
.tut-ov.out{animation:unlock-bg .22s ease-in reverse forwards}
.tut-box{width:min(640px,94%);display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0 0 14px;overflow:hidden;
  background:linear-gradient(#fffaf0,#f6e7c0);border:4px solid #000;border-radius:14px;box-shadow:0 8px 0 #0008,inset 0 0 0 3px #ffd75e}
.tut-box.pop{animation:unlock-pop .4s cubic-bezier(.2,1.4,.35,1)}
.tut-head{display:flex;align-items:center;gap:8px;padding:8px 12px;color:#fff8dc;border-bottom:4px solid #000;background:repeating-linear-gradient(92deg,#8a5423 0 7px,#6f4420 7px 11px,#a06a33 11px 15px)}
.tut-head .pxi{width:22px;height:22px}
.tut-head b{font-size:17px;font-weight:900;letter-spacing:2px;text-shadow:2px 2px 0 #000}
.tut-head small{margin-left:auto;padding:0 8px;font-size:12px;font-weight:900;color:#ffd75e;background:#000a;border:2px solid #ffd75e}
.tut-x{width:28px;height:28px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:900;color:#fff;background:#c8102e;border:2px solid #000}
.tut-flow{display:flex;align-items:center;justify-content:center;gap:4px;padding:0 12px}
.tf{display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 8px;min-width:64px;background:#e8dcc0;border:2px solid #000;border-radius:6px;opacity:.55}
.tf .pxi{width:22px;height:22px}
.tf small{font-size:10.5px;font-weight:900;color:#5a3a12}
.tf.done{opacity:.85;background:#d9efd2}
.tf.on{opacity:1;background:linear-gradient(#fff1b8,#f0b429);box-shadow:0 0 0 3px #ffd75e,0 3px 0 #0005;transform:translateY(-2px)}
.tf-arr{font-style:normal;font-weight:900;color:#8a5a12}
.tut-pic{margin:0 14px;min-height:118px;display:grid;place-items:center;padding:12px;background:#2a2238;border:3px solid #000;border-radius:8px;box-shadow:inset 0 0 0 2px #4a3e62}
.tp-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.tp-ic{display:grid;place-items:center;width:56px;height:56px;background:#fff;border:3px solid #000;border-radius:10px;box-shadow:0 3px 0 #0006}
.tp-ic .pxi{width:36px;height:36px}
.tp-ic.gold{background:linear-gradient(#fff1b8,#f0b429)}
.tp-ic.spin .pxi{animation:bb-spin 3s linear infinite}
.tp-ic.shake .pxi{animation:tp-shake .6s ease-in-out infinite}
@keyframes tp-shake{0%,100%{transform:none}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
.tp-arr{font-style:normal;font-size:18px;font-weight:900;color:#ffd75e}
.tp-plus{font-style:normal;font-size:18px;font-weight:900;color:#e8dcc0}
.tp-row>em{margin-left:-14px;margin-top:-34px;padding:0 5px;font-style:normal;font-size:12px;font-weight:900;color:#fff;background:#e0761a;border:2px solid #000}
.tp-txt{font-size:13px;font-weight:900;color:#fff4de}
.tp-slab{position:relative;display:flex;flex-direction:column;align-items:center;width:52px;height:74px;padding-top:4px;background:linear-gradient(#e8f4fb,#b8d8ea);border:3px solid #000;border-radius:5px;box-shadow:0 3px 0 #0006}
.tp-slab b{font-size:10px;font-weight:900;color:#c8102e}
.tp-slab i{position:absolute;right:3px;top:3px;font-style:normal;font-size:11px;font-weight:900;color:#3d2308}
.tp-slab .pxi{width:34px;height:34px;margin-top:4px}
.tp-slab.big{transform:scale(1.15)}
.tp-co{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 10px;background:var(--cc);border:3px solid #000;border-radius:8px;box-shadow:0 3px 0 #0006}
.tp-co b{font-size:18px;font-weight:900;color:#fff;text-shadow:0 2px 0 #0008;font-family:"Arial Black",inherit}
.tp-co small{font-size:10.5px;font-weight:900;color:#fff8;}
.tp-pick{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;background:#fff;border:3px solid #000;border-radius:8px}
.tp-pick .pxi{width:28px;height:28px}
.tp-pick small{font-size:10.5px;font-weight:900;color:#5a3a12}
.tp-bar{width:150px;height:14px;background:#000;border:2px solid #e8dcc0;border-radius:7px;overflow:hidden}
.tp-bar i{display:block;height:100%;width:62%;background:linear-gradient(90deg,#3fbf4a,#ffd75e)}
.tp-q{position:relative;display:flex;flex-direction:column;align-items:center;padding:6px 8px;background:#fff;border:3px solid #000;border-radius:8px}
.tp-q .pxi{width:28px;height:28px}.tp-q small{font-size:10.5px;font-weight:900;color:#5a3a12}
.tp-q em{position:absolute;right:-8px;top:-8px;min-width:18px;height:18px;line-height:18px;font-style:normal;font-size:11px;font-weight:900;color:#fff;text-align:center;background:#e0392b;border-radius:9px}
.tp-tal{display:flex;flex-direction:column;align-items:center;gap:2px;margin-left:10px}
.tp-tal .pxi{width:30px;height:30px;animation:tp-shake 1s ease-in-out infinite}
.tp-tal small{font-size:11px;font-weight:900;color:#ffd75e}
.tp-card{position:relative;display:grid;place-items:center;width:52px;height:70px;background:#fff;border:3px solid #000;border-radius:6px}
.tp-card .pxi{width:34px;height:34px}
.tp-card em{position:absolute;bottom:-9px;padding:0 4px;font-style:normal;font-size:9.5px;font-weight:900;color:#fff;background:#3f9c48;border:2px solid #000;white-space:nowrap}
.tp-gem{display:flex;align-items:center;gap:4px;padding:6px 12px;background:linear-gradient(#eafff2,#c9f7dc);border:3px solid #000;border-radius:8px}
.tp-gem .pxi{width:26px;height:26px}.tp-gem b{font-size:20px;font-weight:900;color:#0f6a3a}
.tp-vpet{position:relative;width:70px;height:60px;background:linear-gradient(#9aa0aa,#6e747e);border:3px solid #000;border-radius:10px}
.tp-vpet .lcd{position:absolute;left:9px;top:8px;width:46px;height:28px;background:#b8c890;border:2px solid #000}
.tp-vpet .keys{position:absolute;left:14px;bottom:5px;width:36px;height:8px;background:radial-gradient(circle at 6px 4px,#c8102e 3px,#0000 3.5px),radial-gradient(circle at 18px 4px,#ffd75e 3px,#0000 3.5px),radial-gradient(circle at 30px 4px,#2a78b0 3px,#0000 3.5px)}
.tp-evo{gap:4px}
.tp-stage{display:grid;place-items:center;width:44px;height:44px;background:#b8c890;border:3px solid #000;border-radius:8px;transform:scale(calc(.75 + var(--i) * .07))}
.tp-stage b{font-size:11px;font-weight:900;color:#1d2a10}
.tut-title{margin:0 16px;font-size:20px;font-weight:900;color:#3d2308}
.tut-text{margin:0 16px;font-size:14px;font-weight:700;line-height:1.75;color:#4a3214;min-height:72px}
.tut-text b{color:#c8102e}
.tut-foot{display:flex;align-items:center;gap:8px;padding:0 16px}
.tut-dots{display:flex;gap:5px;margin-right:auto}
.tut-dots i{width:10px;height:10px;background:#d9c8a0;border:2px solid #000;border-radius:50%}
.tut-dots i.on{background:#f0b429}
.tut-foot .px-btn{padding:7px 18px;font-size:14px}
.gc-tutbtn{margin-left:auto;margin-right:8px;padding:5px 12px;font-size:13px}
.gc-tutbtn .pxi,.vp-tutbtn .pxi,.hlp-tut .pxi{width:16px;height:16px;vertical-align:-3px;margin-right:3px}
.gc-tutbtn.hidden{display:none}
.vp-tutbtn{position:absolute;left:12px;top:12px;z-index:5;padding:5px 12px;font-size:13px}
.hlp-tut{float:right;margin:0 0 8px 10px;padding:6px 14px;font-size:13px}

/* ---------- 1 of 1：交易裡的樣子 ---------- */
.nt-one{display:flex;align-items:center;gap:8px;width:100%;margin-bottom:6px;padding:6px 10px;cursor:pointer;font-family:inherit;text-align:left;
  background:linear-gradient(135deg,#2a1d3e,#5a2a8a 55%,#2a1d3e);border:3px solid #000;border-radius:8px;box-shadow:inset 0 0 0 2px #ffd75e,0 3px 0 #0005}
.nt-one .pxi{width:26px;height:26px;flex:0 0 auto}
.nt-one b{flex:1;font-size:12.5px;font-weight:900;color:#ffe9a8}
.nt-one small{padding:0 6px;font-size:10px;font-weight:900;color:#3d2308;background:linear-gradient(#fff1b8,#f0b429);border:2px solid #000}
.nt-one.on{box-shadow:inset 0 0 0 2px #ffd75e,0 0 0 3px #7dff8a,0 3px 0 #0005}
.nt-chip.one{color:#ffe9a8;background:linear-gradient(135deg,#2a1d3e,#5a2a8a);border-color:#ffd75e}
.nt-opcard.one{background:linear-gradient(135deg,#2a1d3e,#5a2a8a)}
.nt-opcard.one small{color:#ffe9a8}
.nt-omv.one{color:#8b47cf}
.nt-lic-one{margin:0 14px 6px;display:flex;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:900;color:#ffe9a8;
  background:linear-gradient(135deg,#2a1d3e,#5a2a8a);border:2px solid #000;border-radius:6px;box-shadow:inset 0 0 0 2px #ffd75e}
.nt-lic-one .pxi{width:18px;height:18px}

/* ---------- 成就（js/achieve.js） ---------- */
#ach-ov{position:absolute;inset:0;z-index:85;display:flex;align-items:center;justify-content:center;background:#05060ccc;backdrop-filter:blur(2px)}
#ach-ov.hidden{display:none}
.gp-ach .gp-body{flex-direction:column;gap:8px}
.ach-badge{position:absolute;top:-4px;right:-4px;z-index:2;min-width:18px;height:18px;line-height:18px;padding:0 4px;border-radius:9px;
  background:#e0392b;color:#fff;font-size:11px;font-weight:900;font-style:normal;text-align:center;box-shadow:0 1px 3px #0006;animation:net-badge-pop .5s ease-out}
.ach-badge.hidden{display:none}
.ach-top{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.ach-total{flex:1;height:14px;background:#2a2238;border:3px solid #000;border-radius:8px;overflow:hidden}
.ach-total i{display:block;height:100%;background:linear-gradient(90deg,#ffd75e,#f0b429);box-shadow:inset 0 2px 0 #fff6}
.ach-top .px-btn{padding:6px 14px}
.ach-top .pxi{width:16px;height:16px;vertical-align:-3px}
.ach-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-right:2px}
.ach-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto 86px;align-items:center;gap:10px;padding:6px 10px;background:#fff;border:3px solid #000;border-radius:8px;box-shadow:0 3px 0 #0003}
.ach-row.done{background:linear-gradient(90deg,#fff8d6,#ffe9a0);box-shadow:0 0 0 2px #ffd75e,0 3px 0 #0003}
.ach-row.got{background:#eef3e6;opacity:.82}
.ach-ic{display:grid;place-items:center;width:46px;height:46px;background:#2a2238;border:2px solid #000;border-radius:8px}
.ach-ic .pxi{width:30px;height:30px}
.ach-row.todo .ach-ic .pxi{filter:grayscale(.7) brightness(.85)}
.ach-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.ach-main b{font-size:14px;font-weight:900;color:#3d2308}
.ach-main small{font-size:11px;font-weight:800;color:#8a5a12}
.ach-bar{position:relative;height:13px;margin-top:2px;background:#e8dcc0;border:2px solid #000;border-radius:7px;overflow:hidden}
.ach-bar i{display:block;height:100%;background:linear-gradient(90deg,#3fbf4a,#7dff8a)}
.ach-row.got .ach-bar i{background:#9aa3b2}
.ach-bar em{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:9.5px;font-weight:900;color:#1d1a2e;text-shadow:0 1px 0 #fff8}
.ach-rws{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:170px}
.ach-rw{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;font-size:11px;font-weight:900;color:#3d2308;background:#fff3c4;border:2px solid #000;border-radius:5px}
.ach-rw .pxi{width:14px;height:14px}
.ach-act{display:flex;justify-content:center}
.ach-act .px-btn{padding:5px 14px;font-size:13px;animation:wallet-ready 1s ease-in-out infinite alternate}
.ach-ok{display:flex;align-items:center;gap:3px;font-style:normal;font-size:11.5px;font-weight:900;color:#3f9c48}
.ach-ok .pxi{width:14px;height:14px}
.ach-todo{font-style:normal;font-size:13px;font-weight:900;color:#8a5a12}

/* ---------- 信箱：領過的信直接消失（滑出去、收起來） ---------- */
.mail-item.mi-out{overflow:hidden;animation:mi-out .38s cubic-bezier(.5,0,.75,0) forwards}
@keyframes mi-out{0%{transform:none;opacity:1}55%{transform:translateX(70%);opacity:0}100%{transform:translateX(70%);opacity:0;height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}}
.mail-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.mail-empty .pxi{width:48px;height:48px;opacity:.7}
.mail-empty small{font-size:12px;opacity:.8}

/* 基地圖示列：v9.7.1 卡片工坊的捷徑拿掉（使用者：「UI 主視覺會很擠」）→ 回到 5 格、原本的間距，只保留字不換行 */
.base-icon span{white-space:nowrap}

/* ---------- v9.9 測試帳號：標題的帳號膠囊旁邊掛一個紫色小牌（js/tester.js） ---------- */
.tester-badge{display:inline-block;margin-left:6px;padding:1px 6px;font-size:11px;font-style:normal;font-weight:900;color:#fff;
  background:linear-gradient(#a06ae6,#5a2aa0);border:2px solid #000;border-radius:3px;box-shadow:0 2px 0 #0006;vertical-align:1px}

/* ---------- v9.9 組合卡（敬訓跟邱吉爾）的出擊鈕：左上「組合」小牌；兩位都在場上 → 金色脈動「合體 $3000」 ---------- */
.ubtn .u-cmb{position:absolute;left:2px;top:2px;z-index:3;padding:0 3px;font-size:9px;font-weight:900;font-style:normal;line-height:13px;color:#2a1400;
  background:linear-gradient(#fff6d0,#ffca4a);border:1.5px solid #000;border-radius:2px;pointer-events:none}
.ubtn.combo.fuse{animation:ubtn-fuse .9s ease-in-out infinite alternate}
.ubtn.combo.fuse .u-cost{color:#ffe27a;text-shadow:0 0 6px #ffb347,0 1px 0 #000}
.ubtn.combo.fuse .u-cmb{background:linear-gradient(#fff,#ffd75e);box-shadow:0 0 6px #ffb347}
@keyframes ubtn-fuse{from{box-shadow:0 0 0 2px #ffd75e,0 0 8px #ffb347}to{box-shadow:0 0 0 3px #fff3c4,0 0 22px #ffb347}}

/* ---------- v9.10 組合卡佔兩格：出擊列是一組兩顆（金框＋「組合」小牌），兩位都在場上 → 合成一顆兩格寬的「合體」鈕 ---------- */
#unit-row .ubtn-pair{position:relative;display:flex;gap:5px;padding:0;border-radius:3px;
  box-shadow:0 0 0 2px #000,0 0 0 4px #ffd75e,0 0 12px #ffb34799}
#unit-row .ubtn-pair .u-pair-lab{position:absolute;left:50%;top:-11px;z-index:6;transform:translateX(-50%);display:flex;align-items:center;gap:2px;
  padding:0 6px;font-size:9.5px;font-weight:900;line-height:14px;white-space:nowrap;color:#2a1400;background:linear-gradient(#fff6d0,#ffca4a);
  border:1.5px solid #000;pointer-events:none}
#unit-row .ubtn-pair .u-pair-lab .pxi{width:10px;height:10px}
#unit-row .ubtn-pair .ubtn.u-merge{display:none;width:165px}
#unit-row .ubtn-pair .ubtn.u-merge canvas{width:153px;height:38px}
#unit-row .ubtn-pair .ubtn.u-merge::after{right:3px}
#unit-row .ubtn-pair.merged .ubtn.u-part{display:none}
#unit-row .ubtn-pair.merged .ubtn.u-merge{display:flex}
#unit-row .ubtn-pair.merged .u-pair-lab{display:none}
#unit-row .ubtn.u-merge .u-key{width:auto;padding:0 3px}
/* 牌組：組合卡一張佔兩格（林敬訓｜邱吉爾，上下兩條說明） */
#lineup-slots .lnx-slot.wide{position:relative;flex:0 0 auto;width:136px;display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 2px #ffd75e,0 0 10px #ffb34766;background:linear-gradient(#3a1f5c,#1d1033)}
#lineup-slots .lnx-slot.wide .lnx-cmb-top,#lineup-slots .lnx-slot.wide .lnx-cmb-bot{position:absolute;left:4px;right:4px;z-index:3;
  display:flex;align-items:center;justify-content:center;gap:2px;font-size:8.5px;font-weight:900;line-height:12px;white-space:nowrap;overflow:hidden;
  color:#2a1400;background:linear-gradient(#fff6d0,#ffca4a);border:1.5px solid #000;pointer-events:none}
#lineup-slots .lnx-slot.wide .lnx-cmb-top{top:-7px}
#lineup-slots .lnx-slot.wide .lnx-cmb-bot{left:auto;right:2px;bottom:-7px;padding:0 4px;color:#fff3c4;background:#2a0a55}   /* 放右下角：左下兩張卡的快捷鍵小方塊不要蓋到 */
#lineup-slots .lnx-slot.wide .lnx-cmb-top .pxi{width:9px;height:9px}

/* ---------- v9.10 章節全破的解鎖標題（ui.js 的 unlockTitleShow）：全螢幕、旋轉的光芒、一個字一個字蓋下來的「解鎖」 ---------- */
.unlock-title{position:absolute;inset:0;z-index:95;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at 50% 42%,#3a2a0a 0%,#140d22 55%,#05060c 100%);animation:unlock-bg .35s ease-out}
.unlock-title.out{animation:unlock-bg .32s ease-in reverse forwards}
.unlock-title .ut-rays{position:absolute;left:50%;top:42%;width:1400px;height:1400px;margin:-700px 0 0 -700px;pointer-events:none;opacity:.5;
  background:repeating-conic-gradient(from 0deg,#ffd75e55 0deg 7deg,#ffd75e00 7deg 18deg);
  -webkit-mask:radial-gradient(circle,#000 6%,#0000 52%);mask:radial-gradient(circle,#000 6%,#0000 52%);animation:bb-spin 18s linear infinite}
.unlock-title .ut-glow{position:absolute;left:50%;top:42%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,#ffd75e55,#ffd75e00 65%);animation:ut-pulse 2.4s ease-in-out infinite}
@keyframes ut-pulse{50%{transform:scale(1.12);opacity:.7}}
.unlock-title .ut-in{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;width:min(620px,92%);text-align:center}
.unlock-title .ut-ch{padding:3px 16px;font-size:15px;font-weight:900;letter-spacing:3px;color:#2a1400;background:linear-gradient(#fff6d0,#ffca4a);
  border:3px solid #000;box-shadow:0 4px 0 #0008;animation:ut-drop .5s .1s cubic-bezier(.2,1.5,.35,1) both}
.unlock-title .ut-big{display:flex;gap:14px;font-size:72px;font-weight:900;line-height:1;color:#fff3c4;letter-spacing:6px;
  text-shadow:0 0 0 #000,4px 4px 0 #000,-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000,0 0 26px #ffb347}
.unlock-title .ut-big span{display:inline-block;animation:ut-stamp .45s cubic-bezier(.2,1.6,.35,1) both}
.unlock-title .ut-big span:nth-child(1){animation-delay:.35s}
.unlock-title .ut-big span:nth-child(2){animation-delay:.55s}
@keyframes ut-stamp{from{transform:scale(2.6) rotate(-8deg);opacity:0}}
@keyframes ut-drop{from{transform:translateY(-40px);opacity:0}}
.unlock-title .ut-ic{display:grid;place-items:center;width:96px;height:96px;margin-top:4px;background:#fff;border:4px solid #000;border-radius:20px;
  box-shadow:0 6px 0 #0008,0 0 30px #ffd75e;animation:ut-drop .5s .8s cubic-bezier(.2,1.5,.35,1) both}
.unlock-title .ut-ic .pxi{width:62px;height:62px}
.unlock-title .ut-name{font-size:30px;font-weight:900;color:#ffe9a8;text-shadow:3px 3px 0 #000,0 0 14px #ff9a3a;animation:ut-drop .45s 1s ease-out both}
.unlock-title p{margin:0 0 6px;font-size:14.5px;font-weight:700;line-height:1.7;color:#f3e6ffe6;text-shadow:0 1px 0 #000;animation:ut-drop .45s 1.15s ease-out both}
.unlock-title .unlock-btns{animation:ut-drop .45s 1.3s ease-out both}

/* ---------- v9.11 圖鑑的卡圖選擇（名牌下面、分頁上面） ---------- */
.dxx-pickrow{flex:0 0 auto;display:flex;justify-content:flex-end;padding:4px 12px 2px}
.dxx-pickrow .upx-pick{margin-left:0}

/* ---------- v9.11 手機直拿的提示（index.html 的 #rotate-hint）：窄螢幕直立時蓋一層「請把手機轉成橫向」 ---------- */
#rotate-hint{display:none}
@media (orientation:portrait) and (max-width:599px){
  #rotate-hint{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;background:#120f1ef5}
  body.rh-off #rotate-hint{display:none}
}
#rotate-hint .rh-box{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:300px;padding:24px 22px 18px;text-align:center;background:#2a2340;border:3px solid #000;box-shadow:inset 0 0 0 3px #4a3f6e,0 6px 0 #000}
#rotate-hint b{font-size:20px;font-weight:900;color:#ffd75e;text-shadow:2px 2px 0 #000;letter-spacing:1px}
#rotate-hint small{font-size:13px;font-weight:700;line-height:1.7;color:#e8e2ffcc}
#rotate-hint .rh-phone{position:relative;width:42px;height:70px;margin:4px 0 6px;border:4px solid #ffd75e;border-radius:7px;box-shadow:3px 3px 0 #000;animation:rh-turn 2.6s ease-in-out infinite}
#rotate-hint .rh-phone::after{content:'';position:absolute;left:50%;bottom:5px;width:10px;height:3px;margin-left:-5px;background:#ffd75e}
@keyframes rh-turn{0%,22%{transform:rotate(0)}48%,78%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
#rotate-hint button{margin-top:6px;padding:6px 16px;font:inherit;font-size:12px;font-weight:700;color:#cfc6ef;background:transparent;border:2px solid #6b5f95;cursor:pointer}

/* ---------- v9.12 這一關不能出擊的角色（關卡的 ban；5-10：Naruto 在對面） ---------- */
.ubtn.banned{cursor:not-allowed}
.ubtn.banned canvas{filter:grayscale(1) brightness(.45)}
.ubtn.banned .u-cost{opacity:.4}
.u-ban{position:absolute;left:50%;top:15px;transform:translateX(-50%) rotate(-8deg);padding:1px 6px;font-size:11px;font-weight:900;letter-spacing:1px;white-space:nowrap;color:#fff;background:#c8283a;border:2px solid #000;box-shadow:2px 2px 0 #000;pointer-events:none}

/* v9.14.2 修：工坊「招募」的聘請按鈕點不到 —— .gp-body>* 讓每一區平分高度（flex:1; min-height:0），
   應徵者卡片放不下就溢出到下面「換一批應徵者」那一區，而那一區畫在上面、把點擊吃掉了。
   → 換一批、底下說明只佔自己需要的高度；應徵者那一區放不下就捲動（不會再疊到別的東西上） */
.gp-work .wk-reroll,.gp-work .wk-foot{flex:0 0 auto}
.gp-work .wk-cands{flex:1 1 auto;min-height:0;overflow-y:auto;align-content:start}
