/* 石器塔防·守护者之路：大厅用原版石框（客户端 26001~26009 九宫格，与太古垂钓录同一张 fishing-frame.webp）+ 暖棕金色；
   战斗层全屏 16:9 等比缩放，HUD、轮盘、塔面板用容器单位（cqh）随画面缩放。
   性能：常驻页面不放大面积动画与滤镜；悬停效果只给鼠标设备；按钮去点击高亮、禁止双击缩放。 */
.guard-page { --gd-ink: #3b2a17; --gd-gold: #ffd56a; --gd-deep: #2b1d10; --gd-paper: #fff8e6; }
.guard-page .fun-main.gd-main { width: min(100% - 20px, 1200px); }
.guard-page .fun-title img { width: 40px; height: 40px; object-fit: contain; }
.guard-page button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.stone { border: 0; border-image: url("/static/fishing-frame.webp") 48 64 fill / 24px 32px stretch; border-radius: 0; color: #fff3d6; }
.stone h2, .stone h3 { color: #ffe9a8; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.stone .hint { color: #e9d8b4; }
.panel.stone { background: none; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .55); padding: 22px 28px; }

/* ---------- 资源条与分类 ---------- */
.gd-res {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding: 10px 14px;
  background: linear-gradient(180deg, #4a3218, #2f1f0e); border: 3px solid #c99a4b; border-radius: 16px; color: #fff3d6;
}
.gr { display: flex; align-items: baseline; gap: 5px; padding: 4px 12px; background: rgba(0, 0, 0, .25); border-radius: 99px; }
.gr i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; align-self: center; background: #ccc; }
.gr b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--gd-gold); }
.gr small { font-size: 12px; opacity: .85; }
.gr-shell i { background: radial-gradient(circle at 35% 30%, #fff, #f0c7a0); }
.gr-fruit i { background: radial-gradient(circle at 35% 30%, #c8ff9b, #3fae3a); }
.gr-soul i { background: radial-gradient(circle at 35% 30%, #e8d4ff, #8a5cff); }
.gr-gem i { background: radial-gradient(circle at 35% 30%, #d2f4ff, #3aa0ff); }
.gr-medal i { background: radial-gradient(circle at 35% 30%, #fff1b0, #d98a00); }
.gr-wash i { background: radial-gradient(circle at 35% 30%, #fff, #9aa7b8); }
.gr-star i { background: radial-gradient(circle at 35% 30%, #fff8b0, #ffb300); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border-radius: 0; }
.gr-power { margin-left: auto; }
.gd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gd-tab, .gd-sub {
  padding: 8px 16px; font-size: 15px; font-weight: 900; color: #f6e2b8; cursor: pointer;
  background: linear-gradient(180deg, #6b4a24, #4a3218); border: 2px solid #9a7238; border-radius: 12px;
}
.gd-tab.on, .gd-sub.on { color: var(--gd-deep); background: linear-gradient(180deg, #ffe58a, #f0b33a); border-color: #fff2b8; }
.gd-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gd-view { min-height: 360px; }
.gd-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; font-size: 12.5px; font-weight: 800; color: #ffefc8; background: rgba(0, 0, 0, .3); border-radius: 99px; }
.gd-chip.gold { color: var(--gd-deep); background: var(--gd-gold); }
.gd-chip.boss { color: #fff; background: #a3262e; }
.gd-chip.mech { color: #e9f6ff; background: #2d5d86; }
.gd-chip.el0 { background: #3f7a2a; } .gd-chip.el1 { background: #2a5f9a; } .gd-chip.el2 { background: #a3402a; } .gd-chip.el3 { background: #9a8a1e; }
.gd-chip.g3, .gd-chip.g4 { color: var(--gd-deep); background: #ffcf4a; }
.gd-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 800; }
.gd-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; background: #fff3cf; border: 3px solid #ffb238; }
.gd-intro p { line-height: 1.8; }

/* ---------- 战役 ---------- */
.gd-chbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gd-ch { display: grid; padding: 6px 14px; color: #f6e2b8; background: linear-gradient(180deg, #6b4a24, #4a3218); border: 2px solid #9a7238; border-radius: 12px; cursor: pointer; }
.gd-ch b { font-size: 14px; } .gd-ch small { font-size: 12px; opacity: .85; }
.gd-ch.on { color: var(--gd-deep); background: linear-gradient(180deg, #ffe58a, #f0b33a); }
.gd-ch.locked { opacity: .45; cursor: not-allowed; }
.gd-world { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #3b5a2a; padding: 0; }
.gw-bg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; }
.gw-title { position: absolute; left: 24px; top: 20px; padding: 4px 14px; font-size: 18px; font-weight: 900; color: var(--gd-deep); background: var(--gd-gold); border-radius: 10px; }
.gw-node {
  position: absolute; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0;
  color: #fff; font-size: 18px; font-weight: 900; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ffde7a, #c27a16); border: 3px solid #fff2c0; border-radius: 50%;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.gw-node b { text-shadow: 0 2px 0 rgba(0, 0, 0, .4); line-height: 1; }
.gw-node.boss { background: radial-gradient(circle at 35% 30%, #ff9a7a, #a3262e); }
.gw-node.hidden-lv { background: radial-gradient(circle at 35% 30%, #d7b8ff, #6a3fb5); }
.gw-node.on { outline: 3px solid #fff; outline-offset: 3px; }
.gw-node.locked { background: radial-gradient(circle at 35% 30%, #aaa, #555); cursor: not-allowed; }
.gw-stars { display: flex; gap: 1px; }
.gw-stars i { display: block; width: 11px; height: 11px; background: rgba(0, 0, 0, .45); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.gw-stars i.on { background: #ffd23f; }
.gw-node .gw-stars { position: absolute; bottom: -14px; }
.gw-desc { margin: 6px 4px 12px; }
.gd-level { margin-top: 6px; }
.gl-head { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.gl-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid #c99a4b; border-radius: 6px; }
.gl-text h2 { margin: 0 0 6px; } .gl-text p { margin: 0 0 6px; line-height: 1.6; }
@media (max-width: 720px) { .gl-head { grid-template-columns: 1fr; } }
.gl-diffs, .gl-chal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.gl-diff, .gl-sub { display: grid; gap: 6px; justify-items: center; padding: 10px; background: rgba(0, 0, 0, .25); border-radius: 10px; text-align: center; }
.gl-diff.locked { opacity: .5; }
.gl-sub small { font-size: 12px; color: #e9d8b4; }
.gl-sub.done b { color: #9df29d; }
.gl-endless, .gl-drops { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.gl-drops img { width: 40px; height: 40px; object-fit: contain; background: rgba(255, 255, 255, .15); border-radius: 8px; }

/* ---------- 卡片网格（英雄、塔灵、图鉴、商店） ---------- */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 12px; }
.gd-card {
  display: grid; justify-items: center; gap: 2px; padding: 8px 6px; color: #fff3d6; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, #5b3e1d, #3a2712); border: 2px solid #8a6630; border-radius: 12px;
}
.gd-card img { width: 64px; height: 64px; object-fit: contain; image-rendering: auto; }
.gd-card b { font-size: 13.5px; } .gd-card small { font-size: 11.5px; opacity: .85; }
.gd-card.on { border-color: #ffe066; box-shadow: 0 0 0 2px #ffe066 inset; }
.gd-card.locked img { filter: grayscale(1) brightness(.6); }
.gd-card.owned { border-color: #6fd38f; }
.gd-card.rar2 { border-color: #5fb15a; } .gd-card.rar3 { border-color: #4f8fe0; } .gd-card.rar4 { border-color: #a86cf0; } .gd-card.rar5 { border-color: #ffb300; }
.gd-card.boss { background: linear-gradient(180deg, #6a2020, #3a1010); }
div.gd-card { cursor: default; }
.gd-detail h2 { margin: 0 0 4px; }
.gh-line, .gh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.gh-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.gh-skill { display: grid; gap: 4px; padding: 10px; background: rgba(0, 0, 0, .25); border-radius: 10px; }
.gh-skill.ult { background: rgba(120, 60, 160, .35); }
.gh-skill small { color: #e9d8b4; font-size: 12px; }
.gh-talents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gt-col { display: grid; gap: 6px; align-content: start; }
.gt-node, .tt-node {
  display: grid; gap: 2px; padding: 6px 8px; text-align: left; color: #fff3d6; cursor: pointer;
  background: rgba(0, 0, 0, .3); border: 2px solid #7a5a2a; border-radius: 8px;
}
.gt-node.got, .tt-node.got { border-color: #ffd23f; background: rgba(120, 90, 20, .45); }
.tt-node.locked { opacity: .45; }
.gt-node b { font-size: 13.5px; }
.gt-node em, .tt-node em { font-size: 11px; color: var(--gd-gold); font-style: normal; }
.gt-node small, .tt-node small { font-size: 11.5px; color: #e9d8b4; }
.gh-gear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .gh-gear { grid-template-columns: repeat(2, 1fr); } .gh-talents { grid-template-columns: 1fr; } }
.ge-slot { display: grid; gap: 2px; padding: 10px; color: #fff3d6; background: rgba(0, 0, 0, .3); border: 2px solid #7a5a2a; border-radius: 10px; cursor: pointer; }
.r2 { border-color: #5fb15a !important; } .r3 { border-color: #4f8fe0 !important; } .r4 { border-color: #a86cf0 !important; } .r5 { border-color: #ffb300 !important; }
.gd-tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tt-tree { margin: 0; }
.tt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.gd-camp { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.cp-b { margin: 0; }
.cp-bar { height: 8px; margin: 6px 0 10px; background: rgba(0, 0, 0, .35); border-radius: 99px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff9b2f); }
.gd-gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ge-card { margin: 0; padding: 12px 14px; color: #fff3d6; background: linear-gradient(180deg, #4a3218, #2f1f0e); border: 3px solid #7a5a2a; }
.ge-card ul { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.gd-pick { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.gd-pick-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 8px 10px; text-align: left; background: #fff8e6; border: 2px solid #e2c48a; border-radius: 10px; cursor: pointer; }
.gd-pick-item small { grid-column: 1 / -1; color: #7a6040; font-size: 12px; }
.gd-pick-item img { width: 36px; height: 36px; object-fit: contain; }

/* ---------- 远征 / 挑战 / 成就 ---------- */
.ex-route { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.ex-node { padding: 6px 12px; font-size: 13px; font-weight: 800; background: rgba(0, 0, 0, .3); border: 2px solid #7a5a2a; border-radius: 99px; }
.ex-node.done { opacity: .5; } .ex-node.cur { color: var(--gd-deep); background: var(--gd-gold); border-color: #fff; }
.ex-node.boss { border-color: #ff6a6a; } .ex-node.elite { border-color: #d7a6ff; }
.ex-relics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 8px 0; }
.ex-relic { display: grid; gap: 4px; padding: 10px; text-align: left; color: #fff3d6; background: rgba(0, 0, 0, .3); border: 2px solid #7a5a2a; border-radius: 10px; }
button.ex-relic { cursor: pointer; }
.ex-relic small { font-size: 12px; color: #e9d8b4; } .ex-relic em { font-style: normal; color: var(--gd-gold); }
.ex-relic.rar3 { border-color: #4f8fe0; } .ex-relic.rar4 { border-color: #a86cf0; }
.ex-relics.small .ex-relic { padding: 6px 8px; }
.gd-chals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ch-card { margin: 0; }
.ch-aff { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.gd-achs { display: grid; gap: 6px; }
.ac-row { display: grid; grid-template-columns: 180px 1fr 160px auto; align-items: center; gap: 10px; padding: 8px 12px; background: #fff8e6; border: 2px solid #e8d4a8; border-radius: 10px; color: var(--gd-ink); }
.ac-row small { color: #7a6040; } .ac-row em { font-style: normal; font-size: 12px; color: #a0681a; }
.ac-row.ready { border-color: #ffb238; background: #fff1c4; } .ac-row.done { opacity: .55; }
.ac-row .cp-bar { margin: 0; grid-column: 1 / -1; }
@media (max-width: 720px) { .ac-row { grid-template-columns: 1fr; } }
.rk-list { padding-left: 0; list-style: none; }
.rk-list li { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }

/* ---------- 战斗层 ---------- */
.gd-play {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #120c06;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.gp-stage { position: relative; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; container-type: size; background: #000; }
@supports (height: 100dvh) { .gp-stage { width: min(100vw, calc(100dvh * 16 / 9)); } }
#gd-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.gp-stage.aiming #gd-cv { cursor: crosshair; }
body.gd-playing { overflow: hidden; }
.gp-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: var(--font-body); }
.gh-res { position: absolute; left: 1.4cqh; top: 1.4cqh; display: flex; gap: 1cqh; }
.gh-r {
  display: flex; align-items: center; gap: .8cqh; height: 6cqh; padding: 0 1.8cqh 0 .8cqh; font-size: 3.1cqh; font-weight: 900;
  font-variant-numeric: tabular-nums; background: rgba(30, 18, 6, .6); border: .35cqh solid rgba(255, 220, 150, .8); border-radius: 99px;
  text-shadow: 0 .2cqh 0 rgba(0, 0, 0, .5);
}
.gh-r i { display: block; width: 4cqh; height: 4cqh; border-radius: 50%; }
.gh-life i { background: radial-gradient(circle at 35% 30%, #ffb3c4, #ef2d55); clip-path: polygon(50% 92%, 8% 50%, 6% 26%, 24% 10%, 50% 26%, 76% 10%, 94% 26%, 92% 50%); border-radius: 0; }
.gh-gold i { background: radial-gradient(circle at 35% 30%, #fff5b0, #f1a90c); }
.gh-wave i { background: radial-gradient(circle at 35% 30%, #fff, #8fb0d8); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.gh-r.bump { animation: gh-bump .4s var(--jelly); }
@keyframes gh-bump { 40% { transform: scale(1.18); background: rgba(200, 20, 40, .8); } }
.gh-btns { position: absolute; right: 1.4cqh; top: 1.4cqh; display: flex; gap: 1cqh; pointer-events: auto; }
.gh-btn {
  display: grid; place-items: center; min-width: 6.4cqh; height: 6.4cqh; padding: 0 1cqh; color: #fff; font-size: 2.7cqh; font-weight: 900;
  background: rgba(30, 18, 6, .6); border: .4cqh solid rgba(255, 220, 150, .85); border-radius: 99px; cursor: pointer;
}
.gh-bottom { position: absolute; left: 1.4cqh; right: 1.4cqh; bottom: 1.4cqh; display: flex; align-items: flex-end; gap: 1.4cqh; pointer-events: none; }
.gh-hero { display: flex; align-items: flex-end; gap: 1cqh; pointer-events: auto; }
.gh-port {
  position: relative; width: 11cqh; height: 11cqh; padding: 0; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #6aa6d8, #1d3a5c); border: .5cqh solid #ffe58a; border-radius: 50%;
}
.gh-port img { width: 100%; height: 100%; object-fit: contain; }
.gh-port .lv { position: absolute; left: 50%; bottom: 1cqh; padding: 0 .8cqh; font-size: 1.9cqh; font-weight: 900; background: rgba(0, 0, 0, .6); border-radius: 99px; transform: translateX(-50%); }
.gh-port .hp { position: absolute; left: 0; right: 0; bottom: 0; height: .9cqh; background: #4fb3ff; transform-origin: left; transform: scaleX(var(--f, 1)); }
.gh-port.sel { box-shadow: 0 0 0 .5cqh #4fb3ff; }
.gh-port.dead img { filter: grayscale(1) brightness(.5); }
.gh-ult, .gh-sk {
  position: relative; display: grid; place-items: center; width: 9cqh; height: 9cqh; padding: 0; overflow: hidden; cursor: pointer;
  color: #fff; font-size: 1.8cqh; font-weight: 900; background: radial-gradient(circle at 35% 30%, #8a5cff, #3a1d7a);
  border: .45cqh solid #ffe58a; border-radius: 50%;
}
.gh-sk { background: radial-gradient(circle at 35% 30%, #ff9a5c, #8a2d10); }
.gh-sk img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: .9; }
.gh-ult b, .gh-sk b { position: relative; z-index: 1; padding: 0 .3cqh; text-shadow: 0 .2cqh 0 #000; }
.gh-ult em, .gh-sk em { position: absolute; right: 1.2cqh; bottom: .6cqh; z-index: 1; font-size: 1.7cqh; font-style: normal; color: var(--gd-gold); }
.gh-ult .cd, .gh-sk .cd { position: absolute; inset: 0; background: conic-gradient(rgba(0, 0, 0, .65) calc(var(--f, 0) * 360deg), transparent 0); }
.gh-spells { display: flex; gap: 1cqh; pointer-events: auto; }
.gh-call {
  margin-left: auto; display: grid; justify-items: center; padding: 1.2cqh 2.4cqh; color: #3a2400; font-size: 2.5cqh; font-weight: 900; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, #ffe58a, #f0a92a); border: .45cqh solid #fff4c2; border-radius: 2cqh; box-shadow: 0 .6cqh 0 #a8640e;
}
.gh-call small { font-size: 1.8cqh; }
.gh-call:disabled { opacity: .45; cursor: default; }
.gh-preview { position: absolute; right: 1.4cqh; top: 10cqh; display: flex; flex-direction: column; align-items: flex-end; gap: .6cqh; }
.gh-preview b { font-size: 2cqh; color: var(--gd-gold); text-shadow: 0 .2cqh 0 #000; }
.gh-preview .pv { display: flex; align-items: center; gap: .3cqh; height: 4.6cqh; padding: 0 1cqh 0 .2cqh; font-size: 1.9cqh; font-weight: 900; background: rgba(0, 0, 0, .5); border-radius: 99px; }
.gh-preview .pv img { width: 4.6cqh; height: 4.6cqh; object-fit: contain; }
.gh-preview .pv.boss { background: rgba(170, 30, 30, .75); }
.gh-preview .pv.fly i::after { content: " 飞"; color: #8fd0ff; }
.gh-banner {
  position: absolute; left: 0; right: 0; top: 30%; padding: 1.4cqh 0; text-align: center; color: #fff6c8;
  font-family: var(--font-title); font-size: 5.2cqh; letter-spacing: .5cqh; text-shadow: 0 .4cqh 0 rgba(0, 0, 0, .55);
  background: linear-gradient(90deg, transparent, rgba(60, 35, 10, .75) 20%, rgba(60, 35, 10, .75) 80%, transparent);
}
.gh-banner.show { animation: gh-in .35s var(--out); }
.gh-banner small { display: block; font-family: var(--font-body); font-size: 2.4cqh; font-weight: 800; color: #ffe8b0; letter-spacing: .3cqh; }
.gh-banner.warn { color: #ffdf5a; background: linear-gradient(90deg, transparent, rgba(150, 10, 30, .75) 20%, rgba(150, 10, 30, .75) 80%, transparent); }
@keyframes gh-in { from { opacity: 0; transform: scale(1.15); } }
.gh-tip { position: absolute; left: 50%; bottom: 15cqh; padding: .8cqh 2.2cqh; font-size: 2.4cqh; font-weight: 800; background: rgba(0, 0, 0, .7); border-radius: 99px; transform: translateX(-50%); white-space: nowrap; }
.gh-mech { position: absolute; inset: 0; pointer-events: none; }
.gm-btn {
  position: absolute; display: grid; justify-items: center; padding: .5cqh 1.2cqh; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer;
  color: #fff; font-size: 1.9cqh; font-weight: 900; background: rgba(160, 50, 20, .85); border: .3cqh solid #ffd56a; border-radius: 1.2cqh;
}
.gm-btn small { font-size: 1.6cqh; color: #ffe8b0; }
.gm-btn.gm-gate { background: rgba(110, 70, 30, .9); }
.gm-btn:disabled { opacity: .5; }

/* 建塔轮盘 */
.gp-ring { position: absolute; width: 0; height: 0; z-index: 4; }
.rg-btn {
  position: absolute; left: calc(var(--dx) - 5.4cqh); top: calc(var(--dy) - 5.4cqh); display: grid; justify-items: center; align-content: center;
  width: 10.8cqh; height: 10.8cqh; padding: 0; color: #fff; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #7a5426, #3a2410); border: .4cqh solid #ffd56a; border-radius: 50%;
  box-shadow: 0 .6cqh 1.4cqh rgba(0, 0, 0, .5); animation: rg-in .22s var(--jelly) both;
}
.rg-btn img { width: 6cqh; height: 5cqh; object-fit: contain; }
.rg-btn b { font-size: 1.8cqh; line-height: 1.1; } .rg-btn small { font-size: 1.6cqh; color: var(--gd-gold); }
.rg-btn:disabled { filter: grayscale(.9); opacity: .7; cursor: default; }
@keyframes rg-in { from { opacity: 0; transform: scale(.4); } }

/* 塔面板 */
.gp-panel {
  position: absolute; z-index: 5; width: 46cqh; max-width: 70cqw; padding: 2.4cqh 3cqh; transform: translate(-50%, -100%);
  font-size: 1.9cqh; border-image-width: 3.4cqh 4.5cqh; pointer-events: auto;
}
.gp-panel.below { transform: translate(-50%, 0); }
.tp-head { display: grid; grid-template-columns: 8cqh 1fr auto; gap: 1.2cqh; align-items: center; }
.tp-head img { width: 8cqh; height: 8cqh; object-fit: contain; }
.tp-head b { display: block; font-size: 2.4cqh; color: #ffe9a8; } .tp-head small { color: #e9d8b4; font-size: 1.7cqh; }
.tp-x { width: 4cqh; height: 4cqh; padding: 0; color: #fff; font-size: 2.6cqh; background: rgba(0, 0, 0, .4); border: 0; border-radius: 50%; cursor: pointer; }
.tp-acts { display: grid; gap: .8cqh; margin: 1.2cqh 0; }
.tp-btn {
  display: grid; grid-template-columns: 1fr auto; gap: .2cqh 1cqh; padding: .9cqh 1.4cqh; text-align: left; color: #fff3d6; cursor: pointer;
  background: rgba(0, 0, 0, .35); border: .3cqh solid #c99a4b; border-radius: 1.2cqh;
}
.tp-btn b { font-size: 2cqh; } .tp-btn small { grid-column: 1; font-size: 1.6cqh; color: #e9d8b4; }
.tp-btn em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 900; color: var(--gd-gold); }
.tp-btn:disabled { opacity: .5; cursor: default; }
.tp-btn.tp-br { border-color: #a86cf0; } .tp-btn.done { border-color: #6fd38f; }
.tp-row { display: flex; flex-wrap: wrap; gap: .8cqh; }
.tp-mini { padding: .6cqh 1.4cqh; font-size: 1.8cqh; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .4); border: .25cqh solid #c99a4b; border-radius: 99px; cursor: pointer; }
.tp-sell { margin-left: auto; border-color: #ff9b6a; }

/* 覆盖层 */
.gp-ov { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 3cqh; background: rgba(10, 6, 2, .62); }
.gp-card { min-width: 60cqh; max-width: 92cqw; max-height: 92cqh; overflow: auto; padding: 4cqh 5cqh; text-align: center; border-image-width: 4cqh 5.3cqh; }
.gp-card h3 { margin: 0 0 1.6cqh; font-family: var(--font-title); font-size: 4.6cqh; }
.gp-card .hint { font-size: 2.1cqh; }
.ov-kicker { margin: 0; color: var(--gd-gold); font-size: 2.2cqh; font-weight: 800; }
.load-bar { height: 1.6cqh; margin: 2cqh 0; background: rgba(0, 0, 0, .4); border-radius: 99px; overflow: hidden; }
.load-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff9b2f); transition: width .2s; }
.ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4cqh; margin-top: 2cqh; }
.gp-card .btn { font-size: 2.2cqh; }
.rs-grade { display: inline-grid; place-items: center; width: 11cqh; height: 11cqh; margin-bottom: 1cqh; font-family: var(--font-title); font-size: 6cqh; border-radius: 50%; }
.rs-grade.win { color: #3a2400; background: radial-gradient(circle at 35% 30%, #fff6b0, #f0a92a); }
.rs-grade.lose { color: #fff; background: radial-gradient(circle at 35% 30%, #a0a0a0, #4a4a4a); }
.rs-stars { display: flex; justify-content: center; gap: 1cqh; margin-bottom: 1.4cqh; }
.rs-stars i { display: block; width: 6.4cqh; height: 6.4cqh; background: rgba(0, 0, 0, .45); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.rs-stars i.on { background: #ffd23f; animation: rs-star .5s var(--jelly) both; }
.rs-stars i.on:nth-child(2) { animation-delay: .15s; } .rs-stars i.on:nth-child(3) { animation-delay: .3s; }
@keyframes rs-star { from { transform: scale(0) rotate(-40deg); } }
.rs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqh; margin: 0 0 1.6cqh; padding: 0; list-style: none; }
.rs-stats li { display: grid; padding: 1cqh; background: rgba(0, 0, 0, .3); border-radius: 1cqh; }
.rs-stats span { font-size: 1.8cqh; color: #e9d8b4; } .rs-stats b { font-size: 2.8cqh; color: var(--gd-gold); }
.rs-items { display: flex; flex-wrap: wrap; justify-content: center; gap: .8cqh; margin: 0 0 1cqh; padding: 0; list-style: none; }
.rs-items li { padding: .6cqh 1.6cqh; font-size: 2cqh; font-weight: 800; background: rgba(255, 220, 120, .18); border: .25cqh solid #c99a4b; border-radius: 99px; }
.rs-daily, .rs-ach, .rs-rank { font-size: 2cqh; color: #9df29d; }
.rotate-tip { position: absolute; inset: 0; z-index: 9; display: none; place-items: center; text-align: center; color: #fff; background: #120c06; }
.rotate-tip b { font-size: 10cqw; }
@media (orientation: portrait) and (pointer: coarse) { .rotate-tip { display: grid; } }

@media (hover: hover) and (pointer: fine) {
  .gd-tab:hover, .gd-sub:hover, .gd-card:hover, .gw-node:hover:not(:disabled) { filter: brightness(1.12); }
  .rg-btn:hover:not(:disabled), .tp-btn:hover:not(:disabled) { filter: brightness(1.18); }
}

/* ---------- 细节修整（2026-11-06，样式不变只修字号、对齐、间距、图标、按钮大小） ---------- */
/* 石框面板中间原是半透明，底下的浅色页面透上来发灰：垫一层深棕，只铺在框内；战斗防御塔资料框改高通透以便看清攻击范围 */
.panel.stone, .gp-card.stone { background: rgba(43, 29, 16, .9); background-clip: padding-box; }
.gp-panel, .gp-panel.stone {
  max-height: 94cqh; overflow-y: auto; box-sizing: border-box; padding: 2cqh 2.4cqh;
  border-image: none; border: .3cqh solid rgba(255, 218, 128, .82); border-radius: 1.8cqh;
  background: rgba(22, 14, 8, .42); box-shadow: 0 .8cqh 2.4cqh rgba(0, 0, 0, .45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .75);
}
.gp-panel .tp-btn { background: rgba(14, 9, 4, .36); border-color: rgba(215, 168, 86, .78); }
.gp-panel .tp-mini { background: rgba(14, 9, 4, .44); }
.gp-panel .tp-sell { background: rgba(90, 24, 14, .52); border-color: #ff9b6a; }
.gp-panel .tp-x { background: rgba(14, 9, 4, .55); }
/* 资源条：小字标签看得清 */
.gr small { font-size: 12.5px; color: #f1ddb4; opacity: 1; }
.gr { padding: 4px 11px; }
/* 大地图：关卡下面的星星垫深色底，沙地 / 雪地上也看得清 */
.gw-node .gw-stars { padding: 2px 4px; background: rgba(30, 18, 6, .72); border-radius: 6px; }
.gw-stars i { width: 10px; height: 10px; background: rgba(255, 255, 255, .28); }
.gw-stars i.on { background: #ffd23f; }

/* 战斗：法术按钮的名字挪到圆按钮下方，不再压住图标；快捷键做成右上角小角标 */
.gh-bottom { bottom: 3.6cqh; }
.gh-sk { overflow: visible; }
.gh-sk img { inset: 10%; width: 80%; height: 80%; opacity: 1; }
.gh-sk b {
  position: absolute; left: 50%; bottom: -3cqh; z-index: 2; padding: .1cqh 1cqh; transform: translateX(-50%); white-space: nowrap;
  font-size: max(1.8cqh, 11px); background: rgba(30, 18, 6, .82); border: .2cqh solid rgba(255, 220, 150, .7); border-radius: 99px;
}
.gh-ult { overflow: visible; }
.gh-ult b { font-size: max(2cqh, 11px); line-height: 1.15; text-align: center; }
.gh-ult em, .gh-sk em {
  top: -.6cqh; right: -.6cqh; bottom: auto; z-index: 2; display: grid; place-items: center; width: 3.4cqh; height: 3.4cqh; min-width: 15px; min-height: 15px;
  font-size: max(1.7cqh, 10px); color: #3a2400; background: #ffe58a; border: .2cqh solid #a8640e; border-radius: 50%;
}
.gh-ult .cd, .gh-sk .cd { border-radius: 50%; }
/* 英雄头像：等级角标挪到左下，不和血条挤在一起 */
.gh-port { overflow: visible; }
.gh-port img { border-radius: 50%; }
.gh-port .lv { left: -.6cqh; bottom: -.6cqh; transform: none; padding: .2cqh 1cqh; font-size: max(1.9cqh, 11px); color: #ffe58a; background: #2b1d10; border: .25cqh solid #ffe58a; }
.gh-port .hp { left: 12%; right: 12%; bottom: -1.4cqh; height: 1cqh; border-radius: 99px; box-shadow: 0 0 0 .2cqh rgba(0, 0, 0, .6); }
/* 下一波预览：图标和字放大 */
.gh-preview { top: 10.4cqh; gap: .8cqh; }
.gh-preview b { font-size: max(2.2cqh, 12px); }
.gh-preview .pv { height: 5.4cqh; font-size: max(2.1cqh, 11px); }
.gh-preview .pv img { width: 5.4cqh; height: 5.4cqh; }
/* 小屏上字太小：塔面板、建塔轮盘、提示条设最小字号 */
.gp-panel { font-size: max(1.9cqh, 12px); min-width: 250px; }
.tp-head b { font-size: max(2.4cqh, 14px); } .tp-head small, .tp-btn small { font-size: max(1.7cqh, 11px); }
.tp-btn b { font-size: max(2cqh, 12.5px); } .tp-mini { font-size: max(1.8cqh, 11.5px); }
.rg-btn b { font-size: max(1.8cqh, 11px); } .rg-btn small { font-size: max(1.6cqh, 10px); }
.gh-tip { font-size: max(2.4cqh, 13px); }
.gh-call { font-size: max(2.5cqh, 13px); } .gh-call small { font-size: max(1.8cqh, 11px); }
/* 成就：名字 | 说明 | 奖励 | 领取按钮 一行，进度条和数字在下面一行；按钮不再被拉满整行 */
.ac-row { grid-template-columns: 170px 1fr auto auto; grid-template-areas: "n d r b" "p p p b"; row-gap: 6px; }
.ac-row > b { grid-area: n; } .ac-row > small { grid-area: d; } .ac-row > em { grid-area: r; white-space: nowrap; text-align: right; }
.ac-row > .btn { grid-area: b; align-self: center; min-width: 76px; }
.ac-prog { grid-area: p; display: flex; align-items: center; gap: 10px; }
.ac-prog .cp-bar { flex: 1; margin: 0; }
.ac-prog span { min-width: 74px; font-size: 12px; font-weight: 800; color: #7a6040; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .ac-row { grid-template-columns: 1fr auto; grid-template-areas: "n b" "d b" "r b" "p p"; } .ac-row > em { text-align: left; } }
.ln-ic { width: 22px; height: 22px; margin: -4px 4px -6px -4px; object-fit: contain; vertical-align: middle; }
