/* 冒險者卡片、灌名英雄卡、冒險者資料（深色面板）（2026-10-01.5）
   使用者：照《獵魔村物語》的招募卡片、獵人資訊欄；6 星以上的灌名英雄卡（js/tavern.js）；「我希望6星以上必須要精緻華麗」
   卡片（.tcard）：深紅木框＋米色細邊、名字、Lv＋職業、角色站在一團光上（光的顏色看星等）、在哪裡、「資料」＋上陣／下陣
   灌名英雄卡（.tcard.hero6）：有光澤的金框＋寶石、每位英雄自己的背景（.hc-英雄）、稱號、寶石樣子的粉紅星星、框上一道流光；
     星等越高越華麗（.h6t1～.h6t5＝6～10 星）：7 星四角寶石會閃＋金色花紋線、8 星雙層框＋小金翅膀＋光點、9 星全息閃卡＋發光名牌、
     10 星彩虹邊框＋角色後面的光環＋小皇冠；英雄圖鑑還沒有的＝黑色剪影＋上鎖的暗金框
   冒險者資料（.sheet.hs2-sheet）：整片深色（裡面的東西照夜間主題的顏色）、角色站中間＋11 格裝備圍一圈（2026-10-01.5 多了翅膀，在頭上）、舞台下面一鍵穿最強／一鍵脫裝、圖示分頁、紅色「關閉」；
     英雄類型的小標籤（.h6-type：卡片上圓圈裡一個字、資料裡「💪 力量型」）；
     灌名英雄的舞台（.hs2-named）：慢慢轉的光芒、英雄自己的粒子、腳下的光、金色名牌，一樣星等越高越華麗（最下面） */

