/* 霓虹街机风：首页与游戏作品页共用 */

:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-2: #141417;
  --ink: #f4f4f0;
  --mut: #8a8a85;
  --line: rgba(255, 255, 255, .1);
  --mag: #ff2d95;
  --lime: #d4ff3a;
  --amber: #ffb020;
  --str: #ff5a36;
  --dex: #d4ff3a;
  --int: #b47cff;
  --accent: var(--lime); /* 每款游戏自己的主色，由 site.js 按 games[].accent 覆盖 */
  --tripo: #ff2d95;
  --blender: #e87d0d;
  --pad: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, "Noto Sans SC", monospace;
  --display: "Archivo Black", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; /* 中文用系统字体：网络字体的中文切片要 2 MB，低配手机吃不消 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* 扫描线 + 噪点，纯装饰 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px var(--pad);
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { background: var(--lime); color: #000; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.logo:hover { background: var(--mag); color: #fff; }
.nav { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--mut); white-space: nowrap; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--lime); }
.clock { white-space: nowrap; color: var(--ink); }
.clock::after { content: "▮"; margin-left: 4px; animation: blink 1s steps(1) infinite; color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }
.bar-end { display: flex; align-items: center; gap: 18px; }
.lang { color: var(--mut); white-space: nowrap; border: 1px solid var(--line); padding: 2px 8px; }
.lang span { padding: 0 3px; }
.lang .on { color: var(--lime); font-weight: 700; }
.lang:hover { border-color: var(--lime); color: var(--ink); }

/* ---------- 通用标题 ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-no { font-family: var(--mono); color: var(--lime); font-size: 14px; }
.sec-title { font-family: var(--display); font-size: clamp(32px, 5.4vw, 72px); line-height: .95; margin: 0; letter-spacing: -.02em; text-transform: uppercase; }
.sec-zh { font-size: clamp(16px, 1.6vw, 20px); color: var(--mut); font-weight: 500; }
.sec-head::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: var(--line); align-self: center; }

.sub-head { display: flex; align-items: center; gap: 14px; margin: clamp(48px, 6vw, 80px) 0 22px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; }
.sub-head > span:first-child { font-family: var(--mono); font-size: 12px; color: var(--mag); font-weight: 400; letter-spacing: .1em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 8px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.t-NPC { color: var(--amber); }
.t-ENEMY { color: var(--mag); }
.t-BOSS { color: #ff3b3b; }
.t-PLAYER { color: var(--lime); }
.t-accent { color: var(--accent); }
.t-STR { color: var(--str); }
.t-DEX { color: var(--dex); }
.t-INT { color: var(--int); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  transition: transform .12s, background .12s, color .12s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--mag); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #000; }

/* ---------- 故障字 ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.glitch::before { color: var(--mag); clip-path: inset(8% 0 58% 0); transform: translate(-5px, 2px); animation: g1 3.2s infinite steps(1); }
.glitch::after { color: var(--lime); clip-path: inset(62% 0 6% 0); transform: translate(5px, -2px); animation: g2 2.7s infinite steps(1); }
@keyframes g1 {
  0%, 86%, 100% { clip-path: inset(8% 0 58% 0); transform: translate(-5px, 2px); }
  88% { clip-path: inset(30% 0 40% 0); transform: translate(-12px, 0); }
  92% { clip-path: inset(70% 0 10% 0); transform: translate(8px, 3px); }
}
@keyframes g2 {
  0%, 80%, 100% { clip-path: inset(62% 0 6% 0); transform: translate(5px, -2px); }
  83% { clip-path: inset(10% 0 75% 0); transform: translate(12px, 0); }
  90% { clip-path: inset(45% 0 30% 0); transform: translate(-8px, -3px); }
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- 首页 Hero：选择角色 ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding-top: clamp(24px, 4vw, 56px); }
.giant { font-family: var(--display); font-size: clamp(88px, 17vw, 250px); line-height: .82; letter-spacing: -.045em; margin: 0; }
.giant .dot { color: var(--mag); }
.headline { font-size: clamp(26px, 3.2vw, 42px); font-weight: 900; line-height: 1.25; margin: clamp(28px, 4vw, 48px) 0 16px; }
.headline em { font-style: normal; color: var(--lime); }
.intro { color: var(--mut); max-width: 560px; margin: 0 0 28px; font-size: 16px; line-height: 1.85; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

.stage { position: relative; min-height: 560px; display: grid; place-items: end center; }
.stage-ring { position: absolute; left: 50%; top: 50%; width: min(92%, 580px); aspect-ratio: 1; transform: translate(-50%, -48%); border-radius: 50%; border: 2px solid var(--mag); opacity: .55; }
.stage-ring.inner { width: min(76%, 480px); border: 1px dashed var(--lime); opacity: .45; animation: spin 40s linear infinite; }
.stage-glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 45, 149, .35), transparent 65%); filter: blur(10px); transition: background .4s; }
.stage[data-type="NPC"] .stage-glow { background: radial-gradient(circle, rgba(255, 176, 32, .3), transparent 65%); }
.stage[data-type="PLAYER"] .stage-glow { background: radial-gradient(circle, rgba(212, 255, 58, .26), transparent 65%); }
.stage[data-type="BOSS"] .stage-glow { background: radial-gradient(circle, rgba(255, 59, 59, .4), transparent 65%); }
@keyframes spin { to { transform: translate(-50%, -48%) rotate(360deg); } }
.stage-fig { position: relative; z-index: 2; height: min(620px, 72vw); width: auto; object-fit: contain; filter: drop-shadow(0 0 40px rgba(0, 0, 0, .8)); transition: opacity .25s, transform .25s; }
.stage-fig.swap { opacity: 0; transform: translateY(14px) scale(.98); }
.hud {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, .72);
}
.hud b { display: block; font-size: clamp(16px, 1.6vw, 22px); color: var(--ink); font-family: var(--sans); font-weight: 900; }
.hud-name { right: 0; top: 8%; }
.hud-note { left: 0; bottom: 14%; color: var(--mut); max-width: 220px; }
.hud-note b { font-size: 14px; font-weight: 500; }
.hud-count { right: 0; bottom: 14%; color: var(--lime); }

.select { margin-top: 28px; }
.select-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--mut); margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.select-head b { color: var(--lime); font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span::before { content: "■ "; }
.grid-select { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative;
  aspect-ratio: 220 / 253;
  background: var(--panel-2);
  overflow: hidden;
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  transition: transform .12s, border-color .12s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.7) brightness(.8); transition: filter .15s; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; }
.tile:hover img, .tile.on img { filter: none; }
.tile.on { border-color: currentColor; transform: translateY(-4px); }
.tile.on::before {
  content: "P1";
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  background: currentColor;
  padding: 0 4px;
}
.tile.on::before { color: #000; background: var(--accent); }

/* 卡带：一款游戏一张，最后一张锁着 */
.carts { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; }
.carts::-webkit-scrollbar { display: none; }
.cart {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  min-height: 96px;
  padding: 12px 104px 12px 16px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: transform .12s, background .15s;
}
.cart:hover { transform: translateY(-3px); }
.cart img { position: absolute; right: -4px; top: 6px; height: 150%; width: auto; object-fit: contain; object-position: top; filter: saturate(.6) brightness(.7); transition: filter .15s; }
.cart > span, .cart > b { position: relative; z-index: 1; }
.cart-no { display: block; font-family: var(--mono); font-size: 11px; color: var(--mut); }
.cart b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.05; margin: 5px 0 4px; letter-spacing: -.01em; }
.cart-sub { font-size: 13px; color: var(--mut); }
/* 标题字图片：中文那张方一些按高度排，英文那张扁长按宽度排；不加边框 */
.cart .cart-logo { position: static; display: block; width: auto; max-width: 100%; height: 50px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); margin: 2px 0 2px; }
.cart .cart-logo.logo-en { height: auto; width: 100%; }
.cart[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel) 70%); }
.cart[aria-selected="true"] img { filter: none; }
.cart[aria-selected="true"] .cart-no { color: var(--accent); }
.cart[aria-selected="true"] .cart-no::after { content: " ▶ INSERTED"; }
.cart-locked { border-style: dashed; border-left: 6px dashed #2a2a2e; background: repeating-linear-gradient(45deg, #0b0b0d 0 10px, #0e0e10 10px 20px); padding-right: 16px; width: 200px; }
.cart-locked:hover { transform: none; }
.cart-locked b { color: #34343a; }

/* ---------- 滚动条 ---------- */
.ticker { margin: clamp(56px, 7vw, 96px) -20px 0; background: var(--lime); color: #000; transform: rotate(-1.6deg); overflow: hidden; }
.ticker-track { display: flex; width: max-content; padding: 14px 0; font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); animation: marquee 38s linear infinite; }
.ticker-track span { margin: 0 28px; white-space: nowrap; }
.ticker-track span::before { content: "★ "; }
.ticker-track .tk-game { background: #000; color: var(--accent); padding: 0 12px; }
.ticker-track .tk-game::before { content: "▶ "; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 作品卡 ---------- */
.works { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.work {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  padding: clamp(20px, 2.4vw, 32px);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
  transition: transform .15s;
}
.work:hover { transform: translateY(-4px); }
.work-main { grid-row: span 2; min-height: 560px; background: linear-gradient(160deg, #1a0b12 0%, var(--panel) 55%); }
.work-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: relative; z-index: 2; }
.work h3 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 84px); line-height: .88; margin: 18px 0 10px; position: relative; z-index: 2; letter-spacing: -.02em; }
.work .work-logo { display: block; width: auto; height: clamp(96px, 11vw, 168px); max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); }
.work .work-logo.logo-en { height: auto; width: min(100%, 520px); }
.work-game .work-logo { height: clamp(60px, 6vw, 88px); }
.work .kind { font-family: var(--mono); font-size: 12px; color: var(--mut); position: relative; z-index: 2; }
.work p { max-width: 340px; color: #cfcfca; position: relative; z-index: 2; margin: 14px 0 0; }
.work .go { position: absolute; left: clamp(20px, 2.4vw, 32px); bottom: clamp(20px, 2.4vw, 28px); font-family: var(--mono); font-weight: 700; color: var(--accent); z-index: 2; }
.work:hover .go { color: var(--mag); }
.work-main .boss { position: absolute; right: -4%; bottom: -6%; height: 96%; z-index: 1; filter: drop-shadow(0 0 40px rgba(255, 45, 149, .35)); }
.work-main .weap { position: absolute; bottom: 12%; height: 34%; z-index: 1; opacity: .9; }
.work-game { min-height: 270px; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.work-game h3 { font-size: clamp(30px, 3.2vw, 46px); }
.work-game p { max-width: 54%; }
.work-game .art { position: absolute; right: -2%; bottom: -10%; height: 110%; width: auto; z-index: 1; }
.work-cleared { min-height: 270px; border: 1px solid var(--line); }
.work-game, .work-cleared { padding-bottom: 72px; }
.work-cleared .go { color: var(--lime); }
.work-cleared p { max-width: 58%; }
.cleared-stamp {
  position: absolute;
  right: 20px;
  bottom: 22px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--lime);
  border: 4px solid var(--lime);
  padding: 2px 14px;
  transform: rotate(-10deg);
  opacity: .9;
}
.work-locked { min-height: 270px; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(255, 255, 255, .2); background: repeating-linear-gradient(45deg, #0b0b0d 0 12px, #0e0e10 12px 24px); }
.work-locked b { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); color: #26262a; display: block; line-height: 1; }
.work-locked span { font-family: var(--mono); color: var(--mut); font-size: 12px; }
.work-locked.wide { grid-column: 1 / -1; min-height: 150px; }

/* ---------- 日志 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { font-family: var(--mono); font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); color: var(--mut); }
.filters button[aria-selected="true"] { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
/* ---------- 武器架（首页锻造区） ---------- */
.rack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 6px; align-items: end; padding: 18px 0 0; border-bottom: 3px solid #2a2a2e; box-shadow: 0 10px 30px -18px var(--accent); }
.rack-item { --c: currentColor; display: grid; justify-items: center; gap: 6px; padding-bottom: 10px; color: var(--mut); text-align: center; }
.rack-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transition: transform .2s, filter .2s; }
.rack-item span { font-size: 12px; line-height: 1.3; color: var(--mut); transition: color .2s; }
.rack-item:hover img, .rack-item:focus-visible img { transform: translateY(-10px) rotate(-4deg); filter: drop-shadow(0 0 16px var(--c)); }
.rack-item:hover span { color: var(--ink); }
.rack-go { margin-top: 22px; }
/* 锻造区两个一级区块的标题：右侧是进对应 3D 页面的入口 */
.rack-head { flex-wrap: wrap; }
.sub-go { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 700; color: #000; background: var(--lime); padding: 8px 14px; letter-spacing: 0; white-space: nowrap; transition: background .15s; }
.sub-go:hover { background: var(--mag); color: #fff; }
/* 套装架：和武器架一样横向一排，人台正背面图；屏幕窄时横向滑动 */
.set-rack { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 6px; overflow-x: auto; padding: 14px 0 10px; border-bottom: 3px solid #2a2a2e; box-shadow: 0 10px 30px -18px var(--mag); scrollbar-width: thin; }
.set-item { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--mut); text-align: center; }
.set-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transition: transform .2s; }
.set-item:hover img, .set-item:focus-visible img { transform: translateY(-8px); }
.set-item span { font-size: 13px; line-height: 1.3; transition: color .2s; }
.set-item:hover span { color: var(--ink); }
.set-rack + .rack-head { margin-top: clamp(40px, 5vw, 64px); }
.badge-3d { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; font-style: normal; color: #000; background: var(--mag); padding: 2px 7px; }
.set-owner { display: grid; gap: 4px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--mag); }
.set-owner small { font-family: var(--mono); font-size: 11px; color: var(--mag); }
.set-owner b { font-size: 18px; }
.set-owner span { color: var(--mut); font-size: 13px; }
.set-owner em { font-style: normal; color: #d6d6d0; font-size: 14px; }
.arm-stage.is-sheet { background-size: contain, auto; background-repeat: no-repeat; background-position: center; background-origin: content-box; padding: 6%; }
.arm-stage.is-sheet::after, .arm-stage.is-sheet .arm-hint { display: none; }
.set-soon { font-family: var(--mono); font-size: 13px; color: var(--mag); padding: 7px 0; }
.filters .helm { margin-left: auto; border-color: var(--mag); color: var(--mag); }
.filters .helm[aria-pressed="true"] { background: var(--mag); color: #000; }

/* ---------- 3D 军械库 ---------- */
.arm-page { padding-top: 40px; }
.arm-lead { color: #bdbdb7; max-width: 720px; margin: 0 0 24px; }
.arm { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(220px, 300px); gap: 16px; align-items: start; }
.arm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(72vh, 720px); overflow-y: auto; scrollbar-width: thin; }
.arm-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px 6px 6px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid transparent; transition: background .15s; }
.arm-item img { width: 44px; height: 56px; object-fit: contain; }
.arm-item b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.arm-item small { font-family: var(--mono); font-size: 11px; }
.arm-item:hover { background: var(--panel-2); }
.arm-item[aria-pressed="true"] { border-left-color: currentColor; background: linear-gradient(90deg, color-mix(in srgb, currentColor 16%, var(--panel)), var(--panel) 80%); }
body.has-3d::after { display: none; }
.arm-stage { --c: var(--lime); position: relative; aspect-ratio: 4 / 5; max-height: min(72vh, 720px); width: 100%; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%), var(--panel); border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
.arm-stage.t-STR { --c: var(--str); }
.arm-stage.t-DEX { --c: var(--dex); }
.arm-stage.t-INT { --c: var(--int); }
.arm-stage::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 46%; height: 8%; transform: translateX(-50%); border: 2px solid var(--c); border-radius: 50%; opacity: .5; pointer-events: none; }
.arm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.arm-stage canvas:active { cursor: grabbing; }
.arm-loading { position: absolute; top: 12px; left: 12px; font-size: 12px; color: var(--c); background: rgba(0, 0, 0, .6); padding: 3px 8px; }
.arm-hint { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--mut); pointer-events: none; }
.arm-info { display: grid; gap: 14px; min-width: 0; }
.arm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.arm-info h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.2; }
.arm-info h2 small { display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--mut); margin-top: 6px; }
.arm-concept { position: relative; display: block; width: 100%; background: var(--panel); border: 1px solid var(--line); cursor: zoom-in; }
.arm-concept img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; }
.arm-concept span { position: absolute; left: 8px; top: 8px; font-family: var(--mono); font-size: 11px; color: var(--mag); }
.arm-stats { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.arm-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--panel); font-family: var(--mono); font-size: 13px; }
.arm-stats dt { color: var(--mut); }
.arm-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.arm-cost { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--mut); }

