/* 万界星核 · 界面样式 —— 深夜靛蓝 + 高清像素描边 + 金饰边角 + 星辉渐变 */
@font-face { font-family: 'PixelCN'; src: url('../fonts/starcore-pixel-12px.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #0f0b1d; --bg2: #150f28; --panel: #1a1430; --panel2: #221a3e; --line: #3a2d63; --line2: #54428c;
  --text: #efe8ff; --muted: #9a90c0; --dim: #6a6090;
  --cyan: #5ad1ff; --violet: #b48cff; --pink: #ff7ab6; --gold: #ffd84a; --green: #7dff8a; --red: #ff5a6a; --orange: #ff9a4a;
  --grad: linear-gradient(90deg, #5ad1ff, #b48cff 50%, #ff7ab6);
  --r0: #c9d3e3; --r1: #7dff8a; --r2: #5ad1ff; --r3: #b48cff; --r4: #ffb84a; --r5: #ff5a7a;
  --px: 'PixelCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ink: #07040f; --frame: #2c2152; --frame-hi: #5a45a0; --tick: #9a7ae8;
  --shadow: 0 0 0 2px var(--ink), 0 12px 40px rgba(0, 0, 0, .55);
  --notch: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
  --notch4: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  --checker: repeating-conic-gradient(rgba(255,255,255,.018) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
  --wash: radial-gradient(120% 70% at 0% 0%, rgba(90,209,255,.10), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(255,122,182,.08), transparent 60%);
  --orn-g-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23ffd84a'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%23b8801a'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23a8306a'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-g-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(-1 0 0 1 12 0)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23ffd84a'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%23b8801a'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23a8306a'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-g-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(1 0 0 -1 0 12)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23ffd84a'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%23b8801a'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23a8306a'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-g-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(-1 0 0 -1 12 12)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23ffd84a'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%23b8801a'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%23ff7ab6'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23a8306a'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-v-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23c8b0ff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%236a4ac0'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-v-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(-1 0 0 1 12 0)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23c8b0ff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%236a4ac0'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-v-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(1 0 0 -1 0 12)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23c8b0ff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%236a4ac0'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --orn-v-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg transform='matrix(-1 0 0 -1 12 12)'%3E%3Crect x='0' y='0' width='11' height='1' fill='%230a0716'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='1' width='9' height='1' fill='%23c8b0ff'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='2' width='9' height='1' fill='%236a4ac0'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='3' width='9' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='6' width='3' height='1' fill='%230a0716'/%3E%3Crect x='0' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='9' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='11' width='4' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --px-dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' width='7' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='3' y='0' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='3' y='2' width='2' height='1' fill='%23ffd84a'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23fff6c8'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%23ffd84a'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%23ffd84a'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%23b8801a'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --px-dia-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' width='7' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='3' y='0' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='2' height='1' fill='%23b48cff'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%23b48cff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%23b48cff'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%236a4ac0'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --px-dia-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' width='7' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='3' y='0' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='3' y='2' width='2' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%235ad1ff'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%235ad1ff'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='5' width='1' height='1' fill='%232a7ab0'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='6' width='1' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --px-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' width='21' height='21' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='9' y='0' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='0' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='0' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='1' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='1' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='1' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='2' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='5' width='1' height='1' fill='%231a1030'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='6' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='12' y='6' width='1' height='1' fill='%231a1030'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%231a1030'/%3E%3Crect x='8' y='7' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='10' y='7' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='7' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%231a1030'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%231a1030'/%3E%3Crect x='7' y='8' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='9' y='8' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='10' y='8' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='8' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='12' y='8' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='14' y='8' width='1' height='1' fill='%231a1030'/%3E%3Crect x='0' y='9' width='6' height='1' fill='%231a1030'/%3E%3Crect x='6' y='9' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='8' y='9' width='2' height='1' fill='%239a80d8'/%3E%3Crect x='10' y='9' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='9' width='2' height='1' fill='%239a80d8'/%3E%3Crect x='13' y='9' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='15' y='9' width='6' height='1' fill='%231a1030'/%3E%3Crect x='0' y='10' width='4' height='1' fill='%234a3a80'/%3E%3Crect x='4' y='10' width='3' height='1' fill='%239a80d8'/%3E%3Crect x='7' y='10' width='7' height='1' fill='%23e8e0ff'/%3E%3Crect x='14' y='10' width='3' height='1' fill='%239a80d8'/%3E%3Crect x='17' y='10' width='4' height='1' fill='%234a3a80'/%3E%3Crect x='0' y='11' width='6' height='1' fill='%231a1030'/%3E%3Crect x='6' y='11' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='8' y='11' width='2' height='1' fill='%239a80d8'/%3E%3Crect x='10' y='11' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='11' width='2' height='1' fill='%239a80d8'/%3E%3Crect x='13' y='11' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='15' y='11' width='6' height='1' fill='%231a1030'/%3E%3Crect x='6' y='12' width='1' height='1' fill='%231a1030'/%3E%3Crect x='7' y='12' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='9' y='12' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='10' y='12' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='12' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='12' y='12' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='14' y='12' width='1' height='1' fill='%231a1030'/%3E%3Crect x='7' y='13' width='1' height='1' fill='%231a1030'/%3E%3Crect x='8' y='13' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='10' y='13' width='1' height='1' fill='%23e8e0ff'/%3E%3Crect x='11' y='13' width='2' height='1' fill='%234a3a80'/%3E%3Crect x='13' y='13' width='1' height='1' fill='%231a1030'/%3E%3Crect x='8' y='14' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='10' y='14' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='14' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='12' y='14' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='15' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='15' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='15' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='16' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='16' width='1' height='1' fill='%239a80d8'/%3E%3Crect x='11' y='16' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='17' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='17' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='17' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='18' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='18' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='18' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='19' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='19' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='19' width='1' height='1' fill='%231a1030'/%3E%3Crect x='9' y='20' width='1' height='1' fill='%231a1030'/%3E%3Crect x='10' y='20' width='1' height='1' fill='%234a3a80'/%3E%3Crect x='11' y='20' width='1' height='1' fill='%231a1030'/%3E%3C/g%3E%3C/svg%3E");
  --px-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='128' height='128' shape-rendering='crispEdges'%3E%3Crect x='41' y='19' width='1' height='1' fill='%23ff9ac8' fill-opacity='0.22'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23ffffff' fill-opacity='0.16'/%3E%3Crect x='7' y='27' width='1' height='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3Crect x='55' y='53' width='1' height='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3Crect x='11' y='54' width='1' height='1' fill='%23ffffff' fill-opacity='0.22'/%3E%3Crect x='15' y='28' width='1' height='1' fill='%23ffffff' fill-opacity='0.22'/%3E%3Crect x='50' y='6' width='1' height='1' fill='%23c8b0ff' fill-opacity='0.1'/%3E%3Crect x='17' y='37' width='1' height='1' fill='%23ff9ac8' fill-opacity='0.1'/%3E%3Crect x='15' y='39' width='1' height='1' fill='%23c8b0ff' fill-opacity='0.1'/%3E%3Crect x='40' y='19' width='1' height='1' fill='%23e8e0ff' fill-opacity='0.12'/%3E%3Crect x='40' y='21' width='1' height='1' fill='%23e8e0ff' fill-opacity='0.12'/%3E%3Crect x='39' y='20' width='1' height='1' fill='%23e8e0ff' fill-opacity='0.12'/%3E%3Crect x='41' y='20' width='1' height='1' fill='%23e8e0ff' fill-opacity='0.12'/%3E%3Crect x='40' y='20' width='1' height='1' fill='%23e8e0ff' fill-opacity='0.28'/%3E%3C/svg%3E");
  --px-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' width='11' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='3' y='0' width='5' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='1' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='3' y='1' width='5' height='1' fill='%232a1f4a'/%3E%3Crect x='8' y='1' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='2' width='3' height='1' fill='%232a1f4a'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='7' y='2' width='3' height='1' fill='%232a1f4a'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%232a1f4a'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='4' y='3' width='3' height='1' fill='%23ffd84a'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='8' y='3' width='2' height='1' fill='%232a1f4a'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='4' width='3' height='1' fill='%232a1f4a'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23ffd84a'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='7' y='4' width='3' height='1' fill='%232a1f4a'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='5' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='3' y='5' width='5' height='1' fill='%232a1f4a'/%3E%3Crect x='8' y='5' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='3' y='6' width='5' height='1' fill='%23c8b0ff'/%3E%3C/g%3E%3C/svg%3E");
  --px-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' width='11' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='0' y='2' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='1' y='3' width='2' height='1' fill='%238a7ab8'/%3E%3Crect x='8' y='3' width='2' height='1' fill='%238a7ab8'/%3E%3Crect x='3' y='4' width='5' height='1' fill='%238a7ab8'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='5' y='6' width='1' height='1' fill='%238a7ab8'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%238a7ab8'/%3E%3C/g%3E%3C/svg%3E");
  --px-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7' width='9' height='7' shape-rendering='crispEdges'%3E%3Cg%3E%3Crect x='7' y='0' width='2' height='1' fill='%230a0716'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%237dff8a'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%237dff8a'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='2' height='1' fill='%230a0716'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%237dff8a'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%237dff8a'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%230a0716'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%237dff8a'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='5' width='2' height='1' fill='%237dff8a'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='6' width='2' height='1' fill='%230a0716'/%3E%3C/g%3E%3C/svg%3E");
  --px-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' width='11' height='7' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='1' fill='%232a1a00'/%3E%3Crect x='4' y='0' width='2' height='1' fill='%232a1a00'/%3E%3Crect x='0' y='1' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='4' y='1' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='1' y='2' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='5' y='2' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='6' y='3' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='1' y='4' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='5' y='4' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='0' y='5' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='4' y='5' width='3' height='1' fill='%232a1a00'/%3E%3Crect x='0' y='6' width='2' height='1' fill='%232a1a00'/%3E%3Crect x='4' y='6' width='2' height='1' fill='%232a1a00'/%3E%3C/svg%3E");
  --px-arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' width='11' height='7' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='0' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='1' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='1' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='2' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='2' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='3' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='4' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='5' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='5' width='3' height='1' fill='%23ffffff'/%3E%3Crect x='0' y='6' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='6' width='2' height='1' fill='%23ffffff'/%3E%3C/svg%3E");
  --px-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 11' width='12' height='11' shape-rendering='crispEdges'%3E%3Crect x='4' y='0' width='3' height='1' fill='%23c8b0ff'/%3E%3Crect x='8' y='0' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='1' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='7' y='1' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='6' y='2' width='3' height='1' fill='%23c8b0ff'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='10' y='6' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='10' y='7' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='8' width='3' height='1' fill='%23c8b0ff'/%3E%3Crect x='9' y='8' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='9' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='7' y='9' width='2' height='1' fill='%23c8b0ff'/%3E%3Crect x='2' y='10' width='1' height='1' fill='%23c8b0ff'/%3E%3Crect x='4' y='10' width='3' height='1' fill='%23c8b0ff'/%3E%3C/svg%3E");
  --px-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 12' width='11' height='12' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='7' height='1' fill='%230a0716'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='1' width='7' height='1' fill='%23fff2a0'/%3E%3Crect x='9' y='1' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='2' y='2' width='7' height='1' fill='%235a46c8'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='2' y='3' width='3' height='1' fill='%235a46c8'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='6' y='3' width='3' height='1' fill='%235a46c8'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%235a46c8'/%3E%3Crect x='4' y='4' width='3' height='1' fill='%23fff2a0'/%3E%3Crect x='7' y='4' width='2' height='1' fill='%235a46c8'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%230a0716'/%3E%3Crect x='0' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='2' y='5' width='3' height='1' fill='%235a46c8'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='6' y='5' width='3' height='1' fill='%235a46c8'/%3E%3Crect x='9' y='5' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='6' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='3' y='6' width='5' height='1' fill='%235a46c8'/%3E%3Crect x='8' y='6' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='9' y='6' width='1' height='1' fill='%230a0716'/%3E%3Crect x='1' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='7' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='3' y='7' width='5' height='1' fill='%235a46c8'/%3E%3Crect x='8' y='7' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='9' y='7' width='1' height='1' fill='%230a0716'/%3E%3Crect x='2' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='8' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='4' y='8' width='3' height='1' fill='%235a46c8'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%230a0716'/%3E%3Crect x='3' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%235a46c8'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%230a0716'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23fff2a0'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%230a0716'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%230a0716'/%3E%3C/svg%3E");
  --px-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7' width='9' height='7' shape-rendering='crispEdges'%3E%3Crect x='7' y='0' width='2' height='1' fill='%230a2a14'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='7' y='1' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='8' y='1' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='0' y='3' width='2' height='1' fill='%230a2a14'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='2' y='4' width='2' height='1' fill='%230a2a14'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='2' y='5' width='2' height='1' fill='%23ffffff'/%3E%3Crect x='4' y='5' width='1' height='1' fill='%230a2a14'/%3E%3Crect x='2' y='6' width='2' height='1' fill='%230a2a14'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--px); font-size: 14px; letter-spacing: .02em; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
input, textarea, select, button { font-family: var(--px); font-size: 14px; color: var(--text); }
input, textarea { user-select: text; -webkit-user-select: text; }
::selection { background: rgba(180,140,255,.45); color: #fff; }
canvas#game { position: fixed; inset: 0; display: block; image-rendering: pixelated; background: #0f0b1d; }
.hidden { display: none !important; }
img.px, .px img { image-rendering: pixelated; }
/* 人物立绘为 16×20 比例：在方形容器里保持原比例，不被压扁 */
img { object-fit: contain; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(7,4,15,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #6a54b0 0 2px, #4a3a86 2px calc(100% - 2px), #2e2456 calc(100% - 2px)); border: 2px solid transparent; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--ink); }
::-webkit-scrollbar-thumb:hover { background-color: #6a54b0; filter: brightness(1.2); }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 按钮：像素斜面 + 缺角 + 高光扫过 ---------- */
.btn { --c: #2e2558; --hi: #463a7c; --lo: #221b44; --tx: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 34px; border: 0; cursor: pointer; color: var(--tx); white-space: nowrap; isolation: isolate;
  background: linear-gradient(180deg, var(--hi) 0 2px, color-mix(in srgb, var(--hi) 60%, var(--c)) 2px 45%, var(--c) 45% calc(100% - 4px), var(--lo) calc(100% - 4px));
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 2px 0 2px rgba(255,255,255,.14), inset 0 -2px 0 2px rgba(0,0,0,.22);
  clip-path: var(--notch); transition: transform .08s, filter .15s; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.08) 55%, transparent 65%) -150% 0 / 250% 100% no-repeat; transition: background-position .5s ease-out; pointer-events: none; }
.btn:hover { filter: brightness(1.14) saturate(1.05); }
.btn:hover::after { background-position: 120% 0; }
.btn:active { transform: translateY(1px); filter: brightness(.94); box-shadow: inset 0 0 0 2px var(--ink), inset 0 3px 0 2px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); transform: none; }
.btn:disabled::after { display: none; }
.btn.primary { --c: #5a3fb8; --hi: #8c6cf0; --lo: #3a2482; }
.btn.gold { --c: #e0a020; --hi: #ffe680; --lo: #a86a10; --tx: #2a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.btn.pink { --c: #d0488a; --hi: #ff9ac8; --lo: #8a2058; --tx: #fff; }
.btn.green { --c: #2f9a52; --hi: #6ae08a; --lo: #1c6a36; }
.btn.danger { --c: #c0303f; --hi: #ff7a86; --lo: #80182a; }
.btn.cyan { --c: #2a8ac0; --hi: #7ae0ff; --lo: #1a5a88; --tx: #04182a; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.gold, .btn.green, .btn.cyan, .btn.pink, .btn.red, .btn.violet { color: var(--tx); }
.btn.ghost { --c: rgba(20,14,40,.35); --hi: rgba(255,255,255,.06); --lo: rgba(0,0,0,.2); box-shadow: inset 0 0 0 2px var(--line2), inset 0 0 0 3px rgba(7,4,15,.5); }
.btn.ghost:hover { --c: rgba(180,140,255,.14); box-shadow: inset 0 0 0 2px var(--violet), inset 0 0 0 3px rgba(7,4,15,.5); }
.btn.sm { padding: 4px 10px; min-height: 26px; font-size: 12px; }
.btn.lg { padding: 12px 22px; font-size: 18px; min-height: 46px; clip-path: var(--notch4); box-shadow: inset 0 0 0 2px var(--ink), inset 0 3px 0 2px rgba(255,255,255,.18), inset 0 -3px 0 2px rgba(0,0,0,.25); }
.btn.gold.lg, .btn.primary.lg { animation: btnGlow 3.2s ease-in-out infinite; }
@keyframes btnGlow { 50% { filter: brightness(1.08) drop-shadow(0 0 6px rgba(255,216,74,.25)); } }
.btn img { width: 18px; height: 18px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.btn .badge { top: 2px; right: 2px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -1px 0 1px rgba(0,0,0,.2); clip-path: var(--notch); }
.chip.red { background: linear-gradient(180deg, rgba(255,90,106,.22), rgba(255,90,106,.08)); box-shadow: inset 0 0 0 1px rgba(255,90,106,.45); }
.chip img { width: 14px; height: 14px; image-rendering: pixelated; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .gold { color: var(--gold); } .green { color: var(--green); } .red { color: var(--red); } .cyan { color: var(--cyan); } .violet { color: var(--violet); } .pink { color: var(--pink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 8px; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; } .center { justify-content: center; }
.sep { position: relative; height: 2px; margin: 12px 0; background: linear-gradient(90deg, transparent, var(--line2) 20%, var(--line2) 80%, transparent); }
.sep::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: var(--px-dia-v) center / 14px no-repeat; }
.orn-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.orn-sep::before, .orn-sep::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,216,74,.55)); }
.orn-sep::after { transform: scaleX(-1); }
.orn-sep > span { display: inline-flex; align-items: center; gap: 8px; }
.orn-sep > span::before, .orn-sep > span::after, .orn-sep:empty::before { }
.orn-sep:empty { height: 14px; background: var(--px-dia) center / 14px no-repeat; }
.orn-sep > span::before, .orn-sep > span::after { content: ''; width: 10px; height: 10px; background: var(--px-dia) center / 10px no-repeat; }

/* 输入 */
.input { width: 100%; padding: 9px 12px; border: 0; outline: none; background: linear-gradient(180deg, #07040e, #0f0a1e); box-shadow: inset 0 0 0 2px #2e2452, inset 0 3px 0 2px rgba(0,0,0,.35); transition: box-shadow .15s, background .15s; }
.input:hover { box-shadow: inset 0 0 0 2px #45367a, inset 0 3px 0 2px rgba(0,0,0,.35); }
.input:focus { background: linear-gradient(180deg, #0a0614, #130d26); box-shadow: inset 0 0 0 2px var(--violet), inset 0 3px 0 2px rgba(0,0,0,.35), 0 0 0 2px rgba(180,140,255,.16), 0 0 18px rgba(180,140,255,.16); }
.input::placeholder { color: #5a5080; }
select.input { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(180deg, #07040e, #0f0a1e); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%, 0 0; background-size: 5px 5px, 5px 5px, 100% 100%; background-repeat: no-repeat; }
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer; background: linear-gradient(180deg, #07040e, #140e28); box-shadow: inset 0 0 0 2px var(--line2), inset 0 3px 0 2px rgba(0,0,0,.3); transition: box-shadow .15s; }
input[type=checkbox]:hover { box-shadow: inset 0 0 0 2px var(--violet); }
input[type=checkbox]:checked { background: var(--px-check) center / 14px no-repeat, linear-gradient(180deg, #2a5a3a, #143020); box-shadow: inset 0 0 0 2px var(--green), 0 0 8px rgba(125,255,138,.3); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, rgba(90,209,255,.35), rgba(180,140,255,.35), rgba(255,122,182,.35)), #07040e; box-shadow: inset 0 0 0 2px #2e2452; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 20px; margin-top: -6px; background: linear-gradient(180deg, #fff6c8 0 3px, #ffd84a 3px 60%, #c8901a 60%); box-shadow: inset 0 0 0 2px var(--ink); }
input[type=range]::-moz-range-track { height: 8px; background: #07040e; box-shadow: inset 0 0 0 2px #2e2452; }
input[type=range]::-moz-range-thumb { width: 14px; height: 20px; border: 0; border-radius: 0; background: #ffd84a; box-shadow: inset 0 0 0 2px var(--ink); }

/* 进度条 */
.bar { position: relative; height: 10px; background: linear-gradient(180deg, #05030a, #0e0a1c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(7,4,15,.8); overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #ffa0a8 0 2px, #ff5a6a 2px 60%, #c02040 60%); transition: width .25s; }
.bar > i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.14) 6px 7px); }
.bar > i.lag { background: #ffd0a0; transition: width .8s .25s; } .bar > i.lag::after { display: none; }
.bar.exp > i { background: linear-gradient(180deg, #d8f6ff 0 2px, #7ab8ff 2px 60%, #4a6ae0 60%); } .bar.green > i { background: linear-gradient(180deg, #d0ffd8 0 2px, #5ad07a 2px 60%, #24904a 60%); } .bar.gold > i { background: linear-gradient(180deg, #fff6c8 0 2px, #ffd84a 2px 60%, #d0901a 60%); } .bar.pink > i { background: linear-gradient(180deg, #ffd0e8 0 2px, #ff7ab6 2px 60%, #c0407a 60%); }
.bar > b { position: absolute; inset: 0; font-size: 10px; line-height: 10px; text-align: center; font-weight: normal; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; z-index: 1; }

/* 空状态 */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 34px 12px; text-align: center; color: var(--dim); line-height: 1.6; }
.empty::before { content: ''; width: 42px; height: 42px; background: var(--px-sparkle) center / 42px no-repeat; animation: floaty 3.2s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(180,140,255,.35)); }
.empty:has(.empty-ic)::before { display: none; }
.empty-ic { position: relative; width: 84px; height: 84px; display: grid; place-items: center; background: radial-gradient(circle, rgba(180,140,255,.18), transparent 68%); animation: floaty 3.2s ease-in-out infinite; }
.empty-ic img { width: 64px; height: 64px; image-rendering: pixelated; opacity: .55; filter: grayscale(.35) drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.empty-ic.star { background: var(--px-sparkle) center / 42px no-repeat, radial-gradient(circle, rgba(180,140,255,.2), transparent 65%); }
.empty-t { color: var(--muted); font-size: 14px; }
.empty-s { color: var(--dim); font-size: 12px; max-width: 360px; }
@keyframes floaty { 50% { transform: translateY(-5px); } }

.badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; background: linear-gradient(180deg, #ff8a96, #e0303f); color: #fff; font-size: 10px; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--ink), 0 0 8px rgba(255,90,106,.6); animation: badgePop .4s cubic-bezier(.2,1.8,.4,1); }
@keyframes badgePop { from { transform: scale(0); } }
.kbd { display: inline-block; padding: 0 5px; font-size: 11px; background: linear-gradient(180deg, #1a1430, #0a0716); box-shadow: inset 0 0 0 1px var(--line2), inset 0 -2px 0 rgba(0,0,0,.4); color: var(--muted); }

/* ---------- 物品格：稀有度边框 + 内斜面 + 光泽 ---------- */
.cell { position: relative; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .12s, filter .12s;
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--rc, #3a2d63) 30%, #2a2150), #130d26 74%);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--rc, #3a2d63), inset 0 0 0 5px rgba(7,4,15,.7), inset 0 8px 0 -2px rgba(255,255,255,.05), 0 2px 0 rgba(0,0,0,.35); }
.cell::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 2px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 0 / 2px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 2px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 100% / 2px 2px no-repeat; }
.cell:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--rc, #54428c), inset 0 0 0 5px rgba(7,4,15,.7), inset 0 8px 0 -2px rgba(255,255,255,.08), 0 4px 0 rgba(0,0,0,.35), 0 0 14px color-mix(in srgb, var(--rc, #b48cff) 45%, transparent); }
.cell:active { transform: translateY(0) scale(.96); }
.cell img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.cell .n { position: absolute; right: 4px; bottom: 2px; font-size: 11px; line-height: 1; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.cell .lv { position: absolute; left: 5px; top: 4px; font-size: 10px; line-height: 1; color: var(--gold); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.cell.sel { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--rc, #3a2d63), inset 0 0 0 5px rgba(7,4,15,.7), 0 0 0 2px var(--ink), 0 0 14px var(--rc); }
.cell[data-r="2"], .cell[data-r="3"], .cell[data-r="4"], .cell[data-r="5"] { animation: rglow 2.4s ease-in-out infinite; }
.cell[data-r="5"]::after, .cell[data-r="4"]::after { content: ''; position: absolute; inset: 4px; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); background-size: 250% 100%; animation: shine 3s linear infinite; pointer-events: none; }
@keyframes rglow { 50% { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--rc), inset 0 0 0 5px rgba(7,4,15,.7), inset 0 0 14px color-mix(in srgb, var(--rc) 30%, transparent), 0 0 10px color-mix(in srgb, var(--rc) 55%, transparent); } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.grid-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; padding: 6px 4px 2px; }
/* NEW 角标 */
.new-tag { position: absolute; top: -5px; right: -6px; z-index: 3; padding: 2px 4px; font-size: 10px; line-height: 10px; letter-spacing: .04em; color: #fff; pointer-events: none; white-space: nowrap;
  background: linear-gradient(180deg, #ffc0dc 0 2px, #ff5a9a 2px 60%, #c0286a 60%); box-shadow: 0 0 0 2px var(--ink), 0 0 10px rgba(255,90,154,.7); text-shadow: 0 1px 0 #6a0a3a; animation: newPulse 1.6s ease-in-out infinite; }
@keyframes newPulse { 50% { transform: translateY(-1px) scale(1.08); box-shadow: 0 0 0 2px var(--ink), 0 0 16px rgba(255,150,205,.95); } }
.li.is-new, .card.is-new { box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px rgba(255,122,182,.7), 0 0 14px rgba(255,122,182,.22); }
.cell.is-new { filter: brightness(1.08); }
.grid-cells > .cell { justify-self: center; }

/* ---------- 窗口：三层像素边框 + 金色边角 + 顶部宝石 ---------- */
#panels { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.win-mask { position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(16,8,34,.45), rgba(4,2,10,.72)); backdrop-filter: blur(2px); pointer-events: auto; animation: fade .2s; }
.win-mask.closing { animation: fadeOut .17s forwards; }
.win { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, 94vw); height: min(640px, 90vh); display: flex; flex-direction: column; pointer-events: auto; padding: 4px;
  background: var(--px-stars) 0 0 / 128px 128px, var(--wash), var(--checker), linear-gradient(180deg, #231a44, #160f2c 55%, #110b22);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 5px #4a3a86, 0 0 0 7px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, 0 26px 70px rgba(0,0,0,.6), 0 0 120px rgba(120,80,255,.12);
  animation: winIn .3s cubic-bezier(.2,1.3,.4,1); }
.win.wide { width: min(1100px, 96vw); height: min(720px, 92vh); } .win.small { width: min(460px, 92vw); height: auto; max-height: 86vh; }
.win::after { content: ''; position: absolute; inset: -9px; pointer-events: none; z-index: 5;
  background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat; }
.win::before { content: ''; position: absolute; left: 50%; top: -11px; width: 150px; height: 16px; transform: translateX(-50%); pointer-events: none; z-index: 5;
  background: var(--px-dia) center / 16px no-repeat, linear-gradient(90deg, transparent, #ffd84a 25%, #fff2a0 50%, #ffd84a 75%, transparent) center / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgba(7,4,15,.9) 20%, rgba(7,4,15,.9) 80%, transparent) center / 100% 6px no-repeat; }
.win.closing { animation: winOut .17s ease-in forwards; }
@keyframes winIn { from { opacity: 0; transform: translate(-50%, -47%) scale(.95); } }
@keyframes winOut { to { opacity: 0; transform: translate(-50%, -48.5%) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.win-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 12px; min-height: 60px; overflow: hidden; flex: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 8px), linear-gradient(90deg, rgba(90,209,255,.16), rgba(180,140,255,.14) 40%, rgba(255,122,182,.08) 75%, rgba(255,122,182,.02));
  box-shadow: inset 0 -2px 0 var(--ink), inset 0 -4px 0 rgba(180,140,255,.22); }
.win-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: linear-gradient(90deg, rgba(255,216,74,.6), rgba(255,216,74,.1) 40%, transparent 70%); }
.win-medal { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; clip-path: var(--notch4);
  background: radial-gradient(circle at 50% 38%, #5a46a0, #261a50 60%, #160f30); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #ffd84a, inset 0 0 0 5px #7a5410, inset 0 0 0 6px var(--ink), inset 0 8px 10px rgba(255,255,255,.12); }
.win-medal img, .win-head > img { width: 30px; height: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); animation: medalBob 3s ease-in-out infinite; }
@keyframes medalBob { 50% { transform: translateY(-2px); } }
.win-head h2 { margin: 0; font-size: 24px; line-height: 1.1; font-weight: normal; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.9) 49%, transparent 57%) 160% 0 / 320% 100% no-repeat, linear-gradient(180deg, #ffffff 0 40%, #e6dcff 40% 60%, #c8b0ff 60% 80%, #a68aff 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 0 10px rgba(180,140,255,.35)); animation: titleShine 7s ease-in-out infinite; }
@keyframes titleShine { 0%, 60% { background-position: 160% 0, 0 0; } 85%, 100% { background-position: -70% 0, 0 0; } }
.win-orn { flex: 1; min-width: 20px; height: 12px; align-self: center; background: var(--px-dia) left center / 12px no-repeat, linear-gradient(90deg, rgba(255,216,74,.7), rgba(180,140,255,.3) 50%, transparent) 14px center / calc(100% - 14px) 2px no-repeat; opacity: .85; }
.win-wm { position: absolute; right: 64px; top: 50%; width: 96px; height: 96px; transform: translateY(-50%) rotate(-10deg); image-rendering: pixelated; opacity: .09; pointer-events: none; filter: saturate(.6); }
.win-head .x { position: relative; z-index: 1; margin-left: auto; width: 36px; height: 36px; padding: 0; font-size: 16px; flex: none; }
.win-head .x:hover { --c: #a02a3f; --hi: #ff6a7a; --lo: #6a1424; }
.win-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 16px; }
.win-body.split { display: flex; gap: 14px; overflow: hidden; } .win-body.split > * { overflow: auto; }
.win-body.tab-in > * { animation: tabIn .28s cubic-bezier(.2,1,.4,1) backwards; }
.win-body.tab-in > :nth-child(2) { animation-delay: .04s; } .win-body.tab-in > :nth-child(3) { animation-delay: .08s; } .win-body.tab-in > :nth-child(n+4) { animation-delay: .11s; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }
.tabs { display: flex; gap: 3px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; flex: none; background: linear-gradient(180deg, rgba(7,4,15,.4), rgba(7,4,15,.05)); box-shadow: inset 0 -2px 0 #3a2d63, inset 0 -3px 0 var(--ink); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 8px 14px 10px; cursor: pointer; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; flex: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -3px 0 rgba(7,4,15,.6);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%, 0 4px); transition: color .15s, background .2s, padding .15s; }
.tab img { width: 18px; height: 18px; image-rendering: pixelated; opacity: .75; transition: opacity .15s, transform .2s; }
.tab:hover { color: var(--text); background: linear-gradient(180deg, rgba(180,140,255,.18), rgba(180,140,255,.04)); }
.tab:hover img { opacity: 1; transform: translateY(-1px); }
.tab.on { color: #fff; text-shadow: 0 0 8px rgba(200,176,255,.6), 0 1px 0 #000; background: linear-gradient(180deg, rgba(200,176,255,.34), rgba(110,80,200,.2) 65%, rgba(30,22,58,.95)); box-shadow: inset 0 0 0 1px rgba(200,176,255,.4), inset 0 2px 0 rgba(255,255,255,.14); }
.tab.on img { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,216,74,.55)); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); animation: tabLine .3s ease-out; }
@keyframes tabLine { from { transform: scaleX(0); } }
.tab .badge { top: 2px; right: 2px; }

/* ---------- 卡片 / 列表 ---------- */
.card { position: relative; padding: 12px 14px; background: linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.62));
  box-shadow: inset 0 0 0 1px rgba(7,4,15,.9), inset 0 0 0 2px #3a2d63, inset 0 3px 0 rgba(255,255,255,.035), inset 0 -3px 0 rgba(0,0,0,.18); }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--tick), var(--tick)) 0 0 / 8px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 0 / 2px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 0 / 8px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 0 / 2px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 0 100% / 8px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 100% / 2px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 100% / 8px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 100% / 2px 8px no-repeat; opacity: .8; }
.card.hl { --tick: #ffd84a; background: linear-gradient(180deg, rgba(90,64,170,.42), rgba(22,14,44,.7)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px var(--violet), inset 0 0 18px rgba(180,140,255,.14), 0 0 16px rgba(180,140,255,.18); animation: hlBreath 3s ease-in-out infinite; }
@keyframes hlBreath { 50% { box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px #d8c4ff, inset 0 0 22px rgba(180,140,255,.22), 0 0 22px rgba(180,140,255,.28); } }
.card h3, h3.sec { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: normal; color: var(--gold); letter-spacing: .08em; text-shadow: 0 2px 0 var(--ink); }
.card h3::before, h3.sec::before { content: ''; flex: none; width: 12px; height: 12px; background: var(--px-dia) center / 12px no-repeat; }
.card h3::after, h3.sec::after { content: ''; flex: 1; min-width: 16px; height: 2px; background: linear-gradient(90deg, rgba(255,216,74,.45), rgba(180,140,255,.18) 55%, transparent); }
h3.sec:has(> img)::before { display: none; }
h3.sec > img { width: 20px; height: 20px; image-rendering: pixelated; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
h3.sec .sec-x { order: 3; flex: none; font-size: 12px; color: var(--muted); letter-spacing: 0; text-shadow: none; }
.card[style*="text-align: center"] h3, .card[style*="text-align:center"] h3 { justify-content: center; }
.card[style*="text-align: center"] h3::after { display: none; }
.list { display: flex; flex-direction: column; gap: 6px; }
.li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.015) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.18); transition: background .15s, box-shadow .15s; }
.li::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--violet); opacity: 0; transform: scaleY(.3); transition: opacity .18s, transform .18s; }
.li:hover { background: linear-gradient(90deg, rgba(180,140,255,.16), rgba(180,140,255,.03) 75%); box-shadow: inset 0 0 0 1px rgba(180,140,255,.28), inset 0 -2px 0 rgba(0,0,0,.18); }
.li:hover::before { opacity: .85; transform: none; }
.li.on { background: linear-gradient(90deg, rgba(180,140,255,.26), rgba(90,209,255,.06)); box-shadow: inset 0 0 0 2px var(--violet), 0 0 14px rgba(180,140,255,.16); }
.li.on::before { opacity: 1; transform: none; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.li img.ic { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; font-size: 13px; }
.stat-grid > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); transition: background .15s; }
.stat-grid > div:hover { background: linear-gradient(90deg, rgba(180,140,255,.14), transparent); }
.stat-grid b { font-weight: normal; color: var(--gold); text-shadow: 0 1px 0 #000; }
.portrait { width: 96px; height: 96px; image-rendering: pixelated; background: radial-gradient(circle at 50% 40%, #4a3a86, #1c1438 55%, #0e0a1e 75%); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #ffd84a, inset 0 0 0 5px #6a4a10, inset 0 0 0 6px var(--ink), 0 0 20px rgba(180,140,255,.2); }

/* 面板横幅（插画式区块头） */
.pbanner { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; overflow: hidden;
  background: var(--px-stars) 0 0 / 128px 128px, linear-gradient(100deg, color-mix(in srgb, var(--bc, #b48cff) 30%, #1a1236), rgba(20,14,40,.6) 60%, rgba(20,14,40,.2));
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--bc, #b48cff) 55%, #2a2050), inset 0 3px 0 rgba(255,255,255,.05); }
.pbanner > img, .pbanner .pb-ic { width: 56px; height: 56px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)) drop-shadow(0 0 12px color-mix(in srgb, var(--bc, #b48cff) 50%, transparent)); animation: floaty 3.4s ease-in-out infinite; }
.pbanner .pb-t { font-size: 20px; letter-spacing: .1em; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 12px color-mix(in srgb, var(--bc, #b48cff) 60%, transparent); }
.pbanner .pb-s { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.pbanner .pb-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pbanner::after { content: ''; position: absolute; right: -30px; top: -40px; width: 200px; height: 200px; background: radial-gradient(circle, color-mix(in srgb, var(--bc, #b48cff) 22%, transparent), transparent 65%); pointer-events: none; }

/* ---------- 提示条（toast） ---------- */
#toasts { position: fixed; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(540px, 92vw); }
.toast { --tc: #9a80e8; position: relative; pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 16px 11px 12px; line-height: 1.5; font-size: 14px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 24%, #120c24), rgba(16,11,32,.97) 45%), #120c24;
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px color-mix(in srgb, var(--tc) 50%, transparent), inset 3px 0 0 var(--tc), 0 10px 26px rgba(0,0,0,.45), 0 0 18px color-mix(in srgb, var(--tc) 20%, transparent);
  clip-path: var(--notch); animation: toastIn .38s cubic-bezier(.2,1.4,.4,1); transition: filter .15s; }
.toast:hover { filter: brightness(1.12); }
.toast .t-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 30%, transparent), transparent 70%); }
.toast .t-ic img { width: 24px; height: 24px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.toast .t-tx { min-width: 0; }
.toast .tn { flex: none; color: var(--gold); font-size: 12px; text-shadow: 0 1px 0 #000; }
.toast .tn:empty { display: none; }
.toast .t-life { position: absolute; left: 3px; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 40%, transparent)); transform-origin: left; animation: toastLife var(--life, 4.5s) linear forwards; opacity: .8; }
.toast.paused .t-life { animation-play-state: paused; }
.toast.bump { animation: toastBump .35s; }
.toast.out { animation: toastOut .4s ease-in forwards; pointer-events: none; }
.toast.good { --tc: var(--green); } .toast.warn { --tc: var(--red); } .toast.gold { --tc: var(--gold); color: #fff3c0; } .toast.item { --tc: var(--cyan); } .toast.love { --tc: var(--pink); } .toast.info { --tc: #a08af0; }
.toast.boss { font-size: 15px; } .toast .boss-nm { color: #ff9a9a; font-weight: normal; }
.toast.event { --tc: #ffb84a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastLife { to { transform: scaleX(0); } }
@keyframes toastBump { 40% { transform: scale(1.04); filter: brightness(1.3); } }

/* 悬浮提示（tooltip） */
.tip { position: fixed; z-index: 96; max-width: 300px; padding: 10px 12px; pointer-events: none; font-size: 13px; line-height: 1.6; animation: tipIn .14s ease-out;
  background: var(--px-stars) 0 0 / 128px 128px, linear-gradient(180deg, rgba(30,22,58,.98), rgba(10,7,22,.98));
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px var(--tc, var(--line2)), inset 0 2px 0 1px color-mix(in srgb, var(--tc, #54428c) 60%, transparent), 0 10px 30px rgba(0,0,0,.6); }
.tip::before { content: ''; position: absolute; left: 6px; right: 6px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tc, #b48cff), transparent); opacity: .8; }
.tip h4 { margin: 0 0 4px; font-weight: normal; font-size: 15px; text-shadow: 0 2px 0 var(--ink); padding-bottom: 4px; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- 模态框 ---------- */
.modal, .modal-gone { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(20,10,40,.5), rgba(4,2,10,.78)); animation: fade .2s; pointer-events: auto; }
.modal-gone { animation: fadeOut .16s forwards; pointer-events: none; }
.modal .box, .modal-gone .box { position: relative; width: min(440px, 92vw); max-height: 86vh; overflow: auto; padding: 20px 20px 18px;
  background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat, var(--px-stars) 0 0 / 128px 128px, var(--wash), var(--checker), linear-gradient(180deg, #281e4c, #160f2c);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 6px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, inset 0 3px 0 4px rgba(255,255,255,.04), 0 20px 60px rgba(0,0,0,.6);
  animation: winIn2 .26s cubic-bezier(.2,1.4,.4,1); }
.modal-gone .box { animation: winOut2 .16s ease-in forwards; }
.modal .box h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; font-size: 20px; font-weight: normal; letter-spacing: .08em; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(180,140,255,.5);
  background: linear-gradient(90deg, rgba(255,216,74,.6), rgba(180,140,255,.25) 50%, transparent) left bottom / 100% 2px no-repeat; }
.modal .box h3::before { content: ''; flex: none; width: 14px; height: 14px; background: var(--px-dia) center / 14px no-repeat; }
.modal .box p { margin: 0 0 14px; line-height: 1.75; color: #d8d0f0; white-space: pre-wrap; }
.modal .box .err { color: var(--red); font-size: 12px; min-height: 16px; }
@keyframes winIn2 { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes winOut2 { to { opacity: 0; transform: scale(.96) translateY(6px); } }

/* ---------- HUD（仅换肤，不改布局） ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
.hud-player { position: absolute; left: 10px; top: calc(10px + var(--safe-t)); display: flex; gap: 10px; padding: 8px 12px 8px 8px; min-width: 250px;
  background: var(--px-stars) 0 0 / 128px 128px, linear-gradient(90deg, rgba(34,26,64,.94), rgba(20,14,38,.6)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--line), inset 0 0 0 3px rgba(7,4,15,.6), inset 0 3px 0 2px rgba(255,255,255,.04); clip-path: var(--notch); }
.hud-avatar { position: relative; width: 54px; height: 54px; flex: none; cursor: pointer; background: radial-gradient(circle at 50% 40%, #3a2d70, #120c24); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #c8a040, inset 0 0 0 5px var(--ink); }
.hud-avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.hud-avatar .lv { position: absolute; left: -4px; bottom: -6px; padding: 0 5px; background: linear-gradient(180deg, #fff6c8, #ffd84a 40%, #d09018); color: #2a1a00; font-size: 11px; box-shadow: 0 0 0 2px var(--ink); }
.hud-pinfo { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hud-pinfo .nm { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; text-shadow: 0 2px 0 var(--ink); }
.hud-pinfo .nm small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.hud-pinfo .bar { height: 12px; } .hud-pinfo .bar.exp { height: 5px; }
.hud-status { display: flex; flex-wrap: wrap; gap: 2px; min-height: 18px; }
.hud-status span { position: relative; width: 18px; height: 18px; } .hud-status img { width: 18px; height: 18px; image-rendering: pixelated; }
.hud-status span i { position: absolute; right: -2px; bottom: -3px; font-size: 9px; font-style: normal; text-shadow: 1px 1px 0 #000; }
.hud-top { position: absolute; right: 10px; top: calc(10px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud-cur { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hud-cur .pill { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; cursor: pointer; font-size: 13px; min-width: 70px; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, rgba(40,30,74,.92), rgba(18,12,34,.92)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px var(--line2), inset 0 2px 0 rgba(255,255,255,.06); transition: filter .15s; }
.hud-cur .pill:hover { filter: brightness(1.2); }
.hud-cur .pill img { width: 20px; height: 20px; image-rendering: pixelated; }
.hud-cur .pill .plus { margin-left: 2px; width: 16px; height: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #fff2a0, #ffd84a 50%, #c8901a); color: #2a1a00; font-size: 12px; box-shadow: inset 0 0 0 1px var(--ink); }
.hud-cur .pill.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.12); filter: brightness(1.4); } }
.hud-world { display: flex; gap: 8px; align-items: flex-start; }
.hud-clock { padding: 4px 8px; font-size: 12px; text-align: right; line-height: 1.5; text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, rgba(40,30,74,.9), rgba(18,12,34,.9)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px var(--line2); }
.hud-clock b { font-weight: normal; font-size: 14px; }
.minimap { width: 150px; height: 116px; background: #0a0716; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px #c8a040, 0 0 0 4px rgba(7,4,15,.5); cursor: pointer; image-rendering: pixelated; }
.hud-menu { position: absolute; right: 10px; top: calc(176px + var(--safe-t)); display: grid; grid-template-columns: repeat(2, 46px); gap: 6px; }
.mbtn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; transition: transform .1s, filter .15s;
  background: radial-gradient(circle at 50% 30%, rgba(80,64,140,.6), transparent 70%), linear-gradient(180deg, rgba(48,38,88,.96), rgba(22,16,42,.96)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--line), inset 0 2px 0 2px rgba(255,255,255,.07), inset 0 -2px 0 2px rgba(0,0,0,.25); clip-path: var(--notch); }
.mbtn:hover { filter: brightness(1.25); transform: translateY(-1px); } .mbtn:active { transform: translateY(1px); }
.mbtn img { width: 30px; height: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.mbtn .lbl { position: absolute; bottom: -2px; left: 0; right: 0; text-align: center; font-size: 10px; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.mbtn .badge { top: 1px; right: 1px; }
.mbtn.gm { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--pink), inset 0 2px 0 2px rgba(255,255,255,.07); }
.hud-quest { position: absolute; left: 10px; top: calc(96px + var(--safe-t)); width: 250px; display: flex; flex-direction: column; gap: 4px; }
.hud-quest .q { padding: 6px 8px 6px 10px; font-size: 12px; line-height: 1.45; cursor: pointer; text-shadow: 0 1px 0 #000; background: linear-gradient(90deg, rgba(20,14,38,.82), rgba(20,14,38,.45)); box-shadow: inset 3px 0 0 var(--qc, var(--gold)), inset 0 0 0 1px rgba(255,255,255,.05); transition: background .15s; }
.hud-quest .q:hover { background: linear-gradient(90deg, rgba(40,30,74,.9), rgba(20,14,38,.5)); }
.hud-quest .q b { font-weight: normal; color: var(--qc, var(--gold)); display: block; font-size: 13px; }
.hud-quest .q.done { --qc: var(--green); }
.hud-boss { position: absolute; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); width: min(520px, 60vw); text-align: center; }
.hud-boss .nm { font-size: 18px; letter-spacing: .15em; text-shadow: 0 2px 0 #000, 0 0 12px var(--bc, #ff3a4a); margin-bottom: 4px; }
.hud-boss .bar { height: 14px; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(255,255,255,.1), 0 0 18px rgba(255,58,74,.35); }
.hud-boss .bar > i { background: linear-gradient(180deg, #ffb0a0 0 2px, #ff5a4a 2px 55%, #a0102a 55%); }
.hud-skills { position: absolute; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--safe-b)); width: 250px; height: 220px; }
.sk { position: absolute; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #4a3a8a, #1a1236 70%); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--line2), inset 0 3px 0 2px rgba(255,255,255,.08), 0 4px 0 rgba(0,0,0,.35); cursor: pointer; touch-action: none; }
.sk img { width: 34px; height: 34px; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.sk .cd { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.sk .cdt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; }
.sk .key { position: absolute; bottom: -4px; right: -2px; font-size: 10px; padding: 0 3px; background: var(--ink); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.sk.down { transform: scale(.92); filter: brightness(1.3); }
.sk.locked { filter: grayscale(1) brightness(.5); }
.sk.atk { width: 84px; height: 84px; right: 0; bottom: 0; background: radial-gradient(circle at 50% 30%, #7a5ae0, #2a1a60 70%); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 3px var(--violet), inset 0 4px 0 3px rgba(255,255,255,.12), 0 0 18px rgba(180,140,255,.35); }
.sk.atk img { width: 46px; height: 46px; }
.sk.ult { width: 64px; height: 64px; background: radial-gradient(circle at 50% 30%, #b07a20, #3a2008 70%); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 3px var(--gold), inset 0 4px 0 3px rgba(255,255,255,.12), 0 0 16px rgba(255,216,74,.3); }
.sk.ready { animation: skReady .6s ease-out; }
@keyframes skReady { 40% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 3px #fff, 0 0 24px #fff; } }
.sk.small { width: 44px; height: 44px; } .sk.small img { width: 26px; height: 26px; }
.hud-interact { position: absolute; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); }
.joy-zone { position: absolute; left: 0; bottom: 0; width: 45vw; height: 55vh; }
.joy-base { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(180,140,255,.15), rgba(20,14,38,.3)); box-shadow: inset 0 0 0 2px rgba(180,140,255,.4), 0 0 0 2px rgba(7,4,15,.4); opacity: .55; left: 90px; top: calc(100% - 110px); transition: opacity .2s; pointer-events: none; }
.joy-base.on { opacity: 1; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d8c8ff, #6a4ac0); box-shadow: 0 0 0 2px var(--ink), inset 0 -3px 0 rgba(0,0,0,.25), 0 0 14px rgba(180,140,255,.5); }
.hud-chat { position: absolute; left: 10px; bottom: calc(10px + var(--safe-b)); width: 340px; display: flex; flex-direction: column; gap: 4px; }
.chat-log { max-height: 140px; overflow-y: auto; padding: 6px 8px; background: linear-gradient(0deg, rgba(10,7,22,.75), rgba(10,7,22,.2)); font-size: 12px; line-height: 1.6; mask-image: linear-gradient(0deg, #000 70%, transparent); text-shadow: 0 1px 0 #000; }
.chat-log .m { word-break: break-all; } .chat-log .m .ch { font-size: 10px; padding: 0 3px; margin-right: 4px; }
.chat-log .m .who { color: var(--cyan); cursor: pointer; } .chat-log .m.sys { color: var(--gold); } .chat-log .m.news { color: #c8b8ff; }
.chat-input { display: flex; gap: 4px; } .chat-input .input { padding: 6px 8px; } .chat-input select { width: 72px; padding: 6px; }
.hud-event { position: absolute; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); padding: 6px 16px; background: linear-gradient(180deg, rgba(36,26,66,.92), rgba(16,11,32,.92)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ec); color: var(--ec); font-size: 14px; white-space: nowrap; animation: pulse 2s infinite; text-shadow: 0 1px 0 #000; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ec), 0 0 18px var(--ec); } }
.hud-net { position: absolute; right: 172px; top: calc(12px + var(--safe-t)); font-size: 11px; color: var(--muted); display: none; }

/* 横幅 */
.banner { position: fixed; left: 0; right: 0; top: 22%; text-align: center; pointer-events: none; z-index: 25; animation: banner 4.5s ease-in-out forwards; }
.banner h1 { margin: 0; font-size: clamp(30px, 6vw, 56px); font-weight: normal; letter-spacing: .3em; text-shadow: 0 4px 0 var(--ink), 0 0 30px rgba(180,140,255,.6); }
.banner h1.grad-text { background: linear-gradient(180deg, #ffffff 0 40%, #e6dcff 40% 60%, #c8b0ff 60% 80%, #a68aff 80%); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 0 24px rgba(180,140,255,.6)); }
.banner p { margin: 6px 0 0; color: #e0d6ff; letter-spacing: .2em; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.6); }
.banner::before, .banner::after { content: ''; display: block; height: 14px; margin: 8px auto; width: min(560px, 80vw); background: var(--px-dia) center / 14px no-repeat, linear-gradient(90deg, transparent, #5ad1ff 20%, #b48cff 50%, #ff7ab6 80%, transparent) center / 100% 2px no-repeat; animation: bannerLine 4.5s ease-out; }
@keyframes bannerLine { 0% { transform: scaleX(0); } 20% { transform: none; } }
@keyframes banner { 0% { opacity: 0; transform: scale(1.1); letter-spacing: .6em; } 12% { opacity: 1; transform: none; } 84% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- 对话 / 剧情 ---------- */
#overlay { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#overlay > * { pointer-events: auto; }
.dlg { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); width: min(860px, 96vw); display: flex; gap: 16px; padding: 16px; z-index: 55;
  background: var(--px-stars) 0 0 / 128px 128px, var(--wash), linear-gradient(180deg, rgba(36,27,68,.97), rgba(16,11,32,.98));
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 6px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, 0 18px 50px rgba(0,0,0,.55); animation: dlgIn .3s cubic-bezier(.2,1.3,.4,1); }
.dlg::after { content: ''; position: absolute; inset: -9px; pointer-events: none; background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat; }
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.dlg .por { flex: none; width: 116px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dlg .por img { width: 112px; height: 112px; image-rendering: pixelated; background: radial-gradient(circle at 50% 45%, rgba(180,140,255,.38), rgba(30,20,60,.6) 60%, rgba(10,7,22,.9)); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #c8a040, inset 0 0 0 5px var(--ink); }
.dlg .nm { font-size: 18px; color: var(--gold); text-shadow: 0 2px 0 var(--ink); padding: 2px 10px; background: linear-gradient(90deg, transparent, rgba(255,216,74,.16), transparent); }
.dlg .ttl { font-size: 11px; color: var(--muted); }
.dlg .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dlg .say { min-height: 64px; font-size: 16px; line-height: 1.75; white-space: pre-wrap; text-shadow: 0 1px 0 #000; }
.dlg .say .cursor { display: inline-block; width: 8px; height: 14px; background: var(--violet); margin-left: 2px; animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.dlg .rel { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; padding-bottom: 8px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.dlg .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dlg .opts .btn { min-width: 76px; }
.hearts { display: inline-flex; gap: 1px; } .hearts img { width: 14px; height: 14px; image-rendering: pixelated; }
.story { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(ellipse at 50% 30%, rgba(40,26,80,.55), rgba(4,2,10,.9)); animation: fade .5s; }
.story::before, .story::after { content: ''; position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 2; animation: letter .6s ease-out; }
.story::before { top: 0; box-shadow: 0 2px 0 rgba(255,216,74,.25); } .story::after { bottom: 0; box-shadow: 0 -2px 0 rgba(255,216,74,.25); }
@keyframes letter { from { height: 0; } }
.story .stitle { position: absolute; top: 12vh; left: 0; right: 0; text-align: center; font-size: clamp(22px, 4vw, 36px); letter-spacing: .35em; text-shadow: 0 0 24px rgba(180,140,255,.7); animation: fade 1.2s; }
.story .stage { position: absolute; inset: 20vh 0 34vh; display: flex; align-items: center; justify-content: center; gap: 12vw; }
.story .stage img { height: min(34vh, 260px); image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0,0,0,.4)); transition: filter .3s, transform .3s, opacity .3s; }
.story .stage img.dim { filter: brightness(.35) drop-shadow(0 8px 0 rgba(0,0,0,.4)); transform: scale(.94); }
.story .box { position: relative; z-index: 3; margin: 0 auto calc(11vh + var(--safe-b)); width: min(880px, 94vw); padding: 20px 24px 18px; min-height: 130px; cursor: pointer;
  background: var(--px-stars) 0 0 / 128px 128px, var(--wash), linear-gradient(180deg, rgba(30,23,56,.95), rgba(14,10,28,.97));
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 6px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, 0 18px 50px rgba(0,0,0,.5); }
.story .box::after { content: ''; position: absolute; inset: -9px; pointer-events: none; background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat; }
.story .who { display: inline-block; font-size: 18px; color: var(--gold); margin-bottom: 8px; letter-spacing: .1em; text-shadow: 0 2px 0 var(--ink); padding: 2px 14px 2px 0; background: linear-gradient(90deg, rgba(255,216,74,.14), transparent) left bottom / 100% 2px no-repeat; }
.story .who:empty { display: none; }
.story .who.nar { color: var(--muted); font-size: 13px; }
.story .say { font-size: 17px; line-height: 1.85; min-height: 60px; text-shadow: 0 1px 0 #000; }
.story .say.nar { font-style: normal; color: #d8d0ff; text-align: center; }
.story .next { position: absolute; right: 16px; bottom: 10px; color: var(--violet); animation: bob 1s infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.story .skip { position: absolute; right: 18px; top: calc(9vh + 12px); z-index: 4; }
.story .choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.story .choices .btn { justify-content: flex-start; text-align: left; white-space: normal; padding: 12px 16px; font-size: 15px; animation: dlgIn .4s backwards; }

/* 加载 */
#loading { position: fixed; inset: 0; z-index: 100; background: #05030c; transition: opacity .5s; overflow: hidden; }
#loading.out { opacity: 0; pointer-events: none; }
#ld-cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ld-ui { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); width: min(460px, 86vw); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ld-logo { text-align: center; }
.ld-t { position: relative; display: block; font-size: 46px; letter-spacing: .3em; padding-left: .3em; color: #fff3ff; text-shadow: 0 3px 0 #5a2a9a, 0 6px 0 #2a1450, 0 0 24px rgba(200,150,255,.65); animation: ldIn .9s cubic-bezier(.2,1.3,.4,1) backwards; }
.ld-t::after { content: attr(data-t); position: absolute; inset: 0; padding-left: .3em; color: transparent; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 48%, transparent 60%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; text-shadow: none; animation: ldShine 3.2s 1s ease-in-out infinite; }
.ld-logo small { display: block; margin-top: 8px; letter-spacing: .5em; color: #a99fd0; font-size: 11px; animation: ldIn 1s .25s backwards; }
.ld-bar { position: relative; width: 100%; padding: 4px; background: #0a0716; box-shadow: 0 0 0 2px #2a1f4a, 0 0 0 4px #0a0716, inset 0 0 0 1px #54428c; }
.ld-cells { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 10px; }
.ld-cells i { background: #1a1430; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); transition: background .2s, box-shadow .2s; }
.ld-cells i.on { background: linear-gradient(180deg, #ffe8ff, #b48cff 55%, #7a4ad0); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 6px rgba(180,140,255,.55); }
.ld-cells i:nth-child(3n).on { background: linear-gradient(180deg, #e0f8ff, #5ad1ff 55%, #2a7ab0); }
.ld-cells i:nth-child(5n).on { background: linear-gradient(180deg, #ffe0f0, #ff7ab6 55%, #b03a7a); }
.ld-cells i.head { background: #fff; box-shadow: 0 0 10px #fff, 0 0 18px #b48cff; animation: ldHead .5s ease-in-out infinite alternate; }
.ld-spark { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; background: radial-gradient(circle, #fff 0 2px, rgba(255,220,255,.8) 3px, rgba(180,140,255,0) 11px); transition: left .15s; mix-blend-mode: screen; }
.ld-row { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ld-tip { color: #c8bce8; font-size: 13px; text-shadow: 0 1px 0 #000; min-height: 1.4em; }
.ld-tip.in { animation: ldTip .5s ease-out; }
.ld-pct { color: #ffd84a; font-size: 14px; font-weight: normal; text-shadow: 0 1px 0 #000, 0 0 8px rgba(255,216,74,.5); font-variant-numeric: tabular-nums; }
@keyframes ldIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(2px); } }
@keyframes ldShine { 0%, 100% { background-position: 140% 0; } 50% { background-position: -40% 0; } }
@keyframes ldHead { to { box-shadow: 0 0 4px #fff, 0 0 10px #b48cff; } }
@keyframes ldTip { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 600px) { .ld-t { font-size: 34px; } .ld-ui { top: 60%; } }

/* ---------- 特效层 / 结算 ---------- */
.fxlayer { position: fixed; inset: 0; z-index: 65; background: radial-gradient(ellipse at center, rgba(30,16,60,.92), rgba(2,0,8,.97)); animation: fade .3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fxlayer::before { content: ''; position: absolute; inset: 0; background: var(--px-stars) 0 0 / 128px 128px; opacity: .8; pointer-events: none; }
.fxlayer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fxlayer .fx-ui { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; max-width: 100%; max-height: 100%; overflow: auto; }
.fxlayer .fx-ui > .btn { min-width: 150px; }
.cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; }
.gcard { width: 128px; height: 176px; cursor: pointer; animation: cardIn .45s cubic-bezier(.2,1.4,.4,1) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.7) rotate(-6deg); } }
.gcard .in { position: relative; width: 100%; height: 100%; transition: transform .22s ease-in; }
.gcard .in.half { transform: scaleX(0); }
.gcard .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 0 0 3px var(--rc), inset 0 0 0 5px #0a0716, 0 0 22px color-mix(in srgb, var(--rc) 60%, transparent); }
.gcard .back { background: repeating-linear-gradient(45deg, #2a1a5a 0 8px, #22164a 8px 16px); }
.gcard .back::after { content: '✦'; font-size: 40px; color: var(--rc); text-shadow: 0 0 20px var(--rc); }
.gcard .front { display: none; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 35%, #1a1430), #120c24 75%); padding: 8px; text-align: center; }
.gcard.flip .front { display: flex; } .gcard.flip .back { display: none; }
.gcard .front img { width: 80px; height: 80px; image-rendering: pixelated; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rc) 70%, transparent)); }
.gcard .front .r { font-size: 18px; color: var(--rc); text-shadow: 0 0 10px var(--rc); } .gcard .front .nm { font-size: 13px; }
.gcard .front .new { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 5px; background: var(--pink); }
.gcard[data-r="4"] .front::after, .gcard[data-r="5"] .front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%); background-size: 250% 100%; animation: shine 2s linear infinite; }
.reward-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 680px; padding: 14px 16px; background: linear-gradient(180deg, rgba(30,22,58,.55), rgba(10,7,22,.55)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px rgba(180,140,255,.25); }
.reward-list:empty { display: none; }
.reward-list .rw { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 82px; font-size: 11px; text-align: center; text-shadow: 0 1px 0 #000; animation: cardIn .4s backwards; }
.reward-list .rw .cell { width: 58px; height: 58px; }
.reward-list .rw .cell img { width: 42px; height: 42px; }
.fx-title { position: relative; font-size: clamp(26px, 5vw, 44px); letter-spacing: .25em; text-shadow: 0 4px 0 var(--ink), 0 0 24px var(--tc, #b48cff); animation: titleIn .7s cubic-bezier(.2,1.2,.4,1); text-align: center; padding: 0 .2em; }
.fx-title::after { content: ''; display: block; height: 14px; margin: 10px auto 0; width: min(420px, 70vw); background: var(--px-dia) center / 14px no-repeat, linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent) center / 100% 2px no-repeat; opacity: .75; }
@keyframes titleIn { from { opacity: 0; letter-spacing: .6em; transform: scale(1.08); } }

/* ---------- 小游戏 ---------- */
.fish-game { width: min(380px, 90vw); padding: 18px; }
.fish-track { position: relative; height: 34px; margin: 16px 0; background: linear-gradient(180deg, #0a2a4a, #06182e); box-shadow: inset 0 0 0 2px var(--line2), inset 0 4px 0 2px rgba(0,0,0,.3); overflow: hidden; }
.fish-zone { position: absolute; top: 2px; bottom: 2px; background: rgba(125,255,138,.3); box-shadow: inset 0 0 0 2px var(--green), 0 0 10px rgba(125,255,138,.4); }
.fish-dot { position: absolute; top: 4px; width: 26px; height: 26px; margin-left: -13px; image-rendering: pixelated; }
.fish-prog { height: 8px; }

/* 通用表单行 */
.field { margin-bottom: 10px; } .field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field .row .btn { flex: none; }
.err { color: var(--red); font-size: 12px; min-height: 18px; margin: 4px 0; }

/* ---------- 登录 / 标题画面 ---------- */
#auth { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; background: #04020a; transition: opacity .55s ease; touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#auth.hidden { display: none; }
#auth.leaving { opacity: 0; pointer-events: none; }
#auth::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(3,1,8,.62)); }
.auth-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; image-rendering: pixelated; }
.auth-stage { position: relative; z-index: 1; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 7vw, 120px); padding: calc(28px + var(--safe-t)) 24px 18px; }
.auth-legal { position: relative; z-index: 1; flex: none; padding: 4px 16px calc(12px + var(--safe-b)); text-align: center; font-size: 12px; color: rgba(210,198,255,.5); letter-spacing: .12em; text-shadow: 0 1px 0 #000; pointer-events: none; }
.auth-hero { position: relative; flex: 0 1 560px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: heroIn 1s cubic-bezier(.2,1,.3,1) backwards; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
.logo-anchor { --core: 250px; width: var(--core); height: var(--core); margin-bottom: calc(var(--core) * -0.2); pointer-events: none; }
.auth-logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-title { position: relative; display: inline-block; font-size: 96px; line-height: 1.05; letter-spacing: .1em; padding-left: .1em; white-space: nowrap; }
.logo-title .lt-back { display: block; color: #1a0a3c; text-shadow: -4px 0 0 #0c0420, 4px 0 0 #0c0420, 0 -4px 0 #0c0420, 0 4px 0 #0c0420, -4px -4px 0 #0c0420, 4px -4px 0 #0c0420, -4px 4px 0 #0c0420, 4px 4px 0 #0c0420, 0 8px 0 #4a2490, -4px 8px 0 #2e1466, 4px 8px 0 #2e1466, 0 12px 0 #1c0b42, -4px 12px 0 #12062c, 4px 12px 0 #12062c, 0 16px 0 #0a0418, 0 0 46px rgba(180,140,255,.55), 0 10px 60px rgba(255,120,190,.3); }
.logo-title .lt-face { position: absolute; left: 0; top: 0; padding-left: .1em; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 0 43%, rgba(255,255,255,.95) 46% 49.5%, transparent 52.5%), linear-gradient(180deg, #ffffff 0 30%, #f3ecff 30% 42%, #dccbff 42% 54%, #bea2ff 54% 66%, #9c7af2 66% 78%, #ff9ad0 78% 88%, #ffd27a 88%);
  background-size: 320% 100%, 100% 100%; background-position: 110% 0, 0 0; background-repeat: no-repeat; animation: logoShine 6s ease-in-out 1s infinite; }
@keyframes logoShine { 0%, 50% { background-position: 110% 0, 0 0; } 78%, 100% { background-position: -10% 0, 0 0; } }
.logo-title .spark { position: absolute; width: 22px; height: 22px; background: var(--px-sparkle) center / 22px no-repeat; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px rgba(180,140,255,.9)); animation: twinkle 3.2s ease-in-out infinite; pointer-events: none; }
.logo-title .s1 { left: -6px; top: 4px; } .logo-title .s2 { right: -12px; top: 38%; animation-delay: 1.1s; width: 16px; height: 16px; background-size: 16px; } .logo-title .s3 { left: 42%; bottom: -8px; animation-delay: 2.2s; width: 14px; height: 14px; background-size: 14px; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 18% { transform: scale(1.15) rotate(45deg); opacity: 1; } 34% { transform: scale(.2) rotate(90deg); opacity: 0; } }
.logo-sub { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .5em; padding-left: .5em; color: #d8c8ff; text-shadow: 0 2px 0 #000, 0 0 10px rgba(180,140,255,.7); white-space: nowrap; }
.logo-sub .ln { width: 56px; height: 12px; background: var(--px-dia-c) right center / 12px no-repeat, linear-gradient(90deg, transparent, #5ad1ff) left center / calc(100% - 14px) 2px no-repeat; }
.logo-sub .ln.r { transform: scaleX(-1); }
.logo-tag { font-size: 12px; color: rgba(220,210,255,.7); letter-spacing: .3em; padding-left: .3em; text-shadow: 0 1px 0 #000; }

/* 卡片 */
.auth-card { position: relative; flex: none; width: min(424px, 100%); padding: 4px; color: var(--text);
  background: var(--px-stars) 0 0 / 128px 128px, radial-gradient(120% 60% at 50% 0%, rgba(180,140,255,.14), transparent 60%), linear-gradient(180deg, rgba(36,26,72,.9), rgba(14,9,30,.95));
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 5px #4a3a86, 0 0 0 7px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(140,90,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cardRise .7s cubic-bezier(.2,1.15,.3,1) .15s backwards; }
.auth-card::after { content: ''; position: absolute; inset: -9px; pointer-events: none; z-index: 3; background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat; }
.auth-card::before { content: ''; position: absolute; left: 50%; top: -11px; width: 170px; height: 16px; transform: translateX(-50%); pointer-events: none; z-index: 3;
  background: var(--px-dia) center / 16px no-repeat, linear-gradient(90deg, transparent, #ffd84a 25%, #fff2a0 50%, #ffd84a 75%, transparent) center / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgba(7,4,15,.9) 20%, rgba(7,4,15,.9) 80%, transparent) center / 100% 6px no-repeat; }
.auth-card.out { animation: cardOut .4s ease-in forwards; }
@keyframes cardRise { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes cardOut { to { opacity: 0; transform: translateY(-14px) scale(.96); filter: brightness(1.6); } }
.auth-inner { position: relative; padding: 20px 22px 16px; }
.auth-inner.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* 顶部页签 */
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 14px; background: rgba(5,3,12,.7); box-shadow: inset 0 0 0 2px #2a2050, inset 0 3px 0 2px rgba(0,0,0,.3); }
.auth-tabs > div { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; cursor: pointer; color: var(--muted); font-size: 16px; letter-spacing: .3em; padding-left: .3em; transition: color .25s, text-shadow .25s; }
.auth-tabs > div img { width: 22px; height: 22px; image-rendering: pixelated; opacity: .55; transition: opacity .25s, transform .3s; }
.auth-tabs > div:hover { color: #e8deff; } .auth-tabs > div:hover img { opacity: .85; }
.auth-tabs > div.on { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 10px rgba(255,255,255,.35); }
.auth-tabs > div.on img { opacity: 1; transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.auth-tabs .ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .42s cubic-bezier(.3,1.35,.4,1);
  background: linear-gradient(180deg, #9a7af6 0 2px, #7458d8 2px 50%, #5a3fb8 50% calc(100% - 3px), #3a2482 calc(100% - 3px)); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 12px rgba(255,255,255,.08), 0 0 16px rgba(150,110,255,.35); clip-path: var(--notch); }
.auth-back { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 16px; padding-bottom: 12px; background: linear-gradient(90deg, rgba(255,216,74,.55), rgba(180,140,255,.2) 60%, transparent) left bottom / 100% 2px no-repeat; animation: tabIn .3s; }
.auth-back b { font-weight: normal; font-size: 20px; color: #fff; letter-spacing: .14em; text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(180,140,255,.5); }
.auth-back .dim { width: 100%; font-size: 12px; }
.auth-back .alink { order: -1; width: 100%; text-align: left; }

/* 密码 / 验证码 切换 */
.auth-seg { position: relative; display: flex; justify-content: center; gap: 28px; margin: -2px 0 14px; }
.auth-seg > div { position: relative; padding: 4px 2px 8px; cursor: pointer; color: var(--muted); font-size: 14px; letter-spacing: .12em; transition: color .2s; }
.auth-seg > div:hover { color: var(--text); }
.auth-seg > div.on { color: var(--gold); text-shadow: 0 0 10px rgba(255,216,74,.45), 0 1px 0 #000; }
.auth-seg > div::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: translateX(-50%) scaleX(0); transition: transform .3s cubic-bezier(.3,1.3,.4,1); }
.auth-seg > div.on::after { transform: translateX(-50%) scaleX(1); }
.auth-seg > div.on::before { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; transform: translateX(-50%); background: var(--px-dia) center / 10px no-repeat; animation: badgePop .35s; }
.auth-seg .thumb { display: none; }

/* 表单 */
.auth-body.enter > * { animation: fieldIn .38s cubic-bezier(.2,1,.3,1) backwards; }
.auth-body.enter > :nth-child(2) { animation-delay: .04s; } .auth-body.enter > :nth-child(3) { animation-delay: .08s; } .auth-body.enter > :nth-child(4) { animation-delay: .12s; } .auth-body.enter > :nth-child(5) { animation-delay: .16s; } .auth-body.enter > :nth-child(n+6) { animation-delay: .2s; }
@keyframes fieldIn { from { opacity: 0; transform: translateX(14px); } }
.auth-card .field { margin-bottom: 12px; }
.auth-card .fl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.auth-card .fl .cnt { color: var(--dim); letter-spacing: 0; } .auth-card .fl .cnt.over { color: var(--red); }
.ifield { position: relative; display: flex; align-items: center; height: 46px; background: linear-gradient(180deg, #06030c, #0f0a20); box-shadow: inset 0 0 0 2px #2e2452, inset 0 3px 0 2px rgba(0,0,0,.4); transition: box-shadow .2s, background .2s; }
.ifield:hover { box-shadow: inset 0 0 0 2px #4a3a80, inset 0 3px 0 2px rgba(0,0,0,.4); }
.ifield.focus { background: linear-gradient(180deg, #0a0616, #151030); box-shadow: inset 0 0 0 2px var(--violet), inset 0 3px 0 2px rgba(0,0,0,.4), 0 0 0 3px rgba(180,140,255,.14), 0 0 22px rgba(180,140,255,.2); }
.ifield.focus::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, #b48cff, #5ad1ff, transparent); animation: tabLine .35s ease-out; }
.ifield .fi { flex: none; width: 22px; height: 22px; margin: 0 2px 0 12px; image-rendering: pixelated; opacity: .65; transition: opacity .2s, transform .25s, filter .2s; }
.ifield.focus .fi { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(180,140,255,.7)); }
.ainput { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; letter-spacing: .03em; }
.ainput::placeholder { color: #5a5082; letter-spacing: .04em; }
.ainput:-webkit-autofill, .ainput:-webkit-autofill:hover, .ainput:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #0c0818 inset; caret-color: #fff; transition: background-color 9999s; }
.field.code .ainput { font-size: 22px; letter-spacing: .5em; padding-left: 14px; font-variant-numeric: tabular-nums; }
.field.code .ainput::placeholder { font-size: 14px; letter-spacing: .1em; }
.ifield .send { flex: none; height: 34px; min-height: 0; margin-right: 6px; padding: 0 12px; font-size: 13px; }
.ifield .send.cd { --c: #2a2a4a; --hi: #3a3a5e; --lo: #1e1e36; --tx: #9a90c0; text-shadow: none; opacity: 1; filter: none; }
.ifield .eye { flex: none; width: 42px; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--px-eye-off) center / 22px 14px no-repeat; opacity: .75; transition: opacity .15s, transform .15s; }
.ifield .eye:hover { opacity: 1; } .ifield .eye:active { transform: scale(.9); }
.ifield .eye.on { background-image: var(--px-eye); opacity: 1; }
.ifield.shake { animation: shake .35s; }
.ifield.flash { animation: codeFlash 1.2s ease-out; }
@keyframes codeFlash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(255,216,74,.25), 0 0 24px rgba(255,216,74,.45); } }
.field.bad .ifield { box-shadow: inset 0 0 0 2px var(--red), inset 0 3px 0 2px rgba(0,0,0,.4), 0 0 16px rgba(255,90,106,.22); }
.field.bad .fi { filter: drop-shadow(0 0 4px rgba(255,90,106,.8)); opacity: 1; }
.field.ok .ifield:not(.focus) { box-shadow: inset 0 0 0 2px rgba(125,255,138,.55), inset 0 3px 0 2px rgba(0,0,0,.4); }
.hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.hint:empty { display: none; }
.hint.bad { color: #ff9aa4; } .hint.ok { color: #9dffaa; }
.hint.bad::before, .hint.ok::before { content: ''; flex: none; width: 12px; height: 12px; margin-top: 2px; }
.hint.bad::before { background: linear-gradient(45deg, transparent 40%, #ff5a6a 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #ff5a6a 40% 60%, transparent 60%); }
.hint.ok::before { background: var(--px-check) center / 12px no-repeat; }
.hint.pop { animation: hintIn .32s cubic-bezier(.2,1.4,.4,1); }
@keyframes hintIn { from { opacity: 0; transform: translateY(-5px); } }
.pw-meter { display: inline-flex; gap: 3px; }
.pw-meter i { width: 14px; height: 4px; background: #2a2050; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); transition: background .25s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #ff5a6a; } .pw-meter[data-s="2"] i:nth-child(-n+2) { background: #ffb84a; } .pw-meter[data-s="3"] i:nth-child(-n+3) { background: #5ad1ff; } .pw-meter[data-s="4"] i { background: #7dff8a; box-shadow: 0 0 6px rgba(125,255,138,.5); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); transition: color .15s; }
.check:hover { color: var(--text); }
.alink { position: relative; padding: 2px 0; border: 0; background: none; color: var(--cyan); font-size: 13px; cursor: pointer; text-shadow: 0 1px 0 #000; }
.alink::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.alink:hover { color: #9ae8ff; } .alink:hover::after { transform: scaleX(1); }
.auth-msg { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 9px 12px; font-size: 13px; line-height: 1.55; box-shadow: inset 3px 0 0 var(--mc), inset 0 0 0 1px color-mix(in srgb, var(--mc) 40%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 18%, transparent), transparent); animation: msgIn .35s cubic-bezier(.2,1.3,.4,1); }
.auth-msg:empty { display: none; }
.auth-msg .mi { flex: none; width: 14px; height: 14px; margin-top: 2px; background: var(--px-dia) center / 14px no-repeat; }
.auth-msg.err { --mc: var(--red); color: #ffc0c6; } .auth-msg.err .mi { background: linear-gradient(45deg, transparent 38%, #ff5a6a 38% 62%, transparent 62%), linear-gradient(-45deg, transparent 38%, #ff5a6a 38% 62%, transparent 62%); }
.auth-msg.ok { --mc: var(--green); color: #d0ffd6; } .auth-msg.ok .mi { background: var(--px-check) center / 14px no-repeat; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px) scaleY(.8); } }
.auth-card .submit { width: 100%; height: 52px; font-size: 18px; letter-spacing: .3em; padding-left: calc(22px + .3em); }
.auth-card .submit .lbl { position: relative; }
.btn .spin { display: none; width: 4px; height: 4px; margin-right: 14px; flex: none; color: inherit; animation: spin .8s steps(8) infinite;
  box-shadow: 0 -8px 0 0 currentColor, 6px -6px 0 0 color-mix(in srgb, currentColor 85%, transparent), 8px 0 0 0 color-mix(in srgb, currentColor 70%, transparent), 6px 6px 0 0 color-mix(in srgb, currentColor 55%, transparent), 0 8px 0 0 color-mix(in srgb, currentColor 42%, transparent), -6px 6px 0 0 color-mix(in srgb, currentColor 30%, transparent), -8px 0 0 0 color-mix(in srgb, currentColor 20%, transparent), -6px -6px 0 0 color-mix(in srgb, currentColor 10%, transparent); }
.btn.loading .spin { display: inline-block; }
.btn.loading { cursor: progress; opacity: .9 !important; filter: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-foot { display: flex; justify-content: center; margin-top: 14px; padding-top: 12px; font-size: 13px; color: var(--muted); background: linear-gradient(90deg, transparent, rgba(180,140,255,.35), transparent) top / 100% 1px no-repeat; }
.auth-foot > span { display: inline-flex; gap: 6px; align-items: center; }

/* 创建角色 */
.auth-stage.create { flex-direction: column; gap: 0; justify-content: flex-start; padding-top: calc(10px + var(--safe-t)); }
.auth-hero.compact { flex: none; animation: none; align-self: center; }
.auth-hero.compact .logo-anchor { --core: 150px; margin-bottom: -26px; }
.auth-card.create { width: min(620px, 100%); }
.cc-head { text-align: center; margin-bottom: 14px; }
.cc-head h2 { margin: 0; font-size: 24px; font-weight: normal; letter-spacing: .3em; padding-left: .3em; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 0 43%, rgba(255,255,255,.95) 46% 49.5%, transparent 52.5%), linear-gradient(180deg, #fff 0 40%, #e6dcff 40% 60%, #c8b0ff 60% 80%, #ffd27a 80%); background-size: 320% 100%, 100% 100%; background-repeat: no-repeat; animation: logoShine 6s ease-in-out infinite; filter: drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 0 12px rgba(180,140,255,.5)); }
.cc-welcome { margin-top: 6px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.cc-head::after { content: ''; display: block; height: 12px; margin: 10px auto 0; width: 70%; background: var(--px-dia) center / 12px no-repeat, linear-gradient(90deg, transparent, rgba(255,216,74,.7) 30%, rgba(255,216,74,.7) 70%, transparent) center / 100% 2px no-repeat; }
.hero-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 12px; }
.hero-pick .hp { position: relative; padding: 10px 6px 10px; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(10,7,22,.4)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px #3a2d63, inset 0 3px 0 rgba(255,255,255,.04); }
.hero-pick .hp:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--cc) 60%, #3a2d63); }
.hero-pick .hp.on { transform: translateY(-4px); background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 22%, transparent), rgba(10,7,22,.5)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px #ffd84a, inset 0 0 18px color-mix(in srgb, var(--cc) 30%, transparent), 0 0 22px rgba(255,216,74,.25); }
.hero-pick .hp.on::after { content: ''; position: absolute; left: 50%; top: -8px; width: 14px; height: 14px; transform: translateX(-50%); background: var(--px-dia) center / 14px no-repeat; animation: badgePop .35s, floaty 2s ease-in-out infinite; }
.hp-stage { position: relative; height: 96px; display: grid; place-items: end center; margin-bottom: 6px; }
.hp-stage::before { content: ''; position: absolute; left: 50%; bottom: 2px; width: 70px; height: 12px; transform: translateX(-50%); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cc) 55%, transparent), transparent 70%); opacity: .5; transition: opacity .2s; }
.hp.on .hp-stage::before { opacity: 1; }
.hp-stage::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 6px; transform: translateX(-50%); background: linear-gradient(180deg, #4a3a86 0 2px, #2a1f52 2px); box-shadow: 0 0 0 2px var(--ink); }
.hp-stage img { position: relative; z-index: 1; width: 84px; height: 84px; margin-bottom: 4px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)) grayscale(.35) brightness(.85); transition: filter .2s; }
.hp:hover .hp-stage img, .hp.on .hp-stage img { filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.hp-nm { font-size: 16px; text-shadow: 0 2px 0 var(--ink); }
.hero-pick .hp small { display: block; margin-top: 2px; font-size: 12px; }
.cc-detail { --cc: #b48cff; padding: 12px 14px; margin-bottom: 14px; min-height: 96px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 16%, transparent), rgba(10,7,22,.3)); box-shadow: inset 3px 0 0 var(--cc), inset 0 0 0 1px rgba(255,255,255,.06); }
.cc-detail.enter { animation: fieldIn .35s cubic-bezier(.2,1,.3,1); }
.cc-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-name img { width: 24px; height: 24px; image-rendering: pixelated; }
.cc-name b { font-weight: normal; font-size: 18px; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.cc-cls { font-size: 12px; padding: 1px 8px; color: var(--cc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 60%, transparent); }
.cc-desc { font-size: 13px; color: #d8d0f0; line-height: 1.6; }
.cc-bio { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1180px) and (min-width: 861px) { .logo-title { font-size: 72px; } .logo-anchor { --core: 200px; } }
@media (max-width: 860px), (orientation: portrait) {
  .auth-stage { flex-direction: column; gap: 6px; justify-content: flex-start; padding: calc(16px + var(--safe-t)) 16px 12px; }
  .auth-hero { flex: none; }
  .logo-anchor { --core: 132px; margin-bottom: -30px; }
  .logo-title { font-size: 48px; letter-spacing: .12em; }
  .logo-title .lt-back { text-shadow: -2px 0 0 #0c0420, 2px 0 0 #0c0420, 0 -2px 0 #0c0420, 0 2px 0 #0c0420, -2px -2px 0 #0c0420, 2px -2px 0 #0c0420, -2px 2px 0 #0c0420, 2px 2px 0 #0c0420, 0 4px 0 #4a2490, 0 6px 0 #1c0b42, 0 8px 0 #0a0418, 0 0 30px rgba(180,140,255,.55); }
  .auth-logo { gap: 6px; margin-bottom: 10px; }
  .logo-sub { font-size: 12px; letter-spacing: .3em; gap: 8px; } .logo-sub .ln { width: 30px; }
  .logo-tag { display: none; }
  .auth-card { width: 100%; max-width: 440px; }
  .auth-inner { padding: 16px 16px 14px; }
  .ainput { font-size: 16px; }
  .auth-hero.compact .logo-anchor { --core: 110px; margin-bottom: -22px; }
  .hero-pick { gap: 8px; } .hp-stage { height: 80px; } .hp-stage img { width: 68px; height: 68px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .auth-stage { flex-direction: row; align-items: flex-start; gap: 24px; padding: calc(10px + var(--safe-t)) 20px 10px; }
  .auth-hero { flex: 1 1 0; position: sticky; top: 10px; align-self: flex-start; }
  .logo-anchor { --core: 96px; margin-bottom: -18px; }
  .logo-title { font-size: 48px; }
  .logo-tag { display: block; }
  .auth-card { width: 390px; }
  .auth-legal { display: none; }
  .auth-stage.create { flex-direction: column; align-items: center; }
  .auth-hero.compact { position: static; flex: none; } .auth-hero.compact .logo-anchor { --core: 60px; margin-bottom: -8px; }
}

/* ---------- 人机验证：滑块拼图 ---------- */
.cap-mask { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(24,12,48,.55), rgba(3,1,8,.82)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s; touch-action: none; }
.cap-mask.out { animation: fadeOut .22s forwards; pointer-events: none; }
.cap-box { position: relative; width: calc(var(--sw, 280px) + 40px); max-width: 100%; padding: 16px 20px 14px;
  background: var(--px-stars) 0 0 / 128px 128px, var(--wash), var(--checker), linear-gradient(180deg, #281e4c, #140e2a);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--frame), 0 0 0 5px #4a3a86, 0 0 0 7px var(--ink), inset 0 0 0 2px var(--frame-hi), inset 0 0 0 4px #0b0718, 0 24px 70px rgba(0,0,0,.65), 0 0 90px rgba(140,90,255,.16);
  animation: winIn2 .32s cubic-bezier(.2,1.4,.4,1); }
.cap-mask.out .cap-box { animation: winOut2 .2s ease-in forwards; }
.cap-box::after { content: ''; position: absolute; inset: -9px; pointer-events: none; background: var(--orn-g-tl) left top / 24px no-repeat, var(--orn-g-tr) right top / 24px no-repeat, var(--orn-g-bl) left bottom / 24px no-repeat, var(--orn-g-br) right bottom / 24px no-repeat; }
.cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; background: linear-gradient(90deg, rgba(255,216,74,.6), rgba(180,140,255,.22) 55%, transparent) left bottom / 100% 2px no-repeat; }
.cap-shield { flex: none; width: 33px; height: 36px; background: var(--px-shield) center / 33px 36px no-repeat; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(180,140,255,.5)); animation: medalBob 3s ease-in-out infinite; }
.cap-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cap-tt b { font-weight: normal; font-size: 18px; letter-spacing: .14em; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 10px rgba(180,140,255,.5); }
.cap-tt small { font-size: 12px; color: var(--muted); }
.cap-x { margin-left: auto; align-self: flex-start; width: 30px; height: 30px; flex: none; border: 0; cursor: pointer; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, #2e2558, #1e1840); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px #3a2d63; clip-path: var(--notch); transition: color .15s, filter .15s; }
.cap-x:hover { color: #fff; filter: brightness(1.3); }
.cap-stage { position: relative; width: var(--sw, 280px); height: var(--sh, 160px); margin: 0 auto; overflow: hidden; background: #0a0716; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #3a2d63, 0 0 0 5px var(--ink); }
.cap-stage.swap .cap-bg { animation: capSwap .4s ease-out; }
@keyframes capSwap { from { opacity: 0; filter: brightness(2) saturate(0); } }
.cap-bg { display: block; width: 100%; height: 100%; image-rendering: pixelated; -webkit-user-drag: none; }
.cap-piece { position: absolute; left: 0; top: 0; width: var(--ps, 44px); height: var(--ps, 44px); image-rendering: pixelated; pointer-events: none; will-change: transform; -webkit-user-drag: none;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(2px 3px 0 rgba(0,0,0,.55)) drop-shadow(0 0 8px rgba(255,216,74,.55)); }
.cap-box.back .cap-piece, .cap-box.back .cap-handle { transition: transform .36s cubic-bezier(.3,1.5,.5,1); }
.cap-box.back .cap-fill { transition: width .36s cubic-bezier(.3,1.5,.5,1); }
.cap-result { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; font-size: 13px; color: #d4ffd9; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, rgba(20,90,46,.9), rgba(10,60,30,.95)); box-shadow: inset 0 2px 0 rgba(125,255,138,.6); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,1.3,.4,1); }
.cap-result .cap-ok { width: 18px; height: 14px; background: var(--px-ok) center / 18px 14px no-repeat; }
.cap-box.ok .cap-result { transform: none; }
.cap-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.cap-box.ok .cap-stage::after { opacity: 1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 60%) -100% 0 / 250% 100% no-repeat; animation: capShine .7s ease-out forwards; }
@keyframes capShine { to { background-position: 160% 0; } }
.cap-box.ok .cap-piece { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 12px rgba(125,255,138,.9)); }
.cap-box.fail .cap-stage { animation: shake .4s; }
.cap-box.fail .cap-stage::after { opacity: 1; background: rgba(255,60,80,.22); box-shadow: inset 0 0 0 2px rgba(255,90,106,.9); animation: fadeOut .6s .2s forwards; }
.cap-loading { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--muted); background: rgba(10,7,22,.78); }
.cap-box.loading .cap-loading { display: flex; }
.cap-loading .spin { display: inline-block; color: var(--violet); }
.cap-track { position: relative; width: var(--sw, 280px); height: 44px; margin: 14px auto 0; background: linear-gradient(180deg, #06030c, #120c24); box-shadow: inset 0 0 0 2px #2e2452, inset 0 3px 0 2px rgba(0,0,0,.4); touch-action: none; user-select: none; -webkit-user-select: none; }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(90,209,255,.12), rgba(180,140,255,.32)); box-shadow: inset 0 0 0 2px rgba(180,140,255,.55); pointer-events: none; }
.cap-box.ok .cap-fill { background: linear-gradient(90deg, rgba(125,255,138,.12), rgba(125,255,138,.32)); box-shadow: inset 0 0 0 2px rgba(125,255,138,.7); }
.cap-box.fail .cap-fill { background: linear-gradient(90deg, rgba(255,90,106,.1), rgba(255,90,106,.3)); box-shadow: inset 0 0 0 2px rgba(255,90,106,.7); }
.cap-hint { position: absolute; inset: 0; display: grid; place-items: center; padding-left: var(--ps, 44px); font-size: 13px; letter-spacing: .08em; pointer-events: none; transition: opacity .2s;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(100deg, #6a5e98 0 40%, #f0e8ff 48%, #6a5e98 56% 100%); background-size: 260% 100%; animation: capHint 2.6s linear infinite; }
@keyframes capHint { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.cap-track.active .cap-hint, .cap-box.ok .cap-hint { opacity: 0; }
.cap-handle { position: absolute; left: 0; top: 0; z-index: 2; width: var(--ps, 44px); height: 44px; display: grid; place-items: center; cursor: grab; touch-action: none; outline: none;
  background: linear-gradient(180deg, #fff2a0 0 2px, #ffd84a 2px 50%, #e0a020 50% calc(100% - 4px), #a86a10 calc(100% - 4px)); box-shadow: inset 0 0 0 2px var(--ink), inset 0 3px 0 2px rgba(255,255,255,.3), 0 0 14px rgba(255,216,74,.35); clip-path: var(--notch); will-change: transform; }
.cap-handle:hover { filter: brightness(1.1); }
.cap-handle:focus-visible { filter: brightness(1.15) drop-shadow(0 0 4px #fff); }
.cap-track.active .cap-handle { cursor: grabbing; filter: brightness(1.12); }
.cap-arrow { width: 22px; height: 14px; background: var(--px-arrow) center / 22px 14px no-repeat; animation: capNudge 1.4s ease-in-out infinite; }
.cap-track.active .cap-arrow { animation: none; }
@keyframes capNudge { 50% { transform: translateX(3px); } }
.cap-box.ok .cap-handle { background: linear-gradient(180deg, #c8ffd0 0 2px, #5ad07a 2px 50%, #2f9a52 50% calc(100% - 4px), #1c6a36 calc(100% - 4px)); }
.cap-box.ok .cap-arrow { width: 18px; background: var(--px-ok) center / 18px 14px no-repeat; animation: badgePop .35s; }
.cap-box.fail .cap-handle { background: linear-gradient(180deg, #ffc0c6 0 2px, #ff6a7a 2px 50%, #c0303f 50% calc(100% - 4px), #80182a calc(100% - 4px)); }
.cap-box.fail .cap-arrow { background-image: var(--px-arrow-w); }
.cap-box.checking .cap-handle { animation: capPulse .5s ease-in-out infinite; }
@keyframes capPulse { 50% { filter: brightness(1.3); } }
.cap-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 26px; }
.cap-refresh .cap-ri { width: 14px; height: 14px; background: var(--px-refresh) center / 14px no-repeat; transition: transform .4s; }
.cap-refresh:hover .cap-ri { transform: rotate(180deg); }
.cap-msg { flex: 1; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cap-msg.bad { color: #ff9aa4; animation: hintIn .3s; } .cap-msg.good { color: #9dffaa; animation: hintIn .3s; }
@media (max-width: 420px) { .cap-box { padding: 14px 14px 12px; width: calc(var(--sw, 280px) + 28px); } .cap-tt b { font-size: 16px; } }

/* ---------- 自适应 ---------- */
@media (max-width: 760px), (pointer: coarse) {
  html, body { font-size: 13px; }
  .hud-player { min-width: 0; width: min(230px, 58vw); padding: 6px 8px 6px 6px; gap: 8px; } .hud-avatar { width: 44px; height: 44px; }
  .minimap { width: 104px; height: 80px; }
  .hud-cur .pill { min-width: 0; font-size: 12px; padding: 2px 6px 2px 3px; } .hud-cur .pill img { width: 16px; height: 16px; }
  .hud-cur .pill.opt { display: none; }
  .hud-quest { width: 200px; top: calc(96px + var(--safe-t)); } .hud-quest .q ~ .q ~ .q { display: none; }
  .hud-chat { width: 260px; bottom: auto; top: calc(160px + var(--safe-t)); } .hud-chat .chat-input { display: none; } .chat-log { max-height: 70px; font-size: 11px; }
  .win, .win.wide { width: 100vw; height: 100%; max-height: none; top: 0; left: 0; transform: none; animation: fade .2s; }
  .win::before, .win::after { display: none; }
  .win.closing { animation: fadeOut .17s forwards; }
  .win-wm { display: none; }
  .win-head { padding-top: calc(10px + var(--safe-t)); }
  .win-body.split { flex-direction: column; overflow: auto; } .win-body.split > * { overflow: visible; }
  .dlg { flex-direction: column; gap: 8px; padding: 10px; } .dlg .por { flex-direction: row; width: auto; } .dlg .por img { width: 56px; height: 56px; }
  .dlg .say { font-size: 14px; min-height: 48px; } .dlg .opts .btn { min-width: 0; padding: 6px 10px; font-size: 13px; }
  .story .say { font-size: 15px; } .story .stage img { height: 22vh; }
  .stat-grid { grid-template-columns: 1fr; }
  .gcard { width: 92px; height: 132px; } .gcard .front img { width: 54px; height: 54px; }
}
@media (pointer: fine) and (min-width: 761px) { .joy-zone, .hud-skills .mobile-only { display: none; } }
.hud-menu.mobile { grid-template-columns: 42px !important; right: 10px; left: auto; top: calc(178px + var(--safe-t)); transform: none; gap: 5px; }
.hud-menu.mobile .mbtn { width: 42px; height: 42px; } .hud-menu.mobile .mbtn img { width: 26px; height: 26px; }
@media (orientation: portrait) and (max-width: 760px) {
  .hud-top { flex-direction: column-reverse; align-items: flex-end; }
  .hud-cur { flex-direction: column; align-items: flex-end; gap: 4px; }
  .hud-clock { display: none; }
  .hud-player { width: min(220px, 56vw); }
}
@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (max-height: 500px) {
  .hud-menu.mobile { grid-template-columns: none !important; grid-auto-flow: column; top: calc(8px + var(--safe-t)); left: 50%; right: auto; transform: translateX(-50%); }
  .hud-boss { top: calc(60px + var(--safe-t)); }
  .hud-chat { display: none; }
  .hud-quest { top: calc(70px + var(--safe-t)); width: 220px; }
  .hud-clock { display: none; }
  #toasts { top: calc(56px + var(--safe-t)); }
}
@media (orientation: portrait) and (pointer: coarse) { .hud-skills { transform: scale(.9); transform-origin: right bottom; } }

/* ---------- 左侧竖排页签（窗口主区：页签栏 + 内容） ---------- */
.win-main { flex: 1; min-height: 0; display: flex; }
.win-main > .win-body { flex: 1; min-width: 0; }
.win-rail { flex: none; width: 136px; overflow-y: auto; overflow-x: hidden; padding: 10px 6px 12px 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #54428c transparent;
  background: linear-gradient(90deg, rgba(7,4,15,.5), rgba(7,4,15,.15)); box-shadow: inset -2px 0 0 #3a2d63, inset -3px 0 0 var(--ink, #0a0716); }
.win-rail:empty { display: none; }
.win-rail .tabs { flex-direction: column; gap: 4px; padding: 0; overflow: visible; background: none; box-shadow: none; }
.win-rail .tab { padding: 10px 10px 10px 12px; white-space: normal; line-height: 1.25; justify-content: flex-start; text-align: left; min-height: 40px;
  background: linear-gradient(90deg, rgba(42,32,80,.55), rgba(26,20,48,.25)); box-shadow: inset 0 0 0 1px rgba(84,66,140,.45); transition: background .15s, transform .15s, color .15s; }
.win-rail .tab:hover { transform: translateX(2px); }
.win-rail .tab img { flex: none; }
.win-rail .tab.on { transform: translateX(3px); background: linear-gradient(90deg, rgba(200,176,255,.34), rgba(110,80,200,.24) 70%, rgba(30,22,58,.9)); }
.win-rail .tab.on::after { left: -8px; right: auto; top: 3px; bottom: 3px; width: 3px; height: auto; background: linear-gradient(180deg, #5ad1ff, #b48cff 50%, #ff7ab6); animation: none; }
.win-rail .tab > .badge { top: 6px; right: 6px; transform: none; }
.win-rail .tab:has(> .badge) { padding-right: 26px; }
/* 内容区里的二级页签：自动换行，不会被挡住 */
.win-body .tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 760px) {
  .win-rail { width: 76px; padding: 8px 4px 10px 6px; }
  .win-rail .tab { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; font-size: 11px; text-align: center; min-height: 52px; }
  .win-rail .tab:has(> .badge) { padding-right: 4px; }
  .win-rail .tab > .badge { top: 2px; right: 2px; }
}