/* ───────── 卡片 ───────── */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 7px; }
.tcard {
  --tc-glow: 255, 128, 96; --tc-star: #ffd24a;
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 5px 5px 6px; border-radius: 8px; overflow: hidden;
  color: #fff; text-align: center; line-height: 1.25;
  background: linear-gradient(180deg, #52291f 0%, #3d201b 48%, #2b1613 100%);
  border: 2px solid #1a0e0c; box-shadow: inset 0 0 0 1px rgba(255, 228, 186, 0.3), 0 2px 0 rgba(0, 0, 0, 0.18);
}
.tcard.star-1 { --tc-glow: 170, 178, 190; --tc-star: #d7dbe2; }
.tcard.star-2 { --tc-glow: 120, 214, 130; --tc-star: #9ae6a0; }
.tcard.star-3 { --tc-glow: 96, 170, 255; --tc-star: #9ccaff; }
.tcard.star-4 { --tc-glow: 196, 120, 255; --tc-star: #dcb0ff; box-shadow: inset 0 0 0 1px rgba(220, 176, 255, 0.55), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tcard.star-5 { --tc-glow: 255, 204, 64; --tc-star: #ffe066; border-color: #3a2606;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 102, 0.8), 0 0 10px rgba(255, 200, 60, 0.45), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tc-name, .tc-sub, .tc-where, .tc-info, .tc-stars, .tc-cards, .tc-title {
  text-shadow: 1px 0 0 #140a08, -1px 0 0 #140a08, 0 1px 0 #140a08, 0 -1px 0 #140a08, 1px 1px 0 #140a08, -1px 1px 0 #140a08;
}
.tc-top { min-width: 0; }
.tc-nm { display: block; min-width: 0; }
.tc-name { display: block; font-size: 15px; font-weight: 900; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-sub { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3eadc; }
.tc-sub .tc-cls { margin-left: 3px; }
.tc-cls.pal { color: #ffd46a; } .tc-cls.bar { color: #ff8a5c; } .tc-cls.ran { color: #8fe08a; } .tc-cls.wiz { color: #c9a2ff; } .tc-cls.dk { color: #ff7a8e; }
.tc-pic {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 132px; margin: 3px -5px 0; padding-bottom: 4px;
  background:
    radial-gradient(ellipse 58% 42% at 50% 86%, rgba(var(--tc-glow), 0.5), rgba(var(--tc-glow), 0.14) 60%, transparent 76%),
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(var(--tc-glow), 0.32), transparent 70%),
    repeating-conic-gradient(from 180deg at 50% 92%, rgba(255, 220, 180, 0.07) 0deg 9deg, transparent 9deg 22deg);
}
.tc-pic::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, 0.32); z-index: 0; }
.tc-pic > .hero-doll { position: relative; z-index: 1; }
.tc-stars { position: absolute; left: 4px; top: 2px; font-size: 10px; letter-spacing: -1.5px; color: var(--tc-star); z-index: 2; line-height: 1.2; }
.tc-stars .s6 { color: #ff6ad0; text-shadow: 0 0 5px #ff6ad0, 1px 0 0 #2a0a1a, -1px 0 0 #2a0a1a, 0 1px 0 #2a0a1a, 0 -1px 0 #2a0a1a; }
.tc-badges { position: absolute; right: 3px; top: 2px; display: flex; flex-direction: column; gap: 1px; z-index: 2; font-size: 12px; line-height: 1; }
.tc-pow { position: absolute; right: 3px; bottom: 5px; z-index: 2; padding: 0 4px; border-radius: 6px; background: rgba(20, 10, 6, 0.62); color: #ffe9a8; font-size: 10px; font-weight: 900; line-height: 15px; font-variant-numeric: tabular-nums; }
.tc-pow i { font-style: normal; margin-right: 1px; opacity: 0.85; }
.tc-where { margin: 0 -5px; padding: 2px 4px 3px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38) 20%, rgba(0, 0, 0, 0.38) 80%, rgba(0, 0, 0, 0)); color: #fff4e0; }
.tc-where.party { color: #ffe9a8; }
.tc-btns { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 4px; margin-top: 5px; }
.tc-btns.one { grid-template-columns: minmax(0, 1fr); }
.tc-info, .tc-go { height: 32px; border-radius: 5px; border: 2px solid #120b0a; font: inherit; cursor: pointer; padding: 0; color: #fff; }
.tc-info { background: linear-gradient(#4d4644, #34302e); font-size: 15px; font-weight: 900; letter-spacing: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.tc-info.tc-hot { background: linear-gradient(#c8762a, #9a4e14); }
.tc-go { display: grid; place-items: center; background: linear-gradient(#617326, #43501a); color: #e2ff9e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.tc-go.out { background: linear-gradient(#7a3a2a, #56241a); color: #ffd8c8; }
.tc-go svg { width: 16px; height: 16px; }
.tc-go.tc-soul { background: linear-gradient(#5a3a8a, #3a2260); color: #f0d8ff; }
.tc-info:hover:not(:disabled), .tc-go:hover:not(:disabled) { filter: brightness(1.15); }
.tc-info:disabled, .tc-go:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }
.tc-info:focus-visible, .tc-go:focus-visible { outline: 2px solid #ffe066; outline-offset: 1px; }
/* 被自動解僱的（翻出來變灰、蓋章） */
.tcard.gone .tc-pic, .tcard.gone .tc-top, .tcard.gone .tc-sub { filter: grayscale(1); opacity: 0.55; }
.tcard .tc-stamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); padding: 2px 8px; border: 2px solid #ff6a5a; border-radius: 6px;
  color: #ff6a5a; font-weight: 900; font-size: 15px; background: rgba(30, 10, 8, 0.7); z-index: 3; white-space: nowrap; }
.tcard .tc-refund { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; font-size: 11px; font-weight: 800; color: #ffe9a8; margin-top: 4px; }
.tcard .tc-refund .rc-coin { display: inline-flex; align-items: center; gap: 2px; }
.tcard .tc-refund .rc-coin .ico { width: 12px; height: 12px; }
.rc-souls { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
/* 名冊、招募結果 */
.roster-grid { margin-top: 8px; }
.recruit-grid.tc-grid, .recruit-grid.tc-grid.ten { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 7px; }
.recruit-card-wrap { min-width: 0; display: grid; animation: wish-flip 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.recruit-card-wrap > .tcard { height: 100%; }
.recruit-card-wrap:has(.tcard.star-5) > .tcard, .recruit-card-wrap:has(.hero6) > .tcard { animation: wish-glow 1.4s ease-in-out 0.6s infinite alternate; }
@media (prefers-reduced-motion: reduce) { .recruit-card-wrap, .recruit-card-wrap > .tcard { animation: none !important; } }

/* ───────── 灌名英雄卡（6 星以上） ───────── */
/* 星等越高越華麗（js/tavern.js 的 heroCard、hero6Card 加 .h6t1～.h6t5＝6～10 星；--h6-rgb＝英雄自己的顏色「r,g,b」，js/hero6-fx.js）
     6 星：有光澤的金框＋上面兩顆寶石、框上一道流光
     7 星：＋四個角都有寶石、一閃一閃，框裡面一圈細細的金色花紋線（四個角捲起來）
     8 星：＋雙層框（外金、內白金）、上面兩個角的小金翅膀、角色旁邊慢慢往上飄的光點（英雄的顏色）
     9 星：＋全息閃卡：彩虹色的光斜斜掃過去、角色那一格一層淡淡的彩虹膜；名字變成會發光的名牌
     10 星：＋會流動的彩虹邊框、角色後面一圈會轉、會呼吸的光環、更多光點、星星上面一頂小皇冠
   框上的裝飾都在 .h6-fx（蓋在最上面、點得到下面的按鈕）；動畫只動 transform、opacity、background-position，沒有大的模糊濾鏡；
   「減少動態效果」全部停住（這一段最下面） */
.tcard.hero6 {
  --tc-glow: 255, 214, 110; --h6-rgb: 255, 214, 110;
  isolation: isolate; padding: 7px 7px 8px; border: 2px solid #241204; border-radius: 10px;
  background: var(--hc-bg, linear-gradient(180deg, #5a2a1a, #2a1410));
  box-shadow: inset 0 0 0 4px rgba(28, 12, 2, 0.92), inset 0 0 0 5px rgba(255, 232, 160, 0.55), 0 0 10px rgba(255, 190, 70, 0.5), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.tcard.hero6 .tc-shine { position: absolute; inset: 0; border-radius: 8px; pointer-events: none; z-index: 4;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 250, 220, 0.38) 48%, transparent 58%) no-repeat; background-size: 250% 100%; animation: hc-shine 3.2s ease-in-out infinite; }
@keyframes hc-shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
.tcard.hero6 .tc-title { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: 1px; color: #ffd86a; line-height: 1.1; }
.tcard.hero6 .tc-name { font-size: 15.5px; color: #fffaf0; }
.tcard.hero6 .tc-pic { background: none; margin: 3px -6px 0; }
.tcard.hero6 .tc-where { margin: 0 -7px; padding: 2px 7px 3px; font-size: 11.5px; letter-spacing: -0.2px; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(40, 14, 4, 0.55) 20%, rgba(40, 14, 4, 0.55) 80%, rgba(0, 0, 0, 0)); }
.tcard.hero6 .tc-info { background: linear-gradient(#6a4a26, #4a3016); border-color: #1a0e04; }
.tcard.hero6 .tc-info.tc-hot { background: linear-gradient(#e0902a, #a85a14); }
.tcard.hero6 .tc-skill { position: absolute; left: 6px; bottom: 6px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(#3a2a4a, #1e1428); border: 1px solid #e8b84a; font-size: 12px; }
.tcard.hero6 .tc-pow { right: 6px; }
.tcard.hero6 .tc-badges { right: 6px; top: 4px; }
.tcard .tc-cards { position: absolute; right: 4px; top: 3px; z-index: 2; font-size: 11px; font-weight: 900; color: #fff3c8; }
.tcard.hero6 .tc-cards { right: 6px; top: 4px; }
/* 星星：寶石的樣子（粉紅 ✦、金 ★ 都是漸層＋細黑邊；10 星的會閃過一道光） */
.tcard.hero6 .tc-stars { left: 6px; top: 4px; font-size: 11.5px; letter-spacing: -1.2px; text-shadow: none;
  filter: drop-shadow(1px 0 0 #1c0814) drop-shadow(-1px 0 0 #1c0814) drop-shadow(0 1px 0 #1c0814) drop-shadow(0 -1px 0 #1c0814); }
.tcard.hero6 .tc-stars .s6, .tcard.hero6 .tc-stars .s5 { -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.tcard.hero6 .tc-stars .s6 { background-image: linear-gradient(165deg, #fff4fc 6%, #ff9ade 30%, #e8329e 56%, #ff8ad6 76%, #ffe6f8 96%); }
.tcard.hero6 .tc-stars .s5 { background-image: linear-gradient(165deg, #fffbe2 8%, #ffd84a 38%, #c8820e 66%, #ffe88e 92%); }
.tcard.h6t5 .tc-stars .s6 { background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.95) 47%, rgba(255, 255, 255, 0) 56%), linear-gradient(165deg, #fff4fc 6%, #ff9ade 30%, #e8329e 56%, #ff8ad6 76%, #ffe6f8 96%);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; animation: h6-shimmer 2.6s linear infinite; }
@keyframes h6-shimmer { 0% { background-position: 100% 0, 0 0; } 70%, 100% { background-position: 0 0, 0 0; } }
.tc-stars .s-crown { position: relative; display: block; width: 17px; height: 10px; margin: 0 0 -1px 15px; }
.tcard.hero6.h6t5 .tc-stars { top: -2px; }
.tc-stars .s-crown::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 72%, #ff4a7a 0 9%, transparent 11%), radial-gradient(circle at 21% 76%, #5ab0ff 0 7%, transparent 9%), radial-gradient(circle at 79% 76%, #5ab0ff 0 7%, transparent 9%),
    linear-gradient(#fffbe0, #ffd24a 45%, #b8761a);
  clip-path: polygon(0 100%, 2% 20%, 26% 52%, 50% 0, 74% 52%, 98% 20%, 100% 100%); }

/* 框上的裝飾（.h6-fx）：金框、白金內框、彩虹邊框都用 mask 只留外面那一圈 */
.tcard.hero6 .h6-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.h6-fx::before, .h6-fx::after, .h6-prism { content: ''; position: absolute; inset: 0; border-radius: 8px; padding: 3px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.h6-fx::before { background: linear-gradient(155deg, #fff6cc 0%, #f4c860 11%, #9a6212 28%, #ffe594 45%, #b67c22 62%, #fff1b4 79%, #c88c2c 100%); }
.h6-fx::after { display: none; inset: 3px; padding: 2px; border-radius: 6px;
  background: linear-gradient(155deg, #ffffff 0%, #d4dae6 16%, #848ea2 34%, #f6f8fc 50%, #9aa4b8 68%, #eef2f8 84%, #b0b9c8 100%); }
/* 寶石（6 星上面兩顆，7 星起四個角都有、一閃一閃） */
.h6-gem { position: absolute; left: 3px; top: 3px; width: 9px; height: 9px; z-index: 1; transform: rotate(45deg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 19%, transparent 23%),
    conic-gradient(rgba(255, 255, 255, 0.62) 0 25%, rgba(255, 255, 255, 0.14) 0 50%, rgba(0, 0, 0, 0.44) 0 75%, rgba(0, 0, 0, 0.16) 0), var(--hc-gem, #ff4a8a);
  box-shadow: 0 0 0 1px #ffe8a8, 0 0 0 2px #3a1c04, 0 0 5px 1px rgba(var(--h6-rgb), 0.6); }
.h6-gem.g1 { left: auto; right: 3px; }
.h6-gem.g2 { top: auto; bottom: 3px; }
.h6-gem.g3 { top: auto; bottom: 3px; left: auto; right: 3px; }
.h6-gem::after { content: ''; position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; opacity: 0;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 50%),
    radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) center / 100% 18% no-repeat, radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) center / 18% 100% no-repeat; }
:is(.h6t2, .h6t3, .h6t4, .h6t5) .h6-gem::after { animation: h6-glint 3s ease-in-out infinite; }
:is(.h6t2, .h6t3, .h6t4, .h6t5) .h6-gem.g1::after { animation-delay: -0.75s; }
:is(.h6t2, .h6t3, .h6t4, .h6t5) .h6-gem.g2::after { animation-delay: -2.25s; }
:is(.h6t2, .h6t3, .h6t4, .h6t5) .h6-gem.g3::after { animation-delay: -1.5s; }
@keyframes h6-glint { 0%, 50%, 100% { opacity: 0; transform: rotate(-45deg) scale(0.2); } 64% { opacity: 1; transform: rotate(0deg) scale(1); } 80% { opacity: 0; transform: rotate(40deg) scale(0.3); } }
/* 金色花紋線（7 星起）：細線＋四個角捲起來 */
.h6-fil { position: absolute; inset: 4px; border-radius: 6px; border: 1px solid rgba(255, 216, 110, 0.9);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 1 0 0)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 14px 14px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 1 24 0)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 100% 0 / 14px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 -1 0 24)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 14px 14px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 -1 24 24)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 100% 100% / 14px 14px no-repeat; }
/* 小金翅膀（8 星起，上面兩個角的寶石旁邊） */
.h6-wing { position: absolute; left: 0; right: 0; top: 0; height: 10px; z-index: 2; }
.h6-wing::before, .h6-wing::after { content: ''; position: absolute; top: 0; width: 19px; height: 9.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fffbe8'/%3E%3Cstop offset='.5' stop-color='%23ffd970'/%3E%3Cstop offset='1' stop-color='%23b8801e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 15C8 6 22 1.5 46 2C41 5.5 36 7 31 7.6C37 8.4 41.5 9.8 44.5 12C38 13.2 32 13 27 12.4C32 14 35.5 16.2 37.5 19.2C30 19.6 24 18.6 19.5 17C22 18.6 23.6 20.4 24.5 22.6C15 22.4 8 20 3 15Z' fill='url(%23g)' stroke='%234a2806' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M8 14.5C15 9.5 22 8 31 7.6M9 15.8C15 13.6 21 12.6 27 12.4M9.5 17C13 16.6 16.5 16.6 19.5 17' fill='none' stroke='%23a8701a' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='6.5' cy='15.6' r='2.2' fill='%23fff6d0' stroke='%234a2806' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.h6-wing::before { left: 10px; }
.h6-wing::after { right: 10px; transform: scaleX(-1); }
/* 彩虹邊框（10 星）：一大塊彩虹在框底下轉，只看得到外面 3px */
.h6-prism { overflow: hidden; }
.h6-prism::before { content: ''; position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  background: conic-gradient(#ff5a8a, #ffa64a, #fff06a, #7aff9a, #5ad8ff, #8a7aff, #ff6ad8, #ff5a8a); animation: h6-spin 4s linear infinite; }
@keyframes h6-spin { to { transform: rotate(360deg); } }
/* 角色那一格：慢慢往上飄的光點（8 星起）、後面的光環（10 星） */
.h6-sps { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.h6-sps i { position: absolute; left: 14%; bottom: 10%; width: 14px; height: 14px; opacity: 0;
  background: radial-gradient(closest-side, #fff 30%, rgba(255, 255, 255, 0) 60%) center / 50% 50% no-repeat,
    radial-gradient(closest-side, #fff, rgba(var(--h6-rgb), 0.9) 45%, rgba(var(--h6-rgb), 0)) center / 100% 16% no-repeat,
    radial-gradient(closest-side, #fff, rgba(var(--h6-rgb), 0.9) 45%, rgba(var(--h6-rgb), 0)) center / 16% 100% no-repeat,
    radial-gradient(closest-side, rgba(var(--h6-rgb), 0.75), rgba(var(--h6-rgb), 0)) center / 64% 64% no-repeat;
  animation: h6-float 5s ease-in-out infinite; }
.h6-sps i:nth-child(2) { left: 80%; bottom: 30%; animation-delay: -1.6s; animation-duration: 5.6s; }
.h6-sps i:nth-child(3) { left: 30%; bottom: 52%; width: 10px; height: 10px; animation-delay: -3.1s; }
.h6-sps i:nth-child(4) { left: 66%; bottom: 6%; width: 12px; height: 12px; animation-delay: -4.2s; animation-duration: 6s; }
.h6-sps i:nth-child(5) { left: 6%; bottom: 44%; width: 10px; height: 10px; animation-delay: -2.4s; animation-duration: 4.6s; }
.h6-sps i:nth-child(6) { left: 86%; bottom: 58%; width: 10px; height: 10px; animation-delay: -0.8s; }
.h6-sps i:nth-child(7) { left: 48%; bottom: 70%; width: 12px; height: 12px; animation-delay: -3.7s; animation-duration: 5.4s; }
@keyframes h6-float { 0% { opacity: 0; transform: translateY(10px) scale(0.4) rotate(0deg); } 25% { opacity: 1; } 70% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-46px) scale(1) rotate(90deg); } }
.h6-aura { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.h6-aura::before { content: ''; position: absolute; left: 50%; top: 56%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(var(--h6-rgb), 0.55) 0deg 6deg, rgba(var(--h6-rgb), 0) 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, 0.5) 42%, transparent 100%); mask: radial-gradient(closest-side, #000 14%, rgba(0, 0, 0, 0.5) 42%, transparent 100%);
  animation: h6-spin 18s linear infinite; }
.h6-aura::after { content: ''; position: absolute; left: 50%; top: 58%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), rgba(var(--h6-rgb), 0.72) 30%, rgba(var(--h6-rgb), 0.2) 64%, rgba(var(--h6-rgb), 0));
  animation: h6-breathe 2.8s ease-in-out infinite; }
@keyframes h6-breathe { 0%, 100% { opacity: 0.62; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1.08); } }

/* 7 星 */
.tcard.hero6.h6t2 { box-shadow: inset 0 0 0 4px rgba(28, 12, 2, 0.92), 0 0 11px rgba(255, 196, 80, 0.6), 0 2px 0 rgba(0, 0, 0, 0.25); }
/* 8 星：雙層框（外金、內白金）、花紋線往裡面一點 */
.tcard.hero6:is(.h6t3, .h6t4, .h6t5) { box-shadow: inset 0 0 0 6px rgba(28, 12, 2, 0.92), 0 0 4px rgba(255, 226, 150, 0.7), 0 0 13px rgba(var(--h6-rgb), 0.6), 0 2px 0 rgba(0, 0, 0, 0.25); }
.tcard.hero6:is(.h6t3, .h6t4, .h6t5) .h6-fx::after { display: block; }
.tcard.hero6:is(.h6t3, .h6t4, .h6t5) .h6-fil { inset: 6px; border-radius: 4px; }
.tcard.hero6:is(.h6t3, .h6t4, .h6t5) .h6-gem { box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #3a1c04, 0 0 6px 1px rgba(var(--h6-rgb), 0.8); }
/* 9 星：全息閃卡（彩虹色的流光、角色那一格一層彩虹膜）＋發光的名牌 */
.tcard.hero6:is(.h6t4, .h6t5) .tc-shine { animation-duration: 4.2s;
  background-image: linear-gradient(115deg, transparent 39%, rgba(255, 110, 200, 0.2) 43%, rgba(255, 236, 130, 0.24) 46%, rgba(255, 255, 255, 0.42) 48%, rgba(120, 255, 210, 0.24) 50.5%, rgba(110, 180, 255, 0.22) 53.5%, rgba(190, 130, 255, 0.16) 56.5%, transparent 60%); }
.tcard.hero6:is(.h6t4, .h6t5) .tc-pic::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(125deg, rgba(255, 100, 200, 0.2) 0 6px, rgba(255, 236, 120, 0.2) 6px 12px, rgba(110, 255, 200, 0.2) 12px 18px, rgba(110, 170, 255, 0.2) 18px 24px, rgba(200, 130, 255, 0.2) 24px 30px);
  -webkit-mask: linear-gradient(160deg, #000, rgba(0, 0, 0, 0.35) 45%, #000); mask: linear-gradient(160deg, #000, rgba(0, 0, 0, 0.35) 45%, #000); }
.tcard.hero6:is(.h6t4, .h6t5) .tc-nm { position: relative; margin: 0 2px 1px; padding: 1px 1px 2px; border-radius: 5px;
  background: radial-gradient(ellipse 70% 90% at 50% 60%, rgba(var(--h6-rgb), 0.4), rgba(var(--h6-rgb), 0)), linear-gradient(rgba(24, 10, 2, 0.58), rgba(60, 28, 6, 0.42));
  box-shadow: inset 0 0 0 1px rgba(255, 228, 150, 0.95), inset 0 0 0 2px rgba(60, 26, 4, 0.6), 0 0 6px rgba(var(--h6-rgb), 0.75); }
.tcard.hero6:is(.h6t4, .h6t5) .tc-nm::after { content: ''; position: absolute; inset: -1px; border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(var(--h6-rgb), 0.9), inset 0 0 6px rgba(255, 255, 255, 0.35); opacity: 0.25; animation: h6-glow 2.4s ease-in-out infinite alternate; }
@keyframes h6-glow { to { opacity: 1; } }
.tcard.hero6:is(.h6t4, .h6t5) .tc-name { text-shadow: 1px 0 0 #140a08, -1px 0 0 #140a08, 0 1px 0 #140a08, 0 -1px 0 #140a08, 0 0 6px rgba(var(--h6-rgb), 1); }
.tcard.hero6:is(.h6t4, .h6t5) .tc-title { color: #fff0b0; }
/* 10 星：彩虹邊框在最外面、金框、白金框往裡面一點 */
.tcard.hero6.h6t5 { box-shadow: inset 0 0 0 7px rgba(28, 12, 2, 0.92), 0 -2px 7px rgba(255, 90, 160, 0.55), 2px 0 7px rgba(90, 210, 255, 0.55), 0 2px 7px rgba(122, 255, 160, 0.5),
  -2px 0 7px rgba(255, 220, 90, 0.55), 0 0 16px 2px rgba(var(--h6-rgb), 0.7), 0 2px 0 rgba(0, 0, 0, 0.25); }
.tcard.hero6.h6t5 .h6-fx::before { inset: 3px; padding: 2px; border-radius: 6px; }
.tcard.hero6.h6t5 .h6-fx::after { inset: 5px; padding: 1.5px; border-radius: 4px; }
.tcard.hero6.h6t5 .h6-fil { inset: 6px; border-color: transparent; }
.tcard.hero6.h6t5 .h6-gem { box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #3a1c04, 0 0 7px 2px rgba(var(--h6-rgb), 0.85); }
/* 英雄圖鑑：還沒有的＝黑色剪影＋上鎖的暗金框（寶石不亮、中間一把小鎖） */
.tcard.h6-codex.none .tc-pic > .hero-doll { filter: brightness(0.25) saturate(0); }
.tcard.h6-codex.none .tc-name, .tcard.h6-codex.none .tc-title { opacity: 0.75; }
.tcard.h6-codex.own .tc-where { color: #b8ffb0; }
.tcard.hero6.h6-codex.none { border-color: #16100c;
  background: linear-gradient(rgba(14, 10, 8, 0.5), rgba(14, 10, 8, 0.66)), var(--hc-bg, linear-gradient(180deg, #5a2a1a, #2a1410));
  box-shadow: inset 0 0 0 4px rgba(16, 10, 6, 0.92), 0 0 0 1px rgba(150, 130, 96, 0.25), 0 2px 0 rgba(0, 0, 0, 0.25); }
.tcard.h6-codex.none .tc-shine { display: none; }
.tcard.h6-codex.none .h6-fx::before { background: linear-gradient(155deg, #b8aa88 0%, #7a6a4c 16%, #3e3222 34%, #9a8a68 50%, #4a3e2a 68%, #a8987a 84%, #5a4c34 100%); }
.tcard.h6-codex.none .h6-gem { background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 19%, transparent 23%),
    conic-gradient(rgba(255, 255, 255, 0.3) 0 25%, rgba(255, 255, 255, 0.06) 0 50%, rgba(0, 0, 0, 0.5) 0 75%, rgba(0, 0, 0, 0.2) 0), #4a4450;
  box-shadow: 0 0 0 1px #a8987a, 0 0 0 2px #1a120a; }
.tcard.h6-codex.none .h6-fil { border-color: rgba(200, 184, 150, 0.4); opacity: 0.6; filter: saturate(0.2); }
.h6-lock { position: absolute; left: 50%; top: 50%; z-index: 2; width: 18px; height: 14px; margin: -2px 0 0 -9px; border-radius: 3px;
  background: radial-gradient(circle at 50% 42%, #2a1c0c 0 2px, transparent 2.5px), linear-gradient(#2a1c0c, #2a1c0c) 50% 70% / 2px 5px no-repeat, linear-gradient(#f0dca4, #b8944e 55%, #7a5e2c);
  box-shadow: 0 0 0 1px #2a1c0c, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 220, 140, 0.4); }
.h6-lock::before { content: ''; position: absolute; left: 3px; right: 3px; bottom: 100%; height: 8px; margin-bottom: -2px; border: 2.5px solid #d0b678; border-bottom: 0; border-radius: 8px 8px 0 0; }
/* 每位英雄的背景 */
.hc-michael { --hc-bg: radial-gradient(ellipse 70% 50% at 50% 55%, rgba(255, 246, 200, 0.85), rgba(255, 210, 120, 0.25) 55%, transparent 75%), repeating-conic-gradient(from 180deg at 50% 60%, rgba(255, 255, 255, 0.12) 0 8deg, transparent 8deg 18deg), linear-gradient(#c89a4a, #6a4a2a); --hc-gem: #5ab0ff; }
.hc-athena { --hc-bg: radial-gradient(ellipse 65% 45% at 50% 58%, rgba(230, 240, 200, 0.6), transparent 72%), linear-gradient(#6a7a4a, #3a4428 70%, #2a301c); --hc-gem: #7ad0ff; }
.hc-thor { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(140, 200, 255, 0.55), transparent 72%), linear-gradient(160deg, transparent 44%, rgba(255, 240, 120, 0.7) 45% 47%, transparent 48%), linear-gradient(#2a3a6a, #141c3a); --hc-gem: #ffe066; }
.hc-heracles { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 200, 120, 0.6), transparent 72%), linear-gradient(#c86a2a, #6a2a14 70%, #3a160a); --hc-gem: #ffb040; }
.hc-artemis { --hc-bg: radial-gradient(circle at 74% 22%, #fffbe0 0 9%, transparent 10%), radial-gradient(circle at 78% 19%, #1a2450 0 8.5%, transparent 9.5%), radial-gradient(ellipse 60% 45% at 50% 60%, rgba(160, 180, 255, 0.5), transparent 72%), linear-gradient(#1a2450, #0e1430); --hc-gem: #9aa8ff; }
.hc-apollo { --hc-bg: radial-gradient(circle at 50% 42%, rgba(255, 244, 180, 0.95) 0 16%, rgba(255, 180, 60, 0.55) 30%, transparent 62%), repeating-conic-gradient(from 0deg at 50% 42%, rgba(255, 230, 140, 0.25) 0 10deg, transparent 10deg 22deg), linear-gradient(#e0842a, #8a3a14); --hc-gem: #ff6a3a; }
.hc-demeter { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255, 240, 170, 0.6), transparent 72%), linear-gradient(180deg, #6aa84a 0%, #4a8a3a 55%, #d8a83a 62%, #b8862a 100%); --hc-gem: #ff8aa8; }
.hc-hecate { --hc-bg: radial-gradient(circle at 26% 22%, #f0d8ff 0 8%, transparent 9%), radial-gradient(ellipse 60% 45% at 50% 60%, rgba(196, 106, 255, 0.5), transparent 72%), linear-gradient(#3a1a5a, #140a24); --hc-gem: #c46aff; }
.hc-baphomet { --hc-bg: radial-gradient(circle at 50% 62%, transparent 0 30%, rgba(255, 60, 90, 0.35) 31% 32%, transparent 33%), radial-gradient(ellipse 60% 45% at 50% 60%, rgba(255, 60, 90, 0.45), transparent 72%), linear-gradient(#3a1030, #12060e); --hc-gem: #ff2a3a; }
.hc-hades { --hc-bg: radial-gradient(ellipse 55% 40% at 50% 75%, rgba(90, 170, 255, 0.65), transparent 72%), radial-gradient(ellipse 30% 60% at 20% 100%, rgba(60, 120, 255, 0.4), transparent 70%), radial-gradient(ellipse 30% 60% at 80% 100%, rgba(60, 120, 255, 0.4), transparent 70%), linear-gradient(#141a3a, #070a18); --hc-gem: #5ab0ff; }
/* 2026-10-01.7 新職業的四位、2026-10-02.1 十四位神話英雄的卡片背景 */
.hc-hippolyta { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 210, 120, 0.55), transparent 72%), linear-gradient(#8a6a2a, #3a2a10); --hc-gem: #ffc040; }
.hc-penthesilea { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 140, 100, 0.5), transparent 72%), linear-gradient(#8a3a2a, #2e100a); --hc-gem: #ff7a3a; }
.hc-wukong { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 220, 100, 0.6), transparent 72%), linear-gradient(#c88a1a, #5a3a0a); --hc-gem: #ffd000; }
.hc-damo { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 190, 110, 0.55), transparent 72%), linear-gradient(#a8601a, #4a2408); --hc-gem: #ff8a1a; }
.hc-odin { --hc-bg: radial-gradient(circle at 76% 20%, rgba(255, 250, 230, 0.9) 0 3%, transparent 4%), radial-gradient(ellipse 60% 45% at 50% 58%, rgba(240, 210, 140, 0.55), transparent 72%), linear-gradient(#3a4a6a, #1a2238); --hc-gem: #f2c250; }
.hc-tyr { --hc-bg: radial-gradient(circle at 24% 22%, #eaf2ff 0 7%, transparent 8%), radial-gradient(ellipse 60% 45% at 50% 58%, rgba(160, 200, 255, 0.55), transparent 72%), linear-gradient(#4a5a7a, #222a3e); --hc-gem: #7ab0ff; }
.hc-ares { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 120, 90, 0.55), transparent 72%), linear-gradient(#7a1a14, #2a0806); --hc-gem: #ff4a2a; }
.hc-susanoo { --hc-bg: linear-gradient(160deg, transparent 46%, rgba(220, 240, 255, 0.6) 47% 48%, transparent 49%), radial-gradient(ellipse 60% 45% at 50% 58%, rgba(140, 200, 235, 0.5), transparent 72%), linear-gradient(#2a3a4a, #0e1a24); --hc-gem: #7ad0ff; }
.hc-houyi { --hc-bg: radial-gradient(circle at 50% 40%, rgba(255, 220, 120, 0.9) 0 12%, rgba(255, 140, 60, 0.45) 26%, transparent 55%), linear-gradient(#d8602a, #6a1e0e); --hc-gem: #ffb040; }
.hc-horus { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 220, 130, 0.55), transparent 72%), linear-gradient(#1e3a8a 0%, #2a4aa8 52%, #c8a050 53%, #8a6a2a 100%); --hc-gem: #3a7aff; }
.hc-zeus { --hc-bg: linear-gradient(150deg, transparent 44%, rgba(255, 236, 120, 0.85) 45% 46.5%, transparent 47.5%), radial-gradient(ellipse 60% 45% at 50% 58%, rgba(200, 230, 255, 0.55), transparent 72%), linear-gradient(#3a4a6a, #141a2e); --hc-gem: #ffe066; }
.hc-loki { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(140, 230, 120, 0.5), transparent 72%), linear-gradient(#1e4a2a, #0a1a0e); --hc-gem: #7ae05a; }
.hc-anubis { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(232, 200, 96, 0.5), transparent 72%), linear-gradient(#123a3a, #061414); --hc-gem: #3ac0c0; }
.hc-lucifer { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(160, 80, 255, 0.5), transparent 72%), linear-gradient(#2a0a3a, #0a0412); --hc-gem: #a050ff; }
.hc-brynhildr { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(230, 240, 255, 0.7), transparent 72%), linear-gradient(#6a8ab8, #2a3a5a); --hc-gem: #d8e8ff; }
.hc-freya { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 220, 170, 0.65), transparent 72%), linear-gradient(#c87a8a, #6a3a4a); --hc-gem: #ffd27a; }
.hc-nezha { --hc-bg: radial-gradient(ellipse 60% 45% at 50% 58%, rgba(255, 150, 90, 0.6), transparent 72%), linear-gradient(#a83a1a, #3a0e06); --hc-gem: #ff6a2a; }
.hc-erlang { --hc-bg: radial-gradient(circle at 50% 30%, rgba(255, 240, 160, 0.7) 0 5%, transparent 9%), radial-gradient(ellipse 60% 45% at 50% 58%, rgba(184, 216, 255, 0.55), transparent 72%), linear-gradient(#3a4a7a, #141a32); --hc-gem: #ffe066; }
@media (prefers-reduced-motion: reduce) {
  .tcard.hero6 .tc-shine, .h6-gem::after, .h6-prism::before, .h6-sps i, .h6-aura::before, .h6-aura::after, .tcard.hero6 .tc-stars .s6, .tcard.hero6 .tc-nm::after { animation: none !important; }
  .h6-sps i { opacity: 0.75; }
}
/* 英雄卡那一區、十連多送的英雄卡 */
.h6-card .card-head .row { flex-wrap: wrap; gap: 6px 12px; }
.h6-souls { display: inline-flex; align-items: center; gap: 4px; }
.h6-grid { margin-top: 8px; }
.h6-bonus { display: grid; gap: 6px; justify-items: center; margin: 0 0 10px; padding: 10px; border-radius: 12px; border: 2px solid #e8b84a;
  background: linear-gradient(170deg, rgba(255, 216, 106, 0.18), rgba(196, 122, 255, 0.12)); }
.h6-bonus-t { margin: 0; text-align: center; }
.h6-bonus-card { width: 120px; animation: wish-flip 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
/* 英魂 */
.soul-ico { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; vertical-align: -2px;
  background: radial-gradient(circle at 50% 65%, #fff 0 14%, #e0b0ff 22%, #a45aff 55%, #5a1aa8 100%); box-shadow: 0 0 5px rgba(196, 122, 255, 0.8); }
.souls-amt { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 星星（6 星以上前面幾顆粉紅 ✦） */
.hero-stars.s6up { white-space: nowrap; }
.hero-stars .st6 { color: #ff5ac8; text-shadow: 0 0 4px rgba(255, 90, 200, 0.6); }
.xh-title { font-size: 11px; font-weight: 900; color: #c8862a; margin-right: 3px; }
[data-theme="night"] .xh-title { color: #ffd86a; }
/* 專屬技能 */
.skill-line.skill-own { background: linear-gradient(90deg, rgba(255, 210, 90, 0.16), transparent); border-radius: 6px; padding: 2px 4px; }
.skill-own-tag { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 900; color: #3a2004; background: linear-gradient(#ffe38a, #e0a82a); }
/* 技能書、魔法書學的（2026-10-01.5）：紅色「技能書」、紫色「魔法書」標籤 */
.skill-line.skill-book { background: linear-gradient(90deg, rgba(110, 210, 150, 0.14), transparent); border-radius: 6px; padding: 2px 4px; }
.skill-book-tag { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 900; line-height: 1.5; color: #fff; white-space: nowrap;
  background: linear-gradient(#d6603e, #9a2e1c); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.skill-book-tag.magic { background: linear-gradient(#8e72ff, #5234c8); }
/* 英雄類型（2026-10-01.5，js/exp-ui.js 的 h6TypeBadge）：--ht＝那一型的顏色；卡片上小小的「💪力」，資料裡「💪 力量型」 */
.h6-type { --ht: #ffd86a; display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; font-size: 9px; font-weight: 900; line-height: 1;
  color: #fff; white-space: nowrap; letter-spacing: 0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ht) 55%, #fff), var(--ht) 55%, color-mix(in srgb, var(--ht) 65%, #000));
  box-shadow: 0 0 0 1px rgba(24, 10, 2, 0.9), 0 0 0 2px color-mix(in srgb, var(--ht) 45%, #ffe8a8), 0 0 5px color-mix(in srgb, var(--ht) 70%, transparent); }
.h6-type b { font-weight: 900; }
.h6-type i { font-style: normal; line-height: 1; }
.h6-type.full { display: inline-flex; align-items: center; gap: 4px; width: auto; height: 21px; padding: 0 9px 0 6px; border-radius: 11px; font-size: 12.5px;
  background: linear-gradient(color-mix(in srgb, var(--ht) 88%, #fff), color-mix(in srgb, var(--ht) 72%, #000)); box-shadow: 0 0 0 1px rgba(24, 10, 2, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.h6-type.full i { font-size: 12px; }
.tcard.hero6 .tc-tl { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.tcard.hero6 .tc-tl .tc-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.4px; }
.hs2-stars .h6-type.full { height: 19px; font-size: 11.5px; padding: 0 8px 0 5px; }
.hs2-type { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; line-height: 1.7; color: var(--text-2);
  background: color-mix(in srgb, var(--ht) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ht) 50%, transparent); }
.hs2-type .h6-type { margin-right: 6px; vertical-align: 1px; }
.hs2-type .muted { font-weight: 700; }
.hs2-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; margin: -4px 0 0; }

/* ───────── 冒險者資料（深色面板） ───────── */
.sheet.hs2-sheet {
  color-scheme: dark;
  --bg: #120e0d; --surface: #221b19; --surface-2: #1c1614; --surface-3: #2c2320; --field: #1a1412;
  --line: #2e2522; --line-2: #3a302c; --line-3: #52453e; --text: #f6eee2; --text-2: #d8cbbb; --muted: #b3a493;
  --gold: #e8b54a; --gold-ink: #f0c56a; --gold-soft: rgba(232, 181, 74, 0.14); --accent-soft: rgba(232, 181, 74, 0.10);
  --seal: #e8b54a; --seal-hover: #f5d38a; --seal-dark: #b8892c; --seal-ink: #16120a; --ring: #e8b54a;
  --warn: #f2b83d; --warn-bg: rgba(242, 184, 61, 0.10); --warn-line: rgba(242, 184, 61, 0.45); --danger-text: #ff8a80; --win: #3ecf83; --loss: #f26b66;
  --rar0: #a8a8a8; --rar1: #5a9aff; --rar2: #f0c832; --rar3: #ff8a3a; --rar4: #e2b86a; --rar5: #c47aff;
  background: #1c1614; color: var(--text); border-color: #120c0a;
}
@media (min-width: 700px) { .sheet.sheet-wide.hs2-sheet { width: min(640px, 94vw); } }
.sheet.hs2-sheet .sheet-head { background: linear-gradient(#3a302c, #2a2220); border-bottom: 1px solid #120c0a; }
.sheet.hs2-sheet .sheet-title { color: #f6eee2; letter-spacing: 1px; }
.sheet.hs2-sheet .icon-btn { color: #e8dccb; }
.sheet.hs2-sheet .btn:not(.btn-primary):not(.btn-danger):hover:not(:disabled) { background: var(--surface-3); border-color: var(--line-3); }
.sheet.hs2-sheet .sheet-body { padding: 0 0 10px; background: #1c1614; }
.sheet.hs2-sheet .sheet-foot { background: #1c1614; border-top: 1px solid #120c0a; justify-content: center; }
.hs2-nav { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hs2-nav[hidden] { display: none; }
.hs2-count { font-size: 13px; font-weight: 800; color: var(--muted); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.hs2-ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; border: 2px solid #120c0a; background: linear-gradient(#4a403c, #342c29);
  color: #e8dccb; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); padding: 0; }
.hs2-ib .ico { width: 18px; height: 18px; }
.hs2 { gap: 0; }
.hs2-stage { position: relative; padding: 10px 10px 4px;
  background: radial-gradient(ellipse 60% 48% at 50% 46%, rgba(var(--hs-glow, 255, 190, 120), 0.3), transparent 72%), linear-gradient(#2e2624, #231c1a); }
.hs2-h6 .hs2-stage { background: radial-gradient(ellipse 60% 48% at 50% 46%, rgba(255, 214, 110, 0.35), transparent 72%), var(--hc-bg, linear-gradient(#2e2624, #231c1a)); }
.hs2-stage.boom { animation: hs2-boom 0.9s ease-out; }
@keyframes hs2-boom { 0% { box-shadow: inset 0 0 0 0 rgba(255, 230, 140, 0); filter: brightness(1); } 25% { box-shadow: inset 0 0 60px 10px rgba(255, 230, 140, 0.8); filter: brightness(1.5); } 100% { box-shadow: inset 0 0 0 0 rgba(255, 230, 140, 0); filter: brightness(1); } }
.hs2-stars { position: absolute; left: 10px; top: 8px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.hs2-stars .hero-stars { font-size: 18px; letter-spacing: -1px; color: #ffd24a; text-shadow: 0 0 6px rgba(255, 210, 74, 0.6); }
.hs2-stars small { font-size: 11px; font-weight: 800; color: #ff9ad8; }
.hs2-power { position: absolute; right: 10px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px;
  background: #1a1412; border: 1px solid #4a3c34; font-weight: 900; font-size: 14px; color: #f6eee2; font-variant-numeric: tabular-nums; }
.hs2-power i { font-style: normal; font-size: 13px; }
/* 裝備圈（2026-10-01.5 11 格）：三欄五列，角色站中間高高的一格（e），翅膀在頭上（b）；js/tavern.js 的 RING
   2026-10-02.1 12 格（多了腰帶）：角色站中間三列（e），四周剛好圍一圈：上面一排 a b c、左右各三格、下面一排 m o n（o＝腰帶，在角色腳下） */
.hs2-ring { display: grid; grid-template-columns: 58px 1fr 58px; grid-template-rows: repeat(5, 56px); grid-template-areas: 'a b c' 'd e f' 'g e i' 'j e l' 'm o n';
  gap: 7px 10px; align-items: center; justify-items: center; margin: 40px auto 2px; max-width: 330px; }
.hs2-slot { position: relative; width: 54px; height: 54px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; padding: 0; border: 0;
  background: radial-gradient(circle at 50% 40%, #3a3036, #221c20 70%); box-shadow: 0 0 0 2px var(--rc, #555), 0 0 0 4px #120c0a, inset 0 0 8px rgba(0, 0, 0, 0.5); }
.hs2-slot.r0 { --rc: var(--rar0); } .hs2-slot.r1 { --rc: var(--rar1); } .hs2-slot.r2 { --rc: var(--rar2); } .hs2-slot.r3 { --rc: var(--rar3); }
.hs2-slot.r4 { --rc: var(--rar4); box-shadow: 0 0 0 2px var(--rc), 0 0 0 3px #120c0a, 0 0 0 5px var(--rc), 0 0 0 6px #120c0a, inset 0 0 8px rgba(0, 0, 0, 0.5); }
.hs2-slot.r5 { --rc: var(--rar5); box-shadow: 0 0 0 2px var(--rc), 0 0 0 4px #120c0a, 0 0 12px rgba(196, 122, 255, 0.7), inset 0 0 10px rgba(196, 122, 255, 0.35); }
.hs2-slot.empty { box-shadow: 0 0 0 2px #4a3e38, 0 0 0 4px #120c0a; }
.hs2-slot .gear-ico { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.hs2-slot.empty .gear-ico { opacity: 0.28; filter: grayscale(1); }
.hs2-slot:hover { filter: brightness(1.18); }
.hs2-slot:focus-visible { outline: 2px solid #ffe066; outline-offset: 5px; }
.hs2-slot .up { position: absolute; left: -5px; top: -6px; min-width: 18px; padding: 0 3px; border-radius: 4px; background: #1a1210; border: 1px solid var(--rc, #888); color: #ffe38a; font-size: 10px; font-weight: 900; line-height: 15px; }
/* 沒有作用的那一格（2026-10-02.1：雙手武器配了盾⋯、舊資料多穿的神話）：灰掉＋下面一個「沒作用」 */
.hs2-slot.idle .gear-ico { filter: grayscale(1) brightness(0.7); }
.hs2-slot .idle-tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 1; padding: 0 4px; border-radius: 4px; background: #4a1c18; border: 1px solid #ff8a80;
  color: #ffd6d0; font-size: 9.5px; font-weight: 900; line-height: 14px; white-space: nowrap; pointer-events: none; }
.hs2-slot .en { position: absolute; left: -5px; bottom: -6px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 4px; background: #3a1f4a; border: 1px solid #c47aff; font-size: 10px; }
.hs2-hero { position: relative; align-self: end; display: grid; place-items: end center; width: 100%; height: 100%; padding-bottom: 6px; }
.hs2-hero::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 120px; height: 24px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--hs-glow, 255, 190, 120), 0.75), rgba(var(--hs-glow, 255, 190, 120), 0.12) 60%, transparent 72%); }
.hs2-hero .hero-doll { position: relative; }
.hs2-line { text-align: center; font-size: 14.5px; font-weight: 900; color: #c9a8ff; margin: 10px 0 2px; min-height: 1.2em; text-shadow: 0 0 8px rgba(160, 110, 255, 0.45); }
/* 舞台下面的按鈕（2026-10-01.5）：✨ 一鍵穿最強、🧺 一鍵脫裝（身上有裝備才有）；哪一頁都按得到 */
.hs2-acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.hs2-act { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #6a5238; background: linear-gradient(#433428, #2a201a); color: #ffe6a8; font: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 rgba(0, 0, 0, 0.35); }
.hs2-act.strip { color: #d8ecff; border-color: #44607a; background: linear-gradient(#2c3a48, #1c242e); }
.hs2-act:hover:not(:disabled) { filter: brightness(1.15); }
.hs2-act:disabled { opacity: 0.5; cursor: wait; }
.hs2-act:focus-visible { outline: 2px solid #ffe066; outline-offset: 2px; }
.hs2 .tv3-tabs-host { position: sticky; top: 0; z-index: 3; margin: 0; padding: 6px 8px 0; background: #1c1614; border-bottom: 0; }
.hs2-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hs2-tab { position: relative; height: 42px; border-radius: 6px 6px 0 0; border: 1px solid #3e332e; border-bottom: 0; background: linear-gradient(#352c29, #2a2320); color: var(--muted);
  font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3px 0 2px; text-decoration: none; min-width: 0; }
.hs2-tab b { font-size: 15px; line-height: 1; }
.hs2-tab span { display: inline-flex; align-items: center; white-space: nowrap; }
.hs2-tab.on { background: linear-gradient(#f3ead9, #d8ccb6); color: #3a2a20; border-color: #f3ead9; }
.hs2-tab .tv3-dot { margin-left: 3px; }
.hs2-tab .tv3-dot.up { background: #7ae07a; box-shadow: 0 0 0 2px rgba(122, 224, 122, 0.3); }
.hs2-tab .tv3-tab-lock { font-size: 10px; margin-left: 2px; }
.hs2-body { padding: 12px 14px 4px; background: #1c1614; }
.hs2-swipe { text-align: center; margin: 6px 0 0; }
.hs2-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; }
.hs2-rank { font-size: 18px; font-weight: 900; font-style: italic; color: var(--hs-star, #ff7a6a); letter-spacing: 1px; }
.hs2-h6 .hs2-rank { color: #ffd86a; }
.hs2-lv { font-size: 16.5px; font-weight: 900; }
.hs2-lv .c { margin-left: 4px; }
.hs2-pw { text-align: right; } .hs2-pw small { display: block; font-size: 13px; color: var(--muted); font-weight: 800; } .hs2-pw b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hs2-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; margin-top: 4px; }
.hs2-bars { display: grid; gap: 9px; align-content: start; border-right: 1px solid #3a302c; padding-right: 10px; }
.hs2-bar { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 6px; }
.hs2-bar i { font-style: normal; font-size: 14px; text-align: center; }
.hs2-bar .track { position: relative; height: 18px; border-radius: 4px; background: #0e0a09; border: 1px solid #4a3c34; overflow: hidden; }
.hs2-bar .fill { position: absolute; inset: 0 auto 0 0; }
.hs2-bar .fill::after { content: ''; position: absolute; inset: 0 0 50% 0; background: rgba(255, 255, 255, 0.22); }
.hs2-bar.b-hp .fill { background: linear-gradient(90deg, #e0503a, #ff8a5a); }
.hs2-bar.b-exp .fill { background: linear-gradient(90deg, #e8902a, #ffc05a); }
.hs2-bar.b-tp .fill { background: linear-gradient(90deg, #4aa84a, #8ee07a); }
.hs2-bar.b-sp .fill { background: linear-gradient(90deg, #3a78d8, #7ab0ff); }
.hs2-bar.off .txt { color: var(--muted); }
.hs2-bar .txt { position: relative; z-index: 1; display: block; padding: 0 5px; font-size: 11px; font-weight: 900; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000; font-variant-numeric: tabular-nums; }
.hs2-stats { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0; list-style: none; }
.hs2-stats li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; }
.hs2-stats li i { font-style: normal; font-size: 13px; text-align: center; }
.hs2-stats li b { font-weight: 900; color: #ffb45a; font-variant-numeric: tabular-nums; }
.hs2-stats li b.hi { color: #d69aff; }
.hs2-more { margin-top: 8px; }
.hs2-pill { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 10px 0 2px; padding: 5px 12px; border-radius: 999px; background: #120e0d; border: 1px solid #3e332e; font-size: 13px; font-weight: 800; color: var(--text-2); width: fit-content; max-width: 100%; }
.hs2-h6-bonus { margin: 0; padding: 6px 8px; border-radius: 8px; background: rgba(255, 210, 90, 0.08); border: 1px solid rgba(255, 210, 90, 0.3); }
.sheet.hs2-sheet .hs2-close { min-width: 150px; height: 44px; border-radius: 8px; border: 2px solid #1a0a06; background: linear-gradient(#c8482c, #a2321c); color: #fff; font-size: 16px; font-weight: 900; letter-spacing: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 0 rgba(0, 0, 0, 0.3); }
.sheet.hs2-sheet .hs2-close:hover { filter: brightness(1.1); }
@media (max-width: 420px) { .sheet.hs2-sheet .sheet-foot .hs2-close { flex: 1 1 100%; order: 9; } }
/* 升星分頁 */
.hs2-star { gap: 10px; }
.hs2-ladder { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; padding: 8px; border-radius: 10px; background: #120e0d; border: 1px solid #3e332e; }
.hs2-lad { position: relative; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: #6a5a4e; background: #221b19; border: 1px solid #3a302c; }
.hs2-lad.done { color: #ffd24a; }
.hs2-lad.now { color: #1a1210; background: #ffd24a; border-color: #fff3b8; box-shadow: 0 0 8px rgba(255, 210, 74, 0.8); }
/* 6～10 星：粉紅寶石（還沒到的暗暗的、到了的發亮、現在這一格有金圈＋一閃一閃；10 星那一格到了＝彩虹圈＋小皇冠） */
.hs2-lad.h6 { color: #6a4a62; background: radial-gradient(circle at 35% 30%, #3a2a36, #1e1620 70%); border-color: #4a3444; }
.hs2-lad.h6.done { color: #fff; text-shadow: 0 0 3px #fff; border-color: #ffd0f0; background: radial-gradient(circle at 34% 28%, #fff 0 9%, #ffa8e4 22%, #e0389e 60%, #6a0a40 100%);
  box-shadow: 0 0 6px rgba(255, 106, 208, 0.5); }
.hs2-lad.h6.now { color: #fff; text-shadow: 0 0 4px #fff; border-color: #fff; background: radial-gradient(circle at 34% 28%, #fff 0 12%, #ffc0ee 26%, #ff4ab8 62%, #8a0a54 100%);
  box-shadow: 0 0 0 2px #ffd86a, 0 0 12px 2px rgba(255, 106, 208, 0.9); }
.hs2-lad.h6.now::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 40%), radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) center / 100% 14% no-repeat,
    radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) center / 14% 100% no-repeat; animation: h6-glint 2.6s ease-in-out infinite; }
.hs2-lad.lt5:is(.done, .now) { border: 2px solid transparent;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #ffc0ee 26%, #ff4ab8 62%, #8a0a54 100%) padding-box, conic-gradient(#ff5a8a, #ffa64a, #fff06a, #7aff9a, #5ad8ff, #8a7aff, #ff6ad8, #ff5a8a) border-box; }
.hs2-lad.lt5:is(.done, .now)::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 14px; height: 8px; margin: 0 0 -3px -7px;
  background: radial-gradient(circle at 50% 72%, #ff4a7a 0 10%, transparent 12%), linear-gradient(#fffbe0, #ffd24a 45%, #b8761a);
  clip-path: polygon(0 100%, 2% 20%, 26% 52%, 50% 0, 74% 52%, 98% 20%, 100% 100%); }
.hs2-lad-arrow { font-size: 10px; font-weight: 900; color: #3a1c04; padding: 1px 5px; margin: 0 2px; border-radius: 3px; letter-spacing: 1px;
  background: linear-gradient(#fff2b8, #e0a83a); box-shadow: 0 0 0 1px #5a3408, 0 0 6px rgba(255, 200, 90, 0.45); }
@media (prefers-reduced-motion: reduce) { .hs2-lad.h6.now::after { animation: none; } }
.hs2-star-t { margin: 0; }
.hs2-fodder { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.hs2-fd { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; border: 2px solid #3e332e; background: #221b19; color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.hs2-fd b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs2-fd.on { border-color: #7ae07a; background: #1e2a1c; box-shadow: 0 0 0 2px rgba(122, 224, 122, 0.25); }
.hs2-fd-pic { height: 80px; display: flex; align-items: flex-end; overflow: hidden; }
.hs2-fd-chk { position: absolute; right: 5px; top: 4px; width: 18px; height: 18px; border-radius: 4px; border: 2px solid #5a4e46; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #0e1a0c; }
.hs2-fd.on .hs2-fd-chk { background: #7ae07a; border-color: #7ae07a; }
.hs2-star-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #120e0d; border: 1px solid #3e332e; }
.hs2-adv { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; }
.hs2-asc { margin: 0; padding-left: 18px; display: grid; gap: 3px; }

/* ───────── 灌名英雄的舞台（冒險者資料上面那一塊） ───────── */
/* js/tavern.js 的 stageEl：.hs2-stage.hs2-named.h6t1～h6t5（一般冒險者不變）；顏色都是 js/hero6-fx.js 來的 --h6-rgb、--h6-c1～c3、--h6-core
   後面慢慢轉的光芒、一團會呼吸的光、英雄自己的粒子（CSS 畫的：.pk-feather 羽毛、.pk-spark 銀色星光、.pk-bolt 小閃電、.pk-ember 火星、
   .pk-moon 月光、.pk-sun 陽光、.pk-petal 花瓣、.pk-wisp 鬼火、.pk-flame 暗焰）、腳下一團光、角色下面的金色名牌
   星等越高：光芒越亮、粒子越多（JS 放 8～16 個）、8 星起腳下一圈會轉的魔法陣、名牌多一圈白金、9 星起彩虹反光掃過去、
   10 星多一圈彩虹光環、名牌的彩虹邊、星星上面一頂小皇冠 */
.hs2-stage.hs2-named { --hero-y: 272px; isolation: isolate; box-shadow: inset 0 -1px 0 rgba(255, 216, 106, 0.45); }
.hs2-named .hs2-ring, .hs2-named .hs2-plate, .hs2-named .hs2-line { position: relative; z-index: 1; }
.hs2-named .hs2-line { margin-top: 8px; }
.hs2-fx, .hs2-pts { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hs2-pts { z-index: 1; }
.hs2-rays { position: absolute; left: 50%; top: var(--hero-y, 272px); width: 680px; height: 680px; margin: -340px 0 0 -340px; border-radius: 50%; opacity: 0.5;
  background: repeating-conic-gradient(rgba(var(--h6-rgb), 0.34) 0deg 4deg, rgba(var(--h6-rgb), 0) 4deg 14deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 34%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.45) 34%, transparent 70%);
  animation: h6-spin 90s linear infinite; }
.hs2-named.h6t2 .hs2-rays { opacity: 0.62; }
.hs2-named.h6t3 .hs2-rays { opacity: 0.74; }
.hs2-named.h6t4 .hs2-rays { opacity: 0.86; }
.hs2-named.h6t5 .hs2-rays { opacity: 1; animation-duration: 60s; }
.hs2-halo { position: absolute; left: 50%; top: calc(var(--hero-y, 272px) + 4px); width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(var(--h6-rgb), 0.5) 26%, rgba(var(--h6-rgb), 0.16) 60%, rgba(var(--h6-rgb), 0));
  animation: h6-breathe 3.6s ease-in-out infinite; }
.hs2-named.h6t5 .hs2-halo::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; opacity: 0.7;
  background: conic-gradient(#ff5a8a, #ffa64a, #fff06a, #7aff9a, #5ad8ff, #8a7aff, #ff6ad8, #ff5a8a);
  -webkit-mask: radial-gradient(closest-side, transparent 90%, #000 92% 95%, transparent 98%); mask: radial-gradient(closest-side, transparent 90%, #000 92% 95%, transparent 98%);
  animation: h6-spin 9s linear infinite; }
.hs2-holo { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 110, 200, 0.16) 40%, rgba(255, 236, 130, 0.2) 45%, rgba(255, 255, 255, 0.26) 48%,
  rgba(120, 255, 210, 0.18) 52%, rgba(110, 180, 255, 0.18) 57%, transparent 66%) no-repeat; background-size: 260% 100%; animation: hc-shine 6.5s ease-in-out infinite; }
/* 7 星起：舞台一圈金色花紋線（四個角捲起來，跟卡片一樣）；8 星起金＋白金兩條線 */
.hs2-named:is(.h6t2, .h6t3, .h6t4, .h6t5)::after { content: ''; position: absolute; inset: 5px; z-index: 0; pointer-events: none; border-radius: 6px;
  border: 1px solid rgba(255, 216, 110, 0.6);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 1 0 0)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 18px 18px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 1 24 0)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 100% 0 / 18px 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 -1 0 24)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 18px 18px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd86a' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 -1 24 24)'%3E%3Cpath d='M2 22C2 11 11 2 22 2' stroke-width='1.6'/%3E%3Cpath d='M22 2C17 2 14.5 5.5 17 8C18.6 9.5 20.5 8 19.5 6.5' stroke-width='1.3'/%3E%3Cpath d='M2 22C2 17 5.5 14.5 8 17C9.5 18.6 8 20.5 6.5 19.5' stroke-width='1.3'/%3E%3Cpath d='M7.5 12.5C8.5 10 10 8.5 12.5 7.5' stroke-width='1.1' opacity='.75'/%3E%3Ccircle cx='6.6' cy='6.6' r='2' fill='%23fff3c0' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 100% 100% / 18px 18px no-repeat; }
.hs2-named:is(.h6t3, .h6t4, .h6t5)::after { border-color: rgba(255, 216, 110, 0.85); box-shadow: 0 0 0 1px rgba(30, 14, 2, 0.5), inset 0 0 0 1px rgba(30, 14, 2, 0.5), inset 0 0 0 2px rgba(226, 232, 242, 0.55); }
/* 腳下：一團光（每位灌名英雄）、8 星起一圈會轉的魔法陣（壓扁的圓，在角色後面） */
.hs2-named .hs2-hero::before { width: 160px; height: 30px; bottom: -3px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(var(--h6-rgb), 0.85) 32%, rgba(var(--h6-rgb), 0.3) 66%, rgba(var(--h6-rgb), 0));
  animation: h6-ground 3.6s ease-in-out infinite; }
@keyframes h6-ground { 0%, 100% { opacity: 0.78; transform: translateX(-50%) scale(0.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.hs2-named:is(.h6t3, .h6t4, .h6t5) .hs2-hero::after { content: ''; position: absolute; left: 50%; bottom: -77px; z-index: -1; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(var(--h6-rgb), 0.95) 0deg 3deg, rgba(var(--h6-rgb), 0) 3deg 12deg);
  -webkit-mask: radial-gradient(closest-side, transparent 79%, #000 81% 89%, transparent 91% 94%, #000 95% 99%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 79%, #000 81% 89%, transparent 91% 94%, #000 95% 99%, transparent 100%);
  transform: scaleY(0.2) rotate(0deg); animation: h6-circle 14s linear infinite; }
@keyframes h6-circle { to { transform: scaleY(0.2) rotate(360deg); } }
/* 粒子（.hs2-pts，飄在裝備格、角色前面）：位置（--x、--y）、快慢（--t）、從哪裡開始（--d）是 JS 給的；顏色輪流用 --h6-c1～c3 */
.hs2-pts i { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; opacity: 0; --pc: var(--h6-c1);
  animation: h6-twinkle var(--t, 8s) ease-in-out var(--d, 0s) infinite; }
.hs2-pts i:nth-child(3n + 2) { --pc: var(--h6-c2); }
.hs2-pts i:nth-child(3n) { --pc: var(--h6-c3); }
@keyframes h6-twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(0.3) rotate(0deg); } 30%, 55% { opacity: 1; transform: translateY(-10px) scale(1) rotate(45deg); } 80% { opacity: 0.2; transform: translateY(-18px) scale(0.6) rotate(80deg); } }
/* 羽毛（米迦勒）：從上面飄下來、左右晃 */
.pk-feather i { top: -26px; width: 9px; height: 22px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: linear-gradient(90deg, transparent 44%, rgba(214, 170, 90, 0.9) 45% 55%, transparent 56%), linear-gradient(100deg, #fff 30%, var(--pc));
  animation-name: h6-fall; animation-timing-function: linear; }
@keyframes h6-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(-30deg); } 8% { opacity: 0.95; } 30% { transform: translate(18px, 130px) rotate(16deg); }
  60% { transform: translate(-12px, 270px) rotate(-24deg); } 88% { opacity: 0.9; } 100% { opacity: 0; transform: translate(10px, 430px) rotate(18deg); } }
/* 花瓣（狄蜜特）：飄下來、一直轉 */
.pk-petal i { top: -20px; width: 12px; height: 9px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #fff, var(--pc) 60%);
  animation-name: h6-petal; animation-timing-function: linear; }
@keyframes h6-petal { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg); } 8% { opacity: 1; } 50% { transform: translate(-26px, 210px) rotate(240deg); } 90% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(16px, 430px) rotate(460deg); } }
/* 火星（海克力士）、陽光（阿波羅）：從下面飄上去 */
.pk-ember i, .pk-sun i { top: auto; bottom: -12px; border-radius: 50%; animation-name: h6-rise; animation-timing-function: linear; }
.pk-ember i { width: 9px; height: 9px; background: radial-gradient(closest-side, #fff6c8 22%, var(--pc) 50%, rgba(255, 120, 40, 0)); }
.pk-sun i { width: 15px; height: 15px; background: radial-gradient(closest-side, #fff 18%, var(--pc) 40%, rgba(255, 200, 80, 0.32) 64%, rgba(255, 200, 80, 0)); }
@keyframes h6-rise { 0% { opacity: 0; transform: translate(0, 0) scale(0.7); } 10% { opacity: 1; } 45% { transform: translate(14px, -180px) scale(1); } 85% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-10px, -410px) scale(0.45); } }
/* 鬼火（赫卡提紫、黑帝斯藍）：飄上去、左右晃 */
.pk-wisp i { top: auto; bottom: -24px; width: 14px; height: 20px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(closest-side at 50% 62%, #fff 18%, var(--pc) 50%, rgba(0, 0, 0, 0)); animation-name: h6-wisp; }
@keyframes h6-wisp { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 15% { opacity: 0.9; } 35% { transform: translate(-14px, -130px) scale(1); }
  65% { transform: translate(12px, -260px) scale(0.9); } 85% { opacity: 0.7; } 100% { opacity: 0; transform: translate(-6px, -400px) scale(0.5); } }
/* 暗焰（巴風特）：水滴形的火，往上竄 */
.pk-flame i { top: auto; bottom: -14px; width: 13px; height: 13px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
  background: radial-gradient(circle at 66% 34%, var(--h6-c3) 0 12%, var(--h6-c1) 34%, var(--h6-c2) 66%, #2a0420 100%); animation-name: h6-flame; animation-timing-function: ease-in; }
@keyframes h6-flame { 0% { opacity: 0; transform: translate(0, 0) rotate(-45deg) scale(0.6); } 12% { opacity: 0.95; } 50% { transform: translate(10px, -170px) rotate(-45deg) scale(1.1); }
  100% { opacity: 0; transform: translate(-8px, -360px) rotate(-45deg) scale(0.3); } }
/* 銀色星光（雅典娜）：原地一閃一閃 */
.pk-spark i { width: 17px; height: 17px;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 45%), radial-gradient(closest-side, var(--pc), rgba(255, 255, 255, 0)) center / 100% 18% no-repeat,
    radial-gradient(closest-side, var(--pc), rgba(255, 255, 255, 0)) center / 18% 100% no-repeat; }
/* 小閃電（索爾）：原地閃兩下（外面一圈光、裡面的閃電用 clip-path 剪出來） */
.pk-bolt i { width: 18px; height: 24px; background: radial-gradient(closest-side, rgba(var(--h6-rgb), 0.6), rgba(var(--h6-rgb), 0)); animation-name: h6-bolt; animation-timing-function: linear; }
.pk-bolt i::before { content: ''; position: absolute; inset: 3px 4px; clip-path: polygon(62% 0, 16% 56%, 46% 56%, 30% 100%, 88% 38%, 56% 38%, 80% 0); background: linear-gradient(#fff, var(--pc)); }
@keyframes h6-bolt { 0%, 30%, 100% { opacity: 0; transform: scale(0.8); } 33% { opacity: 1; transform: scale(1.1); } 36% { opacity: 0.2; } 39% { opacity: 1; } 46% { opacity: 0; transform: translateY(5px) scale(0.9); } }
/* 月光（阿提米絲）：小月牙＋光點，慢慢浮動 */
.pk-moon i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset -4px -2px 0 0 var(--pc); animation-name: h6-drift; }
.pk-moon i:nth-child(2n) { width: 7px; height: 7px; box-shadow: none; background: radial-gradient(closest-side, #fff 30%, var(--pc) 60%, rgba(255, 255, 255, 0)); }
@keyframes h6-drift { 0%, 100% { opacity: 0; transform: translate(0, 12px) rotate(-10deg); } 25% { opacity: 0.95; } 50% { transform: translate(8px, -10px) rotate(14deg); } 75% { opacity: 0.85; } }
/* 金色名牌（稱號＋名字）：兩頭各一顆寶石；8 星多一圈白金、9 星更亮、10 星彩虹邊 */
.hs2-plate { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px); margin: 4px auto 0; padding: 4px 26px 5px; border-radius: 4px;
  background: linear-gradient(#4a2c0c, #1e1006 55%, #3a220a);
  box-shadow: inset 0 0 0 1px #ffe08a, inset 0 0 0 2px #5a3408, inset 0 0 0 3px rgba(255, 224, 138, 0.3), 0 0 0 1px #140a04, 0 0 14px rgba(var(--h6-rgb), 0.45), 0 3px 6px rgba(0, 0, 0, 0.45); }
.hs2-plate::before, .hs2-plate::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 18%, transparent 24%),
    conic-gradient(rgba(255, 255, 255, 0.6) 0 25%, rgba(255, 255, 255, 0.12) 0 50%, rgba(0, 0, 0, 0.42) 0 75%, rgba(0, 0, 0, 0.14) 0), var(--h6-core, #ff6ad0);
  box-shadow: 0 0 0 1px #ffe8a8, 0 0 0 2px #2a1404, 0 0 6px rgba(var(--h6-rgb), 0.8); }
.hs2-plate::before { left: 9px; }
.hs2-plate::after { right: 9px; }
.hs2-named:is(.h6t2, .h6t3, .h6t4, .h6t5) .hs2-plate::before, .hs2-named:is(.h6t2, .h6t3, .h6t4, .h6t5) .hs2-plate::after { animation: h6-gem 2.4s ease-in-out infinite; }
.hs2-named:is(.h6t2, .h6t3, .h6t4, .h6t5) .hs2-plate::after { animation-delay: -1.2s; }
@keyframes h6-gem { 0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.85; } 50% { transform: rotate(45deg) scale(1.25); opacity: 1; } }
.hs2-plate-t { font-size: 12px; font-weight: 900; letter-spacing: 2px; color: #ffd86a; white-space: nowrap; }
.hs2-plate-n { font-size: 17px; font-weight: 900; letter-spacing: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(#fffdf0 20%, #ffe08a 60%, #e0a840); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #2a1404); }
.hs2-named:is(.h6t3, .h6t4, .h6t5) .hs2-plate { box-shadow: inset 0 0 0 1px #ffe08a, inset 0 0 0 2px #5a3408, inset 0 0 0 3px #dfe5ee, inset 0 0 0 4px rgba(40, 20, 4, 0.85),
  0 0 0 1px #140a04, 0 0 16px rgba(var(--h6-rgb), 0.6), 0 3px 6px rgba(0, 0, 0, 0.45); }
.hs2-named:is(.h6t4, .h6t5) .hs2-plate { box-shadow: inset 0 0 0 1px #ffe08a, inset 0 0 0 2px #5a3408, inset 0 0 0 3px #dfe5ee, inset 0 0 0 4px rgba(40, 20, 4, 0.85),
  inset 0 0 12px rgba(var(--h6-rgb), 0.45), 0 0 0 1px #140a04, 0 0 24px 2px rgba(var(--h6-rgb), 0.75), 0 3px 6px rgba(0, 0, 0, 0.45); }
.hs2-named.h6t5 .hs2-plate { border: 2px solid transparent; padding: 2px 24px 3px;
  background: linear-gradient(#4a2c0c, #1e1006 55%, #3a220a) padding-box, linear-gradient(90deg, #ff5a8a, #ffa64a, #fff06a, #7aff9a, #5ad8ff, #8a7aff, #ff6ad8, #ff5a8a) 0 0 / 200% 100% border-box;
  animation: h6-plate 3s linear infinite; }
@keyframes h6-plate { to { background-position: 0 0, 200% 0; } }
/* 星星：寶石的粉紅 ✦（10 星會閃過一道光）、10 星上面的小皇冠 */
.hs2-named .hs2-stars .hero-stars { text-shadow: none; filter: drop-shadow(0 0 4px rgba(255, 106, 208, 0.55)) drop-shadow(0 1px 0 #1c0814); }
.hs2-named .hs2-stars .hero-stars .st6 { -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  background-image: linear-gradient(165deg, #fff4fc 6%, #ff9ade 30%, #e8329e 56%, #ff8ad6 76%, #ffe6f8 96%); }
.hs2-named.h6t5 .hs2-stars .hero-stars .st6 { background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.95) 47%, rgba(255, 255, 255, 0) 56%), linear-gradient(165deg, #fff4fc 6%, #ff9ade 30%, #e8329e 56%, #ff8ad6 76%, #ffe6f8 96%);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; animation: h6-shimmer 2.6s linear infinite; }
.hs2-named.h6t5 .hs2-stars { top: 24px; }
.hs2-crown { position: absolute; left: 22px; bottom: 100%; width: 28px; height: 16px; margin-bottom: -2px; filter: drop-shadow(0 0 3px rgba(255, 210, 90, 0.9)) drop-shadow(0 1px 0 #2a1004); }
.hs2-crown::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 72%, #ff4a7a 0 9%, transparent 11%), radial-gradient(circle at 21% 76%, #5ab0ff 0 7%, transparent 9%), radial-gradient(circle at 79% 76%, #5ab0ff 0 7%, transparent 9%),
    linear-gradient(#fffbe0, #ffd24a 45%, #b8761a);
  clip-path: polygon(0 100%, 2% 20%, 26% 52%, 50% 0, 74% 52%, 98% 20%, 100% 100%); }
@media (prefers-reduced-motion: reduce) {
  .hs2-fx *, .hs2-fx *::before, .hs2-pts i, .hs2-named .hs2-hero::before, .hs2-named .hs2-hero::after, .hs2-named .hs2-plate, .hs2-named .hs2-plate::before, .hs2-named .hs2-plate::after,
  .hs2-named .hero-stars .st6 { animation: none !important; }
  .hs2-pts i { opacity: 0.7; top: var(--y) !important; bottom: auto !important; }
  .hs2-pts i:nth-child(2n) { display: none; }
}

/* ───────── 稀有度卡片背景（2026-10-02.2） ─────────
   使用者：「獵人卡片要做成跟獵魔村物語一樣有絢麗的卡片背景做稀有度差異」（1～5 星；6 星以上的灌名英雄卡照舊）
     1 星灰石、2 星翠綠、3 星湛藍、4 星紫晶、5 星黃金：整張卡的底色、框；卡片後面一圈放射的光芒（::before，越稀有越亮）、
     3 星起角色那一格有星光點點（.tc-pic::before）；4 星起光芒慢慢轉、星光一閃一閃；4、5 星多一道流光掃過整張卡（::after，5 星比較常掃）
   動畫只動 transform、opacity、background-position；「減少動態效果」全部停住；被解僱的（.gone）變灰、不動 */
.tcard:not(.hero6) { isolation: isolate; }
.tcard:not(.hero6)::before {
  content: ''; position: absolute; left: 50%; top: 47%; width: 240%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, var(--tc-ray, 0.06)) 0deg 6deg, transparent 6deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.7) 18%, transparent 46%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.7) 18%, transparent 46%);
}
.tcard:not(.hero6) .tc-pic {
  background:
    radial-gradient(ellipse 56% 38% at 50% 88%, rgba(255, 255, 255, 0.26), rgba(var(--tc-glow), 0.16) 58%, transparent 76%),
    radial-gradient(ellipse 66% 56% at 50% 52%, rgba(var(--tc-glow), 0.28), transparent 72%);
}
.tcard:not(.hero6).star-1 { --tc-ray: 0.05; border-color: #1b1c20;
  background: linear-gradient(180deg, #6a6f78 0%, #474b53 46%, #2b2d33 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 236, 245, 0.32), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tcard:not(.hero6).star-2 { --tc-ray: 0.07; border-color: #0c2412;
  background: linear-gradient(180deg, #44924f 0%, #286436 46%, #143a1e 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 246, 170, 0.45), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tcard:not(.hero6).star-3 { --tc-ray: 0.1; border-color: #0a1a3c;
  background: linear-gradient(180deg, #4182dc 0%, #2554a8 46%, #10295c 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 218, 255, 0.6), 0 0 6px rgba(80, 150, 255, 0.35), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tcard:not(.hero6).star-4 { --tc-ray: 0.13; border-color: #1e0840;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 210, 255, 0.28), transparent 70%), linear-gradient(180deg, #9659e8 0%, #6131b2 46%, #2c0f5e 100%);
  box-shadow: inset 0 0 0 1px rgba(236, 204, 255, 0.75), inset 0 0 0 2px rgba(40, 10, 80, 0.6), 0 0 10px rgba(185, 110, 255, 0.55), 0 2px 0 rgba(0, 0, 0, 0.18); }
.tcard:not(.hero6).star-5 { --tc-ray: 0.2; border-color: #4a2a04;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 252, 220, 0.45), transparent 70%), linear-gradient(180deg, #f6c24a 0%, #cf8a18 38%, #7a4208 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 170, 0.92), inset 0 0 0 3px rgba(96, 52, 4, 0.75), 0 0 13px rgba(255, 196, 50, 0.7), 0 2px 0 rgba(0, 0, 0, 0.2); }
.tcard:not(.hero6).star-5 .tc-pic { background:
    radial-gradient(ellipse 56% 38% at 50% 88%, rgba(255, 250, 220, 0.5), rgba(255, 200, 60, 0.18) 58%, transparent 76%),
    radial-gradient(ellipse 66% 56% at 50% 50%, rgba(255, 246, 200, 0.4), transparent 72%); }
.tcard:not(.hero6).star-5 .tc-where { background: linear-gradient(90deg, rgba(60, 30, 0, 0), rgba(60, 30, 0, 0.55) 20%, rgba(60, 30, 0, 0.55) 80%, rgba(60, 30, 0, 0)); }
/* 星光點點（3 星起） */
.tcard:not(.hero6):is(.star-3, .star-4, .star-5) .tc-pic::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.95) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.9) 0 1.1px, transparent 2px),
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, 0.85) 0 1.4px, transparent 2.3px),
    radial-gradient(circle at 26% 62%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.9px),
    radial-gradient(circle at 52% 10%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.9px),
    radial-gradient(circle at 92% 56%, rgba(255, 255, 255, 0.75) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 8% 44%, rgba(255, 255, 255, 0.75) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.7) 0 0.8px, transparent 1.6px);
}
.tcard:not(.hero6).star-5 .tc-pic::before { filter: sepia(0.6) saturate(2.4) hue-rotate(-12deg) brightness(1.15); }
/* 4、5 星：光芒慢慢轉、星光一閃一閃、一道流光掃過 */
.tcard:not(.hero6):is(.star-4, .star-5)::before { animation: tc-rays 36s linear infinite; }
.tcard:not(.hero6).star-5::before { animation-duration: 24s; }
.tcard:not(.hero6):is(.star-4, .star-5) .tc-pic::before { animation: tc-twinkle 2.2s ease-in-out infinite alternate; }
.tcard:not(.hero6):is(.star-4, .star-5)::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 250, 230, 0.32) 50%, transparent 60%) no-repeat; background-size: 260% 100%; background-position: 135% 0;
  animation: tc-gleam 6s ease-in-out infinite;
}
.tcard:not(.hero6).star-5::after { background-image: linear-gradient(110deg, transparent 38%, rgba(255, 252, 225, 0.48) 50%, transparent 62%); animation-duration: 3.6s; }
@keyframes tc-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes tc-twinkle { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes tc-gleam { 0%, 60% { background-position: 135% 0; } 100% { background-position: -35% 0; } }
/* 被解僱的：變灰、不動 */
.tcard.gone:not(.hero6) { background: linear-gradient(180deg, #55585e, #2c2d31) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important; }
.tcard.gone:not(.hero6)::before, .tcard.gone:not(.hero6)::after, .tcard.gone:not(.hero6) .tc-pic::before { animation: none !important; opacity: 0.25; }
@media (prefers-reduced-motion: reduce) {
  .tcard:not(.hero6)::before, .tcard:not(.hero6)::after, .tcard:not(.hero6) .tc-pic::before { animation: none !important; }
  .tcard:not(.hero6)::after { display: none; }
}

/* ───────── 冒險者資料：鎖頭（2026-10-02.2 使用者：「冒險者的資訊頁應該要有鎖頭🔒避免誤刪」） ─────────
   舞台下面那一排按鈕的第一顆（不蓋到裝備格）；上鎖了變金色、標題後面多一個 🔒 */
.hs2-act.hs2-lock { color: #e8dcc8; border-color: #6a5a48; background: linear-gradient(#3a3028, #241c16); }
.hs2-act.hs2-lock.on { color: #ffe38a; border-color: #e0b040; background: linear-gradient(#5a3e10, #3a2606); box-shadow: 0 0 8px rgba(255, 200, 60, 0.45); }
/* 5 星的金色卡片：星星加深色描邊（不然金星看不清楚） */
.tcard:not(.hero6).star-5 .tc-stars { filter: drop-shadow(1px 0 0 #4a2804) drop-shadow(-1px 0 0 #4a2804) drop-shadow(0 1px 0 #4a2804) drop-shadow(0 -1px 0 #4a2804); }

/* ───────── 有更好的裝備（2026-10-02.2 使用者：「如果有更好的裝備可以用要跳出提示給玩家按」） ─────────
   卡片的「資料⬆」（綠色）、舞台的「⬆ 換上更好的裝備（戰力 +N）」、隊伍／遠征的醒目按鈕（.upg-hot）、結果視窗裡的提示框（.upg-prompt） */
.tcard .tc-info.tc-upg { background: linear-gradient(#5fb02e, #3a7c14); letter-spacing: 0.5px; }
.hs2-act.up { color: #12280a; border-color: #b8f06c; background: linear-gradient(#cdf78a, #7ec43c); animation: upg-pulse 1.6s ease-in-out infinite; }
.btn.upg-hot { border-color: #5aa82e; background: linear-gradient(#e8ffcc, #b4ec84); color: #1a3606; font-weight: 900; animation: upg-pulse 1.6s ease-in-out infinite; }
.btn.upg-hot:hover:not(:disabled) { filter: brightness(1.05); }
.upg-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 2px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(110, 200, 70, 0.75); background: rgba(110, 200, 70, 0.14); }
.upg-prompt p { margin: 0; flex: 1 1 190px; min-width: 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.upg-prompt .upg-go { flex: none; }
@keyframes upg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(120, 220, 80, 0.55); } 50% { box-shadow: 0 0 0 5px rgba(120, 220, 80, 0); } }
@media (prefers-reduced-motion: reduce) { .hs2-act.up, .btn.upg-hot { animation: none; } }
