/* ===== 棋来乐 · 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 国风主题：墨青为底，鎏金为饰，檀木为面 */
  --bg-deep: #0b1a17;
  --bg-panel: rgba(38, 27, 17, 0.92);
  --bg-soft: rgba(82, 59, 30, 0.5);
  --border-soft: rgba(226, 184, 106, 0.35);
  --accent: #f2c86b;
  --accent-glow: #ffe8ad;
  --text-main: #f7edd9;
  --text-sub: #d3c1a2;
  --text-dim: #a08a6a;
  --success: #63d9ab;
  --danger: #ee6a4f;
  --info: #7ccfe4;
  --gold-line: rgba(240, 205, 130, 0.22);
  --wood-hi: rgba(64, 44, 24, 0.94);
  --wood-lo: rgba(26, 17, 10, 0.96);
  --font-brush: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", serif;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 55% 38% at 82% 8%, rgba(255, 216, 140, 0.26), transparent 62%),
    radial-gradient(ellipse 70% 46% at 10% 90%, rgba(34, 96, 84, 0.55), transparent 70%),
    linear-gradient(180deg, #17332f 0%, #102622 46%, #081412 100%);
  background-attachment: fixed;
}

/* 背景云纹 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130' viewBox='0 0 260 130'%3E%3Cg fill='none' stroke='%23e8c877' stroke-opacity='0.18' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M18 92c8-16 26-24 44-20 6-18 30-26 48-16 10-14 34-14 46-2 16-6 32 2 34 16 10-2 20 4 22 14'/%3E%3Cpath d='M40 108c14-8 34-8 48 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 380px 190px;
  opacity: 0.3;
  animation: cloudDrift 120s linear infinite;
}
@keyframes cloudDrift {
  from { background-position: 0 0; }
  to { background-position: 1520px 380px; }
}

/* 远山剪影 */
body::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 42vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(242, 200, 107, 0.05) 0%, rgba(5, 14, 12, 0.92) 66%, rgba(4, 11, 10, 0.98) 100%);
  clip-path: polygon(0 68%, 10% 46%, 20% 62%, 32% 28%, 44% 58%, 56% 38%, 68% 62%, 80% 34%, 90% 56%, 100% 44%, 100% 100%, 0 100%);
  filter: blur(1.5px);
  opacity: 0.92;
}

/* ===== 屏幕切换 ===== */
.screen {
  display: none;
  min-height: 100vh;
  padding: 16px;
}
.screen.active { display: flex; flex-direction: column; }
#screen-npc, #screen-game, #screen-review, #screen-settings, #screen-history {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
#screen-game { position: relative; }
#screen-game::before {
  content: '';
  position: absolute;
  left: 50%; top: 6%;
  transform: translateX(-50%);
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(242, 200, 107, 0.13) 0%, transparent 62%);
  pointer-events: none;
  z-index: -1;
}

