/* 招牌机制 v2 的战斗画面提示（dist/godskills-ui.mjs）。电脑和手机共用；手机只缩字号。 */
.gd-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.gd-strip[hidden] { display: none; }
.gd-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; line-height: 1.4; color: #f6efe0; background: rgba(28, 24, 38, .78); border: 1px solid rgba(232, 201, 132, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.gd-chip b { color: #f3d58e; font-weight: 700; }
.gd-chip.gd-obol { border-color: #d9b45a; background: linear-gradient(90deg, rgba(64, 48, 18, .9), rgba(28, 24, 38, .8)); }
.gd-chip.gd-rage { border-color: #d0583e; }
.gd-chip.gd-rage b { color: #ff9a7d; }
.gd-chip.gd-charged { border-color: #9fd4ff; background: linear-gradient(90deg, rgba(40, 72, 120, .9), rgba(28, 24, 38, .8)); }
.gd-chip.gd-charged b { color: #d6eeff; }
.gd-chip.gd-tide { border-color: #5fb5e8; }
.gd-chip.gd-tide b { color: #9fd8ff; }
.gd-chip.gd-season b { color: #fff; }
.gd-chip.season-spring { border-color: #9ad08a; }
.gd-chip.season-summer { border-color: #f0a24a; }
.gd-chip.season-autumn { border-color: #d68b3c; }
.gd-chip.season-winter { border-color: #b8d6f2; }
.gd-chip.gd-aegis { border-color: #a8d48c; }
.gd-chip.gd-drunk { border-color: #b46fc9; }
.gd-chip.gd-oracle { border-color: #ffe08a; }

/* 宙斯雷电符石（zeusorb，Eddie 10/18 15:05「是赋予第一排的珠子雷电属性，赋予完了就看那几个珠子就行了」）：雷电绑在符石上，
   不再有整行的雷云带（cloudfix 的 #board::before / ::after、雷云格的去底色、「雷云」字样都删了，棋盘两个伪元素空出来）。
   每颗带雷电的符石在自己的 .orb 里叠一枚金环雷电标记（godskills-ui.mjs chargeMarks），跟着符石走：拖动交换、掉落、消除脉冲、
   拿起时变淡（.orb-cell.selected .orb）都作用在 .orb 上；拿起的那颗由 #gd-drag-mark 跟在浮动符石上（installZeusGhost）。
   图 = bolt-mark-*.webp（黑底已换成透明、圆形遮罩已烘进去，scripts/build-zeus-bolt-mark.py），普通叠加不 screen：.orb 动起来自成合成组时
   也不会有黑方块 / 暗圈；中间是空的，符石颜色不被盖住。盖住格子 1.3 倍，--gd-bolt-cap = 所用副本像素 / DPR（只缩不放）。
   z-index 2：压在符石图上、在冻结 / 风化 / 电击 / 强化这些机关标记（.orb-state z 3 / 5）下面。闪烁只动 opacity，各格错开相位；减少动态时不闪。 */
.orb > .gd-zeus-mark { position: absolute; left: 50%; top: 50%; z-index: 2; width: 130%; height: auto; max-width: var(--gd-bolt-cap, 256px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; user-select: none; opacity: .92; animation: gd-bolt-flicker 2.9s linear infinite; }
.gd-zeus-mark[hidden] { display: none; }
.orb-cell:nth-child(2n) .gd-zeus-mark { animation-delay: -1.2s; }
.orb-cell:nth-child(3n) .gd-zeus-mark { animation-delay: -2.1s; }
.orb-cell:nth-child(5n) .gd-zeus-mark { animation-duration: 3.4s; }
#gd-drag-mark { position: fixed; left: 0; top: 0; z-index: 81; pointer-events: none; user-select: none; will-change: transform; opacity: .95; }
@keyframes gd-bolt-flicker { 0%, 100% { opacity: .86; } 5% { opacity: 1; } 7% { opacity: .78; } 9% { opacity: .96; } 12% { opacity: .86; } 54% { opacity: .86; } 57% { opacity: .98; } 59% { opacity: .82; } 62% { opacity: .86; } }
@media (prefers-reduced-motion: reduce) { .orb > .gd-zeus-mark { animation: none; opacity: .92; } }
#board.gd-tide-on { box-shadow: inset 0 -12px 20px -6px rgba(80, 170, 240, .7); }

/* 神谕预告：每列上方两粒半透明小符石（用 id 选：机制条里「神谕」那颗胶囊也带 .gd-oracle 类，原来被套成 6 列网格、拉得很宽） */
#gd-oracle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 2px 0 4px; padding: 2px 0; border-radius: 8px; background: rgba(255, 224, 138, .1); border: 1px dashed rgba(255, 224, 138, .55); }
#gd-oracle[hidden] { display: none; }
.gd-oracle-col { display: flex; justify-content: center; gap: 2px; }
.gd-oracle-orb { width: 22px; height: 22px; display: inline-block; opacity: .82; }
.gd-oracle-orb img { width: 100%; height: 100%; object-fit: contain; }
.gd-oracle-orb:last-child { opacity: 1; outline: 1px solid rgba(255, 224, 138, .8); border-radius: 50%; }

/* 敌人标记 */
.gd-badges { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; z-index: 4; pointer-events: none; max-width: 100%; }
.enemy-target .gd-badges { position: static; transform: none; justify-content: flex-start; margin-top: 2px; }
/* 目标按钮里的 span 会吃到 campaign.css 的 .enemy-target span（块级、手机 8px）：标记要压回胶囊样式 */
.enemy-target .gd-badges { display: flex; flex-wrap: wrap; line-height: 1; }
.enemy-target .gd-badges .gd-badge { display: inline-block; font-size: 11px; line-height: 1.35; }
.enemy-figure, #boss-target { position: relative; }
.gd-badge { font-size: 11px; line-height: 1.35; padding: 0 6px; border-radius: 999px; color: #fff; background: rgba(20, 18, 28, .82); border: 1px solid rgba(255, 255, 255, .35); white-space: nowrap; }
.gd-badge.gd-eye { background: linear-gradient(90deg, #17506a, #2b7f8f); border-color: #9ff0e6; }
.gd-badge.gd-eyes { background: linear-gradient(90deg, #6a3a8a, #1f7a86); border-color: #f2d27a; }
.gd-badge.gd-prey { background: #2e3550; border-color: #cfd8ff; }
.gd-badge.gd-charm { background: #a33f74; border-color: #ffc1e0; }
.gd-badge.gd-drunk { background: #5c2f73; border-color: #e1b6f2; }
.gd-badge.gd-foresee { background: #2f4a2a; border-color: #b9e3a1; }
.gd-badge.gd-foresee.danger { background: #7d1e1e; border-color: #ff9e9e; }
.enemy-figure.gd-watched, .enemy-target.gd-watched { box-shadow: 0 0 0 2px rgba(120, 230, 215, .85); }
.enemy-figure.gd-prey img { filter: drop-shadow(0 0 6px rgba(205, 216, 255, .9)); }
.enemy-figure.gd-charmed img { filter: drop-shadow(0 0 6px rgba(255, 150, 200, .95)); }

/* 英雄头像：冥币、狂暴刻痕、地脉层数 */
.hero-card { position: relative; }
.gd-hero-tag { position: absolute; z-index: 3; pointer-events: none; }
.gd-obol-tag { right: 3px; top: 3px; min-width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #3b2a00; background: radial-gradient(circle at 35% 35%, #fff2b8, #d8a733 70%); border: 1px solid #7a5a12; }
.gd-rage-tag { left: 3px; top: 3px; display: flex; gap: 2px; }
.gd-earth-tag { left: 3px; bottom: 3px; display: flex; gap: 2px; }
.gd-earth-tag i { width: 7px; height: 7px; border-radius: 2px; background: #8fbf6a; box-shadow: 0 0 3px rgba(150, 220, 110, .9); }
.gd-chip.gd-earth { border-color: #8fbf6a; }
.gd-chip.gd-earth b { color: #cfeaa5; }
.gd-chip.gd-eyes { border-color: #7fded2; }
.gd-chip.gd-eyes b { color: #b8f5ec; }
.gd-rage-tag i { width: 4px; height: 12px; border-radius: 2px; background: #e5432d; box-shadow: 0 0 3px rgba(255, 90, 60, .9); transform: skewX(-12deg); }
/* 手机 / 平板：头像条是 6 列网格，第 7 张会掉到下一行左边 → 泰坦占整行、靠右，一条横向小卡 */

/* 赫淮斯托斯三选一 */
.gd-forge-dialog { border: 1px solid #e3b65c; border-radius: 14px; background: #1d1913; color: #f6efe0; padding: 18px 20px; max-width: min(92vw, 520px); }
.gd-forge-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.gd-forge-dialog h3 { margin: 0 0 4px; color: #f3d58e; }
.gd-forge-dialog p { margin: 0 0 12px; font-size: 13px; opacity: .85; }
.gd-forge-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gd-forge-option { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1px solid rgba(243, 213, 142, .6); background: linear-gradient(170deg, #3a2c18, #241c12); color: inherit; cursor: pointer; font: inherit; }
.gd-forge-option b { font-size: 16px; color: #ffe2a0; }
.gd-forge-option small { font-size: 12px; opacity: .9; }
.gd-forge-option:hover, .gd-forge-option:focus-visible { border-color: #ffd36b; box-shadow: 0 0 0 2px rgba(255, 211, 107, .4); }
.gd-forge-cancel { margin-top: 12px; background: none; border: 0; color: #cdbf9e; cursor: pointer; font: inherit; text-decoration: underline; }

@media (max-width: 760px) {
  .gd-chip { font-size: 11px; padding: 2px 7px; }
  .gd-badge { font-size: 11px; padding: 0 5px; }
  .gd-oracle-orb { width: 17px; height: 17px; }
  .gd-forge-options { grid-template-columns: 1fr; }
}

/* 电脑版战斗（page-battle.css「符文祭坛」：右栏头像 / 血条 / 标题 / 棋盘框各占固定一带，没有空带）。
   机制条原来插在血条那一带下面，被血条整条盖住；泰坦第 7 张卡掉到第二行压住宙斯名字和血量；神谕比棋盘宽、列对不齐。 */
@media (min-width: 1000px) {
  /* 机制条：战场右上角，贴着右栏、竖排右对齐（Boss 名条只到战场约 70% 宽，--pgb-info-right） */
  body.desktop-game.desktop-battle .pg-battle #gd-strip { position: fixed; z-index: 13; top: calc(var(--pgb-band-top, 64px) + 6px); right: calc(100vw - var(--pgb-bf-right) + 14px); margin: 0; flex-direction: column; flex-wrap: nowrap; align-items: flex-end; gap: 6px; max-width: calc(var(--pgb-bf-w) * .3); }
  body.desktop-game.desktop-battle .pg-battle #gd-strip .gd-chip { font-size: 14px; padding: 4px 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
  /* 泰坦小卡：头像条右边没有位置 → 战场右上角紧挨头像条，和头像同一高度 */
  /* 神谕：放进棋盘框上沿（计时条下面、第一行格子上面那条框），和 6 列格子对齐 */
  body.desktop-game.desktop-battle .pg-battle #gd-oracle { position: absolute; z-index: 4; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; pointer-events: none;
    left: calc(346px * var(--pgb-fs) + var(--pgb-c) * .07); right: calc(345px * var(--pgb-fs) + var(--pgb-c) * .07);
    top: calc(var(--pgb-frame-top) + 208px * var(--pgb-fs)); height: calc(188px * var(--pgb-fs) + var(--pgb-c) * .04); gap: calc(var(--pgb-c) * .025); align-items: center; }
  body.desktop-game.desktop-battle .pg-battle .gd-oracle-orb { width: min(24px, calc(188px * var(--pgb-fs) + var(--pgb-c) * .04 - 2px)); height: min(24px, calc(188px * var(--pgb-fs) + var(--pgb-c) * .04 - 2px)); filter: drop-shadow(0 1px 2px #000); }
  /* 涨潮：电脑版棋盘自带内阴影（优先级更高），把水线叠上去 */
  body.desktop-game.desktop-battle .pg-battle #board.gd-tide-on { box-shadow: inset 0 3px 18px #000d, inset 0 -16px 24px -6px rgba(80, 170, 240, .8); }
  /* 1920 宽战场上 11px 太小 */
  body.desktop-game.desktop-battle .pg-battle .gd-badge { font-size: 13px; padding: 1px 8px; }
}

/* 神祇跟上队伍（Eddie 10/16 方案 A）：召唤结果下面一行小字「神祇降临：已与队伍同步至 Lv.N」，卡片翻完再浮现。 */
.pg-summon-sync { margin: 0; text-align: center; font-size: 13px; line-height: 1.4; color: #f6e2a6; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); animation: gd-sync-in .45s ease-out both; animation-delay: var(--t-end, 0ms); }
.is-static .pg-summon-sync { animation: none; }
body.desktop-game .pg-summon-sync { font-size: max(14px, calc(var(--u) * 1.6)); }
@keyframes gd-sync-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-summon-sync { animation: none; } }

/* 宙斯消除落雷动画「圣光雷柱」（godskills-ui.mjs playZeusBolts，Eddie 10/18 20:10）：
   舞台里的两块画布（敌人身后的地面层：压暗、地裂坑；敌人前面的前景层：碎石、扬尘），第一次落雷时建一次，不演时藏起来；
   顿帧：第一下和最后一下砸到时给战斗面板加 .zb-hitstop 75 ms，背景动态、敌人待机呼吸、飘尘一起停住（背景视频由脚本暂停）。 */
.zb-stage-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.zb-stage-layer[hidden] { display: none; }
.battle-panel.zb-hitstop .stage-media, .battle-panel.zb-hitstop .stage-media *, .battle-panel.zb-hitstop .enemy-figure, .battle-panel.zb-hitstop .embers i { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .zb-stage-layer { display: none; } }

/* 五位神祇招牌机制特效（dist/god-fx.mjs，godfx-20261018）：舞台里两块画布——敌人身后的地面层（压暗、孔雀屏、地脉光纹、冥门、石刺）、
   敌人前面的前景层（碎石、扬尘、侧边小石刺），正常叠加。第一次演时建一次，不演时藏起来；顿帧沿用 .zb-hitstop。减少动态效果时不显示。 */
.gf-stage-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.gf-stage-layer[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gf-stage-layer { display: none; } }

/* hadesfix-20261019：灵魂之器（dist/god-fx.mjs vesselDecor）。电脑放在舞台右上（状态条下面），手机 .is-m 缩小放在战斗面板右上角。
   冥灯本体是图（assets/olympus/hades/soul-vessel/，只缩不放）；玻璃仓里的魂火、水位、脉动全用 CSS（只动 transform / opacity，水位变化 0.28 秒）。 */
.gf-vessel { position: absolute; z-index: 14; width: 92px; display: flex; flex-direction: column; align-items: center; pointer-events: none; user-select: none; --lv: 0; }
.gf-vessel[hidden] { display: none; }
.gf-vessel-body { position: relative; width: 84px; height: 150px; }
.gf-vessel-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .65)); }
.gf-vessel-chamber { position: absolute; left: 22%; top: 34%; width: 57%; height: 44%; border-radius: 42% / 20%; overflow: hidden; }
.gf-vessel-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lv) * 100%); transition: height .28s cubic-bezier(.2, .8, .3, 1); overflow: hidden;
  background: linear-gradient(to top, rgba(8, 70, 76, .9), rgba(30, 160, 150, .72) 55%, rgba(140, 250, 228, .8)); box-shadow: inset 0 0 12px rgba(150, 255, 230, .9); }
.gf-vessel-fill::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(230, 255, 250, .95); box-shadow: 0 0 8px 2px rgba(120, 255, 225, .9); }
.gf-vessel-souls { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; will-change: transform; animation: gf-souls-rise 2.6s linear infinite;
  background-image: radial-gradient(circle at 30% 20%, rgba(245, 255, 252, 1) 0 3px, rgba(120, 255, 220, .6) 4px, transparent 9px),
    radial-gradient(circle at 72% 45%, rgba(245, 255, 252, .95) 0 2.5px, rgba(120, 255, 220, .55) 3.5px, transparent 9px),
    radial-gradient(ellipse 30% 20% at 45% 78%, rgba(200, 255, 245, .55), transparent 70%),
    radial-gradient(circle at 18% 70%, rgba(235, 255, 250, .8) 0 1.5px, transparent 5px);
  background-size: 100% 50%; background-repeat: repeat; }
@keyframes gf-souls-rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.gf-vessel-glow { position: absolute; left: 50%; top: 56px; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(110, 255, 220, .5), rgba(110, 255, 220, .12) 60%, rgba(110, 255, 220, 0)); opacity: calc(.12 + var(--lv) * .45); }
.gf-vessel.is-empty .gf-vessel-glow { opacity: 0; }
.gf-vessel.is-full .gf-vessel-glow, .gf-vessel.is-ready .gf-vessel-glow { animation: gf-vessel-pulse 1.1s ease-in-out infinite; will-change: transform, opacity; }
.gf-vessel.is-full .gf-vessel-num, .gf-vessel.is-ready .gf-vessel-num { border-color: rgba(140, 255, 225, .95); box-shadow: 0 0 10px rgba(110, 255, 220, .7); }
@keyframes gf-vessel-pulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.14); } }
.gf-vessel-num { margin-top: -4px; padding: 1px 9px 2px; border: 1px solid rgba(110, 230, 205, .6); border-radius: 999px; background: rgba(6, 14, 18, .82);
  color: #d8fff4; font-size: 13px; line-height: 18px; white-space: nowrap; text-shadow: 0 0 6px rgba(110, 255, 220, .7); }
.gf-vessel-num b { font-size: 16px; color: #fff; }
.gf-vessel-num small { font-size: 12px; opacity: .85; }
.gf-vessel.is-m { right: 6px; top: 36px; width: 40px; }
.gf-vessel.is-m .gf-vessel-body { width: 30px; height: 54px; }
.gf-vessel.is-m .gf-vessel-souls { height: 48px; }
.gf-vessel.is-m .gf-vessel-fill::before { height: 2px; box-shadow: 0 0 4px 1px rgba(120, 255, 225, .9); }
.gf-vessel.is-m .gf-vessel-glow { top: 18px; width: 60px; height: 60px; margin-left: -30px; }
.gf-vessel.is-m .gf-vessel-num { margin-top: -2px; padding: 0 4px; font-size: 9px; line-height: 13px; }
.gf-vessel.is-m .gf-vessel-num b { font-size: 11px; }
.gf-vessel.is-m .gf-vessel-num small { font-size: 9px; }
.gf-vessel.is-m .gf-vessel-label { display: none; }
/* hadessoul-20261020：冥魂护命——存够 6 个灵魂时器上亮「护命」（魂盾光环），本场用过后标「护命已用」（灰、划线） */
.gf-vessel-ward { margin-top: 3px; padding: 0 7px; border-radius: 999px; font: bold 11px/16px Arial, sans-serif; letter-spacing: 1px; white-space: nowrap; color: #d9fff3; background: rgba(6, 30, 28, .86); border: 1px solid rgba(110, 255, 215, .85); box-shadow: 0 0 8px rgba(90, 255, 210, .55); }
.gf-vessel-ward:empty { display: none; }
.gf-vessel.is-ward .gf-vessel-chamber { box-shadow: 0 0 0 2px rgba(150, 255, 230, .9), 0 0 14px 3px rgba(90, 255, 210, .7); }
.gf-vessel.is-ward .gf-vessel-ward { animation: gf-ward-tag 1.4s ease-in-out infinite; }
@keyframes gf-ward-tag { 0%, 100% { box-shadow: 0 0 6px rgba(90, 255, 210, .45); } 50% { box-shadow: 0 0 14px rgba(120, 255, 225, .95); } }
.gf-vessel.is-warded .gf-vessel-ward { color: rgba(220, 230, 230, .78); background: rgba(14, 16, 20, .86); border-color: rgba(160, 170, 175, .55); box-shadow: none; text-decoration: line-through; text-decoration-color: rgba(120, 255, 215, .7); }
.gf-vessel.is-m .gf-vessel-ward { margin-top: 2px; width: 9px; height: 9px; padding: 0; font-size: 0; line-height: 0; border-width: 1px; }
.gf-vessel.is-m.is-warded .gf-vessel-ward { background: linear-gradient(135deg, transparent 42%, rgba(160, 170, 175, .9) 42%, rgba(160, 170, 175, .9) 58%, transparent 58%), rgba(14, 16, 20, .86); }
.impact-number.gf-ward-float { color: #b9ffe9; font-size: 36px; letter-spacing: 2px; text-shadow: 0 2px 2px #06100f, 0 0 10px rgba(80, 255, 210, .95), 0 0 22px rgba(60, 200, 180, .7); z-index: 30; }
.impact-number.gf-ward-float small { color: #d9fff3; }
@media (max-width: 650px) { .impact-number.gf-ward-float { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .gf-vessel-souls, .gf-vessel-glow, .gf-vessel-ward { animation: none !important; } .gf-vessel-fill { transition: none; } }
