/* ═══════════════════════════════════════════════════════
   山海争霸 · 纯水墨设计系统 v3
   焦墨 / 宣纸 / 朱砂一点红 · 去金
   ═══════════════════════════════════════════════════════ */
:root {
  /* 墨分五色 */
  --ink-jiao: #0d0b08;
  --ink-900: #14110c;
  --ink-800: #1d1812;
  --ink-700: #281f17;
  --ink-600: #362b1f;
  --ink-500: #4a3c2c;
  --ink-400: #635340;
  /* 宣纸 */
  --paper: #e6dcc6;
  --paper-dim: #ab9d81;
  --paper-faint: #786c56;
  /* 朱砂 */
  /* 哑光浅金（主强调色 · 偏米金克制）*/
  --gold-light: #d8c79a;
  --gold: #c2ad79;
  --gold-deep: #9c8856;
  --gold-shadow: #6b5a34;
  /* 朱砂（仅印章/点缀）*/
  --cinnabar: #b8533c;
  --cinnabar-light: #cc7a64;
  --cinnabar-deep: #8a3322;
  /* 状态色（压成水墨偏色）*/
  --pine: #5a7560;
  --pine-light: #8aa890;
  --dai: #4a5f6b;
  --dai-light: #7a96a3;
  --r-sm: 5px; --r-md: 9px; --r-lg: 15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
html, body { height: 100%; }
body {
  background: #080604;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  color: var(--paper);
}
input { -webkit-user-select: text; user-select: text; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; overflow: hidden;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(74,60,44,0.14) 0%, transparent 9%),
    radial-gradient(circle at 80% 30%, rgba(54,43,31,0.12) 0%, transparent 11%),
    radial-gradient(circle at 45% 70%, rgba(64,51,37,0.13) 0%, transparent 10%),
    radial-gradient(circle at 88% 90%, rgba(45,36,25,0.16) 0%, transparent 13%),
    repeating-linear-gradient(94deg, transparent 0 3px, rgba(0,0,0,0.03) 3px 4px);
}

/* ═══════════════════════════════════════════════════════
   八秒开场 · 山海开卷 / 万灵争峰
   ═══════════════════════════════════════════════════════ */