/* ===== 主菜单 ===== */
#screen-menu { justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; }
.menu-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 226, 158, 0.2) 0%, transparent 46%),
    radial-gradient(ellipse 60% 30% at 50% 8%, rgba(255, 205, 120, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 118%, rgba(20, 62, 54, 0.85), transparent 72%);
  animation: bgShift 24s ease-in-out infinite alternate;
  z-index: 0;
}
.menu-bg::before,
.menu-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.5;
}
.menu-bg::before {
  width: 260px; height: 260px;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 130, 0.55), transparent 68%);
  animation: haloPulse 6s ease-in-out infinite alternate;
}
.menu-bg::after {
  width: 60vw; height: 160px;
  left: 20%; bottom: 12%;
  background: radial-gradient(ellipse at center, rgba(120, 210, 180, 0.18), transparent 70%);
  animation: bgShift 32s ease-in-out infinite alternate-reverse;
}
@keyframes haloPulse {
  from { opacity: 0.35; transform: translate(-50%, -50%) scale(0.94); }
  to { opacity: 0.6; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes bgShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.menu-content { position: relative; z-index: 1; }
.menu-content::after {
  content: '棋';
  position: absolute;
  right: -14px;
  top: 22px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--font-brush);
  font-size: 22px;
  color: #fdeccf;
  background: linear-gradient(180deg, #c9452c 0%, #9d2b18 100%);
  border: 2px solid #e8b880;
  border-radius: 4px;
  transform: rotate(-7deg);
  opacity: 0.88;
  box-shadow: 0 0 16px rgba(201, 69, 44, 0.45), inset 0 0 8px rgba(0, 0, 0, 0.45);
}
.game-title {
  font-family: var(--font-brush);
  font-size: 88px;
  background: linear-gradient(180deg, #fffbea 0%, #ffe6a3 26%, #f0c163 52%, #b9822c 76%, #ffe9b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(96, 54, 10, 0.95)) drop-shadow(0 0 28px rgba(255, 205, 110, 0.45));
  letter-spacing: 20px;
  margin-bottom: 12px;
  animation: titleBreath 4.2s ease-in-out infinite alternate;
}
@keyframes titleBreath {
  0% { filter: drop-shadow(0 2px 0 rgba(96, 54, 10, 0.95)) drop-shadow(0 0 18px rgba(255, 205, 110, 0.3)); }
  100% { filter: drop-shadow(0 2px 0 rgba(96, 54, 10, 0.95)) drop-shadow(0 0 36px rgba(255, 220, 140, 0.6)); }
}
.game-subtitle {
  color: #e6cf9f;
  font-size: 15px;
  letter-spacing: 9px;
  margin-bottom: 62px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.game-subtitle::before,
.game-subtitle::after {
  content: '❖';
  color: var(--accent);
  font-size: 12px;
  margin: 0 14px;
  opacity: 0.8;
}
.menu-buttons { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.menu-buttons button { width: 248px; }
.menu-footer { margin-top: 76px; color: var(--text-dim); font-size: 13px; letter-spacing: 6px; }

/* ===== 按钮 ===== */
button { font-family: inherit; cursor: pointer; border: none; outline: none; transition: all 0.2s; }
.btn-primary {
  padding: 14px 36px;
  font-family: var(--font-brush);
  font-size: 20px;
  background: linear-gradient(180deg, #ffeab3 0%, #f3c969 38%, #d19b34 70%, #b07c26 100%);
  color: #40280f;
  border: 1px solid #7d5316;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 6px;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.75);
  box-shadow:
    0 4px 0 #6f4a12,
    0 12px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 250, 220, 0.9);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff4cd 0%, #f8d47c 38%, #dcaa41 70%, #bd8a2c 100%);
  box-shadow:
    0 6px 0 #6f4a12,
    0 16px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 #fffbe6;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #6f4a12, 0 6px 14px rgba(0, 0, 0, 0.45);
}
.btn-secondary {
  padding: 12px 32px;
  font-size: 16px;
  font-family: var(--font-brush);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(62, 43, 24, 0.95), rgba(28, 19, 11, 0.97));
  color: #f0d9a8;
  border: 1px solid rgba(226, 184, 106, 0.45);
  border-radius: 10px;
  letter-spacing: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 226, 164, 0.16);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(242, 200, 107, 0.22), inset 0 1px 0 rgba(255, 226, 164, 0.2);
}
.btn-back {
  background: transparent;
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 1px;
}
.btn-back:hover { background: rgba(242, 200, 107, 0.12); color: var(--accent); }

/* ===== 屏幕头部 ===== */
.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(242, 200, 107, 0.6), transparent) 1;
  margin-bottom: 18px;
}
.screen-header h2 {
  font-family: var(--font-brush);
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--accent-glow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 18px rgba(242, 200, 107, 0.25);
}
.header-spacer { width: 60px; }

/* ===== NPC 选择 ===== */
.npc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 10px;
}
.npc-card {
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, var(--wood-hi) 0%, var(--wood-lo) 100%);
  border: 1px solid rgba(226, 184, 106, 0.4);
  border-radius: 14px;
  padding: 22px 20px 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 226, 164, 0.18),
    inset 0 0 0 3px rgba(0, 0, 0, 0.2),
    inset 0 0 0 4px rgba(240, 205, 130, 0.16);
}
.npc-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
  background: linear-gradient(180deg, var(--accent-glow), #b9822c); transition: height 0.3s;
}
.npc-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(242, 200, 107, 0.22),
    inset 0 1px 0 rgba(255, 226, 164, 0.24),
    inset 0 0 0 4px rgba(240, 205, 130, 0.2);
}
.npc-card:hover::before { height: 100%; }
.npc-card.selected {
  border-color: var(--accent);
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, rgba(88, 62, 32, 0.96) 0%, rgba(36, 24, 14, 0.98) 100%);
}
.npc-emoji {
  width: 78px; height: 78px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #3d5c4c 0%, #14261f 72%);
  border: 2px solid rgba(233, 196, 120, 0.55);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(233, 196, 120, 0.18);
}
.npc-card h3 {
  font-family: var(--font-brush);
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: 3px;
  color: var(--accent-glow);
  text-align: center;
}
.npc-tier {
  display: block; width: fit-content;
  margin: 0 auto 12px;
  padding: 2px 12px; border-radius: 10px; font-size: 12px; letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tier-easy { background: linear-gradient(180deg, #9becc9, #3fae8a); color: #0c2a21; }
.tier-mid { background: linear-gradient(180deg, #a9e2f6, #4aa7c9); color: #0a2430; }
.tier-hard { background: linear-gradient(180deg, #ffb194, #c8402f); color: #2c0d08; }
.npc-desc { color: var(--text-sub); font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.npc-style { color: var(--accent); font-size: 12px; font-style: italic; letter-spacing: 1px; }
.npc-style::before { content: '「'; opacity: 0.7; }
.npc-style::after { content: '」'; opacity: 0.7; }
.npc-meta { position: absolute; bottom: 12px; right: 16px; font-size: 11px; color: var(--text-dim); }

.npc-locked { opacity: 0.55; filter: grayscale(0.5); cursor: not-allowed; }
.npc-locked:hover { transform: none; }
.npc-locked::before { background: rgba(30,10,10,0.6); }
.aff-badge { font-size: 14px; vertical-align: middle; margin-left: 4px; }
.npc-egg { border: 2px dashed #e2a84a; background: linear-gradient(180deg, rgba(226,168,74,0.25), rgba(226,168,74,0.05)); }

/* 结算窗口额外信息 */
.result-extra {
  margin: 10px 0; padding: 8px 14px; border-radius: 10px;
  background: rgba(255,220,140,0.08);
  border: 1px solid rgba(255,220,140,0.3);
  font-size: 13px; letter-spacing: 1px; color: var(--accent-glow);
}
.result-extra .aff-delta { font-weight: bold; color: #ffd94a; }
.result-extra .aff-tier { font-size: 12px; color: var(--text-sub); }
.result-extra.unlock { background: rgba(140,220,180,0.08); border-color: rgba(140,220,180,0.4); color: #92e8bf; }
.result-extra.egg { background: rgba(255,180,220,0.08); border-color: rgba(255,180,220,0.5); color: #ff9bc1; }

/* ===== 对局界面 ===== */
.game-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, var(--wood-hi) 0%, var(--wood-lo) 100%);
  border: 1px solid rgba(226, 184, 106, 0.35);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 226, 164, 0.16);
}
.turn-indicator {
  padding: 6px 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(242, 200, 107, 0.16), rgba(0, 0, 0, 0.35));
  border-radius: 20px;
  font-size: 14px; letter-spacing: 3px;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.turn-indicator.active-turn {
  border-color: var(--accent);
  color: var(--accent-glow);
  box-shadow: 0 0 18px rgba(242, 200, 107, 0.35), inset 0 0 12px rgba(242, 200, 107, 0.12);
}
.topbar-info { font-size: 13px; color: var(--text-sub); letter-spacing: 1px; }

.game-main {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 0 16px; margin-bottom: 12px;
}
.player-panel {
  position: relative;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, var(--wood-hi) 0%, var(--wood-lo) 100%);
  border: 1px solid rgba(226, 184, 106, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  min-width: 180px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 226, 164, 0.14);
}
.player-panel.active-turn {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(242, 200, 107, 0.28), inset 0 0 14px rgba(242, 200, 107, 0.12);
}
.player-panel .avatar {
  width: 54px; height: 54px;
  flex: 0 0 54px;
  display: grid; place-items: center;
  font-size: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 26%, #3f5c4c 0%, #11201b 74%);
  border: 2px solid rgba(233, 196, 120, 0.5);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.7), 0 0 14px rgba(233, 196, 120, 0.16);
}
.player-panel .name {
  font-family: var(--font-brush);
  font-weight: bold; font-size: 18px; letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--accent-glow);
}
.player-panel .mood { font-size: 12px; color: var(--text-sub); }

.board-container {
  position: relative;
  perspective: 1500px;
  perspective-origin: 50% 42%;
  padding: 16px 16px 8px;
  border-radius: 16px;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #4a3117 0%, #2a1b0d 55%, #170f07 100%);
  border: 1px solid rgba(233, 196, 120, 0.45);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.55),
    inset 0 0 0 3px rgba(0, 0, 0, 0.25),
    inset 0 0 0 4px rgba(240, 205, 130, 0.14);
}
.board-container::before {
  content: '';
  position: absolute;
  left: 6%; right: 6%;
  bottom: -16px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(242, 200, 107, 0.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

/* ===== 3D 技能演出全屏层 ===== */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: block;
}
#board { transition: opacity 0.25s ease; }

/* ===== LLM 配置 ===== */
.llm-config {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, rgba(44, 31, 19, 0.94), rgba(24, 16, 10, 0.96));
  border: 1px solid rgba(226, 184, 106, 0.32);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 226, 164, 0.12);
}
.llm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}
.llm-field input {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(226, 184, 106, 0.25);
  border-radius: 8px;
  padding: 9px 11px;
  color: #f7edd9;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.llm-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 200, 107, 0.15);
}
.llm-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.ai-polishing {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
  animation: aiPolishing 1.2s ease-in-out infinite;
}
@keyframes aiPolishing {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
#board, #review-board, #replay-board {
  display: block;
  background: linear-gradient(135deg, #e0b768 0%, #c99a48 100%);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(92, 58, 20, 0.85),
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(242, 200, 107, 0.12);
}

/* ===== 3D 棋盘演绎态 ===== */
#board {
  transition:
    opacity 0.25s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.7s ease;
  will-change: transform;
}
.board-container.board-3d #board {
  transform: rotateX(34deg) scale(0.96);
  box-shadow:
    0 46px 70px rgba(0, 0, 0, 0.6),
    0 8px 0 #8a6a32,
    0 16px 0 #5f4519,
    0 24px 0 #43300f,
    0 0 90px rgba(232, 197, 71, 0.3);
}
.board-container::after {
  content: '';
  position: absolute;
  left: 6%; right: 6%; bottom: 46px; height: 28px;
  background: radial-gradient(ellipse at center, rgba(232,197,71,0.4), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  z-index: -1;
}
.board-container.board-3d::after { opacity: 1; }

.skill-bar {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 16px;
}
.skill-btn {
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 66, 32, 0.95) 0%, rgba(28, 18, 10, 0.98) 74%);
  border: 1px solid rgba(230, 190, 110, 0.42);
  border-radius: 12px;
  padding: 11px 22px;
  color: var(--text-main);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 100px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.skill-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(242, 200, 107, 0.4), inset 0 0 14px rgba(0, 0, 0, 0.6);
}
.skill-btn.selected {
  background: linear-gradient(180deg, #ffeab3 0%, #f0c163 52%, #c8912f 100%);
  color: #3a240c;
  border-color: var(--accent-glow);
  box-shadow: 0 0 24px rgba(255, 216, 140, 0.55), inset 0 1px 0 #fffbe6;
}
.skill-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.skill-btn.used { opacity: 0.32; filter: grayscale(0.9); cursor: not-allowed; }
.skill-icon { font-size: 22px; filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.5)); }
.skill-name { font-size: 14px; letter-spacing: 2px; font-family: var(--font-brush); }