/* ---------- 精华长文 ---------- */
.reads-lead { color: #bdbdb7; max-width: 680px; margin: 0 0 26px; }
.reads { display: grid; gap: 14px; }
.read { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.read:hover { border-color: var(--lime); transform: translateX(4px); }
.read img { width: 100%; height: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.read-body { padding: clamp(14px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.read-meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--mut); }
.read-no { color: var(--lime); }
.read h3 { margin: 0; font-size: clamp(16px, 1.7vw, 21px); font-weight: 900; line-height: 1.4; }
.read p { margin: 0; color: #a9a9a3; font-size: 14px; }
.read .go { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--lime); }
.read:hover .go { color: var(--mag); }

.log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 0 0 36px clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--dot, var(--lime)); transform: rotate(45deg); }
.log-meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--mut); }
.log h3 { margin: 8px 0 6px; font-size: clamp(19px, 2vw, 24px); font-weight: 900; }
.log p { margin: 0; color: #bdbdb7; max-width: 720px; }
.log-media { width: clamp(96px, 14vw, 180px); aspect-ratio: 4 / 3; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.log-media img { width: 100%; height: 100%; object-fit: contain; }
.log-media.video { position: relative; display: grid; place-items: center; font-family: var(--mono); color: var(--lime); }
.log a.more { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--lime); }
.log iframe, .log video { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 12px; grid-column: 1 / -1; background: #000; }
.log video { aspect-ratio: auto; max-width: 520px; border: 1px solid var(--line); }

/* ---------- 队伍与方法 ---------- */
.party { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.member { background: var(--panel); border: 1px solid var(--line); padding: 22px; position: relative; }
.member .slot { position: absolute; right: 14px; top: 12px; font-family: var(--display); font-size: 36px; color: #1f1f23; }
.member:first-child { border-color: var(--lime); }
.member:first-child .slot { color: var(--lime); }
.member h4 { margin: 0; font-size: 21px; font-weight: 900; }
.member .role { font-family: var(--mono); font-size: 12px; color: var(--mag); padding-right: 48px; min-height: 2.6em; }
.member p { color: #bdbdb7; margin: 12px 0 0; font-size: 15px; }

.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.terminal { margin: 0; background: #000; border: 1px solid var(--line); padding: 22px; font-family: var(--mono); font-size: 14px; line-height: 1.9; overflow-x: auto; }
.terminal .d { color: var(--mut); }
.terminal .a { color: var(--mag); }
.terminal .o { color: var(--lime); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule { border: 1px solid var(--line); padding: 16px; background: var(--panel); }
.rule b { font-family: var(--mono); color: var(--lime); font-size: 12px; }
.rule h4 { margin: 4px 0 6px; font-size: 17px; font-weight: 900; }
.rule p { margin: 0; color: #a9a9a3; font-size: 14px; line-height: 1.7; }

/* ---------- 实机录屏 ---------- */
/* 两列宽度按 960×794 的画面比例配平：左边一大段的高度 ≈ 右边两段叠起来 */
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.clip { margin: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.clip-main { grid-column: span 2; grid-row: span 2; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.clip-frame { position: relative; aspect-ratio: 960 / 794; background: #000; overflow: hidden; }
.clip-main .clip-frame { flex: 1; aspect-ratio: auto; min-height: 0; }
/* 最后一行只剩一段或两段时铺满这一行，不留空格子 */
.clips .clip-side:last-child:nth-child(3n+4) { grid-column: 1 / -1; }
.clips .clip-side:last-child:nth-child(3n+4) .clip-frame { aspect-ratio: 21 / 9; }
.clips .clip-side:last-child:nth-child(3n+5) { grid-column: span 2; }
.clips .clip-side:last-child:nth-child(3n+5) .clip-frame { aspect-ratio: 2 / 1; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-frame::before { content: "● REC"; position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #ff3b3b; background: rgba(0, 0, 0, .65); padding: 2px 7px; pointer-events: none; }
.clip.is-max { position: fixed; inset: 0; z-index: 200; margin: 0; background: #000; border: 0; }
.clip.is-max .clip-frame { position: absolute; inset: 0; aspect-ratio: auto; }
.clip.is-max video { object-fit: contain; }
.clip.is-max .clip-ctrl, .clip.is-max figcaption, .clip.is-max .clip-frame::before { display: none; }
.clip-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 2; width: 44px; height: 44px; font-size: 20px; color: var(--ink); background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .3); }
.clip-close:hover { border-color: var(--lime); color: var(--lime); }
.clip-ctrl { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.clip-ctrl button { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 10px; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .25); }
.clip-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.clip-ctrl button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #000; }
.clip figcaption { padding: 12px 16px 14px; }
.clip figcaption b { display: block; font-size: 17px; font-weight: 900; }
.clip-main figcaption b { font-size: 20px; }
.clip figcaption small { font-family: var(--mono); font-size: 11px; color: var(--mut); }

/* ---------- 锻造：Tripo × Blender ---------- */
.forge-lead { max-width: 820px; color: #cfcfca; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.9; margin: 0 0 28px; }
.hl-tripo { color: var(--tripo); }
.hl-blender { color: var(--blender); }

/* ---------- 角色大图（首页 THE CAST） ---------- */
.cast-lead, .owners-lead { max-width: 820px; color: #cfcfca; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.9; margin: 0; }
.cast { display: grid; gap: 14px; }
.cast-heroes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cast-npcs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cast-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.cast-card:hover { border-color: rgba(212, 255, 58, .45); }
.cast-card.is-npc:hover { border-color: rgba(255, 176, 32, .45); }
.cast-fig {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 58% 42% at 50% 56%, rgba(212, 255, 58, .13), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .025) 39px 40px),
    linear-gradient(180deg, #111114, #070708);
}
.is-npc .cast-fig { background:
    radial-gradient(ellipse 58% 42% at 50% 56%, rgba(255, 176, 32, .12), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .025) 39px 40px),
    linear-gradient(180deg, #111114, #070708); }
.cast-fig::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 3%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
.cast-fig img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease, transform .5s ease; }
.cast-card:hover .cast-fig img { transform: scale(1.03); }
.cast-fig .m-gear, .cast-card.geared .m-base { opacity: 0; }
.cast-card.geared .m-gear { opacity: 1; }
.cast-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 20px; }
.cast-body h4 { margin: 2px 0 0; font-size: 22px; font-weight: 900; line-height: 1.2; }
.cast-body h4 small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--lime); letter-spacing: .02em; }
.cast-body p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.75; }
.cast-body .cast-quote { color: var(--ink); font-weight: 700; }
.is-npc .cast-body h4 small { color: var(--amber); }
.cast-more { display: inline-block; margin-top: 22px; font-family: var(--mono); font-weight: 700; color: var(--amber); }
.cast-more:hover { color: var(--mag); }

/* 长篇人物背景：收起时露 5 行 */
.story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.story.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.story-more { margin-top: -4px; padding: 0; font-family: var(--mono); font-size: 12px; color: var(--lime); }
.story-more:hover { text-decoration: underline; }
.npc-body .story-more, .is-npc .story-more { color: var(--amber); }

/* 甲的原主人：一人一块名牌 */
.owner-tabs { margin: 28px 0 18px; }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plate { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 22px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); }
.plate[hidden] { display: none; }
.plate::before { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #3a3a40; background: var(--bg); }
.plate-set { font-family: var(--mono); font-size: 11px; color: var(--mut); border: 1px solid var(--line); padding: 1px 7px; }
.plate h4 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.plate h4 small { margin-left: 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--amber); }
.plate p { margin: 0; color: #bdbdb7; font-size: 14px; line-height: 1.75; }
.plate .plate-wish { color: var(--ink); font-weight: 700; }
.plate-wish b { margin-right: 10px; padding: 1px 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #000; background: var(--amber); }
.plate .plate-link { font-family: var(--mono); font-size: 12px; color: var(--lime); }
.gear-btn { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--lime); background: transparent; border: 1px solid var(--lime); padding: 7px 12px; cursor: pointer; transition: background .15s, color .15s; }
.gear-btn:hover, .gear-btn[aria-pressed="true"] { background: var(--lime); color: #000; }
.cast-heroes + .sub-head, .cast-lead + .sub-head { margin-top: clamp(32px, 4vw, 52px); }


.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.tool { --c: var(--ink); position: relative; display: block; padding: clamp(22px, 2.6vw, 34px); background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.tool:hover { transform: translateY(-3px); border-color: var(--c); }
.tool.is-tripo { --c: var(--tripo); border-color: rgba(255, 45, 149, .55); background: linear-gradient(150deg, #200a15, var(--panel) 62%); }
.tool.is-blender { --c: var(--blender); border-color: rgba(232, 125, 13, .5); background: linear-gradient(150deg, #1f1306, var(--panel) 62%); }
.tool-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-right: 30px; }
.tool-word { height: clamp(30px, 3.2vw, 42px); width: auto; }
.tool-mark { height: clamp(34px, 3.6vw, 48px); width: auto; }
.tool-name { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.01em; }
.tool-role { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border: 1px solid currentColor; color: var(--c); }
.tool p { color: #cfcfca; margin: 18px 0 22px; max-width: 600px; line-height: 1.85; }
.tool-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tool-facts div { padding: 16px 12px 0 0; }
.tool-facts b { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.05; color: var(--c); white-space: nowrap; }
.tool-facts span { display: block; margin-top: 6px; font-size: 13px; color: var(--mut); line-height: 1.5; }
.tool .arr { position: absolute; right: 22px; top: 18px; font-size: 22px; color: var(--mut); }

.forge-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.forge-more { font-family: var(--mono); font-weight: 700; color: var(--lime); }
.forge-more:hover { color: var(--mag); }
.tm-note { font-family: var(--mono); font-size: 11px; color: #5d5d59; margin: 14px 0 0; }
.forge-foot .tm-note { margin: 0; }

/* Tripo 邀请福利：锻造区横跨两列的福利券，两侧打孔 */
.perk { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 32px); padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.6vw, 32px); border: 2px dashed var(--tripo); background: linear-gradient(100deg, rgba(255, 45, 149, .16), rgba(255, 45, 149, .04) 55%, transparent); box-shadow: 0 0 0 1px rgba(255, 45, 149, .25), 0 0 60px rgba(255, 45, 149, .18); transition: transform .15s, box-shadow .15s; }
.perk:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--lime), 0 0 60px rgba(255, 45, 149, .18); }
.perk::before, .perk::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--tripo); }
.perk::before { left: -12px; clip-path: inset(0 0 0 50%); }
.perk::after { right: -12px; clip-path: inset(0 50% 0 0); }
.perk-stub { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--tripo); writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed rgba(255, 45, 149, .5); padding-left: 14px; }
.perk-big { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.perk-big b { font-family: var(--display); font-size: clamp(34px, 4.6vw, 60px); line-height: 1; color: var(--lime); text-shadow: 0 0 24px rgba(212, 255, 58, .45); }
.perk-big b small { font-size: .42em; margin-left: 6px; color: var(--ink); text-shadow: none; }
.perk-big span { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); }
.perk-big em, .coin b { font-style: normal; color: var(--lime); }
.perk-big em { color: var(--tripo); }
.perk p { margin: 10px 0 0; color: #cfcfca; font-size: 14px; line-height: 1.7; max-width: 640px; }
.perk-go { font-family: var(--mono); font-weight: 700; font-size: 14px; padding: 14px 18px; background: var(--tripo); color: #000; white-space: nowrap; box-shadow: 0 0 24px rgba(255, 45, 149, .55); transition: background .15s; }
.perk:hover .perk-go { background: var(--lime); }
.ad-note { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--mut); border: 1px solid var(--line); padding: 1px 6px; margin-left: 8px; vertical-align: middle; }

/* 首屏投币条：一枚会翻面的 +500 金币 */
.coin { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 560px; padding: 12px 18px 12px 12px; border: 2px solid var(--tripo); background: linear-gradient(90deg, rgba(255, 45, 149, .22), rgba(255, 45, 149, .04)); box-shadow: 0 0 32px rgba(255, 45, 149, .3); font-size: 15px; line-height: 1.6; transition: transform .15s, box-shadow .15s; }
.coin:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--lime), 0 0 32px rgba(255, 45, 149, .3); }
.coin i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4ffb0, var(--lime) 45%, #8fae17); color: #000; font-style: normal; font-family: var(--display); font-size: 13px; box-shadow: 0 0 18px rgba(212, 255, 58, .6), inset 0 0 0 3px rgba(0, 0, 0, .18); animation: coin-flip 2.4s linear infinite; }
.coin-txt { display: grid; gap: 2px; }
.coin-txt small { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--tripo); }
.coin u { flex: none; text-decoration: none; font-family: var(--mono); font-weight: 700; color: var(--tripo); white-space: nowrap; }
@keyframes coin-flip { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }


.size { border: 1px solid var(--line); background: var(--panel); padding: 18px 22px 12px; }
.size-cap { font-family: var(--mono); font-size: 12px; color: var(--mut); margin: 0 0 6px; }
.size-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 200px; gap: 18px; align-items: center; padding: 10px 0; }
.size-name { font-weight: 700; }
.size-bar { height: 16px; background: #18181b; }
.size-bar i { display: block; height: 100%; min-width: 4px; background: var(--tripo); }
.size-row + .size-row .size-bar i { background: var(--accent); }
.size-row b { font-family: var(--mono); font-size: 14px; text-align: right; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.signal { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 26px; border: 2px solid var(--ink); position: relative; transition: background .15s, color .15s; }
.signal:hover { background: var(--lime); color: #000; border-color: var(--lime); }
.signal small { font-family: var(--mono); font-size: 12px; opacity: .7; }
.signal strong { font-family: var(--display); font-size: clamp(32px, 4.6vw, 64px); line-height: 1; word-break: break-all; }
.signal .arr { position: absolute; right: 22px; top: 18px; font-size: 28px; }
.signal.quiet { border-color: var(--line); }
.signal.quiet strong { font-size: clamp(26px, 3vw, 40px); }

.foot { margin-top: clamp(80px, 10vw, 140px); padding: 24px var(--pad) 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--mut); }

/* ---------- 游戏页 ---------- */
.g-hero { position: relative; min-height: min(88vh, 880px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 20px; padding-top: 32px; }
.g-hero .giant { font-size: clamp(54px, 7.4vw, 116px); position: relative; z-index: 3; }
.g-title { margin: 0; position: relative; z-index: 3; }
.g-title img { width: min(100%, 640px); height: auto; filter: drop-shadow(0 6px 30px rgba(255, 45, 149, .28)); }
.back { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--mut); margin-bottom: 26px; }
.back:hover { color: var(--lime); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.g-tagline { font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; line-height: 1.35; margin: 28px 0 14px; max-width: 640px; }
.g-pitch { color: var(--mut); max-width: 600px; line-height: 1.9; margin: 0 0 40px; }
.g-boss { position: relative; height: 100%; min-height: 560px; display: grid; place-items: end center; }
.g-boss img { position: relative; z-index: 2; height: min(780px, 90vw); object-fit: contain; filter: drop-shadow(0 0 60px rgba(255, 59, 59, .35)); }
.g-boss .stage-ring { border-color: #ff3b3b; }

/* 宣传片：视频、关键画面 */
.trailer { margin: 0; display: grid; gap: 10px; }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.trailer figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.trailer figcaption b { font-size: clamp(17px, 1.8vw, 22px); font-weight: 900; }
.trailer figcaption small { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.keyart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 28%); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-color: var(--accent) transparent; }
.shot { margin: 0; display: grid; gap: 8px; align-content: start; scroll-snap-align: start; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .2s; }
.shot:hover img { transform: translateY(-3px); }
.shot figcaption { font-size: 14px; color: #bdbdb7; line-height: 1.5; }
.shot figcaption span { display: block; font-family: var(--mono); font-size: 11px; color: var(--mag); letter-spacing: .06em; }

.loop { display: flex; flex-wrap: wrap; gap: 0; counter-reset: step; }
.loop li { list-style: none; position: relative; flex: 1 1 160px; padding: 18px 26px 18px 18px; background: var(--panel); border: 1px solid var(--line); margin: 0 -1px -1px 0; font-weight: 900; font-size: 17px; }
.loop li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12px; color: var(--lime); font-weight: 400; }
.loop li:not(:last-child)::after { content: "→"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--mag); font-family: var(--mono); }

.world { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.world-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.9; margin: 0; }
.titles { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.titles li { font-weight: 900; padding: 8px 14px; border: 1px solid var(--line); }
.titles li:last-child { background: var(--lime); color: #000; border-color: var(--lime); }
.titles li + li::before { content: "→ "; color: var(--mag); }
.titles li:last-child::before { color: #000; }
.quote { margin: 0; padding: 28px; border-left: 4px solid var(--mag); background: var(--panel); }
.quote p { font-size: clamp(26px, 3.2vw, 42px); font-weight: 900; line-height: 1.3; margin: 0 0 12px; }
.quote cite { font-family: var(--mono); font-size: 12px; color: var(--mut); font-style: normal; }

.npcs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.npc { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s; }
.npc:hover { border-color: var(--amber); }
.npc-fig { position: relative; aspect-ratio: 3 / 4; background: radial-gradient(circle at 50% 70%, rgba(255, 176, 32, .18), transparent 65%), var(--panel-2); }
.npc-fig img { position: absolute; inset: 6% 0 0; width: 100%; height: 94%; object-fit: contain; object-position: bottom; transition: transform .25s; }
.npc:hover .npc-fig img { transform: scale(1.04); }
.npc-3d { position: absolute; inset: 0; display: block; }
.npc-3d-go { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #000; background: var(--lime); padding: 4px 9px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.npc-3d:hover .npc-3d-go, .npc-3d:focus-visible .npc-3d-go { opacity: 1; transform: none; }
.cast-bio { margin: 0; color: #bdbdb7; font-size: 14px; line-height: 1.8; }
.arm-info .role { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--amber); }
.arm-item.t-NPC, .arm-stage.t-NPC { --c: var(--amber); }
.arm-item.t-ENEMY, .arm-stage.t-ENEMY { --c: var(--mag); }
.arm-item img { border-radius: 0; }
.npc-fig .place { position: absolute; left: 10px; top: 10px; z-index: 2; }
.npc-body { padding: 16px; }
.npc-body h4 { margin: 0; font-size: 22px; font-weight: 900; }
.npc-body h4 small { font-family: var(--mono); font-size: 12px; color: var(--mut); font-weight: 400; margin-left: 6px; }
.npc-body p { margin: 8px 0 0; font-size: 14px; color: #bdbdb7; line-height: 1.7; }
.npc-body p.role { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--amber); }

.boss-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.boss-card { background: linear-gradient(160deg, #220808, var(--panel) 70%); border: 1px solid rgba(255, 59, 59, .5); padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.boss-card h3 { font-family: var(--display); font-size: clamp(40px, 5vw, 72px); margin: 12px 0; line-height: 1; }
.boss-card p { color: #cfcfca; margin: 0; line-height: 1.85; }
.boss-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.figure-card { position: relative; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
a.figure-card { display: block; cursor: pointer; transition: border-color .2s; }
a.figure-card:hover { border-color: var(--accent); }
.figure-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; object-position: bottom; transition: transform .25s; }
.figure-card:hover img { transform: scale(1.05); }
.figure-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); font-weight: 700; font-size: 15px; }
.figure-card figcaption small { display: block; font-family: var(--mono); font-size: 11px; color: var(--mut); font-weight: 400; }
.figure-card.enemy:hover { border-color: var(--mag); }
.figure-card.player:hover { border-color: var(--lime); }
.figure-card.boss:hover { border-color: #ff3b3b; }
.bestiary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bestiary .figure-card:first-child { grid-row: span 2; grid-column: span 2; }
.bestiary .figure-card:first-child img { aspect-ratio: auto; height: 100%; }
.players { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }

.turntable { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 18px; }
.tt-3d { display: grid; gap: 12px; min-width: 0; }
.tt-3d .filters { margin: 0; }
.tt-stage3d { aspect-ratio: 4 / 3; max-height: none; }
.tt-copy p { color: #bdbdb7; margin: 0 0 12px; line-height: 1.85; }

.armory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.weapon { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); padding: 18px; overflow: hidden; transform-style: preserve-3d; transition: transform .2s, border-color .2s; }
.weapon:hover { border-color: currentColor; }
.weapon img { height: clamp(260px, 30vw, 400px); margin: 0 auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); transition: transform .3s; }
.weapon:hover img { transform: rotate(-6deg) scale(1.04); }
.weapon h4 { margin: 12px 0 2px; font-size: 20px; font-weight: 900; color: var(--ink); }
.weapon p { margin: 0; color: var(--mut); font-size: 14px; }
.weapon .tag { position: absolute; top: 14px; left: 14px; }

.set-filter { margin-bottom: 18px; }
.sets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.set { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.set:hover { border-color: var(--accent); }
.set img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .25s; }
.set:hover img { transform: scale(1.06); }
.set figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.set[hidden] { display: none; }

.zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.zone { padding: 22px 18px 26px; border-right: 1px solid var(--line); position: relative; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.zone:last-child { border-right: 0; background: linear-gradient(180deg, #1c0606, var(--bg)); }
.zone .no { font-family: var(--display); font-size: 48px; color: #1f1f23; line-height: 1; }
.zone:first-child .no { color: var(--lime); }
.zone:last-child .no { color: #ff3b3b; }
.zone h4 { margin: 18px 0 4px; font-size: 22px; font-weight: 900; }
.zone .lv { font-family: var(--mono); font-size: 12px; color: var(--lime); }
.zone p { margin: 8px 0 0; color: var(--mut); font-size: 14px; }
.zone .here { position: absolute; top: 18px; right: 14px; font-family: var(--mono); font-size: 11px; background: var(--lime); color: #000; padding: 1px 6px; }


/* 玩法命题：虚线框表示还没测，数字是过关线 */
.hypo { border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
.hypo-claim { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; }
.hypo-claim .tag { margin-top: 6px; }
.hypo-claim p { margin: 0; font-size: clamp(20px, 2.3vw, 30px); font-weight: 900; line-height: 1.4; }
.hypo-head { font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 10px 26px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); letter-spacing: .06em; }
.hypo-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hypo-bars div { padding: 22px 26px 24px; border-right: 1px dashed var(--line); }
.hypo-bars div:last-child { border: 0; }
.hypo-bars b { font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.hypo-bars span { color: #cfcfca; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); }

/* ---------- 入场与灯箱 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; object-fit: contain; }
.lightbox p { font-family: var(--mono); font-size: 13px; color: var(--mut); text-align: center; margin: 14px 0 0; }
.lightbox button { position: absolute; top: 16px; right: 20px; font-family: var(--mono); font-size: 22px; color: var(--lime); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid-select { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .party { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .npcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .players { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .hero, .g-hero { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 420px; }
  .stage-fig { height: 440px; }
  .hud-name { top: 2%; }
  .g-boss { min-height: 420px; }
  .g-boss img { height: 480px; }
  .grid-select { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work-main { grid-row: auto; min-height: 600px; }
  .work-main .weap { display: none; }
  .work-main .boss { height: 62%; right: -8%; bottom: -4%; }
  .work-main p { max-width: 70%; }
  .method, .contact, .world, .boss-row, .turntable, .tools, .clips { grid-template-columns: minmax(0, 1fr); }
  .cast-heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast-npcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clip-main { grid-row: auto; grid-column: auto; }
  .clips .clip-side:last-child { grid-column: auto; }
  .clips .clip-side:last-child .clip-frame { aspect-ratio: 960 / 794; }
  .clip-main .clip-frame { aspect-ratio: 960 / 794; }
  .party { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-game p { max-width: 62%; }
  .bestiary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bestiary .figure-card:first-child { grid-column: span 3; grid-row: auto; }
  .bestiary .figure-card:first-child img { aspect-ratio: 4 / 3; }
  .armory { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: minmax(0, 1fr); }
  .read { grid-template-columns: minmax(0, 1fr); }
    .rack { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; }
    .sub-go { margin-left: 0; }
  .arm { grid-template-columns: minmax(0, 1fr); }
  .arm-stage { order: -1; aspect-ratio: 1; }
  .arm-list { grid-auto-flow: column; grid-auto-columns: 200px; overflow-x: auto; max-height: none; }
  .keyart { grid-auto-columns: 78%; }
  .log-media { width: 100%; max-width: 320px; }
}

@media (max-width: 560px) {
  .perk { grid-template-columns: minmax(0, 1fr); }
  .perk-stub { writing-mode: horizontal-tb; transform: none; border: 0; padding: 0; }
  .perk-go { justify-self: start; }
  .grid-select { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .npcs, .sets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zones { grid-template-columns: minmax(0, 1fr); }
  .zone { min-height: 0; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .hypo-claim { flex-direction: column; gap: 10px; }
  .hypo-bars { grid-template-columns: minmax(0, 1fr); }
  .hypo-bars div { border-right: 0; border-bottom: 1px dashed var(--line); }
  .party { grid-template-columns: minmax(0, 1fr); }
  .cart { width: 270px; padding-right: 84px; }
  .cart b { font-size: 18px; }
  .cart-locked { width: 140px; padding-right: 16px; }
  .tool-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .size-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .size-row b { text-align: left; }
  .clock { display: none; }
  .hud-note { display: none; }
  /* 手机上角色卡改成横向滑动 */
  .cast-heroes, .cast-npcs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: none; }
  .cast-heroes::-webkit-scrollbar, .cast-npcs::-webkit-scrollbar { display: none; }
  .cast-card { scroll-snap-align: start; }
  .plates { grid-template-columns: none; }
  .plate h4 small { display: block; margin: 4px 0 0; }
}

/* 手机（触屏或小屏）：去掉滚动时最吃 GPU 的装饰——
   铺满全屏的扫描线混合层、顶栏毛玻璃、标题故障字的混合模式、选角台光圈旋转和光晕模糊。
   这些在每一帧滚动时都要整屏重新合成，是手机上滚动发涩、掉帧的主因。 */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  body::after { display: none; }
  .bar { background: rgba(5, 5, 5, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glitch::before, .glitch::after { mix-blend-mode: normal; } /* 故障字照样闪动（只是换位置裁切，很便宜），只去掉混合模式 */
  .stage-ring.inner { animation: none; }
  .stage-glow { filter: none; }
  .coin i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