.opening { position: fixed; inset: 0; z-index: 300; display: none; justify-content: center; overflow: hidden; background: #070605; color: #e8dfca; }
.opening.ready { display: flex; }
.opening.done { display: none; }
.opening-stage { position: relative; width: min(100vw, 480px); height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; isolation: isolate; background: #110f0c; box-shadow: 0 0 80px rgba(0,0,0,.9); }
.opening-paper { position: absolute; inset: 0; z-index: -5; background: radial-gradient(circle at 28% 18%, rgba(99,83,64,.2), transparent 19%), radial-gradient(circle at 74% 66%, rgba(75,63,48,.16), transparent 22%), repeating-linear-gradient(93deg, rgba(232,220,198,.015) 0 1px, transparent 1px 5px), linear-gradient(168deg, #181510, #090806 64%, #14110d); }
.opening-paper::after { content: ''; position: absolute; inset: 0; opacity: .3; background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 5px, rgba(230,220,198,.025) 6px 7px); mix-blend-mode: screen; }
.opening-ink-drop { position: absolute; z-index: 3; left: 50%; top: 17%; width: 14px; height: 18px; opacity: 0; border-radius: 55% 45% 58% 42%; background: #030302; transform: translate(-50%,-70px) rotate(24deg); box-shadow: 0 4px 9px rgba(0,0,0,.65); }
.opening-ink-bloom { position: absolute; z-index: -2; opacity: 0; border-radius: 46% 54% 43% 57%; background: radial-gradient(circle, rgba(3,3,2,.98) 0 24%, rgba(9,8,6,.9) 25% 45%, rgba(35,29,21,.48) 62%, transparent 73%); filter: blur(2px); transform: scale(.04) rotate(-12deg); }
.opening-ink-bloom::before, .opening-ink-bloom::after { content: ''; position: absolute; border-radius: 50%; background: rgba(8,7,5,.68); }
.opening-ink-bloom::before { width: 23%; height: 18%; left: -7%; top: 40%; }.opening-ink-bloom::after { width: 15%; height: 21%; right: 3%; bottom: -8%; }
.bloom-one { left: -14%; top: 7%; width: 92%; aspect-ratio: 1; }.bloom-two { right: -34%; top: 24%; width: 88%; aspect-ratio: 1; }
.opening-mountains { position: absolute; left: -7%; right: -7%; bottom: -2%; opacity: 0; transform: translateY(42px) scale(1.03); transform-origin: 50% 100%; }
.mountain-far { z-index: -1; height: 50%; background: #242019; clip-path: polygon(0 100%, 0 70%, 8% 62%, 15% 68%, 25% 42%, 35% 62%, 44% 52%, 52% 69%, 63% 33%, 74% 63%, 82% 48%, 92% 69%, 100% 55%, 100% 100%); filter: blur(2px); }
.mountain-mid { z-index: 0; height: 40%; background: #191611; clip-path: polygon(0 100%, 0 66%, 12% 56%, 21% 67%, 34% 30%, 47% 66%, 57% 55%, 67% 71%, 78% 39%, 90% 67%, 100% 52%, 100% 100%); filter: drop-shadow(0 -3px 7px rgba(99,83,64,.18)); }
.mountain-near { z-index: 1; height: 27%; background: #0b0a08; clip-path: polygon(0 100%, 0 73%, 12% 46%, 26% 76%, 40% 58%, 51% 80%, 66% 43%, 80% 70%, 91% 51%, 100% 68%, 100% 100%); }
.opening-beast { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
.opening-kun { left: -28%; top: 32%; width: 126px; height: 35px; border-radius: 60% 48% 55% 45%; background: #060605; box-shadow: 0 0 18px rgba(0,0,0,.8); transform: rotate(-6deg); }
.opening-kun::before { content: ''; position: absolute; right: -32px; top: 4px; width: 40px; height: 29px; background: #060605; clip-path: polygon(0 50%, 100% 0, 72% 48%, 100% 100%); }
.opening-kun::after { content: ''; position: absolute; left: 40px; top: 21px; width: 53px; height: 33px; border-radius: 0 0 70% 10%; border-bottom: 9px solid #060605; transform: rotate(16deg); }
.opening-kun i { position: absolute; left: 25px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #907b4d; box-shadow: 0 0 6px rgba(194,173,121,.8); }
.opening-dragon { right: -34%; top: 20%; width: 190px; height: 100px; transform: rotate(13deg); }
.opening-dragon i { position: absolute; display: block; width: 38px; height: 38px; border: 8px solid rgba(6,6,5,.92); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(42deg); }
.opening-dragon i:nth-child(1) { left: 0; top: 41px; }.opening-dragon i:nth-child(2) { left: 33px; top: 21px; }.opening-dragon i:nth-child(3) { left: 68px; top: 35px; }.opening-dragon i:nth-child(4) { left: 104px; top: 14px; }.opening-dragon i:nth-child(5) { left: 141px; top: 28px; }
.opening-sword { position: absolute; z-index: 8; left: -38%; top: 48%; width: 155px; height: 8px; opacity: 0; border-radius: 70% 4px 4px 70%; background: linear-gradient(90deg, transparent, #8fb9ad 23%, #e9e0c9 55%, #fff9dd); box-shadow: 22px 0 18px rgba(137,196,180,.52); transform: rotate(-13deg); }
.opening-sword::before { content: ''; position: absolute; left: 34px; top: -2px; width: 111px; height: 2px; background: rgba(255,250,225,.9); }
.opening-sword::after { content: ''; position: absolute; right: -26px; top: -4px; border-left: 27px solid #eadfbf; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 0 4px rgba(226,218,191,.5)); }
.opening-sword i { position: absolute; left: 18px; top: -8px; width: 5px; height: 25px; border-radius: 2px; background: #9a633d; transform: rotate(10deg); }
.opening-mode-seals { position: absolute; z-index: 6; left: 50%; top: 55%; display: flex; gap: 15px; transform: translateX(-50%); }
.opening-mode-seals span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; opacity: 0; border: 1px solid currentColor; border-radius: 6px; font-family: "Songti SC","STSong",serif; font-size: 20px; transform: scale(1.8) rotate(12deg); box-shadow: inset 0 0 0 3px rgba(230,220,198,.07); }
.opening-mode-seals .mode-war { color: #d8c79a; background: #574823; }.opening-mode-seals .mode-contest { color: #efc3b7; background: #7b3226; }.opening-mode-seals .mode-hunt { color: #c2e4d9; background: #245c52; }
.opening-brand { position: absolute; z-index: 10; left: 0; right: 0; top: 30%; padding: 0 20px; opacity: 0; text-align: center; transform: translateY(13px); }
.opening-brand-title { color: #e9dfc7; font-family: "Songti SC","STSong",serif; font-size: clamp(34px, 10vw, 46px); font-weight: 600; letter-spacing: 10px; text-indent: 10px; text-shadow: 0 3px 12px #000; }
.opening-brand-slogan { margin-top: 10px; color: #a99c80; font-size: 12px; letter-spacing: 5px; text-indent: 5px; }
.opening-brand-seal { position: absolute; right: calc(50% - 152px); top: -27px; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; opacity: 0; border-radius: 4px; background: #a94633; color: #f3dfd2; font-family: "Songti SC","STSong",serif; font-size: 18px; transform: scale(2.4) rotate(15deg); box-shadow: inset 0 0 0 2px rgba(244,225,212,.2), 0 3px 9px rgba(0,0,0,.55); }
.opening-fog { position: absolute; z-index: 20; top: -10%; bottom: -10%; width: 80%; opacity: 0; background: radial-gradient(ellipse at center, rgba(208,202,188,.3), rgba(87,78,62,.1) 42%, transparent 72%); filter: blur(18px); pointer-events: none; }
.fog-left { left: -35%; }.fog-right { right: -35%; }
.opening-progress { position: absolute; z-index: 31; left: 15%; right: 15%; bottom: max(22px, env(safe-area-inset-bottom)); height: 1px; overflow: hidden; background: rgba(230,220,198,.1); }
.opening-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #6b5a34, #d8c79a, #668e82); box-shadow: 0 0 6px rgba(216,199,154,.5); }
.opening-sound, .opening-skip { position: absolute; z-index: 42; top: max(14px, env(safe-area-inset-top)); width: auto; min-width: 38px; height: 32px; border: 1px solid #4f4434; border-radius: 17px; background: rgba(13,11,8,.86); color: #887b64; font-family: inherit; font-size: 11px; cursor: pointer; }
.opening-sound { right: 14px; }.opening-sound.active { border-color: #9c8856; color: #d8c79a; box-shadow: 0 0 10px rgba(194,173,121,.12); }
.opening-skip { left: 14px; padding: 0 12px; opacity: 0; pointer-events: none; }
.opening.started .opening-ink-drop { animation: openingDrop .48s cubic-bezier(.2,.7,.3,1) .06s both; }
.opening.started .bloom-one { animation: openingBloom 1.15s ease-out .38s both; }.opening.started .bloom-two { animation: openingBloom 1.25s ease-out .64s both; }
.opening.started .mountain-far { animation: openingMountains 1.05s ease-out .72s both; }.opening.started .mountain-mid { animation: openingMountains 1.12s ease-out .89s both; }.opening.started .mountain-near { animation: openingMountains 1.1s ease-out 1.03s both; }
.opening.started .opening-kun { animation: openingKun 1.45s ease-in-out 1.12s both; }.opening.started .opening-dragon { animation: openingDragon 1.55s ease-in-out 1.22s both; }
.opening.started .opening-sword { animation: openingSword .92s cubic-bezier(.2,.75,.2,1) 2.18s both; }
.opening.started .mode-war { animation: openingSeal .3s ease-out 2.68s both; }.opening.started .mode-contest { animation: openingSeal .3s ease-out 2.98s both; }.opening.started .mode-hunt { animation: openingSeal .3s ease-out 3.28s both; }
.opening.started .opening-brand { animation: openingBrand .66s ease-out 3.38s both; }.opening.started .opening-brand-seal { animation: openingBrandSeal .28s ease-out 3.85s both; }
.opening.started .opening-progress i { animation: openingProgress 8s linear both; }
.opening.started .opening-skip { animation: openingSkipIn .25s ease-out 1s both; pointer-events: auto; }
.opening.departing .fog-left, .opening.departing .fog-right { animation: openingFogPart .62s ease-in forwards; }
.opening.departing .fog-right { animation-direction: reverse; }
.opening.departing .opening-stage { animation: openingStageOut .58s ease-in forwards; }
@keyframes openingDrop { 0% { opacity: 0; transform: translate(-50%,-75px) scale(.65) rotate(24deg); } 75% { opacity: 1; transform: translate(-50%,0) scale(1) rotate(24deg); } 100% { opacity: 0; transform: translate(-50%,7px) scale(1.35) rotate(24deg); } }
@keyframes openingBloom { 0% { opacity: 0; transform: scale(.04) rotate(-12deg); } 70% { opacity: .95; } 100% { opacity: .72; transform: scale(1) rotate(5deg); } }
@keyframes openingMountains { from { opacity: 0; transform: translateY(42px) scale(1.03); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes openingKun { 0% { opacity: 0; transform: translateX(0) translateY(26px) rotate(-6deg) scale(.8); } 22% { opacity: .58; } 78% { opacity: .46; } 100% { opacity: 0; transform: translateX(610px) translateY(-48px) rotate(-3deg) scale(1.05); } }
@keyframes openingDragon { 0% { opacity: 0; transform: translateX(0) rotate(13deg); } 25% { opacity: .45; } 75% { opacity: .35; } 100% { opacity: 0; transform: translateX(-650px) translateY(55px) rotate(-10deg); } }
@keyframes openingSword { 0% { opacity: 0; transform: translateX(0) translateY(40px) rotate(-13deg) scaleX(.65); } 12% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(760px) translateY(-145px) rotate(-13deg) scaleX(1.2); } }
@keyframes openingSeal { 0% { opacity: 0; transform: scale(1.8) rotate(12deg); filter: blur(3px); } 72% { opacity: 1; transform: scale(.9) rotate(-3deg); filter: blur(0); } 100% { opacity: .78; transform: scale(1) rotate(0); } }
@keyframes openingBrand { from { opacity: 0; transform: translateY(13px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes openingBrandSeal { 0% { opacity: 0; transform: scale(2.4) rotate(15deg); } 70% { opacity: 1; transform: scale(.88) rotate(-3deg); } 100% { opacity: .95; transform: scale(1) rotate(0); } }
@keyframes openingProgress { from { width: 0; } to { width: 100%; } }
@keyframes openingSkipIn { to { opacity: 1; } }
@keyframes openingFogPart { 0% { opacity: 0; transform: translateX(-25%); } 35% { opacity: .82; } 100% { opacity: 0; transform: translateX(-120%); } }
@keyframes openingStageOut { 0%,28% { opacity: 1; } 100% { opacity: 0; } }
@media (max-height: 620px) { .opening-brand { top: 25%; }.opening-mode-seals { top: 55%; } }
@media (prefers-reduced-motion: reduce) {
  .opening.started .opening-kun, .opening.started .opening-dragon, .opening.started .opening-sword { animation-name: openingReducedFade; }
  @keyframes openingReducedFade { 0%,100% { opacity: 0; } 35%,65% { opacity: .2; } }
}
.screen { display: none; flex-direction: column; min-height: 100vh; }
.screen.active { display: flex; }

/* ─── 墨晕背景（登录/战斗用）─── */
.ink-wash {
  position: relative;
  background:
    radial-gradient(ellipse 65% 45% at 25% 8%, rgba(40,31,23,0.6), transparent 65%),
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(30,24,18,0.65), transparent 60%),
    radial-gradient(ellipse 90% 55% at 50% 105%, rgba(13,11,8,0.75), transparent 60%),
    linear-gradient(165deg, var(--ink-900), #0d0b08 55%, var(--ink-900));
}
.ink-splatter { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: screen; }
.mountains-far { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }

/* ─── 按钮 ─── */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger, .btn-warning, .btn-hunt {
  border: none; padding: 14px 18px; font-size: 15px; font-family: inherit;
  border-radius: var(--r-md); cursor: pointer; width: 100%; letter-spacing: 2px;
  transition: transform 0.08s, filter 0.15s;
}
.btn-primary:active, .btn-secondary:active, .btn-outline:active, .btn-danger:active, .btn-warning:active, .btn-hunt:active { transform: scale(0.98); }
/* 主行动：朱砂 */
.btn-primary { background: linear-gradient(178deg, var(--gold-light), var(--gold) 45%, var(--gold-deep)); color: var(--ink-jiao); font-weight: 600; box-shadow: 0 2px 10px rgba(108,90,52,0.3), inset 0 1px 0 rgba(255,250,235,0.25); }
.btn-primary:disabled { background: var(--ink-600); color: var(--paper-faint); box-shadow: none; }
/* 次行动：焦墨 */
.btn-secondary { background: rgba(194,173,121,0.1); border: 1px solid var(--gold-deep); color: var(--gold-light); padding: 11px 14px; font-size: 13px; width: auto; white-space: nowrap; }
/* 幽灵 */
.btn-outline { background: rgba(230,220,198,0.03); border: 1px solid var(--ink-500); color: var(--paper-dim); margin-top: 8px; }
.btn-outline.btn-muted { color: var(--paper-faint); }
/* 危险/放弃：墨底红字 */
.btn-danger { background: linear-gradient(178deg, var(--ink-700), var(--ink-jiao)); border: 1px solid var(--ink-500); color: var(--paper-dim); }
.btn-warning { background: linear-gradient(178deg, var(--gold-light), var(--gold) 45%, var(--gold-deep)); color: var(--ink-jiao); font-weight: 600; }
.btn-warning:disabled { background: var(--ink-600); color: var(--paper-faint); }
.btn-hunt { margin-top: 9px; border: 1px solid #70a69a; background: linear-gradient(178deg, #315f58, #244941 56%, #18352f); color: #e4f3ec; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(195,231,216,.08); }
.btn-hunt:disabled { border-color: var(--ink-500); background: var(--ink-600); color: var(--paper-faint); box-shadow: none; }

/* ─── 输入 ─── */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--paper-faint); margin-bottom: 7px; letter-spacing: 2px; }
.field input { width: 100%; padding: 13px 14px; background: rgba(8,6,4,0.6); border: 1px solid var(--ink-500); border-radius: var(--r-md); color: var(--paper); font-family: inherit; font-size: 15px; -webkit-appearance: none; transition: border-color 0.2s; }
.field input:focus { outline: none; border-color: var(--gold-deep); }
.field input::placeholder { color: var(--paper-faint); opacity: 0.55; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.hint { font-size: 12px; color: var(--paper-faint); margin-top: 6px; letter-spacing: 1px; }

/* ─── 登录 ─── */
.login-wrap { flex: 1; padding: 38px 24px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; position: relative; z-index: 2; }
.logo { display: flex; justify-content: center; margin-bottom: 18px; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--cinnabar); border-radius: 8px; color: #f2e4d4; font-size: 30px; font-weight: 600; font-family: "Songti SC","STSong",serif; position: relative; box-shadow: 0 2px 8px rgba(138,51,34,0.4); }
.seal::before { content:''; position:absolute; inset:0; border-radius:8px; background: radial-gradient(circle at 30% 25%, rgba(0,0,0,0.2) 0%, transparent 30%), radial-gradient(circle at 70% 80%, rgba(0,0,0,0.16) 0%, transparent 25%); }
.seal::after { content:''; position:absolute; inset:4px; border:1.5px solid rgba(242,228,212,0.4); border-radius:4px; }
.title { font-size: 36px; letter-spacing: 9px; text-align: center; color: var(--paper); font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 1px var(--cinnabar); }
.subtitle { font-size: 13px; color: var(--paper-dim); text-align: center; letter-spacing: 5px; margin: 8px 0 0; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ink-400) 30%, var(--ink-400) 70%, transparent); }
.divider-mark { color: var(--gold-deep); font-size: 12px; }

/* ─── 顶栏 ─── */
.topbar { padding: 15px 16px; border-bottom: 1px solid var(--ink-600); position: relative; z-index: 2; }
.title-bar { font-size: 16px; letter-spacing: 2px; }
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: rgba(13,11,8,0.5); border-bottom: 1px solid var(--ink-600); position: relative; z-index: 2; }
.status-left { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--paper-dim); letter-spacing: 1px; }
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-faint); }
.ws-dot.on { background: var(--pine-light); animation: pulse 1.6s infinite; }
.ws-dot.off { background: var(--cinnabar); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.coin-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--paper); background: rgba(13,11,8,0.5); border: 1px solid var(--gold-deep); padding: 4px 13px; border-radius: 18px; }
.coin-badge .ti-coin { color: var(--gold-light); font-size: 13px; }

/* ─── 位置栏 ─── */
.pos-bar { display: flex; align-items: center; padding: 7px 14px; background: rgba(8,6,4,0.4); border-bottom: 1px solid var(--ink-600); font-size: 11px; color: var(--paper-faint); position: relative; z-index: 2; }

/* ─── 虚拟位置抽屉（仅内测） ─── */
.sim-drawer-toggle { position: absolute; top: 10px; right: 10px; z-index: 20; display: inline-flex; align-items: center; gap: 5px; width: auto; padding: 7px 10px; border: 1px solid rgba(194,173,121,0.52); border-radius: 16px; background: #17120d; color: var(--gold-light); box-shadow: 0 3px 12px rgba(0,0,0,0.38); font: inherit; font-size: 11px; letter-spacing: 0.5px; cursor: pointer; transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.sim-drawer-toggle:hover, .sim-drawer-toggle.active { background: #302617; border-color: var(--gold); }
.sim-drawer-toggle:active { transform: scale(0.96); }
.sim-drawer-toggle:focus-visible, .sim-panel-action:focus-visible, .sim-panel-close:focus-visible, .sim-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.sim-toggle-icon { font-size: 13px; line-height: 1; }
.sim-toggle-arrow { margin-left: 1px; font-size: 14px; line-height: 0.8; transition: transform 0.22s ease; }
.sim-drawer-toggle.active .sim-toggle-arrow { transform: rotate(180deg); }
.sim-panel { position: absolute; z-index: 21; top: 52px; right: 10px; width: min(330px, calc(100% - 20px)); max-height: calc(100% - 64px); padding: 12px; overflow: auto; border: 1px solid rgba(194,173,121,0.55); border-radius: 14px; background: #211a12; box-shadow: 0 12px 30px rgba(0,0,0,0.58); }
.sim-panel[hidden] { display: none !important; }
.sim-panel.open { animation: sim-drawer-reveal 0.18s ease-out; }
@keyframes sim-drawer-reveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.sim-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sim-panel-title { color: var(--gold-light); font-size: 14px; letter-spacing: 1.5px; }
.sim-panel-sub { margin-top: 2px; color: var(--paper-faint); font-size: 10px; }
.sim-panel-actions { display: flex; align-items: center; gap: 5px; }
.sim-panel-action, .sim-panel-close { width: auto; border: 1px solid var(--ink-500); background: #17120d; color: var(--paper-dim); font: inherit; cursor: pointer; }
.sim-panel-action { padding: 4px 7px; border-radius: 10px; font-size: 10px; }
.sim-panel-close { width: 24px; height: 24px; border-radius: 50%; font-size: 18px; line-height: 1; }
.sim-panel-action:hover, .sim-panel-close:hover { color: var(--paper); border-color: var(--gold-deep); }
.sim-panel-tip { margin: 9px 0 8px; padding-top: 8px; border-top: 1px solid rgba(99,83,64,0.58); color: var(--paper-faint); font-size: 10px; letter-spacing: 0.3px; }
.sim-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sim-btn { min-height: 38px; padding: 7px 6px; background: #17120d; border: 1px solid var(--ink-500); border-radius: 8px; font-size: 11px; cursor: pointer; color: var(--paper-dim); font-family: inherit; text-align: center; line-height: 1.25; }
.sim-btn:hover { color: var(--paper); border-color: var(--gold-deep); background: #302617; }
.sim-btn:active { transform: scale(0.97); background: rgba(194,173,121,0.18); }

/* ─── 常驻待应招入口 ─── */
.pending-rps-entry { position: absolute; left: 10px; bottom: 12px; z-index: 22; display: flex; align-items: center; gap: 8px; width: auto; max-width: calc(100% - 20px); min-height: 46px; padding: 6px 9px 6px 7px; border: 1px solid rgba(184,83,60,.72); border-radius: 14px; background: #211a12; color: var(--paper); box-shadow: 0 7px 20px rgba(0,0,0,.52); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.pending-rps-entry:hover { border-color: var(--cinnabar-light); background: #2b1c15; }
.pending-rps-entry:active { transform: scale(.97); }
.pending-rps-entry:focus-visible { outline: 2px solid var(--cinnabar-light); outline-offset: 2px; }
.pending-rps-entry.empty { border-color: rgba(99,83,64,.72); color: var(--paper-dim); }
.pending-rps-seal { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; background: var(--cinnabar-deep); color: #f2e4d4; font-family: "Songti SC","STSong",serif; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(242,228,212,.22); }
.pending-rps-entry.empty .pending-rps-seal { background: var(--ink-500); color: var(--paper-faint); }
.pending-rps-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.pending-rps-copy strong { font-size: 12px; letter-spacing: 1.5px; white-space: nowrap; }
.pending-rps-copy small { max-width: 190px; overflow: hidden; color: var(--cinnabar-light); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pending-rps-entry.empty .pending-rps-copy small { color: var(--paper-faint); }
.pending-rps-badge { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--cinnabar); color: #fff7ef; font: 700 11px/1 ui-monospace, monospace; box-shadow: 0 0 0 2px #211a12; animation: pendingBadgePulse 1.6s ease-in-out infinite; }
.pending-rps-entry.empty .pending-rps-badge { background: var(--ink-500); color: var(--paper-faint); animation: none; }
.pending-rps-arrow { color: var(--paper-faint); font-size: 20px; line-height: 1; }
@keyframes pendingBadgePulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 2px #211a12, 0 0 0 0 rgba(184,83,60,.48); } 50% { transform: scale(1.08); box-shadow: 0 0 0 2px #211a12, 0 0 0 5px rgba(184,83,60,0); } }

/* ─── 新手历练 ─── */
.tutorial-card { padding: 10px 14px 11px; background: linear-gradient(100deg, rgba(194,173,121,0.13), rgba(194,173,121,0.035)); border-bottom: 1px solid rgba(194,173,121,0.34); position: relative; z-index: 2; }
.tutorial-card.done { background: rgba(90,117,96,0.12); border-bottom-color: rgba(138,168,144,0.35); }
.tutorial-topline { display: flex; justify-content: space-between; color: var(--gold-light); font-size: 10px; letter-spacing: 2px; margin-bottom: 3px; }
.tutorial-card.done .tutorial-topline { color: var(--pine-light); }
.tutorial-title { color: var(--paper); font-size: 14px; letter-spacing: 1px; }
.tutorial-detail { color: var(--paper-dim); font-size: 11px; margin-top: 2px; line-height: 1.45; }
.tutorial-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.tutorial-track span { height: 3px; border-radius: 99px; background: var(--ink-500); }
.tutorial-track span.done { background: var(--gold); }
.tutorial-card.done .tutorial-track span.done { background: var(--pine-light); }

/* ─── 公告条 ─── */
.banner { padding: 8px 14px; background: rgba(194,173,121,0.08); color: var(--paper-dim); font-size: 12px; border-bottom: 1px solid var(--ink-600); letter-spacing: 1px; position: relative; z-index: 2; }

/* ─── 地图 ─── */
.map-wrap { flex: 1; position: relative; overflow: hidden; min-height: 380px; background: linear-gradient(170deg, #14110c, #0d0b08); }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 高德地图容器：铺满地图区，无 Key 时空置 */
#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#map-canvas:empty { display: none; }
/* 水墨滤镜：给高德深色底图叠墨色调性，弱化饱和、加暖褐 */
#map-canvas.amap-ink-filter { filter: sepia(0.35) saturate(0.7) brightness(0.82) contrast(1.05) hue-rotate(-8deg); }
/* 高德 Marker 内的水墨内容（高德自己定位，不用绝对百分比）*/
.amap-marker .hill-pin, .amap-marker-content .hill-pin { position: static; transform: none; }
#hill-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#hill-layer .hill-pin { pointer-events: auto; }
.hill-pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 2; }
.hill-pin-dot { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.hill-pin-dot.battling { animation: battleShake .38s linear infinite; filter: drop-shadow(0 0 7px rgba(216,199,154,.82)); }
.hill-pin-dot.contested { animation: contestBreathe 1.35s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(184,83,60,.78)); }
.hill-pin-dot.hunting { animation: huntGlide 1.05s ease-in-out infinite; filter: drop-shadow(0 0 7px rgba(112,166,154,.9)); }

/* ─── 山头落款（画上题字）─── */
.hill-colophon { display: flex; gap: 4px; margin-top: 2px; padding: 4px 6px 5px; align-items: flex-start; justify-content: center;
  background: linear-gradient(180deg, rgba(232,220,198,0.06), rgba(13,11,8,0.55)); border-radius: 3px;
  border: 1px solid transparent; backdrop-filter: blur(1px); }
.hill-colophon.mine { border-color: rgba(90,117,96,0.4); }
.hill-colophon.others { border-color: rgba(74,95,107,0.4); }
.hill-colophon.battling { border-color: rgba(216,199,154,.78); background: rgba(65,51,22,.88); }
.hill-colophon.contested { border-color: rgba(184,83,60,.8); background: rgba(58,28,20,.9); }
.hill-colophon.hunting { border-color: rgba(112,166,154,.86); background: rgba(19,55,49,.92); }
.colophon-name { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.colophon-name span { font-family: "Songti SC","STSong",serif; font-size: 14px; color: var(--paper); text-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.colophon-side { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 1px; }
.colophon-seal { font-family: "Songti SC","STSong",serif; font-size: 9px; line-height: 1; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: 2px; color: #f2e4d4; }
.colophon-seal.mine { background: var(--pine); }
.colophon-seal.others { background: var(--dai); }
.colophon-seal.battling { background: #a8863e; }
.colophon-seal.contested { background: var(--cinnabar); }
.colophon-seal.hunting { background: #2d7468; }
.colophon-seal.occupying { background: #9a7a3a; }
.colophon-sub { font-size: 8px; color: var(--paper-dim); writing-mode: vertical-rl; letter-spacing: 1px; max-height: 44px; overflow: hidden; }
.seal-dist { font-size: 8px; line-height: 1; }
.seal-dist.in { color: var(--pine-light); }
.seal-dist.out { color: var(--cinnabar-light); }
@keyframes battleShake { 0%,100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-2px) rotate(-6deg); } 50% { transform: translateX(2px) rotate(4deg); } 75% { transform: translateX(-1px) rotate(6deg); } }
@keyframes contestBreathe { 0%,100% { transform: scale(.96); opacity: .78; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes huntGlide { 0%,100% { transform: translateX(-3px) rotate(-3deg); } 50% { transform: translateX(4px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .hill-pin-dot.battling, .hill-pin-dot.contested, .hill-pin-dot.hunting, .pending-rps-badge { animation: none; }
}

/* 我的位置 */
.my-pin { position: absolute; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; }
.my-pin-dot { width: 15px; height: 15px; background: var(--cinnabar); border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 1px 5px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.my-pin-radius { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%,-50%); background: rgba(194,173,121,0.1); border: 1px solid rgba(194,173,121,0.3); border-radius: 50%; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(0.85); opacity: 0.5; } 50% { transform: translate(-50%,-50%) scale(1.1); opacity: 0.22; } }

/* ─── 底栏 ─── */
.bottom-nav { display: flex; border-top: 1px solid var(--ink-600); background: rgba(13,11,8,0.6); position: relative; z-index: 2; }
.nav-item { flex: 1; padding: 13px 4px; text-align: center; font-size: 12px; color: var(--paper-faint); cursor: pointer; letter-spacing: 1px; }
.nav-item.active { color: var(--gold-light); }

/* ─── 内容页 ─── */
.page { flex: 1; padding: 20px; overflow-y: auto; position: relative; z-index: 2; }
.avatar-prev { width: 72px; height: 72px; border-radius: 50%; background: rgba(194,173,121,0.14); border: 1px solid var(--gold-deep); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 28px; font-family: "Songti SC",serif; margin: 12px auto 20px; }
.gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-btn { padding: 12px; border-radius: var(--r-md); background: rgba(230,220,198,0.03); color: var(--paper-dim); border: 1px solid var(--ink-500); font-size: 14px; cursor: pointer; font-family: inherit; }
.gender-btn.selected { background: rgba(194,173,121,0.12); color: var(--gold-light); border-color: var(--gold-deep); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stat { background: rgba(13,11,8,0.4); border: 1px solid var(--ink-600); padding: 13px; border-radius: var(--r-md); }
.stat-label { font-size: 12px; color: var(--paper-faint); margin-bottom: 5px; letter-spacing: 1px; }
.stat-val { font-size: 22px; font-weight: 600; color: var(--paper); }

.hill-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--ink-600); border-radius: var(--r-md); margin-bottom: 10px; background: rgba(13,11,8,0.35); }
.hill-item-name { font-size: 14px; letter-spacing: 1px; }
.hill-item-sub { font-size: 12px; color: var(--paper-dim); margin-top: 3px; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--paper-faint); font-size: 14px; line-height: 1.8; letter-spacing: 1px; }

.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(13,11,8,0.4); border: 1px solid var(--ink-600); border-radius: var(--r-md); margin-bottom: 20px; }
.profile-card .avatar-prev { margin: 0; width: 56px; height: 56px; font-size: 22px; }
.profile-name { font-size: 17px; letter-spacing: 1px; }
.profile-meta { font-size: 12px; color: var(--paper-dim); margin-top: 3px; }
.server-info { margin-top: 24px; padding: 12px; background: rgba(8,6,4,0.4); border: 1px solid var(--ink-600); border-radius: var(--r-md); font-size: 11px; color: var(--paper-faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.7; }

/* ─── 底部弹层 ─── */
.sheet { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: linear-gradient(168deg, #281f17, #14110c); border: 1px solid var(--ink-500); border-bottom: none; border-radius: 16px 16px 0 0; padding: 18px 16px 26px; box-shadow: 0 -6px 24px rgba(0,0,0,0.6); transform: translateY(100%); transition: transform 0.3s ease-out; z-index: 30; }
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; background: var(--ink-500); border-radius: 2px; margin: 0 auto 16px; }
.sheet-title { font-size: 18px; letter-spacing: 2px; margin-bottom: 4px; }
.sheet-sub { font-size: 13px; color: var(--paper-dim); margin-bottom: 12px; letter-spacing: 1px; }
.poi-meta { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: -5px 0 12px; font-size: 11px; color: var(--gold-light); }
.poi-meta:empty { display: none; }
.poi-chip { padding: 3px 7px; background: rgba(194,173,121,0.10); border: 1px solid rgba(194,173,121,0.25); border-radius: 10px; }
.dist-info { font-size: 13px; padding: 9px 12px; border-radius: var(--r-md); margin-bottom: 14px; letter-spacing: 1px; }
.dist-info.in { background: rgba(90,117,96,0.16); color: var(--pine-light); border: 1px solid rgba(90,117,96,0.3); }
.dist-info.out { background: rgba(194,173,121,0.12); color: var(--cinnabar-light); border: 1px solid rgba(138,51,34,0.4); }

.progress { background: rgba(8,6,4,0.6); height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--ink-600); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); width: 0; transition: width 0.5s linear; }
.progress-label { font-size: 12px; color: var(--paper-dim); margin-bottom: 14px; font-family: ui-monospace, monospace; }
.info-box { padding: 10px 12px; background: rgba(13,11,8,0.4); border: 1px solid var(--ink-600); border-radius: var(--r-md); font-size: 13px; color: var(--paper-dim); margin-bottom: 14px; letter-spacing: 1px; }
.challenge-box { padding: 10px 12px; background: rgba(194,173,121,0.08); border: 1px solid var(--gold-deep); border-radius: var(--r-md); font-size: 13px; color: var(--gold-light); margin-bottom: 14px; letter-spacing: 1px; }

/* ─── 战斗 ─── */
#screen-battle { background: linear-gradient(170deg, #14110c, #080604); }
.battle-header { padding: 16px; text-align: center; border-bottom: 1px solid var(--ink-600); position: relative; z-index: 2; }
.battle-hill { font-size: 14px; color: var(--paper-dim); margin-bottom: 12px; letter-spacing: 2px; }
.battle-ai-note { text-align: center; padding: 7px 14px; background: rgba(194,173,121,0.10); border-bottom: 1px solid rgba(194,173,121,0.30); color: var(--gold-light); font-size: 12px; letter-spacing: 1px; position: relative; z-index: 2; }
.battle-vs { display: flex; align-items: center; justify-content: center; gap: 20px; }
.battle-side { text-align: center; min-width: 100px; }
.battle-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(13,11,8,0.5); border: 1px solid var(--ink-500); display: flex; align-items: center; justify-content: center; font-size: 22px; font-family: "Songti SC",serif; margin: 0 auto 6px; }
.battle-name { font-size: 13px; letter-spacing: 1px; }
.battle-role { font-size: 11px; color: var(--paper-faint); margin-top: 2px; }
.battle-vs-label { font-size: 20px; color: var(--gold); font-family: "Songti SC",serif; }
.round-track { display: flex; justify-content: center; gap: 10px; padding: 14px; background: rgba(8,6,4,0.4); position: relative; z-index: 2; }
.round-dot { width: 46px; height: 36px; border-radius: 8px; background: rgba(13,11,8,0.5); border: 1px solid var(--ink-500); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--paper-faint); letter-spacing: 1px; }
.round-dot.current { border-color: var(--gold-deep); background: rgba(194,173,121,0.15); color: var(--gold-light); }
.round-dot.win { background: var(--pine); border-color: var(--pine-light); color: #f2efe6; }
.round-dot.lose { background: var(--ink-700); border-color: var(--cinnabar-deep); color: var(--cinnabar-light); }
.tap-arena { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 2; }
.tap-timer { font-size: 42px; font-weight: 600; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.tap-timer-label { font-size: 12px; color: var(--paper-faint); margin-bottom: 24px; letter-spacing: 2px; }
.battle-wait { margin: -14px 0 18px; padding: 6px 10px; border: 1px solid rgba(194,173,121,0.35); border-radius: 12px; color: var(--gold-light); font-size: 12px; font-variant-numeric: tabular-nums; }
.tap-scores { display: flex; gap: 32px; margin-bottom: 28px; }
.score-col { text-align: center; min-width: 80px; }
.score-name { font-size: 11px; color: var(--paper-faint); margin-bottom: 4px; letter-spacing: 1px; }
.score-val { font-size: 38px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--paper); }
.tap-btn { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--gold-light), var(--gold) 55%, var(--gold-deep)); border: none; color: var(--ink-jiao); font-size: 30px; font-weight: 600; cursor: pointer; font-family: "Songti SC",serif; letter-spacing: 3px; transition: transform 0.05s; box-shadow: 0 4px 20px rgba(108,90,52,0.5); position: relative; z-index: 2; }
.tap-btn:active { transform: scale(0.93); }
.tap-btn:disabled { background: var(--ink-700); color: var(--paper-faint); box-shadow: none; }
.tap-hint { font-size: 13px; color: var(--paper-dim); margin-top: 20px; text-align: center; letter-spacing: 1px; }
.ink-burst { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }

.battle-overlay { position: absolute; inset: 0; background: rgba(8,6,4,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; z-index: 20; overflow: hidden; }
.battle-overlay.result-win::before, .battle-overlay.result-lose::before { content: ''; position: absolute; inset: 0; pointer-events: none; animation: resultWash 1.1s ease-out both; }
.battle-overlay.result-win::before { background: radial-gradient(circle, rgba(90,117,96,.34), transparent 62%); }
.battle-overlay.result-lose::before { background: radial-gradient(circle, rgba(184,83,60,.30), transparent 62%); }
@keyframes resultWash { from { opacity: 0; transform: scale(.65); } 45% { opacity: 1; } to { opacity: .3; transform: scale(1.4); } }
.battle-overlay.result-win .overlay-emoji, .battle-overlay.result-lose .overlay-emoji { animation: resultRise .55s cubic-bezier(.2,.8,.25,1) both; }
@keyframes resultRise { from { transform: translateY(18px) scale(.45); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.battle-overlay > * { position: relative; z-index: 1; }
.overlay-emoji { font-size: 56px; margin-bottom: 12px; }
.overlay-title { font-size: 28px; font-weight: 600; margin-bottom: 6px; letter-spacing: 3px; font-family: "Songti SC",serif; }
.overlay-title.win { color: var(--pine-light); }
.overlay-title.lose { color: var(--cinnabar-light); }
.overlay-sub { font-size: 14px; color: var(--paper-dim); margin-bottom: 22px; text-align: center; letter-spacing: 1px; }
.overlay-scores { background: rgba(13,11,8,0.5); border: 1px solid var(--ink-500); padding: 12px 20px; border-radius: var(--r-md); margin-bottom: 24px; font-size: 14px; text-align: center; letter-spacing: 1px; }
.overlay-rounds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 280px; margin: -14px 0 20px; }
.overlay-round { padding: 3px 7px; background: rgba(13,11,8,.55); border: 1px solid var(--ink-600); border-radius: 5px; color: var(--paper-dim); font-family: ui-monospace, monospace; font-size: 11px; }
.battle-overlay .btn-primary { max-width: 240px; }

/* ─── Toast & Notif ─── */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--ink-jiao); border: 1px solid var(--ink-500); color: var(--paper); padding: 10px 18px; border-radius: 20px; font-size: 13px; z-index: 100; opacity: 0; transition: opacity 0.3s; max-width: 82%; text-align: center; pointer-events: none; letter-spacing: 1px; }
.toast.show { opacity: 1; }
.toast-error { border-color: var(--cinnabar-deep); color: var(--cinnabar-light); }
.notif { position: fixed; top: 20px; left: 16px; right: 16px; max-width: 448px; margin: 0 auto; background: linear-gradient(168deg, #281f17, #14110c); border: 1px solid var(--cinnabar-deep); border-radius: var(--r-md); padding: 14px 18px; z-index: 90; transform: translateY(-200%); transition: transform 0.4s ease-out; box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
.notif.show { transform: translateY(0); }
.notif-close { position: absolute; top: 6px; right: 10px; cursor: pointer; color: var(--cinnabar-light); font-size: 20px; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--cinnabar-light); margin-bottom: 4px; letter-spacing: 1px; }
.notif-body { font-size: 13px; color: var(--paper-dim); line-height: 1.5; }
.notif-action { margin-top: 10px; padding: 8px 14px; font-size: 13px; max-width: 160px; }

/* ═══════════════════════════════════════════════════════
   全局水墨氛围装饰层
   ═══════════════════════════════════════════════════════ */

/* 顶部远山淡墨（用在内容页 topbar 下方）*/
.topbar { overflow: hidden; }
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='390' height='28' viewBox='0 0 390 28'%3E%3Cpath d='M0,28 L0,16 Q50,4 100,14 Q160,26 220,12 Q290,2 350,14 Q375,20 390,15 L390,28 Z' fill='%23281f17' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: cover; pointer-events: none; opacity: 0.6;
}

/* 页面右上角祥云气韵 */
.page { overflow: hidden; }
.page::before {
  content: ''; position: absolute; top: 8px; right: -10px; width: 130px; height: 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='90' viewBox='0 0 130 90'%3E%3Cg fill='none' stroke='%233a2f22' stroke-width='1' opacity='0.4'%3E%3Cpath d='M30,30 Q45,18 60,30 Q72,20 82,32 Q70,44 56,38 Q44,48 30,40 Z'/%3E%3Cpath d='M70,55 Q82,46 92,55 Q100,48 108,57 Q98,66 88,61 Q78,68 70,62 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; pointer-events: none; z-index: -1;
}
/* 页面左下角墨竹 */
.page::after {
  content: ''; position: absolute; bottom: 0; left: -8px; width: 70px; height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='150' viewBox='0 0 70 150'%3E%3Cg stroke='%232c2419' fill='none' opacity='0.35'%3E%3Cpath d='M20,150 Q24,90 21,40' stroke-width='1.8'/%3E%3Cpath d='M21,55 Q12,49 5,53' stroke-width='1.2'/%3E%3Cpath d='M22,80 Q32,73 40,77' stroke-width='1.2'/%3E%3Cpath d='M21,105 Q11,99 4,103' stroke-width='1.2'/%3E%3Cellipse cx='2' cy='50' rx='7' ry='2' fill='%232c2419' stroke='none' transform='rotate(-25 2 50)'/%3E%3Cellipse cx='43' cy='75' rx='7' ry='2' fill='%232c2419' stroke='none' transform='rotate(20 43 75)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; pointer-events: none; z-index: -1; opacity: 0.7;
}
.page > * { position: relative; z-index: 1; }

/* 战斗页顶部祥云气（衬托肃杀感）*/
.battle-header { overflow: hidden; }
.battle-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='390' height='120' viewBox='0 0 390 120'%3E%3Cg fill='none' stroke='%23362b1f' stroke-width='1' opacity='0.3'%3E%3Cpath d='M20,30 Q35,20 50,30 Q60,23 68,32'/%3E%3Cpath d='M320,40 Q335,30 350,40 Q360,33 368,42'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; pointer-events: none; z-index: 0;
}
.battle-header > * { position: relative; z-index: 1; }

/* 底部弹层顶部远山纹 */
.sheet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='390' height='20' viewBox='0 0 390 20'%3E%3Cpath d='M0,20 L0,12 Q60,4 130,11 Q220,20 300,10 Q350,5 390,12 L390,20 Z' fill='%234a3c2c' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: cover; pointer-events: none; border-radius: 16px 16px 0 0;
}
.sheet > * { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════
   战报弹层
   ═══════════════════════════════════════════════════════ */
.reports-overlay { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; background: rgba(8,6,4,0.75); backdrop-filter: blur(2px); z-index: 80; display: none; align-items: flex-end; }
.reports-overlay.open { display: flex; }
.reports-panel { width: 100%; max-height: 80%; background: linear-gradient(168deg, #281f17, #14110c); border: 1px solid var(--ink-500); border-bottom: none; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; box-shadow: 0 -6px 24px rgba(0,0,0,0.6); animation: sheetUp 0.3s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.reports-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--ink-600); }
.report-filters { display: flex; gap: 7px; overflow-x: auto; padding: 10px 16px 2px; }
.report-filter { flex: 0 0 auto; border: 1px solid var(--ink-500); border-radius: 12px; padding: 5px 10px; background: rgba(13,11,8,.35); color: var(--paper-faint); font-size: 11px; font-family: inherit; cursor: pointer; }
.report-filter.active { border-color: var(--gold-deep); background: rgba(194,173,121,.13); color: var(--gold-light); }
.reports-title { font-size: 17px; letter-spacing: 3px; color: var(--paper); font-family: "Songti SC",serif; }
.reports-close { font-size: 24px; color: var(--paper-faint); cursor: pointer; line-height: 1; }
.reports-list { overflow-y: auto; padding: 12px 16px 24px; }
.report-item { padding: 12px 14px; border: 1px solid var(--ink-600); border-radius: var(--r-md); margin-bottom: 10px; background: rgba(13,11,8,0.4); border-left-width: 3px; }
.report-item.won { border-left-color: var(--pine); }
.report-item.lost { border-left-color: var(--cinnabar-deep); }
.report-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.report-role { font-size: 11px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-family: "Songti SC",serif; color: #f2e4d4; }
.report-role.atk { background: var(--cinnabar-deep); }
.report-role.def { background: var(--dai); }
.report-hill { font-size: 15px; letter-spacing: 1px; flex: 1; }
.report-result { font-size: 13px; font-family: "Songti SC",serif; padding: 1px 9px; border-radius: 10px; }
.report-result.win { background: rgba(90,117,96,0.2); color: var(--pine-light); }
.report-result.lose { background: rgba(184,83,60,0.16); color: var(--cinnabar-light); }
.report-mid { font-size: 12px; color: var(--paper-dim); margin-bottom: 6px; letter-spacing: 1px; }
.report-ai { font-size: 10px; padding: 1px 6px; background: rgba(194,173,121,0.12); color: var(--gold-light); border-radius: 8px; margin-left: 4px; }
.report-rounds { display: flex; gap: 6px; margin-bottom: 6px; }
.report-round { font-size: 11px; font-family: ui-monospace, monospace; color: var(--paper-faint); background: rgba(8,6,4,0.5); padding: 1px 7px; border-radius: 4px; }
.report-time { font-size: 10px; color: var(--paper-faint); font-family: ui-monospace, monospace; }

/* ═══════════════════════════════════════════════════════
   异步暗招 · 石头剪刀布
   ═══════════════════════════════════════════════════════ */
.rps-overlay { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,6,4,.86); }
.rps-overlay.open { display: flex; }
.rps-panel { position: relative; width: min(100%, 420px); padding: 24px 18px 18px; border: 1px solid var(--gold-deep); border-radius: 18px; background: #211a12; box-shadow: 0 18px 48px rgba(0,0,0,.68); animation: rpsReveal .22s ease-out; text-align: center; }
@keyframes rpsReveal { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.rps-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; padding: 0; border: 1px solid var(--ink-500); border-radius: 50%; background: #17120d; color: var(--paper-dim); font: inherit; font-size: 20px; cursor: pointer; }
.rps-eyebrow { color: var(--cinnabar-light); font-size: 10px; letter-spacing: 3px; }
.rps-title { margin-top: 5px; color: var(--paper); font-family: "Songti SC","STSong",serif; font-size: 22px; letter-spacing: 3px; }
.rps-sub { margin: 8px auto 0; max-width: 310px; color: var(--paper-dim); font-size: 12px; line-height: 1.6; }
.rps-countdown { min-height: 20px; margin-top: 7px; color: var(--gold-light); font-size: 11px; }
.rps-moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.rps-move { min-height: 94px; padding: 10px 5px; border: 1px solid var(--ink-500); border-radius: 12px; background: #17120d; color: var(--paper-dim); font: inherit; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.rps-move span { display: block; margin-bottom: 6px; font-size: 34px; filter: grayscale(.18); }
.rps-move strong { font-size: 13px; letter-spacing: 2px; }
.rps-move:hover, .rps-move.selected { border-color: var(--gold); background: #352918; color: var(--gold-light); transform: translateY(-2px); }
.rps-move:focus-visible, .rps-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.rps-result { margin: 16px 0 14px; padding: 14px; border: 1px solid var(--ink-500); border-radius: 12px; background: #17120d; color: var(--paper-dim); line-height: 1.65; }
.rps-result .rps-reveal { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; font-size: 30px; }
.rps-result .rps-verdict { color: var(--gold-light); font-size: 17px; letter-spacing: 2px; }
.rps-rule { margin-top: 10px; color: var(--paper-faint); font-size: 10px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   飞剑猎印 · 十息技巧对战
   ═══════════════════════════════════════════════════════ */
.hunt-overlay { position: fixed; inset: 0; z-index: 96; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(5,10,9,.92); }
.hunt-overlay.open { display: flex; }
.hunt-panel { position: relative; width: min(100%, 440px); padding: 22px 16px 16px; border: 1px solid rgba(112,166,154,.75); border-radius: 18px; background: #14221f; box-shadow: 0 20px 54px rgba(0,0,0,.72), inset 0 0 32px rgba(65,118,106,.08); animation: huntPanelReveal .22s ease-out; text-align: center; }
@keyframes huntPanelReveal { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hunt-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; padding: 0; border: 1px solid #38584f; border-radius: 50%; background: #0d1816; color: #a9c7bc; font: inherit; font-size: 20px; cursor: pointer; }
.hunt-eyebrow { color: #7fbdaf; font-size: 10px; letter-spacing: 3px; }
.hunt-title { margin-top: 4px; color: #e4f3ec; font-family: "Songti SC","STSong",serif; font-size: 23px; letter-spacing: 4px; }
.hunt-sub { min-height: 38px; margin: 7px auto 0; max-width: 330px; color: #aac0b8; font-size: 12px; line-height: 1.55; }
.hunt-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.hunt-hud span { display: flex; align-items: baseline; justify-content: center; gap: 7px; padding: 6px; border: 1px solid rgba(112,166,154,.28); border-radius: 9px; background: #0d1816; }
.hunt-hud small { color: #729388; font-size: 9px; letter-spacing: 2px; }
.hunt-hud strong { color: #e5c97d; font: 700 20px/1 ui-monospace, monospace; }
.hunt-arena { position: relative; height: 300px; overflow: hidden; border: 1px solid #3b655c; border-radius: 14px; background: radial-gradient(circle at 50% 48%, rgba(53,104,91,.2), transparent 40%), linear-gradient(155deg, #10231f, #081411); box-shadow: inset 0 0 34px rgba(0,0,0,.45); touch-action: manipulation; }
.hunt-arena::before, .hunt-arena::after { content: ''; position: absolute; pointer-events: none; opacity: .2; }
.hunt-arena::before { inset: 0; background: repeating-linear-gradient(120deg, transparent 0 34px, rgba(122,177,162,.12) 35px, transparent 36px 70px); }
.hunt-arena::after { left: 10%; right: 10%; bottom: 12%; height: 26%; border-top: 1px solid #5f887d; border-radius: 50%; transform: skewX(-16deg); }
.hunt-intro-mark { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; transform: translate(-50%,-50%) rotate(-8deg); border: 1px solid rgba(229,201,125,.48); border-radius: 50%; color: #d8bc70; font-family: "Songti SC","STSong",serif; font-size: 38px; box-shadow: 0 0 25px rgba(229,201,125,.12); }
.hunt-target { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; transform: translate(-50%,-50%); border-radius: 50%; font-family: "Songti SC","STSong",serif; font-size: 22px; cursor: pointer; animation: huntTargetFly .18s ease-out, huntTargetPulse .55s ease-in-out infinite alternate; touch-action: manipulation; }
.hunt-target.mark { border: 2px solid #ead38b; background: #7c642b; color: #fff0b4; box-shadow: 0 0 18px rgba(234,211,139,.58); }
.hunt-target.decoy { border: 2px solid #b76858; background: #5d2923; color: #f0b4a7; box-shadow: 0 0 13px rgba(183,104,88,.38); }
.hunt-target.locked { pointer-events: none; opacity: .2; }
@keyframes huntTargetFly { from { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(-25deg); } to { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0); } }
@keyframes huntTargetPulse { from { filter: brightness(.92); } to { filter: brightness(1.2); } }
.hunt-flash { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%,-50%); font: 700 18px/1 ui-monospace, monospace; animation: huntFlash .55s ease-out forwards; }
.hunt-flash.good { color: #ffe49a; }.hunt-flash.bad { color: #ef8c76; }
@keyframes huntFlash { from { opacity: 1; transform: translate(-50%,-50%) translateY(0); } to { opacity: 0; transform: translate(-50%,-50%) translateY(-26px); } }
.hunt-message { min-height: 35px; padding: 8px 4px 2px; color: #9db5ad; font-size: 11px; line-height: 1.45; }
.hunt-result-card { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-content: center; align-items: center; gap: 12px; padding: 34px; color: #9db5ad; }
.hunt-result-card strong { color: #f1d78c; font: 700 46px/1 ui-monospace, monospace; }
.hunt-result-card > span { color: #769b90; font-family: "Songti SC","STSong",serif; }
.hunt-result-card small { grid-column: 1 / -1; margin-top: 12px; color: #d9ebe4; font-size: 16px; letter-spacing: 3px; }
.hunt-result-card.sealed { grid-template-columns: 1fr; }
.hunt-result-card.sealed strong { font-size: 54px; }
.hunt-result-card.sealed span { color: #8bab9f; }
.hunt-main-action { margin-top: 6px; }
.hunt-rule { margin-top: 9px; color: #658077; font-size: 9px; line-height: 1.5; }
@media (max-height: 700px) { .hunt-arena { height: 250px; } .hunt-panel { padding-top: 18px; } }
@media (prefers-reduced-motion: reduce) { .hunt-panel, .hunt-target, .hunt-flash { animation: none; } }

/* ─── 天气徽章 ─── */
.weather-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--paper-dim); letter-spacing: 1px; }
.weather-badge .weather-icon { font-size: 14px; }
.weather-badge .weather-name { font-family: "Songti SC","STSong",serif; }
.world-event-badge { display: inline-flex; align-items: center; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--gold-light); letter-spacing: 1px; }

/* 内测服标记 */
.beta-tag {
  display: inline-block;
  margin: 8px auto 0;
  padding: 2px 12px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cinnabar-light);
  border: 1px solid var(--cinnabar-deep);
  border-radius: 3px;
  background: rgba(184,83,60,0.08);
  font-family: "Songti SC","STSong",serif;
}