.game-chat {
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, rgba(38, 27, 17, 0.94), rgba(22, 15, 9, 0.96));
  border: 1px solid rgba(226, 184, 106, 0.3);
  border-left: 3px solid rgba(242, 200, 107, 0.55);
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 80px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
}
.game-chat .chat-line { margin-bottom: 4px; }
.game-chat .chat-line.npc { color: #8ee3c2; }
.game-chat .chat-line.sys { color: var(--text-dim); font-style: italic; }
.game-chat .chat-line.player { color: var(--accent-glow); }

.remark-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background-image: linear-gradient(180deg, rgba(52, 37, 21, 0.96), rgba(20, 13, 7, 0.97));
  border: 1px solid rgba(242, 200, 107, 0.6);
  color: var(--accent-glow);
  padding: 16px 34px;
  border-radius: 10px;
  font-family: var(--font-brush);
  font-size: 20px;
  letter-spacing: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  box-shadow: 0 0 34px rgba(242, 200, 107, 0.35), 0 14px 34px rgba(0, 0, 0, 0.7);
}
.remark-toast.show { opacity: 1; }

.skill-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 9, 8, 0.45);
  z-index: 50;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 20%;
  pointer-events: none;
}
.skill-overlay.hidden { display: none; }
.skill-overlay-tip {
  background: linear-gradient(180deg, #ffeab3, #e3b455);
  color: #3a240c;
  padding: 10px 26px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: bold;
  border: 1px solid #a5741f;
  box-shadow: 0 4px 0 #7c5414, 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3, 9, 8, 0.78); backdrop-filter: blur(5px); }
.modal-content {
  position: relative; z-index: 1;
  background-image: linear-gradient(180deg, #f8ebca 0%, #efdcb2 58%, #e5cc9b 100%);
  color: #3d2c14;
  border: 2px solid #c08b34;
  border-radius: 14px;
  padding: 30px 32px;
  max-width: 480px; width: 90%;
  box-shadow:
    0 0 0 5px rgba(74, 48, 16, 0.5),
    0 0 0 7px rgba(242, 200, 107, 0.3),
    0 26px 60px rgba(0, 0, 0, 0.75);
}
.modal-content::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(139, 94, 32, 0.45);
  border-radius: 8px;
  pointer-events: none;
}
.result-content { text-align: center; }
.result-banner {
  font-family: var(--font-brush);
  font-size: 34px;
  letter-spacing: 10px;
  margin-bottom: 16px;
  padding: 10px 0 16px;
  border-radius: 0;
  background: none;
  color: #7a2d18;
  border-bottom: 1px solid rgba(139, 94, 32, 0.35);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}
.result-banner.win { background: none; color: #1f6b4f; }
.result-banner.lose { background: none; color: #9a2d1c; }
.result-banner.draw { background: none; color: #2a5c74; }
.npc-review-short {
  background: rgba(122, 84, 32, 0.12);
  border-radius: 8px; padding: 16px;
  margin-bottom: 20px; text-align: left; font-size: 14px; line-height: 1.9;
  color: #4a3a1c;
  border-left: 3px solid #b8862f;
}
.npc-review-short .npc-tag { color: #8a5a1c; margin-bottom: 6px; font-weight: bold; letter-spacing: 2px; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.result-actions button { padding: 12px; font-size: 15px; border-radius: 8px; }

/* ===== 复盘面板 ===== */
.review-main { display: flex; gap: 20px; flex: 1; }
.review-board-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.review-keyframes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 400px; }
.keyframe-chip {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(82, 59, 30, 0.45);
  border: 1px solid var(--border-soft);
  color: var(--text-sub);
  cursor: pointer;
}
.keyframe-chip.active {
  background: linear-gradient(180deg, #ffeab3, #e3b455);
  color: #3a240c;
  border-color: var(--accent-glow);
}
.keyframe-chip.good { border-color: var(--success); }
.keyframe-chip.bad { border-color: var(--danger); }

.review-text {
  flex: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 1px, rgba(255, 255, 255, 0.02) 1px 8px),
    linear-gradient(180deg, rgba(40, 29, 18, 0.94), rgba(22, 15, 9, 0.96));
  border: 1px solid rgba(226, 184, 106, 0.32);
  border-radius: 12px;
  padding: 22px;
  line-height: 2;
  font-size: 14px;
  overflow-y: auto;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(240, 205, 130, 0.12);
}
.review-text h4 {
  font-family: var(--font-brush);
  color: var(--accent);
  margin: 14px 0 8px;
  font-size: 17px;
  letter-spacing: 3px;
}
.review-text p { margin-bottom: 8px; color: var(--text-sub); }
.review-text .memory-link {
  background: rgba(124, 207, 228, 0.1);
  border-left: 2px solid var(--info);
  padding: 8px 12px; margin: 12px 0; border-radius: 6px;
  font-size: 13px; color: var(--info);
}
.review-text .memory-link::before { content: '📌 '; }

.btn-manual-replay {
  background: linear-gradient(180deg, #ffeab3, #e3b455);
  color: #3a240c; padding: 8px 16px; border-radius: 8px; font-size: 13px;
  font-weight: bold; letter-spacing: 2px;
  border: 1px solid #a5741f;
  box-shadow: 0 3px 0 #7c5414, 0 6px 14px rgba(0, 0, 0, 0.4);
}
.btn-manual-replay:hover { background: linear-gradient(180deg, #fff4cd, #f0c56b); }

/* ===== 回放播放器 ===== */
.replay-content {
  position: relative; z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, rgba(44, 31, 19, 0.97), rgba(20, 14, 8, 0.98));
  border: 1px solid rgba(226, 184, 106, 0.45);
  border-radius: 16px;
  padding: 20px;
  width: 540px;
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 0 0 5px rgba(240, 205, 130, 0.15),
    0 24px 56px rgba(0, 0, 0, 0.7);
}
.replay-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.replay-header span {
  font-family: var(--font-brush);
  font-size: 22px; letter-spacing: 6px; color: var(--accent-glow);
  text-shadow: 0 0 16px rgba(242, 200, 107, 0.3);
}
.btn-close { background: transparent; color: var(--text-sub); font-size: 20px; padding: 4px 10px; border-radius: 6px; }
.btn-close:hover { background: var(--bg-soft); color: var(--text-main); }
.replay-board-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 16px; perspective: 1300px; perspective-origin: 50% 42%; }
#replay-board { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease; }
.replay-board-wrap.replay-3d #replay-board {
  transform: rotateX(22deg) scale(0.96);
  box-shadow:
    0 36px 60px rgba(0,0,0,0.6),
    0 8px 0 #7a5a28,
    0 16px 0 #5c431c,
    0 0 70px rgba(232,197,71,0.25);
}
.replay-float-text {
  position: absolute; top: 20px; left: 20px; right: 20px;
  background: rgba(0,0,0,0.75);
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; color: var(--accent);
  text-align: center; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.replay-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-ctrl {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  color: var(--text-main); width: 36px; height: 36px; border-radius: 8px; font-size: 16px;
}
.btn-ctrl:hover { border-color: var(--accent); }
.btn-play { width: 44px; height: 44px; background: var(--accent); color: var(--bg-deep); border-color: var(--accent); font-size: 20px; }
.speed-group { display: flex; gap: 4px; margin-left: 8px; }
.btn-speed {
  background: var(--bg-soft); color: var(--text-sub);
  border: 1px solid var(--border-soft); padding: 4px 10px;
  border-radius: 4px; font-size: 12px;
}
.btn-speed.active, .btn-speed:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.progress-slider { flex: 1; min-width: 100px; accent-color: var(--accent); }
.btn-skip {
  background: transparent; color: var(--text-sub);
  border: 1px dashed var(--border-soft); padding: 6px 12px;
  border-radius: 6px; font-size: 12px;
}
.btn-skip:hover { border-color: var(--danger); color: var(--danger); }

/* ===== 设置 ===== */
.settings-list { display: flex; flex-direction: column; gap: 12px; }
.setting-item {
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, var(--wood-hi) 0%, var(--wood-lo) 100%);
  border: 1px solid rgba(226, 184, 106, 0.32);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 226, 164, 0.12);
}
.setting-item.danger { border-color: rgba(238, 106, 79, 0.4); }
.setting-info .setting-title { font-size: 15px; margin-bottom: 4px; letter-spacing: 1px; }
.setting-info .setting-desc { font-size: 12px; color: var(--text-dim); }
.setting-item.danger .setting-title { color: var(--danger); }

.switch { position: relative; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(226, 184, 106, 0.3);
  border-radius: 26px; transition: 0.3s; cursor: pointer;
}
.slider::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: #9a8668;
  border-radius: 50%; transition: 0.3s;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.switch input:checked + .slider {
  background: linear-gradient(180deg, #f3c969, #c8912f);
  border-color: var(--accent-glow);
  box-shadow: 0 0 14px rgba(242, 200, 107, 0.4);
}
.switch input:checked + .slider::before { transform: translateX(22px); background: #fff6da; }

.select-small {
  background: rgba(0, 0, 0, 0.42); color: var(--text-main);
  border: 1px solid rgba(226, 184, 106, 0.3);
  padding: 6px 12px;
  border-radius: 8px; font-size: 13px;
  outline: none;
}
.btn-danger {
  background: linear-gradient(180deg, #e0705a, #b83c26);
  color: #2b0d07;
  border: 1px solid #8f2a18; padding: 8px 18px;
  border-radius: 8px; font-size: 13px; font-weight: bold;
  box-shadow: 0 3px 0 #7a2312, 0 6px 14px rgba(0, 0, 0, 0.4);
}
.btn-danger:hover { background: linear-gradient(180deg, #f08268, #c94831); }

/* ===== 历史 ===== */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.02) 1px 7px),
    linear-gradient(180deg, var(--wood-hi) 0%, var(--wood-lo) 100%);
  border: 1px solid rgba(226, 184, 106, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 226, 164, 0.1);
}
.history-result {
  padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: bold;
}
.history-result.win { background: linear-gradient(180deg, #9becc9, #3fae8a); color: #0c2a21; }
.history-result.lose { background: linear-gradient(180deg, #ffb194, #c8402f); color: #2c0d08; }
.history-result.draw { background: linear-gradient(180deg, #a9e2f6, #4aa7c9); color: #0a2430; }
.history-info { font-size: 13px; color: var(--text-sub); }
.history-info .h-npc { color: var(--accent); margin-right: 10px; }
.history-info .h-date { color: var(--text-dim); font-size: 12px; }
.history-actions button { margin-left: 8px; }
.history-empty { text-align: center; color: var(--text-dim); padding: 40px; letter-spacing: 2px; }

/* ===== Toast ===== */
.toast-global {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
  background-image: linear-gradient(180deg, rgba(52, 37, 21, 0.97), rgba(24, 16, 9, 0.98));
  border: 1px solid var(--accent);
  color: var(--accent-glow);
  padding: 12px 26px; border-radius: 10px;
  font-size: 14px; letter-spacing: 2px;
  opacity: 0; transition: all 0.3s;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(242, 200, 107, 0.3), 0 10px 26px rgba(0, 0, 0, 0.6);
}
.toast-global.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-content, .replay-content { animation: fadeIn 0.3s ease-out; }

@keyframes stoneDrop {
  from { transform: scale(1.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes skillFlash {
  0% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(2); }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.35); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8a6a32, #5a431d);
  border-radius: 4px;
  border: 1px solid rgba(242, 200, 107, 0.25);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d8b263, #a5782c); }

/* ===== 回合制战斗表现（攻击/防御） ===== */
.guard-badge {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: #bff1fb;
  background: linear-gradient(180deg, rgba(36, 88, 102, 0.85), rgba(14, 42, 52, 0.9));
  border: 1px solid rgba(126, 218, 236, 0.45);
  box-shadow: 0 0 10px rgba(90, 200, 226, 0.25);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .25s ease, transform .25s ease;
}
.guard-badge.on { opacity: 1; transform: scale(1); }
.guard-badge b { color: #eafcff; font-size: 12px; }

/* 出手：向棋盘方向前冲 */
@keyframes lungeRight {
  0% { transform: translateX(0) scale(1); }
  28% { transform: translateX(14px) scale(1.14) rotate(4deg); }
  60% { transform: translateX(6px) scale(1.04) rotate(-2deg); }
  100% { transform: translateX(0) scale(1); }
}
@keyframes lungeLeft {
  0% { transform: translateX(0) scale(1); }
  28% { transform: translateX(-14px) scale(1.14) rotate(-4deg); }
  60% { transform: translateX(-6px) scale(1.04) rotate(2deg); }
  100% { transform: translateX(0) scale(1); }
}
.player-panel.casting-right .avatar { animation: lungeRight .55s cubic-bezier(.3, 1.4, .4, 1); border-color: var(--accent); box-shadow: 0 0 26px rgba(255, 214, 120, .75); }
.player-panel.casting-left .avatar { animation: lungeLeft .55s cubic-bezier(.3, 1.4, .4, 1); border-color: var(--accent); box-shadow: 0 0 26px rgba(255, 214, 120, .75); }

/* 受击：红闪 + 抖动 */
@keyframes hitShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-3deg); }
  45% { transform: translateX(4px) rotate(2deg); }
  70% { transform: translateX(-3px); }
}
.player-panel.hit .avatar {
  animation: hitShake .42s ease;
  border-color: #e85d75;
  box-shadow: 0 0 24px rgba(232, 93, 117, .7), inset 0 0 18px rgba(232, 93, 117, .45);
}

/* 防御：青色护盾涟漪 */
@keyframes guardPulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 218, 236, .85), inset 0 0 12px rgba(126, 218, 236, .4); }
  55% { box-shadow: 0 0 0 16px rgba(126, 218, 236, 0), inset 0 0 26px rgba(126, 218, 236, .65); }
  100% { box-shadow: 0 0 0 0 rgba(126, 218, 236, 0), inset 0 0 12px rgba(126, 218, 236, .2); }
}
.player-panel.guarding .avatar { animation: guardPulse .7s ease-out; border-color: #7fd8ea; }

/* 战斗浮字 */
.panel-float {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  font-family: var(--font-brush);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffd76e;
  text-shadow: 0 0 12px rgba(255, 170, 60, .9), 0 2px 2px rgba(0, 0, 0, .85);
  pointer-events: none;
  animation: floatUp 1.1s ease-out forwards;
  z-index: 6;
}
.panel-float.guard { color: #bff1fb; font-size: 20px; text-shadow: 0 0 12px rgba(110, 220, 245, .9), 0 2px 2px rgba(0, 0, 0, .85); }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, -4px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}
.panel-float.crit { color: #ff9d5c; font-size: 30px; text-shadow: 0 0 16px rgba(255, 120, 50, .95), 0 2px 2px rgba(0, 0, 0, .9); }

/* ===== 棋盘战斗浮层（网游式伤害 / 格挡） ===== */
.combat-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}
.dmg-num {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  animation: dmgPop 1.5s cubic-bezier(.2, 1.25, .35, 1) forwards;
  will-change: transform, opacity;
}
.dmg-val {
  font-family: var(--font-brush);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  color: #ffe07a;
  -webkit-text-stroke: 2px rgba(20, 10, 2, .95);
  paint-order: stroke fill;
  text-shadow:
    0 0 16px rgba(255, 190, 70, .95),
    0 3px 0 rgba(90, 40, 0, .85),
    0 0 34px rgba(255, 120, 40, .55);
}
.dmg-num.crit .dmg-val {
  font-size: 64px;
  color: #ffd35e;
  -webkit-text-stroke: 2.5px rgba(46, 12, 0, .95);
  background: linear-gradient(180deg, #fffbe0 8%, #ffd35e 46%, #e6472f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(255, 130, 50, .95)) drop-shadow(0 3px 0 rgba(70, 14, 0, .9));
  animation: critShake .3s ease-in-out 2;
}
.dmg-num.guard .dmg-val {
  font-size: 36px;
  color: #bff1fb;
  -webkit-text-stroke-color: rgba(4, 22, 28, .95);
  text-shadow: 0 0 18px rgba(110, 220, 245, .95), 0 3px 0 rgba(4, 22, 28, .85);
}
.dmg-num.miss .dmg-val {
  font-size: 32px;
  color: #cfd8d8;
  text-shadow: 0 0 12px rgba(180, 200, 200, .7), 0 3px 0 rgba(10, 14, 14, .85);
}
.dmg-sub {
  font-family: var(--font-brush);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffd35e;
  text-shadow: 0 1px 2px #000, 0 0 10px rgba(255, 150, 60, .8);
}
.dmg-num.crit .dmg-sub { color: #ffb066; }
.dmg-num.guard .dmg-sub { color: #bff1fb; text-shadow: 0 1px 2px #000, 0 0 10px rgba(110, 220, 245, .9); }
@keyframes dmgPop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.3); }
  16% { opacity: 1; transform: translate(-50%, -58%) scale(1.22); }
  34% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  76% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -132%) scale(.92); }
}
@keyframes critShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-3px) rotate(-2deg); }
  70% { transform: translateX(3px) rotate(2deg); }
}

/* 护体气盾涟漪 */
.guard-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(140, 228, 246, .9);
  box-shadow: 0 0 28px rgba(110, 220, 245, .9), inset 0 0 34px rgba(110, 220, 245, .6);
  pointer-events: none;
  animation: guardRing .85s ease-out forwards;
}
@keyframes guardRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

/* 命中闪光与棋盘震颤 */
.hit-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 90, 40, .38), rgba(160, 20, 10, .18) 45%, transparent 72%);
  animation: hitFlash .46s ease-out forwards;
}
@keyframes hitFlash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}
.board-container.board-hit { animation: boardHitShake .4s ease; }
@keyframes boardHitShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  42% { transform: translate(5px, -3px); }
  64% { transform: translate(-4px, 2px); }
  82% { transform: translate(3px, -1px); }
}

