/* css/game.css — 山海经·吞噬天帝 网页版样式 */

.gm-page { max-width: 1800px; margin: 0 auto; padding: 16px; }   /* v24：放宽到宽屏横向布局 */

/* ===== HUD ===== */
.gm-hud {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(38,28,22,0.95), rgba(24,18,26,0.95));
  border: 1px solid rgba(201,178,122,0.35); border-radius: 12px; padding: 14px 18px;
}
.gm-stage-name { font-size: 22px; font-weight: bold; color: #E8C97A; text-shadow: 0 0 12rpx rgba(232,201,122,0.4); }
.gm-form { color: #C9B27A; font-size: 14px; margin-left: 8px; }
.gm-s-row { color: #B0A48E; font-size: 15px; margin-top: 4px; }
.gm-s-row b { color: #E8C97A; font-size: 18px; }
.gm-s-delta { margin-left: 8px; font-size: 12px; color: #7FA65A; }
.gm-hp-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.gm-hp-bar { width: 180px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.gm-hp-fill { height: 100%; background: linear-gradient(90deg, #A3452E, #D97757); transition: width .3s; }
.gm-hp-text { color: #B0A48E; font-size: 12px; }
.gm-hud-right { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gm-chip {
  font-size: 12px; color: #B0A48E; padding: 4px 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(201,178,122,0.25); border-radius: 20px;
}
.gm-chip-gold { color: #E8C97A; border-color: rgba(232,201,122,0.45); }

/* ===== 主区 ===== */
/* v27：游戏主界面下方堆叠（不再左右并排）。.gm-field-wrap 画布占首行，.gm-side 六灵根/兽魂技能等面板占次行 */
.gm-main { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.gm-field-wrap { flex: 0 1 auto; min-width: 0; }
.gm-field-title { font-weight: bold; color: #C9B27A; margin-bottom: 10px; }
.gm-field-hint { font-weight: normal; font-size: 12px; margin-left: 8px; }
#gmCanvas {
  /* v14：不再由 800x480 属性决定比例，改按视口高度撑开（窄横条 → 有天有地的大画面） */
  width: 100%; height: clamp(430px, 74vh, 880px); display: block; border-radius: 10px;
  background: #1a1420; cursor: crosshair; touch-action: manipulation;
}
.gm-side { flex: 0 1 auto; min-width: 0; max-width: none; display: flex; flex-direction: column; gap: 14px; }
/* v27：移除旧宽屏并排规则（v25.3）；下方堆叠下不再需要 max-width 限制 */

/* 六灵根 */
.gm-root-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.gm-root-name { width: 86px; font-size: 13px; color: #E8D9B0; }
.gm-root-layer { display: block; font-style: normal; font-size: 10px; color: #8A7E6A; }
.gm-root-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.gm-root-fill { height: 100%; background: linear-gradient(90deg, #8A7248, #E8C97A); transition: width .4s; }
.gm-root-val { width: 110px; text-align: right; font-size: 11px; color: #8A7E6A; }

/* 兽魂 */
.gm-skill-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(201,178,122,0.2); }
.gm-skill-row b { color: #E8C97A; min-width: 48px; font-size: 14px; }
.gm-skill-row span { color: #B0A48E; font-size: 12px; }

/* 晋升门 */
.gm-gate { display: flex; justify-content: space-between; font-size: 13px; color: #B0A48E; padding: 5px 0; }
.gm-gate.ok { color: #9BB07A; }
.gm-gate.ok::before { content: '✓ '; }
.gm-btn-gold {
  width: 100%; margin-top: 10px; padding: 10px 0; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #B89340, #E8C97A); color: #241a14;
  font-size: 15px; font-weight: bold; cursor: pointer;
  box-shadow: 0 0 16px rgba(232,201,122,0.4);
}
.gm-btn-gold:hover { filter: brightness(1.08); }
.gm-btn {
  padding: 9px 26px; border: 1px solid rgba(201,178,122,0.5); border-radius: 8px;
  background: rgba(38,28,22,0.9); color: #E8C97A; font-size: 14px; cursor: pointer;
}

/* ===== Tabs ===== */
.gm-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid rgba(201,178,122,0.25); }
.gm-tab { padding: 8px 16px; cursor: pointer; color: #8A7E6A; font-size: 14px; }
.gm-tab.active { color: #E8C97A; border-bottom: 2px solid #E8C97A; }
.gm-panel { max-height: 320px; overflow-y: auto; }

/* ===== v7.1: 面板分区 tab（养成/日常/商店/图鉴/榜单） ===== */
.gm-ptabs {
  position: sticky; top: 74px; z-index: 5; /* 74px = 顶部导航栏高度，贴顶时让位于 topbar */
  display: flex; gap: 6px;
  padding: 8px 0 10px; margin-bottom: 10px;
  background: #F5F6FA; border-bottom: 1px solid rgba(201,178,122,0.35);
}
.gm-ptab {
  flex: 1; text-align: center;
  padding: 8px 0; border-radius: 8px;
  background: rgba(90,70,48,0.08); border: 1px solid rgba(90,70,48,0.25);
  color: #6B6252; font-size: 13px; cursor: pointer;
  transition: background 0.15s;
}
.gm-ptab.on {
  background: rgba(201,178,122,0.28); border-color: #B08F45;
  color: #6E5518; font-weight: bold;
}
.gm-ptab:hover { background: rgba(201,178,122,0.18); }
.gm-pgroup { display: none; }
.gm-pgroup.on { display: block; }
.gm-log-row { padding: 5px 0; color: #B0A48E; font-size: 13px; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-codex-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-codex-row.off { opacity: 0.45; }
.gm-codex-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.gm-codex-row b { color: #E8D9B0; font-size: 14px; min-width: 90px; }
.gm-codex-row .muted { flex: 1; font-size: 12px; }
.gm-codex-count { color: #E8C97A; font-size: 13px; }
.gm-beast-row { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-beast-row b { color: #E8D9B0; font-size: 15px; }
.gm-beast-lore { font-size: 12px; margin-top: 3px; line-height: 1.6; }

/* ===== 弹窗 ===== */
.gm-modal-mask {
  position: fixed; inset: 0; background: rgba(10,7,5,0.72); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gm-modal {
  position: relative;
  width: min(480px, 92vw); background: linear-gradient(160deg, #2b211a, #1c1620);
  border: 1px solid rgba(232,201,122,0.5); border-radius: 14px; padding: 24px;
  box-shadow: 0 0 40px rgba(232,201,122,0.15);
}
.gm-modal-title { font-size: 19px; font-weight: bold; color: #E8D9B0; margin-bottom: 14px; }
.gm-modal-title.gold { color: #E8C97A; text-align: center; text-shadow: 0 0 14px rgba(232,201,122,0.5); }
.gm-line { display: flex; gap: 10px; padding: 6px 0; color: #B0A48E; font-size: 14px; line-height: 1.6; }
.gm-line .gm-k { min-width: 68px; color: #8A7E6A; flex-shrink: 0; }
.gm-line.win { color: #9BB07A; font-weight: bold; }
.gm-line.lose { color: #D97757; font-weight: bold; }
.gm-line.gold { color: #E8C97A; }
.gm-btn-row { margin-top: 16px; text-align: center; }
.gm-modal-ceremony { text-align: center; }
.gm-cer-form { font-size: 18px; color: #E8C97A; font-weight: bold; margin: 12px 0; text-shadow: 0 0 16px rgba(232,201,122,0.6); }
.gm-cer-tier { color: #B0A48E; font-size: 14px; margin: 8px 0; }

.hidden { display: none !important; }

/* ===== v14 交锋入场景：战斗弹层沉底半透明，画布里的对峙与剑气可见 ===== */
.gm-modal-mask.duel {
  background: linear-gradient(to top, rgba(10,7,5,0.92) 0%, rgba(10,7,5,0.55) 32%, rgba(10,7,5,0) 68%);
  align-items: flex-end;
  padding: 0 12px 14px;
}
.gm-modal-mask.duel .gm-modal {
  width: min(720px, 96vw);
  background: rgba(28,22,32,0.92);
  box-shadow: 0 -8px 34px rgba(0,0,0,0.5);
  padding: 14px 20px 16px;
}
.gm-modal-mask.duel .gm-modal-title { font-size: 16px; margin-bottom: 8px; }
/* ===== v34（2026-09-13 用户指令）系统提示浮现式：不遮屏、无X、不打断玩法，游戏画面照常 ===== */
.gm-modal-mask.floater { background: transparent; pointer-events: none; align-items: flex-start; justify-content: flex-end; padding: 56px 14px 14px; }
.gm-modal-mask.floater .gm-modal { pointer-events: auto; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 120px); overflow-y: auto; opacity: .97; box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(201,178,122,.4); animation: gmFloatIn .3s ease-out; }
.gm-modal-mask.floater .gm-modal-x { display: none !important; }
@keyframes gmFloatIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: .97; } }
@media (max-width: 560px) { .gm-modal-mask.floater .gm-modal { width: calc(100vw - 24px); } }

/* ===== 图鉴 2D 异兽画像弹窗 ===== */
.gm-modal-portrait { text-align: center; }
.gm-portrait-sub { font-size: 13px; margin-bottom: 8px; }
#gpCanvas { border-radius: 10px; margin: 0 auto; display: block; max-width: 100%; }
.gm-portrait-lore { font-size: 13px; line-height: 1.7; text-align: justify; margin: 12px 6px 0; max-height: 140px; overflow-y: auto; }
/* v9.5 进阶三轴标准（颜色 / 能力 / 灵根）展示块 */
.gm-std-box { margin: 10px 6px 4px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(201,178,122,0.10), rgba(201,178,122,0.04)); border: 1px solid rgba(201,178,122,0.30); text-align: left; }
.gm-std-title { font-size: 13px; font-weight: 600; color: #B89B5C; margin-bottom: 6px; }
.gm-std-row { font-size: 12px; line-height: 1.65; color: #3a3a36; padding: 2px 0; }
.gm-std-row b { color: #534AB7; margin-right: 4px; }
/* v9.8 神话脉络：画像弹窗族群块 + 图鉴族群标签 + 脉络面板 */
.gm-cosmos-box { margin: 8px 6px 4px; padding: 9px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(83,74,183,0.10), rgba(83,74,183,0.03)); border: 1px solid rgba(83,74,183,0.34); text-align: left; }
.gm-cosmos-head { font-size: 13px; font-weight: 600; color: #8E83E0; margin-bottom: 4px; }
.gm-cosmos-role { font-size: 12px; color: #F5F2EA; line-height: 1.6; }
.gm-cosmos-role b { color: #B7AEF2; }
.gm-cosmos-myth { font-size: 12px; color: #F5F2EA; line-height: 1.62; margin-top: 4px; }
.gm-cosmos-src { font-size: 10px; color: #C8BC9C; margin-top: 4px; }
.gm-tag-clan { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 6px; margin-left: 4px; background: rgba(83,74,183,0.16); color: #6a5fce; border: 1px solid rgba(83,74,183,0.30); vertical-align: middle; }
.cosmos-chapter { margin: 10px 4px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(201,178,122,0.10), rgba(201,178,122,0.03)); border: 1px solid rgba(201,178,122,0.30); text-align: left; }
.cosmos-chapter h4 { margin: 0 0 5px; font-size: 14px; color: #C9B27A; font-weight: 700; }
.cosmos-chapter p { margin: 4px 0; font-size: 12.5px; line-height: 1.7; color: #FFFFFF; text-align: justify; }
.cosmos-chapter .gl { color: #A99CF0; }
.cosmos-chapter .src, .cosmos-clan .src { font-size: 10px; color: #C8BC9C; }
.cosmos-clan { margin: 8px 4px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(83,74,183,0.28); background: rgba(83,74,183,0.05); text-align: left; }
.cosmos-clan .cn { font-size: 13px; font-weight: 700; color: #8E83E0; }
.cosmos-clan .ck { font-size: 10px; color: #C8BC9C; margin-left: 6px; }
.cosmos-clan .cd { font-size: 12px; line-height: 1.62; color: #FFFFFF; margin: 3px 0; }
.cosmos-clan .cm { font-size: 11px; color: #E0D8C4; }
.cosmos-clan .cm span { display: inline-block; margin: 2px 3px 0 0; padding: 1px 6px; border-radius: 6px; background: rgba(201,178,122,0.14); border: 1px solid rgba(201,178,122,0.28); }
.cosmos-sec { font-size: 13px; font-weight: 700; color: #B89B5C; margin: 14px 4px 2px; border-bottom: 1px solid rgba(201,178,122,0.25); padding-bottom: 3px; }
.cosmos-bindex { margin: 3px 4px; font-size: 12px; line-height: 1.55; color: #FFFFFF; }
.cosmos-bindex b { color: #B7AEF2; }
/* v9.9 神话脉络：章节叙事正文 + 全量归族索引 + 精校标记 */
.cosmos-story { font-size: 12.5px; line-height: 1.8; color: #FFFFFF; text-align: justify; margin: 6px 0 2px; padding: 7px 10px; border-left: 3px solid rgba(142,131,224,0.55); background: rgba(142,131,224,0.06); border-radius: 0 8px 8px 0; }
.cosmos-index { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 5px 4px 8px; }
.cosmos-bi { flex: 0 1 auto; min-width: 0; font-size: 11px; line-height: 1.4; color: #F2EEE2; padding: 3px 7px; border-radius: 7px; background: rgba(201,178,122,0.08); border: 1px solid rgba(201,178,122,0.22); }
.cosmos-bi b { color: #B7AEF2; }
.cosmos-bi.premium { background: rgba(83,74,183,0.12); border-color: rgba(83,74,183,0.40); }
.cosmos-bi .bi-role { color: #A99CF0; }
.gm-cosmos-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 6px; margin-left: 6px; background: rgba(154,147,127,0.18); color: #C8BC9C; border: 1px solid rgba(154,147,127,0.34); vertical-align: middle; }
.gm-cosmos-tag.premium { background: rgba(83,74,183,0.16); color: #B7AEF2; border-color: rgba(83,74,183,0.36); }
.gm-beast-row { cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: background 0.15s; }
/* v9.1 真名画像：图鉴缩略图 + 弹窗画像图层 + 动漫星占位 */
.gm-beast-thumb { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid rgba(201,178,122,0.32); background: rgba(16,25,42,0.7); }
.gm-portrait-img { display: block; width: 280px; height: 210px; object-fit: contain; margin: 4px auto 8px; border-radius: 10px; border: 1px solid rgba(201,178,122,0.35); background: rgba(16,25,42,0.85); box-shadow: 0 6px 22px rgba(0,0,0,0.35); }
.gm-beast-row:hover { background: rgba(232,201,122,0.08); }
/* v9.2 三档形象标记：真名画像 / chibi 动漫形象 */
.gm-tag-real, .gm-tag-chibi { display: inline-block; font-size: 11px; line-height: 1; padding: 2px 6px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.gm-tag-real { color: #F2D995; background: rgba(232,201,122,0.16); border: 1px solid rgba(232,201,122,0.42); }
.gm-tag-chibi { color: #F7B8D2; background: rgba(247,184,210,0.13); border: 1px solid rgba(247,184,210,0.38); }
/* chibi 动漫形象大图：粉金柔光底 + 轻微浮动 */
.gm-portrait-img.chibi { background: radial-gradient(circle at 50% 45%, rgba(247,184,210,0.20), rgba(16,25,42,0.9) 68%); animation: chibiFloat 3.2s ease-in-out infinite; }
@keyframes chibiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ===== v7 名山寻踪 ===== */
.gm-seek-cur { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.gm-seek-cur b { color: #7FC4B8; font-size: 15px; }
.gm-seek-cur span { font-size: 12px; }
.gm-seek-tip { font-size: 12px; line-height: 1.7; margin-bottom: 10px; }
.gm-seek-btn { width: 100%; }
.gm-modal-seek { width: min(520px, 94vw); }
.gm-seek-sub { font-size: 13px; margin-bottom: 12px; }
/* 黑底白字：神话脉络 / 天帝纪两个背景介绍弹窗（正文、副标题、muted 统一转亮） */
#gmChronicleMask .gm-seek-sub, #gmCosmosMask .gm-seek-sub { color: #EFEAD8; }
#gmChronicleMask .gm-seek-body, #gmCosmosMask .gm-seek-body { color: #FFFFFF; }
#gmChronicleMask .muted, #gmCosmosMask .muted { color: #F5F2EA; }
.gm-seek-body { max-height: 56vh; overflow-y: auto; }
.gm-seek-land { padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(127,196,184,0.25);
  border-radius: 10px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.gm-seek-land:hover { background: rgba(127,196,184,0.08); border-color: rgba(127,196,184,0.55); }
.gm-seek-land.cur { border-color: rgba(232,201,122,0.7); background: rgba(232,201,122,0.07); }
.gm-seek-land .sl-head { display: flex; justify-content: space-between; align-items: baseline; }
.gm-seek-land .sl-head b { color: #E8D9B0; font-size: 15px; }
.gm-seek-land .sl-head span { color: #7FC4B8; font-size: 13px; }
.gm-seek-land .sl-head .sl-full { color: #E8C97A; }
.gm-seek-land .sl-sub { font-size: 12px; line-height: 1.6; margin-top: 3px; }
.gm-seek-q { border: 1px solid rgba(232,201,122,0.4); border-radius: 10px; background: rgba(232,201,122,0.06);
  padding: 14px 16px; color: #D8CBA8; font-size: 14px; line-height: 1.9; }
.gm-seek-ask { color: #D4B57A; font-size: 13px; margin: 12px 0; text-align: center; }
.gm-seek-opt { border: 1px solid rgba(127,196,184,0.35); border-radius: 10px; padding: 11px; margin-bottom: 8px;
  text-align: center; color: #CFE8E2; font-size: 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.gm-seek-opt:hover { background: rgba(127,196,184,0.12); border-color: rgba(127,196,184,0.7); }
.gm-seek-msg { text-align: center; font-size: 14px; line-height: 1.8; margin: 10px 0; }
.gm-seek-msg.ok { color: #8FCE9A; font-size: 15px; }
.gm-seek-msg.bad { color: #E08A8A; }
.gm-seek-msg.muted2 { color: #8B8FA0; font-size: 12px; }

/* ===== v7.1 完整版功能样式（签到/任务/屯兽栏/商店/塔/丹/成就/榜/天帝纪） ===== */
.gm-btn-sm {
  padding: 4px 12px; border: 1px solid rgba(201,178,122,0.5); border-radius: 6px;
  background: rgba(38,28,22,0.9); color: #E8C97A; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.gm-btn-sm:hover { background: rgba(201,178,122,0.15); }
button.off, .gm-btn-gold.off { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.gm-tip { font-size: 12px; line-height: 1.7; margin: 6px 0; }

/* 兽魂十二魂 */
.gm-skill-panel { margin-bottom: 10px; }
.gm-skill-panel .gm-skill-root { font-size: 13px; font-weight: bold; margin: 8px 0 2px; }
.gm-skill-panel .gm-skill-root .muted { font-weight: normal; font-size: 11px; }
.gm-skill-row.off { opacity: 0.45; }
.gm-skill-info { flex: 1; font-size: 12px; }
.gm-skill-info em { font-style: normal; font-size: 11px; }

/* 签到 */
.gm-sign-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #E8D9B0; padding: 4px 0; }
/* v9.4: 天帝转生叙事（呼应《昆仑歪传》轮回重演） */
.gm-reborn-narr { margin-top: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.6; color: #C9B27A;
  background: rgba(90,70,48,0.22); border: 1px solid rgba(201,178,122,0.35); border-radius: 8px;
  border-left: 3px solid #E8C97A; }

/* 日常任务 */
.gm-task-row { display: flex; justify-content: space-between; font-size: 13px; color: #B0A48E; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-task-row.done { color: #9BB07A; }
.gm-task-row.done span:first-child::before { content: '✓ '; }

/* 屯兽栏 */
.gm-pen-slot { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); flex-wrap: wrap; }
.gm-pen-slot b { color: #E8D9B0; font-size: 14px; }
.gm-pen-slot .muted { flex: 1; font-size: 12px; }
.gm-pen-slot.fat b { color: #E8C97A; text-shadow: 0 0 8px rgba(232,201,122,0.4); }
.gm-pen-btns { display: flex; gap: 6px; }
.gm-tag { font-size: 11px; color: #E8C97A; border: 1px solid rgba(232,201,122,0.45); border-radius: 4px; padding: 0 4px; }

/* 灵兽潮汐 */
.gm-event { font-size: 14px; color: #7FC4B8; padding: 6px 0; }
.gm-event.on { color: #E8C97A; font-weight: bold; }

/* 天机印记 */
.gm-mark-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; }
.gm-mark-row.off { opacity: 0.45; }
.gm-mark-row b { color: #E8D9B0; min-width: 64px; }
.gm-mark-row .muted { flex: 1; font-size: 12px; }
.gm-mark-row.has b { color: #C77BD9; }

/* 商店 / 丹炉 */
.gm-shop-item, .gm-pill-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-shop-info { flex: 1; }
.gm-shop-info b { color: #E8D9B0; font-size: 14px; display: block; }
.gm-shop-info .muted { font-size: 12px; }
.gm-pill-row.on b { color: #9BB07A; }

/* 万妖塔 */
.gm-tower-row { display: flex; justify-content: space-between; font-size: 14px; color: #E8D9B0; padding: 4px 0; }
.gm-tower-row b { color: #E8C97A; }

/* 天命剧情 */
.gm-quest-row { font-size: 13px; color: #B0A48E; padding: 4px 0; }
.gm-quest-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; }
.gm-quest-ch b { color: #E8D9B0; font-size: 13px; }
.gm-quest-ch .muted { font-size: 12px; }
.gm-quest-ch.done { opacity: 0.6; }
.gm-quest-ch.done b::before { content: '✓ '; color: #9BB07A; }
.gm-quest-ch.cur b { color: #E8C97A; }

/* 转生天赋 */
.gm-talent-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; color: #E8D9B0; border-bottom: 1px dashed rgba(255,255,255,0.06); }

/* 成就 */
.gm-ach-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; }
.gm-ach-row b { color: #E8D9B0; min-width: 96px; font-size: 13px; }
.gm-ach-row .muted { flex: 1; font-size: 12px; }
.gm-ach-row.done b { color: #9BB07A; }

/* 山海榜 */
.gm-btab {
  padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(201,178,122,0.25); color: #B0A48E;
}
.gm-btab.on { background: rgba(201,178,122,0.2); color: #E8C97A; border-color: #B08F45; font-weight: bold; }
.gm-board-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gm-board-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; }
.gm-board-row .gm-board-rank { width: 26px; text-align: center; color: #8A7E6A; font-weight: bold; }
.gm-board-row.top .gm-board-rank { color: #E8C97A; }
.gm-board-row .gm-board-name { flex: 1; color: #E8D9B0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-board-row .gm-board-val { color: #E8C97A; font-weight: bold; }
.gm-board-mine { margin-top: 10px; padding: 8px 12px; border: 1px solid rgba(232,201,122,0.4); border-radius: 8px; color: #E8C97A; font-size: 13px; text-align: center; }

/* v9.6 道友码（榜单面板内 · 异步收藏比拼） */
.gm-friend-my { color: #E8D9B0; font-size: 13px; margin: 8px 0; }
.gm-friend-code { color: #E8C97A; font-weight: bold; letter-spacing: 1px; padding: 2px 8px; background: rgba(201,178,122,0.16); border-radius: 6px; cursor: pointer; }
.gm-friend-add { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.gm-friend-input { flex: 1; min-width: 0; background: rgba(20,16,12,0.5); border: 1px solid rgba(201,178,122,0.3); border-radius: 8px; color: #E8D9B0; font-size: 13px; padding: 8px 12px; }
.gm-friend-list { margin-top: 8px; }
.gm-friend-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.gm-friend-row-name { flex: 1; color: #E8D9B0; font-size: 13px; }
.gm-friend-row-pct { color: #E8C97A; font-size: 12px; }
.gm-friend-row-s { color: #9C8F80; font-size: 12px; }
.gm-friend-row-del { color: #B06A5A; cursor: pointer; padding: 0 6px; }
.gm-friend-empty { color: #8A7E6A; font-size: 12px; padding: 8px 0; }
.gm-board-recent-title { margin-top: 12px; font-size: 12px; }
.gm-board-recent { font-size: 12px; color: #B0A48E; padding: 3px 0; }

/* 天帝纪 */
.gm-chron-tip { font-size: 12px; line-height: 1.7; margin-bottom: 10px; color: #FFFFFF; }
.gm-chron-arc { padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(232,201,122,0.3); border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.gm-chron-arc:hover { background: rgba(232,201,122,0.07); }
.gm-chron-arc.off { opacity: 0.5; cursor: default; }
.gm-chron-arc .sl-head { display: flex; justify-content: space-between; align-items: baseline; }
.gm-chron-arc .sl-head b { color: #E8D9B0; font-size: 15px; }
.gm-chron-arc .sl-head span { color: #E8C97A; font-size: 13px; }
.gm-chron-arc .sl-sub { font-size: 12px; line-height: 1.6; margin-top: 3px; color: #EFEAD8; }
.gm-chron-arc.finale { border-color: rgba(199,123,217,0.45); }
.gm-chron-arc.legend { border-color: rgba(126,211,166,0.45); }
.gm-chron-arc.legend .sl-head span { color: #7ED3A2; }
.gm-chron-hook { margin-top: 6px; font-size: 12px; color: #C77BD9; }
.gm-chron-ch { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 13px; color: #FFFFFF; }
.gm-chron-ch b { color: #E8D9B0; margin-right: 8px; }
.gm-chron-ch.off { opacity: 0.45; }
.gm-chron-ch .muted { font-size: 12px; line-height: 1.7; margin-top: 2px; color: #F5F2EA; }
.gm-chron-answer { margin: 10px 0; padding: 10px 14px; border: 1px solid rgba(232,201,122,0.35); border-radius: 10px; color: #D8CBA8; font-size: 13px; line-height: 1.8; }

/* 新手引导条 */
.gm-tut { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; padding: 8px 14px; border: 1px solid rgba(127,196,184,0.4); border-radius: 10px;
  background: rgba(127,196,184,0.08); color: #7FC4B8; font-size: 13px; }
.gm-hint { margin-bottom: 10px; padding: 9px 14px; border: 1px solid rgba(232,201,122,0.45); border-radius: 10px;
  background: rgba(232,201,122,0.1); color: #E8C97A; font-size: 13px; line-height: 1.6; }

/* v12.1：主界面快捷入口（山志·猎场图 / 挑战道友） */
.gm-quick-bar { display: flex; gap: 12px; margin-bottom: 10px; justify-content: center; }
.gm-quick-btn { padding: 7px 18px; font-size: 13px; border-radius: 20px; cursor: pointer;
  background: rgba(30,24,18,0.85); border: 1px solid #4A3E2E; color: #D4C9A8; transition: all .15s; }
.gm-quick-btn.gold { color: #E8C97A; border-color: #5A4630; }
.gm-quick-btn.gold:hover { background: rgba(90,70,48,0.6); }
.gm-quick-btn.danger { color: #D8786A; border-color: #5A2E26; }
.gm-quick-btn.danger:hover { background: rgba(90,46,38,0.6); }

@media (max-width: 760px) {
  .gm-main { flex-direction: column; }
  .gm-hud-right { justify-content: flex-start; }
}

/* v9.1 星星特效粒子 */
.gm-star-particle {
  position: fixed; z-index: 500; pointer-events: none;
  animation: starFly var(--dur, 1000ms) ease-out forwards;
}
.gm-star-particle.flower { filter: drop-shadow(0 0 6px rgba(247,184,210,0.65)) brightness(1.06); }
@keyframes starFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  50%  { opacity: .9; transform: translate(calc(var(--sx) * 0.5), calc(var(--sy) * 0.5)) scale(1) rotate(180deg); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.2) rotate(360deg); }
}

/* ================= v9.3（2026-08-30）：图鉴全量 + 屯兽饲养 ================= */
.gm-codex-bar { display: flex; gap: 6px; margin: 6px 0 4px; flex-wrap: wrap; }
.gm-codex-search {
  flex: 1 1 140px; min-width: 120px; padding: 5px 8px; font-size: 12px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(201,178,122,.28);
  border-radius: 6px; color: #E8C97A; outline: none;
}
.gm-codex-search::placeholder { color: #7A6E58; }
.gm-codex-sel {
  flex: 0 0 auto; padding: 5px 6px; font-size: 12px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(201,178,122,.28);
  border-radius: 6px; color: #E8C97A;
}
.gm-codex-meta { font-size: 11px; color: #8B8070; margin: 2px 0 8px; }
.gm-beast-row.off { opacity: .62; }

.gm-pen-img { width: 42px; height: 42px; flex: none; border-radius: 6px; background: rgba(0,0,0,.25); }
.gm-pen-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gm-pen-sub { font-size: 10px; color: #8B8070; }
/* v9.4 成长阶：蛋/幼/少/成/尊 五段进度 */
.gm-growth { display: inline-flex; gap: 3px; margin: 1px 0; }
.gm-gseg { font-size: 10px; color: #6f6555; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.gm-gseg.on { color: #C9B27A; background: rgba(201,178,122,0.14); border-color: rgba(201,178,122,0.35); }
.gm-gseg.cur { color: #F2E3B0; background: rgba(232,201,122,0.28); border-color: #E8C97A; font-weight: 600; }
.gm-pen-all { width: 100%; margin-top: 8px; }

/* ===== v9.6: 小爱向导 · 地点介绍（名山寻踪入口） ===== */
.gm-guide-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; border-bottom: 1px solid #2E2618; }
.gm-guide-avatar {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
  background: #0d1626; border: 2px solid rgba(201,178,122,0.6);
  box-shadow: 0 0 14px rgba(201,178,122,0.25); object-fit: cover;
}
.gm-guide-head-txt { flex: 1; min-width: 0; }
.gm-guide-hi { color: #C9B27A; font-size: 13px; letter-spacing: 1px; }
.gm-guide-land { color: #E8D9A8; font-size: 22px; font-weight: bold; letter-spacing: 3px; margin-top: 2px; }
.gm-guide-sub { color: #8B2941; font-size: 13px; margin-top: 2px; }
.gm-guide-desc {
  color: #B0A48E; font-size: 14px; line-height: 1.8; margin-top: 12px;
  border-left: 3px solid #C9B27A; padding-left: 12px;
}
.gm-guide-sec {
  color: #C9B27A; font-size: 13px; font-weight: bold; margin: 14px 0 8px;
  letter-spacing: 1px; padding-left: 10px; border-left: 3px solid #C9B27A;
}
.gm-guide-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-guide-tag {
  color: #9C8F80; font-size: 12px; border: 1px solid #3A3024; border-radius: 6px;
  padding: 3px 10px; background: #211A12;
}
.gm-guide-tag.got { color: #C9B27A; border-color: rgba(201,178,122,0.55); background: #26200F; }
.gm-guide-tip { color: #9C8F80; font-size: 12px; line-height: 1.7; margin-top: 12px; }

/* ===== v10: 问道寻宝（基因线 · 问答门关 → 基因合并） ===== */
.gm-ask-card { border-color: rgba(232,201,122,0.45); }
.gm-ask-gains {
  margin: 10px 0; padding: 12px 14px;
  background: rgba(232,201,122,0.08); border: 1px solid rgba(232,201,122,0.4);
  border-radius: 10px;
  color: #E8C97A; font-size: 14px; line-height: 1.7; text-align: center;
}
.gm-ask-guard-row { display: flex; gap: 8px; margin-top: 14px; }
.gm-ask-fight-btn { flex: 1; min-width: 0; }
.gm-ask-guard-row .gm-btn-gold { flex: 1; min-width: 0; }

/* ===== v11: 物理线 · 招式十二式 / 噬痕蓄能 ===== */
.gm-move-card { border-color: rgba(232,201,122,0.45); }
.gm-scar-card { border-color: rgba(217,96,79,0.45); }
/* 合成行：进度条 + 文案 + 按钮 */
.gm-move-merge { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.gm-move-bar {
  width: 150px; height: 10px; border-radius: 5px; flex-shrink: 0;
  background: rgba(90,70,48,0.35); overflow: hidden;
}
.gm-move-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #8A6B3D, #E8C97A); }
.gm-move-fill.scar { background: linear-gradient(90deg, #7A2E2E, #D9604F); }
.gm-move-text { flex: 1; min-width: 0; color: #B0A48E; font-size: 13px; }
.gm-move-merge .gm-btn-sm.on { color: #E8C97A; border-color: rgba(232,201,122,0.55); background: #26200F; }
/* 当前加成总览（六条数值链） */
.gm-move-bonus { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.gm-move-tag {
  padding: 2px 10px; border-radius: 8px; font-size: 12px;
  color: #E8C97A; background: rgba(232,201,122,0.10); border: 1px solid rgba(232,201,122,0.28);
}
/* 分节小标题（已悟 / 未悟） */
.gm-move-sub { color: #C9B27A; font-size: 13px; margin: 14px 0 8px; }
/* 招式条目 */
.gm-move-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px; margin-bottom: 6px; border-radius: 8px;
  background: rgba(90,70,48,0.15); border: 1px solid rgba(90,70,48,0.4);
}
.gm-move-row.has { background: rgba(232,201,122,0.08); border-color: rgba(232,201,122,0.3); }
.gm-move-row b { color: #D8CBA8; font-size: 14px; }
.gm-move-row.has b { color: #E8C97A; }
.gm-move-row.off b { color: #6B6355; }
.gm-move-src { color: rgba(196,178,142,0.6); font-size: 12px; }
.gm-move-desc { flex: 1; min-width: 0; color: #9C9280; font-size: 12px; line-height: 1.5; }

/* ================= v9.5 天帝加冕（全噬 402 只方可登位） ================= */
.gm-crown-card { border-color: rgba(232,201,122,0.22); }
.gm-crown-card.crowned {
  border-color: rgba(232,201,122,0.6);
  background: linear-gradient(180deg, rgba(232,201,122,0.10), rgba(0,0,0,0));
}
.gm-crown-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gm-crown-title { color: #8E8266; font-size: 15px; letter-spacing: 1px; }
.gm-crown-title.on { color: #E8C97A; text-shadow: 0 0 10px rgba(232,201,122,0.35); }
.gm-crown-count { color: #C9B27A; font-size: 12px; }
.gm-crown-desc { color: #9C9280; font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
.gm-crown-bar-row { display: flex; align-items: center; gap: 10px; }
.gm-crown-bar {
  flex: 1; min-width: 0; height: 10px; border-radius: 5px;
  background: rgba(90,70,48,0.35); overflow: hidden;
}
.gm-crown-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #6B5430, #A98F52);
}
.gm-crown-fill.on { background: linear-gradient(90deg, #8A6B3D, #E8C97A); }
.gm-crown-pct { color: #B0A48E; font-size: 12px; flex-shrink: 0; }
.gm-crown-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gm-crown-tag {
  padding: 2px 10px; border-radius: 8px; font-size: 12px;
  color: #E8C97A; background: rgba(232,201,122,0.10); border: 1px solid rgba(232,201,122,0.28);
}

/* ================= v9.6 天帝立绘 + 加冕动画 + 结局画面 ================= */
.gm-crown-portrait { display: flex; justify-content: center; margin-bottom: 10px; }
.tianyi-svg { display: block; }
.tianyi-halo { transform-origin: 60px 60px; animation: tianyi-breathe 3s ease-in-out infinite; }
@keyframes tianyi-breathe { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.gm-crown-card.crowned .gm-crown-portrait { animation: tianyi-glow 2.2s ease-out 1; }
@keyframes tianyi-glow {
  0% { filter: drop-shadow(0 0 0 rgba(232,201,122,0)); }
  40% { filter: drop-shadow(0 0 18px rgba(232,201,122,0.7)); }
  100% { filter: drop-shadow(0 0 6px rgba(232,201,122,0.3)); }
}
#gmFinale {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,0.82);
}
#gmFinale.show { display: flex; animation: tianyi-fade 0.6s ease-out; }
@keyframes tianyi-fade { from { opacity: 0; } to { opacity: 1; } }
.gm-finale-card {
  text-align: center; color: #E8C97A; padding: 28px 36px; max-width: 440px;
  border: 1px solid rgba(232,201,122,0.5); border-radius: 16px;
  background: linear-gradient(180deg, rgba(40,30,16,0.96), rgba(20,16,10,0.96));
  animation: tianyi-rise 0.8s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 40px rgba(232,201,122,0.18);
}
@keyframes tianyi-rise { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.gm-finale-svg { display: flex; justify-content: center; margin-bottom: 14px; }
.gm-finale-svg .tianyi-halo { animation: tianyi-breathe 3s ease-in-out infinite; }
.gm-finale-title { font-size: 18px; letter-spacing: 3px; color: #FFF6DC; margin-bottom: 6px; }
.gm-finale-name { font-size: 22px; font-weight: 500; color: #E8C97A; margin-bottom: 8px; text-shadow: 0 0 12px rgba(232,201,122,0.4); }
.gm-finale-desc { font-size: 13px; color: #C9B27A; line-height: 1.6; margin-bottom: 14px; }
.gm-finale-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.gm-finale-stats span { padding: 3px 12px; border-radius: 8px; font-size: 12px; color: #E8C97A; background: rgba(232,201,122,0.10); border: 1px solid rgba(232,201,122,0.28); }
.gm-finale-lore { font-size: 14px; color: #FFF6DC; font-style: italic; margin: 12px 0; line-height: 1.7; }
.gm-finale-creed { font-size: 12px; color: #9C9280; line-height: 1.8; margin-bottom: 18px; }
#gmFinaleClose { margin-top: 6px; }

/* ================= v12：arena 打斗表现层（web 版） ================= */
/* 铁律：胜负由 battle() 独占；arena 只产出评级 → 吞噬收益系数。
   判定环收缩交给 CSS 动画（避免高频 DOM 操作），只在换拍/反馈时改 DOM。 */
.gb-arena-stage {
  padding: 8px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gb-arena-hud {
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 8px; box-sizing: border-box;
}
.gb-arena-combo { color: #E8B45A; font-size: 14px; font-weight: bold; letter-spacing: 1px; }
.gb-arena-prog { color: #9C9280; font-size: 12px; }

/* v22：判定环 / 四键 / 绝学按钮等选择层样式已全部移除——交锋改为自动演出，相关 DOM 不再渲染。 */

.gb-arena-note { color: #C9B27A; font-size: 13px; min-height: 20px; text-align: center; }
.gb-arena-note.perfect { color: #E8C97A; font-weight: bold; }
.gb-arena-note.hit { color: #A8C97A; }
.gb-arena-note.miss { color: #D46A5A; }

/* v22：双方血量条（绿=我方 / 红=猎物，纯表现层） */
.gb-hp-bars { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 4px; }
.gb-hp-row { display: flex; align-items: center; gap: 6px; }
.gb-hp-name { width: 72px; font-size: 11px; color: #C9B27A; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-hp-track { flex: 1; height: 12px; background: rgba(0,0,0,0.4); border-radius: 6px; overflow: hidden; border: 1px solid rgba(201,178,122,0.3); }
.gb-hp-fill { height: 100%; width: 100%; transition: width .35s ease; }
.gb-hp-fill.me { background: linear-gradient(90deg, #4FA36B, #8FD6A0); }
.gb-hp-fill.prey { background: linear-gradient(90deg, #B5452E, #E07A5A); }
.gb-hp-num { width: 30px; font-size: 11px; color: #B0A48E; text-align: left; }
.gb-arena-prog { text-align: center; color: #9C9280; font-size: 11px; margin-top: 2px; }

/* v22：战斗中 ✕ 自由退走关闭键 */
#gbClose { position: absolute; right: 8px; top: 6px; z-index: 9; width: 32px; height: 32px; line-height: 30px; text-align: center; font-size: 16px; color: #B0A48E; background: rgba(20,16,12,0.55); border: 1px solid rgba(201,178,122,0.45); border-radius: 50%; cursor: pointer; padding: 0; }
#gbClose:hover { color: #E8C97A; border-color: #C9B27A; background: rgba(60,48,30,0.85); }

/* v22：四操作键 / 说明条 / 撤退键 / 绝学按钮等选择层样式已全部移除（交锋改为自动演出）。 */

/* ===== 多界面（世界地图/洞府/组团）+ 3D 查看器 样式（2026-09-11） ===== */
.swd-view { display: none; }
.swd-view.on { display: block; }
.swd-card {
  background: #FFFFFF; border-radius: 10px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05); border: 1px solid rgba(201,178,122,0.28);
}
.swd-sec { font-size: 16px; font-weight: 600; color: #1B1B2F; margin-bottom: 6px; }
.swd-sec::before { content: ''; display: inline-block; width: 4px; height: 15px; background: #B08A3E; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.swd-sub { font-size: 12.5px; color: #8A8270; line-height: 1.6; margin-bottom: 10px; }
.swd-note { font-size: 12px; color: #A8A6A0; line-height: 1.6; }

.swd-land-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.swd-land-card {
  border: 1px solid rgba(201,178,122,0.45); border-radius: 8px; padding: 12px;
  background: linear-gradient(180deg, #FFFDF7, #F7F2E6); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.swd-land-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(176,138,62,0.22); }
.swd-land-name { font-size: 15px; font-weight: 600; color: #3A2E18; }
.swd-land-sub { font-size: 11.5px; color: #9A8C6A; margin-top: 2px; }
.swd-land-count { font-size: 11.5px; color: #B08A3E; margin-top: 6px; }

.swd-back { border: 1px solid rgba(201,178,122,0.5); background: #FFFDF7; color: #8A6A2E; border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; margin-bottom: 10px; }
.swd-beast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swd-beast-chip { border: 1px solid rgba(201,178,122,0.35); border-radius: 8px; padding: 6px; text-align: center; cursor: pointer; background: #FFFDF8; }
.swd-beast-chip:hover { border-color: #B08A3E; }
.swd-beast-chip-img { width: 100%; height: 62px; object-fit: cover; border-radius: 6px; display: block; }
.swd-beast-chip-name { font-size: 12px; color: #3A2E18; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.swd-vol-row { padding: 9px 0; border-bottom: 1px dashed rgba(201,178,122,0.3); font-size: 12.5px; }
.swd-vol-row.off { opacity: 0.62; }
.swd-vol-row.on .swd-vol-title { color: #9A6A18; }
.swd-vol-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.swd-vol-title { color: #3A2E18; font-weight: 600; }
.swd-vol-prog { color: #8A6A20; font-size: 11.5px; flex: none; }
.swd-vol-lands { color: #8A8270; margin-top: 3px; line-height: 1.5; }
.swd-vol-bar { height: 4px; border-radius: 3px; background: rgba(120,96,60,.18); margin-top: 6px; overflow: hidden; }
.swd-vol-bar > i { display: block; height: 100%; background: linear-gradient(90deg,#C9A227,#A8742A); }

.swd-denfu-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(201,178,122,0.28); font-size: 13.5px; color: #5F5E5A; }
.swd-denfu-row b { color: #B08A3E; font-weight: 600; }
.swd-denfu-link { text-align: center; margin-top: 14px; }
.swd-denfu-link a { display: inline-block; padding: 9px 22px; border: 1px solid rgba(176,138,62,0.55); border-radius: 18px; color: #B08A3E; text-decoration: none; font-size: 13.5px; font-weight: 600; letter-spacing: 1px; transition: background 0.2s; background: rgba(201,178,122,0.08); }
.swd-denfu-link a:hover { background: rgba(201,178,122,0.2); }
.swd-roots { display: flex; flex-direction: column; gap: 7px; }
.swd-root-bar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6A6350; }
.swd-root-name { width: 48px; flex: none; }
.swd-root-track { flex: 1; height: 8px; border-radius: 5px; background: rgba(201,178,122,0.22); overflow: hidden; }
.swd-root-fill { display: block; height: 100%; background: linear-gradient(90deg, #D8B968, #B08A3E); }
.swd-root-val { width: 40px; text-align: right; color: #8A6A2E; flex: none; }

.swd-group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.swd-group-cell { border: 1px solid rgba(201,178,122,0.45); border-radius: 8px; padding: 14px; background: #FFFDF7; cursor: pointer; }
.swd-group-cell:hover { border-color: #B08A3E; }
.swd-group-t { font-size: 14px; font-weight: 600; color: #3A2E18; }
.swd-group-d { font-size: 11.5px; color: #9A8C6A; margin-top: 4px; line-height: 1.5; }

/* 异兽弹层 + 3D 舞台 */
.swd-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.swd-modal.hidden { display: none; }
.swd-modal-mask { position: absolute; inset: 0; background: rgba(20,16,8,0.72); }
.swd-modal-card { position: relative; width: min(680px, 92vw); max-height: 90vh; overflow: auto; background: #FFFFFF; border-radius: 14px; border: 1px solid rgba(201,178,122,0.5); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.swd-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(201,178,122,0.3); font-size: 16px; font-weight: 600; color: #3A2E18; }
.swd-modal-x { border: none; background: transparent; font-size: 22px; line-height: 1; color: #9A8C6A; cursor: pointer; }
.swd-bm-body { display: flex; gap: 14px; padding: 14px 16px 18px; }
.swd-bm-3d { flex: 1 1 52%; min-height: 300px; background: radial-gradient(circle at 50% 40%, #2A2440, #14101F); border-radius: 10px; position: relative; overflow: hidden; }
.swd-bm-info { flex: 1 1 48%; display: flex; flex-direction: column; gap: 10px; }
.swd-bm-portrait { width: 100%; border-radius: 8px; border: 1px solid rgba(201,178,122,0.4); }
.swd-bm-lore { font-size: 12.5px; color: #6A6350; line-height: 1.7; }
.swd-bm-land { font-size: 12px; color: #B08A3E; }
@media (max-width: 560px) { .swd-bm-body { flex-direction: column; } .swd-land-grid, .swd-group-grid { grid-template-columns: 1fr; } .swd-beast-grid { grid-template-columns: repeat(3, 1fr); } }

.swd3d-canvas { width: 100%; height: 100%; }
.swd3d-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.swd3d-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; perspective: 900px; }
.swd3d-tilt { max-width: 88%; max-height: 92%; border-radius: 10px; transition: transform .08s linear; box-shadow: 0 8px 26px rgba(0,0,0,0.5); }
.swd3d-empty { color: #8A8270; font-size: 13px; }
.swd3d-badge { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #C9B27A; opacity: .8; }

/* 2026-09-11: 3D 状态徽标（真旋转 / 平面回退） */
.swd3d-badge.on { color: #7ED6A5; }
.swd3d-badge.off { color: #C9B27A; }
.swd3d-badge { pointer-events: none; background: rgba(20,16,31,0.55); padding: 2px 7px; border-radius: 6px; opacity: 1; }

/* ================= v14 屯兽栏：圈养笼场景 + 合体 ================= */
#gmPen { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
#gmPen > .gm-sign-row, #gmPen > .gm-tip, #gmPen > .gm-merge-hint, #gmPen > .gm-pen-all { width: 100%; }
.gm-cage-card {
  flex: 1 1 150px; max-width: 200px; min-width: 140px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.gm-cage-card.fat { border-color: rgba(232,201,122,0.35); background: rgba(232,201,122,0.05); }
.gm-cage-card.sel { border-color: #C9B27A; box-shadow: 0 0 10px rgba(201,178,122,0.35); }
.gm-cage {
  position: relative; height: 92px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #241E33 0%, #171226 78%, #2E2418 78%, #241C10 100%);
  border: 1px solid rgba(201,178,122,0.28);
}
.gm-cage .gm-cage-bars {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(90deg,
    rgba(150,140,120,0.55) 0 3px, transparent 3px 16px);
  border-top: 4px solid rgba(150,140,120,0.65);
  border-bottom: 3px solid rgba(150,140,120,0.45);
}
.gm-cage-img {
  position: relative; z-index: 1; width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  animation: gm-cage-bob 2.6s ease-in-out infinite;
}
@keyframes gm-cage-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.gm-cage.fat { box-shadow: inset 0 0 22px rgba(232,201,122,0.25); border-color: rgba(232,201,122,0.55); }
.gm-cage.sel { outline: 2px solid #E8C97A; outline-offset: -2px; }
.gm-cage.mergeable { outline: 2px dashed #7ED6A5; outline-offset: -2px; animation: gm-cage-pulse 1.2s ease-in-out infinite; }
@keyframes gm-cage-pulse { 0%,100% { outline-color: rgba(126,214,165,0.9); } 50% { outline-color: rgba(126,214,165,0.25); } }
.gm-cage.empty { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px), rgba(0,0,0,0.2); }
.gm-cage-empty { z-index: 1; color: #5A5344; font-size: 12px; letter-spacing: 2px; }
.gm-cage-tag {
  position: absolute; z-index: 3; top: 3px; left: 3px;
  font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 5px;
  background: rgba(20,16,31,0.8); border: 1px solid rgba(201,178,122,0.4); color: #C9B27A;
}
.gm-cage-tag.elite { color: #C9A0FF; border-color: rgba(160,110,255,0.5); }
.gm-cage-tag.fat { color: #F2C14E; border-color: rgba(242,193,78,0.55); }
.gm-cage-tag.merged { color: #7ED6A5; border-color: rgba(126,214,165,0.5); }
.gm-cage-tag.canmerge { color: #7ED6A5; border-color: rgba(126,214,165,0.6); left: auto; right: 3px; }
.gm-cage-card b { font-size: 13px; color: #E8D9B0; }
.gm-cage-card .gm-gseg { text-align: center; }
.gm-cage-card .gm-pen-sub { font-size: 10.5px; color: #8A8270; line-height: 1.5; }
.gm-cage-card .gm-pen-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.gm-cage-card .gm-btn-sm { flex: 1 1 auto; min-width: 34px; padding: 3px 6px; font-size: 11px; }
.gm-merge-hint {
  font-size: 11.5px; line-height: 1.6; padding: 7px 10px; border-radius: 8px;
  background: rgba(126,214,165,0.07); border: 1px dashed rgba(126,214,165,0.4); color: #7ED6A5;
}

/* ================= v14 打斗画面：我方 vs 猎物 ================= */
.gb-fight {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; padding: 12px 18px 8px; margin-bottom: 8px; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 88%, rgba(201,178,122,0.13), transparent 60%),
              linear-gradient(180deg, #1B1628 0%, #241C10 100%);
  border: 1px solid rgba(201,178,122,0.25);
  overflow: hidden; min-height: 118px;
}
.gb-fighter { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 84px; }
.gb-fighter img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,0.6)); }
.gb-fighter.noimg img { display: none; }
.gb-fighter.noimg::before { content: '\1F43E'; font-size: 34px; line-height: 68px; opacity: .6; }
.gb-fighter-name { font-size: 11px; color: #C9B27A; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-fight-vs { position: absolute; z-index: 1; left: 50%; top: 42%; transform: translate(-50%,-50%);
  font-size: 20px; color: #E8C97A; text-shadow: 0 0 12px rgba(232,201,122,0.7); animation: gb-vs-pulse 1.6s ease-in-out infinite; }
@keyframes gb-vs-pulse { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); } }
.gb-fight-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gb-fight-pop { position: absolute; font-size: 15px; font-weight: 700; white-space: nowrap;
  animation: gb-pop .95s ease-out forwards; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.gb-fight-pop.good { color: #F2E3B0; }
.gb-fight-pop.crit { color: #FFD24E; font-size: 19px; text-shadow: 0 0 12px rgba(255,210,78,0.8); }
.gb-fight-pop.dmg { color: #FF9A6A; font-size: 13px; }
.gb-fight-pop.bad { color: #D46A5A; }
@keyframes gb-pop { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 18% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
.gb-fighter.me.f-attack { animation: gb-lunge-me .5s ease-out; }
@keyframes gb-lunge-me { 0% { transform: translateX(0); } 35% { transform: translateX(34px) rotate(-6deg); } 62% { transform: translateX(30px) rotate(-4deg); } 100% { transform: translateX(0); } }
.gb-fighter.me.f-attack.crit { animation: gb-lunge-me-crit .55s ease-out; }
@keyframes gb-lunge-me-crit { 0% { transform: translateX(0) scale(1); } 30% { transform: translateX(44px) rotate(-10deg) scale(1.16); } 100% { transform: translateX(0) scale(1); } }
.gb-fighter.me.f-whiff { animation: gb-whiff .5s ease-out; }
@keyframes gb-whiff { 0% { transform: translateX(0); } 40% { transform: translateX(40px) rotate(8deg); } 70% { transform: translateX(30px) rotate(-4deg); } 100% { transform: translateX(0); } }
.gb-fighter.prey.f-hurt { animation: gb-hurt .5s ease-out; }
.gb-fighter.prey.f-hurt img { animation: gb-hurt-flash .5s ease-out; }
.gb-fighter.me.f-hurt { animation: gb-hurt .5s ease-out; }
.gb-fighter.me.f-hurt img { animation: gb-hurt-flash .5s ease-out; }
@keyframes gb-hurt { 0%,100% { transform: translateX(0); } 20% { transform: translateX(9px); } 40% { transform: translateX(-5px); } 60% { transform: translateX(6px); } 80% { transform: translateX(-3px); } }
@keyframes gb-hurt-flash { 0%,100% { filter: none; } 30% { filter: brightness(1.9) saturate(2) drop-shadow(0 0 10px rgba(255,80,60,0.9)); } }
.gb-fighter.prey.f-attack { animation: gb-lunge-prey .5s ease-out; }
@keyframes gb-lunge-prey { 0% { transform: translateX(0); } 35% { transform: translateX(-34px) rotate(6deg); } 100% { transform: translateX(0); } }
.gb-fighter.me.f-dodge { animation: gb-dodge-me .55s ease-out; }
@keyframes gb-dodge-me { 0% { transform: translate(0,0); } 35% { transform: translate(-14px,-14px) rotate(-8deg); } 70% { transform: translate(-10px,-6px); } 100% { transform: translate(0,0); } }
.gb-fighter.prey.f-defeat { animation: gb-defeat .9s ease-out forwards; }
@keyframes gb-defeat { 0% { transform: rotate(0); opacity: 1; } 60% { transform: rotate(24deg) translateY(10px); opacity: .75; } 100% { transform: rotate(38deg) translateY(22px); opacity: .35; } }


/* ================= v27 共创邀请（邀请好友共创 · 共享利益） ================= */
.gm-ptab-invite { color: #7A4A16; }
.gm-invite-body { color: #5C5142; font-size: 14px; line-height: 1.75; }
.gm-invite-body p { margin: 0 0 8px; }
.gm-invite-body b { color: #6E5518; }
.gm-invite-item {
  margin: 6px 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(201,178,122,0.12); border-left: 3px solid #B08F45;
}
.gm-invite-hint { color: #8A7A5C; font-size: 13px; }
.gm-invite-tel {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px; text-align: center;
  background: linear-gradient(90deg, rgba(201,162,39,0.14), rgba(232,200,90,0.22), rgba(201,162,39,0.14));
  border: 1px solid #C9A227; color: #5C4A22; font-size: 15px;
}
.gm-invite-tel b { font-size: 18px; letter-spacing: 1px; color: #6E4E10; }
.gm-invite-qrs { display: flex; gap: 16px; flex-wrap: wrap; }
.gm-invite-qr { flex: 1 1 180px; max-width: 240px; text-align: center; }
.gm-invite-qr img {
  width: 100%; border-radius: 10px; border: 1px solid rgba(176,143,69,0.5);
  background: #fff; box-shadow: 0 2px 8px rgba(90,70,40,0.15);
}
.gm-invite-qr-cap { margin-top: 6px; font-size: 13px; font-weight: 600; color: #6E5518; }
.card > .gm-invite-hint { margin-top: 10px; font-size: 12px; color: #9A8C72; }

/* ================= v27 挑战道友（微信邀战 + 自动匹配） ================= */
.gm-ch-row { display: flex; gap: 8px; margin: 8px 0 10px; }
.gm-ch-btn { flex: 1; padding: 8px 0; font-size: 13px; }
.gm-ch-card { max-width: 460px; width: 92%; }
.gm-ch-body { margin: 6px 0 4px; }
.gm-ch-line { color: #5C5142; font-size: 14px; line-height: 1.7; margin: 6px 0; }
.gm-ch-line b { color: #6E5518; }
.gm-ch-link {
  margin: 10px 0; padding: 10px 12px; border-radius: 8px; word-break: break-all;
  background: rgba(201,162,39,0.10); border: 1px dashed #B08F45;
  color: #7A5A16; font-size: 13px; font-family: Consolas, monospace;
}
.gm-ch-btns { display: flex; gap: 10px; margin-top: 12px; }
.gm-ch-btns .gm-btn-gold { flex: 1; width: auto; }

/* ================= v16 山海世界图 · 402 异兽归位拼图 ================= */
.gm-ptab-map { color: #7A5A16; }
.gm-wm { flex: 1 1 460px; min-width: 340px; }
.gm-wm-card { padding: 12px 14px 14px; }
.wm-prog { float: right; font-size: 12px; font-weight: 600; color: #8A6A20; margin-right: 8px; }
.wm-reset { float: right; }
.wm-bar { height: 6px; border-radius: 3px; background: rgba(120,96,60,0.16); overflow: hidden; margin: 8px 0 10px; }
.wm-bar-fill { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, #C9A227, #E8C85A); transition: width .35s ease; }
.wm-body { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.wm-map-wrap { position: relative; flex: 1 1 420px; min-width: 320px; }
#wmCanvas {
  width: 100%; height: clamp(360px, 56vh, 640px); display: block;
  border-radius: 10px; border: 1px solid rgba(120,96,60,0.32);
  background: #E4D5B7; cursor: crosshair; touch-action: manipulation;
}
.wm-toast {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 14px; font-size: 12.5px; white-space: nowrap;
  background: rgba(30,22,12,0.86); color: #F3E6C8; opacity: 0;
  transition: opacity .3s ease; pointer-events: none; z-index: 3;
}
.wm-toast.ok { background: rgba(46,92,54,0.92); color: #EAF7E6; }
.wm-toast.no { background: rgba(122,42,36,0.92); color: #FBE9E6; }
.wm-legend { margin-top: 7px; font-size: 11.5px; color: #6E5836; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; }
.wm-dot.on { background: #C9A227; }
.wm-dot.off { background: rgba(90,74,50,0.30); border: 1px solid rgba(90,74,50,0.55); }
.wm-side { flex: 1 1 250px; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.wm-q-ch {
  display: inline-block; padding: 2px 10px; border: 1px solid #C9A227; border-radius: 10px;
  font-size: 11.5px; margin-bottom: 8px;
}
.wm-q {
  font-size: 13px; line-height: 1.75; color: #3A2E1C; background: rgba(255,252,240,0.7);
  border-left: 3px solid #C9A227; padding: 8px 10px; border-radius: 4px; margin-bottom: 10px;
}
.wm-q-ask { font-size: 12.5px; color: #6E5836; margin-bottom: 7px; }
.wm-opts { display: flex; flex-direction: column; gap: 6px; }
.wm-opt {
  text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(120,96,60,0.30); background: rgba(255,253,246,0.85);
  font-size: 13px; color: #3A2E1C; transition: all .15s ease;
}
.wm-opt:hover { border-color: #C9A227; background: rgba(233,204,138,0.28); transform: translateX(2px); }
.wm-opt b { display: block; font-weight: 600; }
.wm-opt span { display: block; font-size: 11px; color: #8A7452; margin-top: 1px; }
.wm-q-foot { display: flex; gap: 8px; margin-top: 9px; }
.wm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 5px; }
.wm-li {
  display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px;
  background: rgba(255,253,246,0.7); border: 1px solid rgba(120,96,60,0.18);
  font-size: 11.5px; cursor: pointer; color: #5A4830;
}
.wm-li:hover { border-color: #C9A227; }
.wm-li.done { background: rgba(233,204,138,0.30); color: #4A3410; font-weight: 600; }
.wm-li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.wm-li-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-li-p { font-size: 10.5px; color: #8A7452; }
.wm-done { text-align: center; padding: 18px 8px; color: #4A3410; font-size: 14px; line-height: 1.9; }
@media (max-width: 720px) {
  .wm-body { flex-direction: column; }
  #wmCanvas { height: clamp(300px, 46vh, 460px); }
}

/* ================= v17 世界地图视图 · 大地图拼图板（华夏大陆铺图） ================= */
.wmb-wrap { margin-top: 10px; }
.wmb-prog { font-size: 13px; font-weight: 600; color: #8A6A20; }
.wm-board {
  position: relative; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid rgba(120,96,60,.35);
  background: transparent;
  margin: 10px 0;
}
/* 华夏大陆轮廓底图 */
.wmb-land { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wmb-land-fill { fill: rgba(231,217,189,.55); }
.wmb-land-stroke { fill: none; stroke: rgba(90,70,44,.55); stroke-width: 2; stroke-linejoin: round; }
.wmb-island { fill: rgba(231,217,189,.55); stroke: rgba(90,70,44,.5); stroke-width: 1.2; }
.wmb-island-t, .wmb-region-name, .wmb-region-sub, .wmb-sea-label {
  fill: rgba(74,52,16,.82); font-family: "Songti SC", "STSong", "SimSun", serif; text-anchor: middle; pointer-events: none;
}
.wmb-region-name { font-size: 24px; font-weight: 700; }
.wmb-region-name.on { fill: #4A3410; }
.wmb-region-sub { font-size: 14px; fill: rgba(74,52,16,.6); }
.wmb-island-t { font-size: 13px; }
.wmb-sea-box { fill: rgba(180,200,215,.22); stroke: rgba(90,70,44,.45); stroke-dasharray: 4 4; stroke-width: 1; }
.wmb-sea-dot { fill: rgba(74,52,16,.6); }
.wmb-sea-label { font-size: 16px; }
.wmb-region-wash { stroke: rgba(120,96,60,.22); stroke-width: 1; mix-blend-mode: multiply; }

.wmb-dir { position: absolute; font-size: 12px; color: rgba(90,70,44,.6); pointer-events: none; z-index: 3; }
.wmb-n { left: 50%; top: 4px; transform: translateX(-50%); }
.wmb-s { left: 50%; bottom: 4px; transform: translateX(-50%); }
.wmb-w { left: 8px; top: 50%; transform: translateY(-50%); }
.wmb-e { right: 8px; top: 50%; transform: translateY(-50%); }

/* 缩略图：华夏大陆轮廓 + 可点区委 */
.wmb-mini {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 460px;
  border-radius: 10px; border: 1px solid rgba(120,96,60,.35); overflow: hidden;
  background: linear-gradient(135deg, #EFE3CB, #E4D5B7 50%, #D8C6A4); margin-bottom: 8px;
}
.wmb-rblob {
  position: absolute; transform: translate(-50%, -50%); padding: 2px 7px; border-radius: 20px;
  font-size: 11px; line-height: 1.1; color: #fff8e8; text-shadow: 0 1px 2px rgba(40,26,6,.6);
  border: 1px solid rgba(255,255,255,.35); cursor: pointer; max-width: 22%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .82;
}
.wmb-rblob.aim {
  opacity: 1; z-index: 4; box-shadow: 0 0 0 3px #C9A227, 0 0 14px 4px rgba(201,162,39,.7);
  animation: wmbPulse 1.1s ease-in-out infinite;
}
@keyframes wmbPulse { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.12); } }
.wmb-arrow {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-size: 12px; color: #C9A227; font-weight: 700; text-shadow: 0 1px 2px #fff; z-index: 5;
}
/* 按区委分组的 402 兽格 */
.wmb-regions { margin-top: 6px; }
.wmb-region { margin-bottom: 16px; }
.wmb-region-head {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px;
  border-left: 5px solid #C9A227; border-radius: 6px;
  background: rgba(255,252,242,.7); font-size: 14px;
}
.wmb-rname { font-weight: 700; color: #3A2E1C; }
.wmb-rmeta { color: #6E5836; font-size: 12px; }
.wmb-rdone { margin-left: auto; color: #2E5C36; font-weight: 700; font-size: 13px; }
.wmb-grid { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 5px; }
.wmb-cell {
  position: relative; width: 64px; height: 64px; border-radius: 7px;
  border: 1.5px solid #9A8A66; overflow: hidden; cursor: pointer; box-sizing: border-box;
  background: rgba(90,74,50,.06); display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.wmb-cell:hover { transform: scale(1.12); z-index: 5; }
.wmb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmb-cell-q { font-size: 26px; color: rgba(120,100,70,.55); font-weight: 700; }
.wmb-cell.off { border-style: dashed; border-color: rgba(120,100,70,.45); filter: grayscale(1) brightness(.92); opacity: .7; }
.wmb-cell.off img { filter: grayscale(1) brightness(.72) contrast(.95); opacity: .42; }
.wmb-cell.on { border-style: solid; box-shadow: 0 1px 3px rgba(60,42,18,.3); z-index: 2; background: #fffdf6; }

/* v2.1.0 华夏大陆铺图：整张中国地图 402 兽格（按区委着色 + 动漫图填充） */
.wmb-boardmap {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 10px; border: 1px solid rgba(120,96,60,.35); overflow: hidden;
  background: linear-gradient(135deg, #EFE3CB, #E4D5B7 50%, #D8C6A4); margin: 6px 0 10px;
}
.wmb-boardmap .wmb-land { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 区委色块保留（呈现「按区委划分」），文字标签隐藏以免被 402 兽格遮住 */
.wmb-boardmap .wmb-region-name, .wmb-boardmap .wmb-region-sub,
.wmb-boardmap .wmb-island-t, .wmb-boardmap .wmb-sea-label { display: none; }
.wmb-boardmap .wmb-cell {
  position: absolute; transform: translate(-50%, -50%);
  width: clamp(14px, 3%, 42px); height: clamp(14px, 3%, 42px);
  border-radius: 6px; border: 1.5px solid #9A8A66; overflow: hidden; cursor: pointer;
  box-sizing: border-box; background: rgba(255,253,246,.9);
  box-shadow: 0 1px 2px rgba(60,42,18,.25); transition: transform .12s, box-shadow .12s;
}
.wmb-boardmap .wmb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmb-boardmap .wmb-cell-q { font-size: 11px; color: rgba(120,100,70,.6); font-weight: 700; }
.wmb-boardmap .wmb-cell.off { opacity: .85; }
.wmb-boardmap .wmb-cell.off img { filter: saturate(.85) brightness(.96); opacity: .85; }
.wmb-boardmap .wmb-cell.on { box-shadow: 0 0 0 2px #C9A227, 0 1px 4px rgba(60,42,18,.4); z-index: 2; }
.wmb-boardmap .wmb-cell:hover { transform: translate(-50%, -50%) scale(1.3); z-index: 7; }
.wmb-ok {
  position: absolute; right: 1px; bottom: 1px; font-size: 10px; line-height: 1;
  color: #2E5C36; background: rgba(255,255,255,.88); border-radius: 50%;
  padding: 1px 2px; font-weight: 700;
}

@media (max-width: 640px) {
  .wmb-cell { width: 48px; height: 48px; border-width: 1px; }
  .wmb-rblob { font-size: 9px; padding: 1px 5px; }
  .wmb-region-name { font-size: 18px; }
}
/* 自创异兽 */
.wmb-cb-btn {
  margin: 6px 0; padding: 9px 18px; border-radius: 8px; font-size: 14px; cursor: pointer;
  border: none; color: #fff; background: linear-gradient(135deg, #C9A227, #A8742A);
}
.wmb-cb-lock { font-size: 13px; color: #6E5836; line-height: 1.8; padding: 10px 14px; background: rgba(255,252,240,.7); border-left: 5px solid #C9A227; border-radius: 6px; }
.wmb-cb-form { margin: 8px 0; }
.wmb-cb-in, .wmb-cb-ta {
  width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 9px 12px; font-size: 14px;
  border: 1px solid rgba(120,96,60,.35); border-radius: 8px; background: #fffdf7; color: #3A2E1C;
}
.wmb-cb-ta { height: 90px; resize: vertical; }
.wmb-cb-acts { display: flex; gap: 10px; }
.wmb-cb-save { flex: 1; padding: 9px; border: none; border-radius: 8px; font-size: 14px; color: #fff; background: #2E5C36; cursor: pointer; }
.wmb-cb-cancel { flex: 1; padding: 9px; border: none; border-radius: 8px; font-size: 14px; color: #fff; background: #b9a87f; cursor: pointer; }
.wmb-cb-list { margin-top: 4px; }
.wmb-cb-card {
  margin: 8px 0; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(120,96,60,.3);
  background: rgba(255,250,236,.9);
}
.wmb-cb-name { font-size: 16px; font-weight: 700; color: #4A3410; }
.wmb-cb-ability { font-size: 13px; color: #8A6A20; margin-top: 3px; }
.wmb-cb-story { font-size: 13px; color: #5A4830; line-height: 1.7; margin-top: 3px; white-space: pre-wrap; }
.wmb-quiz { margin: 10px 0; }
.wmb-hint, .wmb-done { font-size: 13px; color: #6E5836; line-height: 1.8; padding: 10px 14px; background: rgba(255,252,240,.7); border-left: 5px solid #C9A227; border-radius: 6px; }
.wmb-done { color: #4A3410; font-weight: 600; border-left-color: #2E5C36; background: rgba(234,247,230,.6); }
.wmb-ask { font-size: 13px; font-weight: 600; color: #4A3410; margin: 10px 0 8px; }
.wmb-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wmb-opt {
  padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer;
  border: 1px solid rgba(120,96,60,.35); background: rgba(255,253,246,.9); color: #3A2E1C;
}
.wmb-opt:hover { background: #E9CC8A; border-color: #C9A227; }
.wmb-foot { margin-top: 10px; }
.wmb-skip {
  padding: 5px 14px; border-radius: 8px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(120,96,60,.35); background: transparent; color: #5A4830;
}
.wm-board .wm-toast { left: 50%; top: 14px; transform: translateX(-50%); }

/* ================= v18 首屏瘦身（2026-09-12）：HUD 精简 + 信息抽屉 ================= */
.gm-hud.min .gm-extra { display: none; }
.gm-chip-more {
  cursor: pointer; color: #E8C97A; border-color: rgba(232,201,122,0.55);
  background: rgba(232,201,122,0.10);
}
.gm-chip-more:hover { background: rgba(232,201,122,0.20); }
.gm-hud-menu {
  cursor: pointer; font-size: 18px; line-height: 1; color: #E8C97A;
  padding: 4px 10px; border: 1px solid rgba(201,178,122,0.35); border-radius: 20px;
  background: rgba(255,255,255,0.06); user-select: none;
}
.gm-hud-menu:hover { background: rgba(232,201,122,0.18); }
.gm-info-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 900;
}
.gm-info-drawer {
  position: fixed; top: 0; right: 0; width: 300px; max-width: 86vw; height: 100%;
  background: linear-gradient(180deg, #2A201A, #1A1512);
  border-left: 1px solid rgba(201,178,122,0.35); z-index: 901;
  transform: translateX(100%); transition: transform .26s ease;
  padding: 14px 16px; box-sizing: border-box; overflow-y: auto;
}
.gm-info-drawer.open { transform: translateX(0); }
.gm-info-drawer .id-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.gm-info-drawer .id-title { color: #E8C97A; font-size: 16px; font-weight: bold; }
.gm-info-drawer .id-close { cursor: pointer; color: #B0A48E; font-size: 18px; padding: 0 4px; }
.gm-info-drawer .id-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid rgba(201,178,122,0.14); font-size: 13px;
}
.gm-info-drawer .id-k { color: #8C8272; }
.gm-info-drawer .id-v { color: #E8C97A; font-weight: bold; }
.gm-info-drawer .id-foot {
  margin-top: 14px; padding: 9px 0; text-align: center; cursor: pointer;
  color: #C9B27A; font-size: 13px; border: 1px solid rgba(201,178,122,0.35); border-radius: 20px;
}
.gm-info-drawer .id-foot:hover { background: rgba(232,201,122,0.14); }

/* ================= v18 图鉴画像偏好：写真 / 古本 ================= */
.art-pref {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 2px; font-size: 12px;
}
.art-pref .ap-label { color: #8C8272; }
.art-pref .ap-btn {
  cursor: pointer; padding: 3px 12px; border-radius: 20px; font-size: 12px;
  color: #B0A48E; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,178,122,0.28); font-family: inherit;
}
.art-pref .ap-btn.on {
  color: #1A1512; background: #E8C97A; border-color: #E8C97A; font-weight: bold;
}
.art-pref .ap-tip { color: #6E6555; font-size: 11px; }

/* ================= v18.1 图鉴分页「加载更多」（2026-09-12） ================= */
.gm-codex-more {
  margin: 8px 0 4px; padding: 8px 0; text-align: center; cursor: pointer;
  color: #C9B27A; font-size: 13px;
  border: 1px dashed rgba(201,178,122,0.45); border-radius: 20px;
  background: rgba(255,255,255,0.04); user-select: none;
}
.gm-codex-more:hover { background: rgba(232,201,122,0.14); color: #E8C97A; }

/* ===== v2.2 拼图问答：异兽真实大图 + 山名问答（大图正下方） ===== */
.wmb-focus { text-align: center; margin-bottom: 12rpx; }
.wmb-focus-img { width: min(300px, 72%); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; border: 1px solid rgba(176,138,62,0.5); background: #fffdf6; box-shadow: 0 3px 12px rgba(40,28,10,0.25); }
.wmb-focus-img.wmb-focus-broken { display: none; }
.wmb-focus-name { margin-top: 8px; color: #B08A3E; font-weight: 700; font-size: 17px; letter-spacing: 2px; }

/* ================= v18.2 异兽归位拼图：醒目操作指引（2026-09-12 用户截图标注） ================= */
.wmb-cta {
  margin: 6px 0 10px; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.7; color: #4A3410;
  background: linear-gradient(135deg, #FFF3D6, #F6E3B8);
  border: 1.5px solid #C9A227; border-left: 6px solid #C9A227;
  font-weight: 600;
}

/* ============ v2.3 已归位兽详情窗口（2026-09-13 用户指令：点击归位格→能力+全部相关故事） ============ */
.wmb-det { margin-top: 6px; text-align: left; }
.wmb-det-sec {
  margin: 8px 0; padding: 10px 14px; border-radius: 8px;
  background: rgba(255,252,240,.85);
  border: 1px solid #E4D5AE; border-left: 5px solid #C9A227;
}
.wmb-det-legend { border-left-color: #A8462B; background: rgba(255,246,236,.9); }
.wmb-det-t { font-size: 13.5px; font-weight: 700; color: #8A6D2F; margin-bottom: 4px; letter-spacing: 1px; }
.wmb-det-legend .wmb-det-t { color: #A8462B; }
.wmb-det-x { font-size: 13.5px; line-height: 1.9; color: #4A3410; }
.wmb-det-back { margin-top: 4px; }

/* ============ GENESIS 创世前纪·龙之链（2026-09-13 用户指令：华夏形成史融入天帝纪） ============ */
.gm-chron-arc.genesis { border-color: rgba(232,201,122,0.65); background: linear-gradient(160deg, rgba(60,46,20,0.9), rgba(30,24,14,0.92)); }
.gm-chron-arc.genesis .sl-head b { color: #E8C97A; }
.gen-ch { margin: 10px 0; padding: 12px 14px; border-radius: 8px; background: rgba(255,252,240,0.05); border-left: 4px solid #C9A227; }
.gen-ch-title { color: #E8C97A; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; letter-spacing: 1px; }
.gen-ch-text { color: #D8CBA6; font-size: 13.5px; line-height: 2.0; text-align: justify; }
.gen-ch-hist { margin-top: 6px; color: #8A7E5A; font-size: 12px; line-height: 1.7; }
.gen-finale-note { border: 1px dashed rgba(199,123,217,0.6); color: #D9BBE8 !important; line-height: 2.0; }
.swd-card .gen-ch { background: rgba(122,94,40,0.06); }
.swd-card .gen-ch-title { color: #8A5E1F; }
.swd-card .gen-ch-text { color: #4A3410; }
.swd-card .gen-ch-hist { color: #9A8668; }

/* ============ v21 打斗生动化（2026-09-12 用户反馈「每个异兽要有不同动作」） ============
 * 外层 .gb-fighter 保留 v14 攻防骨架动画，img 按 .a-<形貌类目> 叠加韵味（两层合成）。
 * 类目：ape 猿(跃击) bird 飞禽(俯冲) beast 走兽(冲锋) water 水族(涌浪)
 *       snake 蛇虫(弹吐) grass 草木(鞭扫) swarm 虫群(猝刺)。纯表现层，不改胜负。 */
.gb-fighter { position: relative; }

/* 常驻小动作：每类异兽自己的呼吸节奏 */
.gb-fighter.a-bird img { animation: gbIdleHover 2.4s ease-in-out infinite; }
.gb-fighter.a-swarm img { animation: gbIdleJitter 1.6s ease-in-out infinite; }
.gb-fighter.a-water img { animation: gbIdleWave 2.8s ease-in-out infinite; }
.gb-fighter.a-snake img { animation: gbIdleSway 3s ease-in-out infinite; }
.gb-fighter.a-grass img { animation: gbIdleSway 3.6s ease-in-out infinite; }
@keyframes gbIdleHover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes gbIdleJitter { 0%,100% { transform: translate(0,0); } 25% { transform: translate(2px,-2px); } 50% { transform: translate(-2px,1px); } 75% { transform: translate(1px,2px); } }
@keyframes gbIdleWave { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(3px) rotate(3deg); } }
@keyframes gbIdleSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* 攻击韵味：外层 lunge 冲刺的同时，图做该类目特征动作 */
.gb-fighter.f-attack.a-bird img, .gb-fighter.f-attack.crit.a-bird img { animation: gbArcDive .5s ease-out; }
.gb-fighter.f-attack.a-ape img, .gb-fighter.f-attack.crit.a-ape img { animation: gbArcLeap .5s ease-out; }
.gb-fighter.f-attack.a-snake img, .gb-fighter.f-attack.crit.a-snake img { animation: gbArcSnap .5s ease-out; }
.gb-fighter.f-attack.a-water img, .gb-fighter.f-attack.crit.a-water img { animation: gbArcSurge .5s ease-out; }
.gb-fighter.f-attack.a-swarm img, .gb-fighter.f-attack.crit.a-swarm img { animation: gbArcSwarm .5s ease-out; }
.gb-fighter.f-attack.a-grass img, .gb-fighter.f-attack.crit.a-grass img { animation: gbArcWhip .5s ease-out; }
@keyframes gbArcDive { 0% { transform: translateY(0) rotate(0deg); } 40% { transform: translate(14px,-22px) rotate(14deg); } 75% { transform: translate(30px,5px) rotate(-8deg); } 100% { transform: none; } }
@keyframes gbArcLeap { 0% { transform: scale(1); } 35% { transform: translateY(-28px) scale(1.06); } 70% { transform: translateY(4px) scale(1.12,0.9); } 100% { transform: none; } }
@keyframes gbArcSnap { 0% { transform: scaleX(1); } 30% { transform: translateX(-16px) scaleX(0.82); } 60% { transform: translateX(34px) scaleX(1.25); } 100% { transform: none; } }
@keyframes gbArcSurge { 0% { transform: translateX(0); } 30% { transform: translate(-8px,4px) rotate(-6deg); } 65% { transform: translate(34px,-3px) rotate(5deg); } 100% { transform: none; } }
@keyframes gbArcSwarm { 0% { transform: translate(0,0); } 20% { transform: translate(8px,-7px); } 40% { transform: translate(19px,5px); } 60% { transform: translate(30px,-4px); } 80% { transform: translate(40px,2px); } 100% { transform: none; } }
@keyframes gbArcWhip { 0% { transform: rotate(0deg); } 30% { transform: translateY(13px) rotate(-16deg); } 65% { transform: translateY(-15px) rotate(20deg); } 100% { transform: none; } }

/* 受击反应分化：飞禽/虫群转圈，水族/蛇虫/草木下沉 */
.gb-fighter.f-hurt.a-bird img, .gb-fighter.f-hurt.a-swarm img { animation: gbHurtSpin .45s ease-out; }
.gb-fighter.f-hurt.a-water img, .gb-fighter.f-hurt.a-snake img, .gb-fighter.f-hurt.a-grass img { animation: gbHurtSink .5s ease-out; }
@keyframes gbHurtSpin { 0% { transform: rotate(0deg); } 55% { transform: rotate(200deg) scale(0.9); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes gbHurtSink { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(9px) scale(0.92); opacity: 0.7; } 100% { transform: none; opacity: 1; } }

/* 闪避韵味：飞禽拔高、水族潜匿、蛇虫游走 */
.gb-fighter.f-dodge.a-bird img { animation: gbDodgeFly .55s ease-in-out; }
.gb-fighter.f-dodge.a-water img { animation: gbDodgeSub .55s ease-in-out; }
.gb-fighter.f-dodge.a-snake img { animation: gbDodgeSlither .55s ease-in-out; }
@keyframes gbDodgeFly { 0% { transform: none; } 40% { transform: translate(-10px,-26px) rotate(-8deg); } 100% { transform: none; } }
@keyframes gbDodgeSub { 0% { transform: none; opacity: 1; } 40% { transform: translate(-13px,7px) scale(0.9); opacity: 0.5; } 100% { transform: none; opacity: 1; } }
@keyframes gbDodgeSlither { 0% { transform: none; } 30% { transform: translate(-15px,0) rotate(-10deg); } 60% { transform: translate(-20px,-5px) rotate(8deg); } 100% { transform: none; } }

/* 走兽 beast：静伏蓄势 + 猛扑冲锋（与飞禽俯冲 / 蛇虫弹吐 / 水族涌浪等明显区分，填补此前缺失的 a-beast 动画） */
.gb-fighter.a-beast img { animation: gbIdleProwl 2.6s ease-in-out infinite; }
@keyframes gbIdleProwl { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-3px,3px) rotate(-1.5deg); } }
.gb-fighter.f-attack.a-beast img, .gb-fighter.f-attack.crit.a-beast img { animation: gbArcCharge .5s ease-out; }
@keyframes gbArcCharge { 0% { transform: translateX(0) scale(1); } 35% { transform: translateX(30px) scale(1.12,0.92); } 65% { transform: translateX(58px) scale(0.94,1.08); } 100% { transform: none; } }
.gb-fighter.f-hurt.a-beast img { animation: gbHurtStagger .5s ease-out; }
@keyframes gbHurtStagger { 0% { transform: translateX(0) rotate(0deg); } 45% { transform: translateX(-16px) rotate(-7deg); } 100% { transform: none; } }
.gb-fighter.f-dodge.a-beast img { animation: gbDodgeBound .55s ease-in-out; }
@keyframes gbDodgeBound { 0% { transform: none; } 40% { transform: translate(-14px,-10px) rotate(-4deg); } 100% { transform: none; } }

/* 舞台特效：处决震屏 / 完美闪光 */
.gb-fight.fx-quake { animation: gbQuake .45s ease-out; }
.gb-fight.fx-flash { animation: gbFlash .35s ease-out; }
@keyframes gbQuake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-5px,3px); } 40% { transform: translate(5px,-4px); } 60% { transform: translate(-4px,-2px); } 80% { transform: translate(3px,3px); } }
@keyframes gbFlash { 0% { box-shadow: inset 0 0 0 999px rgba(255,230,160,0.18); } 100% { box-shadow: none; } }

/* 双线斩击：交叉剑光，按招式配色（轻金/重红/洞察紫/完美亮金） */
.gb-slash { position: absolute; left: 50%; top: 26%; width: 76px; height: 76px; margin-left: -38px; z-index: 6; pointer-events: none; animation: gbSlashPop .42s ease-out forwards; }
.gb-slash i { position: absolute; left: 50%; top: 50%; width: 72px; height: 4px; margin: -2px 0 0 -36px; border-radius: 4px; display: block; }
.gb-slash i.b1 { transform: rotate(45deg); }
.gb-slash i.b2 { transform: rotate(-45deg); }
.gb-slash.sl-light i { background: #E8C97A; }
.gb-slash.sl-heavy i { background: #E86A5A; width: 92px; height: 6px; margin: -3px 0 0 -46px; }
.gb-slash.sl-insight i { background: #B08AE8; }
.gb-slash.sl-insight i.b1 { transform: rotate(90deg); }
.gb-slash.sl-perfect i { background: #F2D98A; }
@keyframes gbSlashPop { 0% { opacity: 0; transform: scale(0.4) rotate(-14deg); } 35% { opacity: 1; transform: scale(1.15) rotate(0deg); } 100% { opacity: 0; transform: scale(1.3) rotate(6deg); } }

/* ===== v25：主界面战斗融合（技法面板 / 等级图例 / 非模态结果卡 / 退走键） ===== */
/* 主战场作为结果卡与退走键的定位容器 */
.gm-field-wrap { position: relative; }

/* 画布下方工具条：技法 + 图例 */
.gm-field-extra { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

/* ===== v31 仙境天幕（2026-09-13 第一部分）：画布右下角背景开关 / 换幕小片 ===== */
.ir-chips { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 6; }
.ir-chip {
  border: 1px solid rgba(201,178,122,0.5); border-radius: 14px;
  background: rgba(16,13,22,0.6); color: #E8C97A;
  font-size: 12px; line-height: 1.6; padding: 3px 11px; cursor: pointer;
  backdrop-filter: blur(2px);
}
.ir-chip:hover { background: rgba(46,36,26,0.72); }
.ir-chip:active { transform: scale(0.96); }

/* 技法选择面板 */
.gm-stance {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(38,28,22,0.66); border: 1px solid rgba(201,178,122,0.28);
}
.gm-stance-label { color: #C9B27A; font-weight: bold; font-size: 13px; margin-right: 2px; }
.gm-stance-btn {
  flex: 1 1 auto; min-width: 64px; padding: 9px 0; border-radius: 8px;
  border: 1px solid rgba(201,178,122,0.45); background: rgba(60,46,32,0.7);
  color: #E8D9B0; font-size: 14px; font-weight: bold; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
}
.gm-stance-btn:hover { background: rgba(90,70,48,0.85); }
.gm-stance-btn:active { transform: scale(0.96); }
.gm-stance-btn.on {
  background: linear-gradient(135deg, #B89340, #E8C97A); color: #241a14;
  border-color: #E8C97A; box-shadow: 0 0 14px rgba(232,201,122,0.5);
}
.gm-stance-hint { flex-basis: 100%; color: #B0A48E; font-size: 12px; margin-top: 2px; }

/* 等级图例 */
.gm-level-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(30,24,30,0.55); border: 1px solid rgba(201,178,122,0.2);
}
.gm-ll-title { color: #C9B27A; font-weight: bold; font-size: 12px; }
.gm-ll-item { display: inline-flex; align-items: center; gap: 5px; color: #D8CBA8; font-size: 12px; }
.gm-ll-item i {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 6px currentColor; border: 1px solid rgba(0,0,0,0.35);
}

/* 战斗中「退走」键（悬浮在画布右上角，非模态） */
.gm-duel-abort {
  position: absolute; top: 56px; right: 16px; z-index: 30;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(212,106,90,0.6); background: rgba(60,28,24,0.82);
  color: #F0C9BE; font-size: 13px; font-weight: bold;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.gm-duel-abort:hover { background: rgba(90,36,30,0.9); }

/* 非模态浮动结果卡（居中浮在主战场内，不再全屏 modal） */
.gm-result-card {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.92);
  z-index: 40; width: min(420px, 88%); max-height: 78%; overflow-y: auto;
  padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(36,28,22,0.96), rgba(26,20,30,0.96));
  border: 1px solid rgba(201,178,122,0.5); box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.gm-result-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.gm-rc-title { font-size: 17px; font-weight: bold; color: #E8C97A; text-align: center; margin-bottom: 10px; }
.gm-rc-lines { display: flex; flex-direction: column; gap: 4px; }
.gm-rc-lines .gm-line { font-size: 13px; }
.gm-rc-btns { margin-top: 14px; display: flex; justify-content: center; gap: 10px; }
.gm-rc-btns .gm-btn-gold, .gm-rc-btns .gm-btn { width: auto; min-width: 110px; margin-top: 0; }

/* ==== 异兽真名注音（ruby 头顶拼音，2026-09-13）==== */
ruby { ruby-position: over; }
ruby > rt { display: block; font-size: .58em; line-height: 1.05; color: rgba(201,178,122,.95); letter-spacing: .3px; text-align: center; font-style: normal; }
.codex-card-name rt, .dt-codex-name rt, .gh-beast-name rt, .gm-board-name rt, .gm-friend-row-name rt, .duel-pick-nm rt, .duel-pick rt, .gh-story-name rt { font-size: .55em; }
#dtName rt { font-size: .42em; letter-spacing: 1px; }

/* ==== v30.4 万妖塔丰富化面板（2026-09-13 用户指令：闯塔不丰富→塔境/塔身/词条/战力条/续引/典源） ==== */
.tw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin:2px 0 8px}
.tw-realm{display:block;font-size:15px;font-weight:700;color:#C9A96A;letter-spacing:2px}
.tw-realm-sub{display:block;font-size:11px;color:#8B8FA0;margin-top:2px}
.tw-head-r{text-align:right}
.tw-left{display:block;font-size:12px;color:#D8CBA8;white-space:nowrap}
.tw-sparks{display:inline-flex;gap:3px;margin-top:4px;justify-content:flex-end}
.tw-spark{width:7px;height:12px;border-radius:50% 50% 45% 45%;background:#2a2c36;border:1px solid #3c3f4c;display:inline-block}
.tw-spark.on{background:radial-gradient(circle at 50% 30%,#ffd98a,#c9853a);border-color:#e0b060;box-shadow:0 0 5px rgba(230,180,90,.7)}
.tw-spark.ext.on{background:radial-gradient(circle at 50% 30%,#b8f0c8,#3f9c63);border-color:#6fcf90;box-shadow:0 0 5px rgba(110,220,150,.7)}
.tw-body{display:flex;gap:3px;margin:0 0 10px}
.tw-cell{flex:1;min-width:0;height:18px;line-height:18px;text-align:center;font-size:10px;border-radius:3px;background:#1d1f27;color:#565a68;border:1px solid #2c2f3a}
.tw-cell.done{background:linear-gradient(180deg,#3d301a,#2c2510);color:#c9a96a;border-color:#5d4a24}
.tw-cell.now{color:#ffe9b0;border-color:#e0b060;box-shadow:0 0 6px rgba(224,176,96,.45)}
.tw-cell.boss{font-weight:700}
.tw-cell.boss.done{color:#ff9d6b;border-color:#a05a2c}
.tw-enemy{border:1px solid #3c3f4c;border-radius:8px;padding:10px 12px;margin:0 0 8px;background:rgba(30,26,18,.35)}
.tw-enemy.boss{border-color:#a05a2c;background:rgba(60,26,12,.28);box-shadow:inset 0 0 18px rgba(200,110,40,.12)}
.tw-badge{font-size:11px;color:#ffb066;letter-spacing:1px;margin-bottom:4px}
.tw-affix{font-size:11px;color:#9ad0ff;margin-bottom:4px}
.tw-enemy-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;color:#EDE3CB}
.tw-vs{margin:8px 0 6px}
.tw-vs-row{display:flex;align-items:center;gap:6px;margin:3px 0}
.tw-vs-k{width:30px;font-size:11px;color:#8B8FA0;flex:none}
.tw-vs-track{flex:1;height:6px;border-radius:3px;background:#22242e;overflow:hidden}
.tw-vs-fill{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#3f9c63,#7fe0a0)}
.tw-vs-fill.me{background:linear-gradient(90deg,#2f6f9c,#6fc0ef)}
.tw-vs-fill.prey{background:linear-gradient(90deg,#8a4a26,#d08a4a)}
.tw-vs-fill.prey.boss{background:linear-gradient(90deg,#a02c2c,#ff7b5e)}
.tw-vs-n{width:44px;text-align:right;font-size:11px;color:#D8CBA8;flex:none}
.tw-hint{font-size:11px;line-height:1.7;margin-top:4px}
.tw-streak{font-size:11px;color:#ffd98a;margin-top:4px}
.tw-buyrow{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin:2px 0 8px}
.tw-lore{border-left:2px solid #6d5a2e;padding:5px 8px;margin:0 0 8px;font-size:11px;line-height:1.7;color:#b9ac8d;background:rgba(201,169,106,.06);border-radius:0 6px 6px 0}
.tw-lore b{color:#C9A96A;font-weight:600}
.tw-lore-jx{color:#8fbf9f;margin-top:2px}
.tw-pv{margin:0 0 8px}
.tw-pv-hd{font-size:11px;color:#8B8FA0;margin-bottom:4px}
.tw-pv-row{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#c9c3b2;padding:3px 6px;border-radius:4px;background:rgba(255,255,255,.025)}
.tw-pv-row+.tw-pv-row{margin-top:3px}
.tw-pv-row.boss{color:#ffb066;background:rgba(200,110,40,.08)}

/* ==== v30.4 共创邀请按钮 + 二维码点击放大 ==== */
.gm-iv-btns{margin:10px 0 4px}
.gm-iv-btns .gm-btn-gold{width:auto;padding:9px 22px}
.gm-iv-btn-tip{font-size:11px;margin-top:6px;line-height:1.6}
.gm-qr-mask{position:fixed;inset:0;z-index:9999;background:rgba(8,8,12,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;cursor:zoom-out}
.gm-qr-mask img{max-width:min(72vmin,420px);max-height:72vmin;border-radius:10px;background:#fff;padding:10px;box-shadow:0 8px 40px rgba(0,0,0,.6)}
.gm-qr-cap{font-size:12px;color:#c9c3b2}
.gm-invite-qr img{cursor:zoom-in}

/* ==== v30.5 遭遇四择面板（2026-09-13 用户指令：临敌先抉择——洞察/闪避/轻击/重击/隐藏，六根推荐） ==== */
/* v35.1 悬浮条：遭遇四择并入游戏界面（用户指令，勿再弹窗化）——贴底透明轻条，世界照常可交互 */
.gb-choose{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:40;width:min(96%,780px);
  background:rgba(10,12,18,.72);border:1px solid rgba(201,169,106,.30);border-radius:10px;padding:5px 10px 7px;
  box-shadow:0 4px 16px rgba(0,0,0,.35);backdrop-filter:blur(2px)}
.gb-choose.hidden{display:none}
.enc-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#EDE3CB}
.enc-head b{color:#C9A96A;letter-spacing:1px}
.enc-x{cursor:pointer;color:#8B8FA0;padding:2px 8px;font-size:15px;border-radius:6px}
.enc-x:hover{color:#fff;background:rgba(255,255,255,.08)}
.enc-stats{font-size:11.5px;color:#b9ac8d;margin:2px 0 1px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.enc-mini-bar{display:inline-block;width:64px;height:6px;border-radius:3px;background:#22242e;overflow:hidden;vertical-align:middle}
.enc-mini-bar b{display:block;height:100%;background:linear-gradient(90deg,#2f6f9c,#6fc0ef)}
.enc-known{color:#7ED3A2}.enc-wary{color:#ff9d6b}.enc-unknown{color:#8B8FA0}
.enc-lore{font-size:11px;color:#b9ac8d;background:rgba(201,169,106,.07);border-left:2px solid #6d5a2e;
  border-radius:0 6px 6px 0;padding:4px 8px;margin:4px 0;line-height:1.6}
.enc-lore em{color:#8fbf9f;font-style:normal}
.enc-advice{font-size:11.5px;color:#8B8FA0;margin:0 0 4px}
.enc-advice .rec-name{color:#ffd98a}
.enc-btns{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.enc-btns button{flex:1 1 17%;min-width:0;border:1px solid rgba(140,140,160,.35);border-radius:8px;background:rgba(24,26,34,.85);color:#EDE3CB;
  padding:5px 4px;font-size:12.5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px;transition:.15s}
.enc-btns button small{font-size:9.5px;color:#9aa0b4}
.enc-btns button:hover{border-color:#C9A96A;background:#262833}
.enc-btns button.rec{border-color:#e0b060;box-shadow:0 0 10px rgba(224,176,96,.35)}
.enc-btns button.rec small{color:#ffd98a}
.enc-btns button.heavy{border-color:#7a3a2a}
.enc-btns button.heavy:hover{border-color:#ff7b5e}
.enc-btns button.hide{flex-basis:17%}

/* ================= v35 遭遇面板能力行 & 招式全表补标 ================= */
.enc-caps{font-size:12px;color:#C9B48A;margin:6px 2px 2px;line-height:1.8;border-top:1px dashed rgba(201,180,138,.25);padding-top:6px}
.enc-tribe{color:#F0D089}
.enc-heal{color:#8FE3A8;font-weight:600}
.enc-drop{color:#8FC7F0;font-weight:600}
.gm-move-own{color:#8FE3A8}
.dt-35-tribe{background:rgba(240,208,137,.12);color:#B8934A}
.dt-35-tier{background:rgba(143,199,240,.12);color:#4A7FB8}
.dt-35-heal{background:rgba(143,227,168,.14);color:#3E9A5F;font-weight:600}
.dt-35-drop{background:rgba(143,199,240,.14);color:#3E76A8;font-weight:600}

/* ============ v44 驻守·全猎名录(2026-09-14) ============ */
.gm-hunt{margin-top:2px}
.gm-hunt-bar{margin:6px 0 4px}
.gm-hunt-search{width:100%;box-sizing:border-box;padding:7px 10px;border-radius:8px;background:rgba(255,255,255,.07);border:1px solid rgba(201,178,122,.35);color:#e8e0c8;font-size:12px;outline:none}
.gm-hunt-search:focus{border-color:rgba(232,201,122,.6)}
.gm-hunt-meta{font-size:11px;opacity:.8;margin:2px 0 4px;color:#cdbf9a}
.gm-hunt-sec{margin:8px 0 4px;font-size:12px;color:#c9b27a;font-weight:600}
.gm-hunt .gm-crown-dev-chips{max-height:230px;overflow:auto}
.gm-crown-chip.go{cursor:pointer;transition:border-color .15s,transform .15s}
.gm-crown-chip.go:hover{border-color:#E8C97A;transform:translateY(-1px)}
.gm-crown-chip.off{opacity:.82;border-style:dashed}
.gm-crown-chip .gc-land{font-style:normal;font-size:10px;opacity:.72;margin-left:4px}
.gm-row-go{margin-left:8px;padding:2px 10px;font-size:11px;border-radius:7px;border:1px solid rgba(232,201,122,.5);background:linear-gradient(135deg,#3a2f14,#241a14);color:#E8C97A;cursor:pointer;vertical-align:middle}
.gm-row-go:hover{filter:brightness(1.25)}
#garrFloat{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:430;display:none;align-items:center;gap:10px;padding:7px 14px;border-radius:12px;background:rgba(20,15,10,.55);border:1px solid rgba(232,201,122,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#E8C97A;font-size:12px;max-width:86vw;pointer-events:auto}
#garrFloat .gf-x{background:none;border:1px solid rgba(232,201,122,.4);color:#E8C97A;border-radius:6px;padding:1px 7px;cursor:pointer;font-size:12px}
/* ============ /v44 ============ */

/* ============ v44b(2026-09-14 用户指令)：全猎名录字体改黑(浅色面板可读) + DOM余命同黑 ============ */
.gm-crown-chip{color:#111;background:rgba(90,64,20,.08);border-color:rgba(90,64,20,.42)}
.gm-crown-chip .gc-land{color:#4a3a22;opacity:1}
.gm-crown-dev-title{color:#111}
.gm-hunt-meta{color:#2f2a24}
.gm-hunt-sec{color:#5a4321}
.gm-hunt-search{color:#111;background:rgba(255,255,255,.58);border-color:rgba(90,64,20,.45)}
.gm-hunt-search::placeholder{color:#8a7c62}
.gm-crown-tag{color:#111;background:rgba(90,64,20,.07);border-color:rgba(90,64,20,.4)}
.gm-crown-life-hint{color:#3f3a33}
.gm-life-text{color:#111}
.gm-crown-desc{color:#2b2620}
.gm-crown-pct{color:#111}
/* ============ /v44b ============ */

/* ============ v44c(2026-09-14 用户指令：名录字太密集不美观)——chip 地基与呼吸 ============ */
/* 根因：.gm-crown-chip 全文件只有 v44b 的一行颜色，从未写过 padding/边框宽度/行高，容器无 gap
   → 402 只兽名+山川缀字裸 span 连排成"字墙"。本块补地基（v44.1 点飞兽同代，13:28 曾被并行
   全文件写回吞没一次，重挂并加 _smoke_hunt_layout.js 回归锚防再吞）。 */
.gm-hunt .gm-crown-dev-chips{display:flex;flex-wrap:wrap;gap:5px 6px;padding:2px 2px 8px}
.gm-crown-chip{display:inline-flex;align-items:baseline;gap:5px;box-sizing:border-box;padding:3px 10px;border-width:1px;border-style:solid;border-radius:999px;font-size:12px;line-height:1.5;white-space:nowrap;color:#111;background:rgba(255,255,255,.66);border-color:rgba(90,64,20,.34)}
/* 已噬：淡金底+加粗（黑字醒目）；未噬：淡米底虚线——旧 opacity:.82 会把黑字冲灰，提回全不透明 */
.gm-crown-chip.on{background:rgba(232,201,122,.2);border-color:rgba(148,108,32,.55);font-weight:600}
.gm-crown-chip.off{opacity:1;border-style:dashed;background:rgba(250,246,236,.62)}
/* 山川缀字让位真名：更小更淡，视觉密度立减 */
.gm-crown-chip .gc-land{font-size:10px;color:#6b5b43;opacity:1;margin-left:0}
/* ============ /v44c ============ */


/* v42: 打斗·异兽特有招式选择悬浮条（贴底透明非弹窗，绝对定位于主战场容器内） */
.gb-art-bar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 34; display: flex; gap: 8px; align-items: center;
  padding: 6px 12px; border-radius: 999px; pointer-events: auto;
  background: rgba(22, 26, 20, 0.38); backdrop-filter: blur(2px);
  border: 1px solid rgba(233, 226, 206, 0.18);
}
.gb-art-bar.hidden { display: none; }
.gb-art-cap { font-size: 12px; color: rgba(233, 226, 206, 0.72); letter-spacing: 3px; }
.gb-art-btn {
  font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(233, 226, 206, 0.35); background: rgba(40, 46, 36, 0.55); color: #E9E2CE;
}
.gb-art-btn:hover { background: rgba(60, 66, 52, 0.7); }
.gb-art-btn.on { border-color: #D8B45A; color: #FFE9AD; background: rgba(90, 70, 20, 0.62); box-shadow: 0 0 8px rgba(216, 180, 90, 0.5); }

/* v43: 能力落实样式（遭遇招式行 / 塔守将条 / 战报ok绿） */
.enc-arts { color: #F0DCA8; }
.tw-guard { font-size: 12px; color: #E8C97A; opacity: .92; margin: 2px 0 4px; line-height: 1.5; }

/* ==== v55（2026-09-14 用户指令：结果卡/耗尽弹窗太扰战→贴底细条、小五12px、去框影） ==== */
#gmResultCard.gm-result-card { top: auto; bottom: 10px; transform: translate(-50%, 0) scale(0.98);
  width: min(760px, 94%); max-height: 30%; padding: 6px 12px; border-radius: 8px;
  background: rgba(18,12,7,.74); border: none; box-shadow: none; }
#gmResultCard.gm-result-card.show { transform: translate(-50%, 0) scale(1); }
#gmResultCard .gm-rc-title { font-size: 12px; margin-bottom: 2px; }
#gmResultCard .gm-rc-lines .gm-line { font-size: 12px; padding: 1px 0; line-height: 1.5; color: #E9DEC4; }
#gmResultCard .gm-rc-btns { margin-top: 4px; gap: 8px; }
#gmResultCard .gm-rc-btns .gm-btn-gold, #gmResultCard .gm-rc-btns .gm-btn { min-width: 0; width: auto; font-size: 12px; padding: 2px 14px; margin-top: 0; }
#gmExhaustMask { align-items: flex-end; padding: 0 12px 12px; background: rgba(10,7,5,.32); }
#gmExhaustMask .gm-modal { width: min(720px, 94%); padding: 6px 12px; border-radius: 8px;
  background: rgba(18,12,7,.86); border: 1px solid rgba(201,178,122,.25); box-shadow: none; }
#gmExhaustMask .gm-modal-title { font-size: 12px; margin-bottom: 2px; }
#gmExhaustMask .gm-battle-lines .gm-line { font-size: 12px; padding: 1px 0; line-height: 1.5; color: #E9DEC4; }
#gmExhaustMask .gm-btn-row { margin-top: 4px; }
#gmExhaustMask .gm-btn-row .gm-btn-gold, #gmExhaustMask .gm-btn-row .gm-btn { font-size: 12px; padding: 2px 14px; min-width: 0; width: auto; margin-top: 0; display: inline-block; }
/* 锚: __V55_NOPOPUP_GUARD__ */