/* 响应式 */
@media (max-width: 768px) {
  .game-title { font-size: 52px; letter-spacing: 12px; }
  .game-subtitle { letter-spacing: 6px; font-size: 13px; }
  .game-main { flex-direction: column; }
  .player-panel { min-width: auto; width: 100%; }
  .board-container { padding: 10px 10px 6px; }
  #board { width: 90vw; height: 90vw; max-width: 420px; max-height: 420px; }
  .review-main { flex-direction: column; }
  .replay-content { width: 95vw; }
  .npc-card { padding: 18px 16px; }
}

/* ===== 联机对战大厅 ===== */
.online-wrap {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.online-card {
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.28);
  border-radius: 14px;
  padding: 22px 24px;
}
.online-card h3 { margin: 0 0 8px; color: #e8c547; font-size: 18px; }
.online-desc { margin: 0 0 16px; color: #c9bda4; font-size: 13px; line-height: 1.7; }
.online-join { display: flex; gap: 10px; }
.online-join input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #f2e8d5;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.online-status {
  text-align: center;
  color: #9c9078;
  font-size: 13px;
  padding: 8px 0;
}

/* ===== 弈者档案 ===== */
.account-wrap {
  max-width: 760px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.acc-card {
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.28);
  border-radius: 14px;
  padding: 22px 24px;
}
.acc-card h3 { margin: 0 0 10px; color: #e8c547; font-size: 17px; }
.acc-desc { margin: 0 0 14px; color: #c9bda4; font-size: 13px; line-height: 1.7; }
.acc-field { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-field span { width: 48px; color: #c9bda4; font-size: 13px; }
.acc-field input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #f2e8d5;
  font-size: 14px;
}
.acc-actions { display: flex; gap: 12px; margin-top: 16px; }
.acc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acc-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(232, 197, 71, 0.16);
  border: 1px solid rgba(232, 197, 71, 0.4);
}
.acc-name { font-size: 20px; color: #f2e8d5; }
.acc-tier { font-size: 13px; color: #e8c547; margin-top: 4px; }
.acc-stats { display: flex; gap: 28px; }
.acc-stats > div { display: flex; flex-direction: column; align-items: center; }
.acc-stats b { font-size: 20px; color: #f2e8d5; }
.acc-stats span { font-size: 12px; color: #9c9078; margin-top: 2px; }
.acc-rank { display: flex; flex-direction: column; gap: 6px; }
.acc-rank-row {
  display: grid;
  grid-template-columns: 32px 1fr 60px 60px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 14px;
  color: #d8cdb6;
}
.acc-rank-row.me { background: rgba(232, 197, 71, 0.14); border: 1px solid rgba(232, 197, 71, 0.35); }
.acc-rank-row .rank { color: #9c9078; font-weight: 700; }
.acc-rank-row .rank-tier { color: #b7a986; font-size: 12px; }
.acc-rank-row .rank-pts { text-align: right; color: #e8c547; font-weight: 700; }

/* ===== 登录门 ===== */
.login-screen {
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 400px);
  padding: 40px 32px 30px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(38, 26, 14, 0.96), rgba(18, 12, 7, 0.98));
  border: 1px solid rgba(232, 197, 71, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 226, 164, 0.18);
}
.login-card .game-title { font-size: 54px; letter-spacing: 12px; margin-bottom: 6px; }
.login-card .game-subtitle { font-size: 12px; letter-spacing: 5px; margin-bottom: 26px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #f2e8d5;
  font-size: 15px;
  letter-spacing: 1px;
}
.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 200, 107, 0.12);
}
.login-form .btn-primary,
.login-form .btn-secondary { width: 100%; }
.btn-ghost {
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  color: #a89a7d;
  border: 1px dashed rgba(232, 197, 71, 0.3);
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 2px;
}
.btn-ghost:hover { color: var(--accent-glow); border-color: var(--accent); }
.login-tip { margin-top: 18px; color: #8d8069; font-size: 12px; line-height: 1.7; }

/* ===== 主菜单用户条 & 布局 ===== */
.menu-user {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 26px;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.05);
  border: 1px solid rgba(232, 197, 71, 0.22);
  font-size: 13px;
  color: #b7a986;
}
.mu-avatar { font-size: 18px; }
.mu-name { color: #f2e8d5; }
.mu-tier { color: #e8c547; }
.btn-mini { width: auto; padding: 6px 14px; font-size: 12px; letter-spacing: 1px; border-radius: 999px; }
.menu-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
}
.menu-buttons button { width: 100%; }

/* ===== 联机 · 快速匹配 ===== */
.online-card-match {
  border-color: rgba(242, 200, 107, 0.5);
  background: rgba(242, 200, 107, 0.07);
}
.match-row { display: flex; gap: 12px; flex-wrap: wrap; }
.match-status { min-height: 20px; margin-top: 10px; color: #e8c547; font-size: 13px; letter-spacing: 1px; }

/* ===== 棋苑 ===== */
.variants-grid {
  width: 100%;
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.variant-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: rgba(255, 248, 232, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, border-color 0.2s;
}
.variant-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.variant-emoji { font-size: 34px; line-height: 1; }
.variant-card h3 { margin: 10px 0 4px; color: #f2e8d5; font-size: 19px; }
.variant-size { color: #e8c547; font-size: 12px; letter-spacing: 2px; }
.variant-desc { margin: 10px 0 0; color: #c9bda4; font-size: 13px; line-height: 1.7; flex: 1; }
.variant-actions { display: flex; gap: 10px; margin-top: 16px; }
.variant-actions button {
  flex: 1;
  padding: 9px 12px;
  font-size: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.variant-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.variant-status { color: #e8c547; font-size: 15px; letter-spacing: 2px; min-height: 22px; }
.variant-board {
  display: block;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  touch-action: manipulation;
}

/* ===== 棋苑 · 技能栏 ===== */
.variant-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.vskill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.55);
  background: linear-gradient(180deg, rgba(58, 40, 18, 0.95), rgba(28, 19, 9, 0.95));
  color: #f2e8d5;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.vskill-btn:hover:not(:disabled) {
  border-color: var(--accent-glow, #ffd654);
  box-shadow: 0 0 14px rgba(255, 214, 84, 0.35);
  transform: translateY(-1px);
}
.vskill-btn:disabled {
  cursor: not-allowed;
}
.vskill-btn.used {
  opacity: 0.42;
  filter: grayscale(1);
}
.vskill-btn.pending {
  border-color: #ffd654;
  background: linear-gradient(180deg, rgba(120, 88, 24, 0.98), rgba(58, 40, 12, 0.98));
  box-shadow: 0 0 18px rgba(255, 214, 84, 0.6);
  color: #fff6d8;
}
.vskill-icon { font-size: 15px; line-height: 1; }
.vskill-left {
  font-size: 11px;
  color: #e8c547;
  letter-spacing: 0;
}
.vskill-shield {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #bfe9ff;
  border: 1px dashed rgba(110, 220, 255, 0.6);
  background: rgba(40, 140, 200, 0.14);
}

/* ===== 棋苑 · 规则弹窗 ===== */
.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(4px);
}
.rules-card {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 23, 14, 0.98), rgba(12, 10, 7, 0.99));
  border: 1px solid rgba(232, 197, 71, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 214, 84, 0.12);
  color: #d8cdb8;
}
.rules-card h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 197, 71, 0.3);
  color: #e8c547;
  font-size: 19px;
  letter-spacing: 1px;
}
.rules-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rules-card li {
  font-size: 13.5px;
  line-height: 1.75;
  color: #cfc4ae;
}
.rules-card li b { color: #f2e8d5; }
.rules-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #cfc4ae;
}
.rules-close {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 11px 0;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 71, 0.55);
  background: linear-gradient(180deg, rgba(58, 40, 18, 0.95), rgba(28, 19, 9, 0.95));
  color: #f2e8d5;
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rules-close:hover {
  border-color: #ffd654;
  box-shadow: 0 0 14px rgba(255, 214, 84, 0.35);
}

@media (max-width: 768px) {
  .menu-buttons { grid-template-columns: minmax(0, 280px); }
  .variants-grid { grid-template-columns: 1fr; padding: 0 14px 30px; }
  .login-card { padding: 30px 22px 24px; }
  .login-card .game-title { font-size: 42px; }
  .rules-modal { padding: 14px 10px; }
  .rules-card { padding: 18px 16px 16px; max-height: 86vh; }
  .rules-card h3 { font-size: 17px; }
  .rules-card li { font-size: 13px; }
}

/* ===== 五子棋对局背景：整屏使用 wzqbg.png 替换默认背景 ===== */
body:has(#screen-game.active) {
  background: #081412 url('../assets/wzqbg.png') center / cover no-repeat fixed;
}
/* 隐藏默认的云纹与远山装饰，让背景图完整呈现 */
body:has(#screen-game.active)::before,
body:has(#screen-game.active)::after {
  display: none;
}

/* ===== 科技战棋背景：整屏使用 kjzbg.png ===== */
body.map-junqi {
  background: #04080f url('../assets/kjzbg.png') center / cover no-repeat fixed;
}
body.map-junqi::before,
body.map-junqi::after {
  display: none;
}

/* ===== 信息战棋背景：整屏使用 xxhbg.png ===== */
body.map-infowar {
  background: #030a14 url('../assets/xxhbg.png') center / cover no-repeat fixed;
}
body.map-infowar::before,
body.map-infowar::after {
  display: none;
}

/* ===== 科技战棋 · 点数征召面板 ===== */
.roster-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  background: rgba(3, 8, 14, 0.82);
  backdrop-filter: blur(5px);
}
.roster-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 26, 40, 0.98), rgba(6, 12, 20, 0.99));
  border: 1px solid rgba(96, 210, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 26px rgba(80, 200, 255, 0.15);
  color: #cfe3ef;
}
.roster-card h3 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(96, 210, 255, 0.28);
  color: #7fe0ff;
  font-size: 18px;
  letter-spacing: 1px;
}
.roster-tip {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #93aec0;
}
.roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roster-row {
  display: grid;
  grid-template-columns: 24px 1fr 58px auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(96, 210, 255, 0.16);
  background: rgba(24, 52, 76, 0.28);
  transition: border-color 0.2s, background 0.2s;
}
.roster-row:not(.empty) {
  border-color: rgba(96, 210, 255, 0.42);
  background: rgba(30, 74, 108, 0.42);
}
.roster-icon {
  font-size: 15px;
  color: #8fe4ff;
  text-align: center;
}
.roster-name {
  font-size: 14px;
  color: #e6f4fb;
  letter-spacing: 1px;
}
.roster-cost {
  font-size: 12px;
  color: #e8c547;
  text-align: right;
  letter-spacing: 0;
}
.roster-ctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.roster-ctl button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(96, 210, 255, 0.45);
  background: linear-gradient(180deg, rgba(30, 62, 92, 0.95), rgba(12, 26, 40, 0.95));
  color: #cfe9f7;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.roster-ctl button:hover:not(:disabled) {
  border-color: #7fe0ff;
  box-shadow: 0 0 10px rgba(90, 214, 255, 0.45);
}
.roster-ctl button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.roster-num {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}
.roster-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(10, 24, 38, 0.85);
  border: 1px dashed rgba(96, 210, 255, 0.32);
  font-size: 13px;
  color: #9fb9c9;
}
.roster-sum b {
  color: #7fe0ff;
  font-size: 15px;
}
.roster-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.roster-actions button {
  flex: 1;
  padding: 11px 0;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.roster-reset {
  border: 1px solid rgba(96, 210, 255, 0.4);
  background: linear-gradient(180deg, rgba(26, 52, 78, 0.95), rgba(10, 22, 34, 0.95));
  color: #c6e4f4;
}
.roster-go {
  border: 1px solid rgba(255, 214, 84, 0.7);
  background: linear-gradient(180deg, rgba(122, 88, 22, 0.98), rgba(56, 38, 10, 0.98));
  color: #ffeec2;
  font-weight: bold;
}
.roster-go:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(255, 214, 84, 0.45);
}
.roster-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .roster-modal { padding: 12px 8px; }
  .roster-card { padding: 16px 14px 14px; }
  .roster-card h3 { font-size: 16px; }
  .roster-row { grid-template-columns: 20px 1fr 50px auto; gap: 6px; }
}

/* ===== 科技战棋 · 全屏 3D 视角 ===== */
.iso-hint { display: none; }

body.iso-full #screen-variant-game {
  position: fixed;
  inset: 0;
  z-index: 60;
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
body.iso-full #screen-variant-game.active { display: block; }
body.iso-full .variant-wrap {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
}
body.iso-full #variant-board {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  z-index: 0;
}
body.iso-full #variant-board:active { cursor: grabbing; }
body.iso-full #screen-variant-game .screen-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3;
  margin: 0;
  padding: 10px 18px;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.78), rgba(3, 10, 18, 0));
  pointer-events: none;
}
body.iso-full #screen-variant-game .screen-header > * { pointer-events: auto; }
body.iso-full .variant-status {
  position: fixed;
  top: 66px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  min-height: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(4, 14, 24, 0.74);
  border: 1px solid rgba(96, 210, 255, 0.28);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
/* ===== 科技战棋：双方损耗大屏 ===== */
.junqi-loss-big {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  margin-bottom: 6px;
}
.junqi-loss-big .loss-side {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.78), rgba(6, 18, 32, 0.92));
  border: 1px solid rgba(120, 220, 255, 0.28);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0, 120, 200, 0.18);
}
.junqi-loss-big .loss-side-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(210, 240, 255, 0.9);
}
.junqi-loss-big .loss-power {
  font-size: 11px;
  color: rgba(170, 210, 230, 0.75);
  margin: 2px 0 4px;
}
.junqi-loss-big .loss-power b {
  color: #ffd654;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  text-shadow: 0 0 6px rgba(255, 214, 84, 0.5);
}
.junqi-loss-big .loss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.loss-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.loss-chip.mine {
  color: #ffd4c0;
  background: rgba(150, 30, 20, 0.28);
  border-color: rgba(255, 100, 80, 0.32);
}
.loss-chip.enemy {
  color: #cfe8ff;
  background: rgba(30, 70, 130, 0.28);
  border-color: rgba(100, 180, 255, 0.32);
}
.loss-chip b { font-size: 12px; margin-left: 1px; }
.loss-empty { color: rgba(200, 220, 230, 0.4); font-size: 11px; }
.junqi-air-status {
  font-size: 11px;
  color: rgba(190, 220, 230, 0.8);
  text-align: center;
  margin-bottom: 4px;
}
/* 全屏模式下损耗大屏浮动在棋盘上方 */
body.iso-full .junqi-loss-big {
  position: fixed;
  top: 68px;
  left: 12px;
  right: 12px;
  z-index: 4;
  gap: 14px;
  pointer-events: none;
}
body.iso-full .junqi-loss-big .loss-side {
  background: linear-gradient(180deg, rgba(12, 30, 52, 0.88), rgba(6, 18, 32, 0.94));
  backdrop-filter: blur(6px);
  border-color: rgba(140, 230, 255, 0.42);
}
body.iso-full .variant-skills {
  position: fixed;
  bottom: 86px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: auto;
  max-width: 92vw;
}
body.iso-full .variant-actions {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  gap: 12px;
}
body.iso-full .variant-actions button { flex: none; min-width: 124px; }
body.iso-full .iso-hint {
  display: block;
  position: fixed;
  left: 18px; bottom: 22px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
@media (max-width: 768px) {
  body.iso-full .iso-hint { display: none; }
  body.iso-full .variant-skills { bottom: 78px; }
  body.iso-full .variant-status { top: 60px; font-size: 13px; }
}
