/* =========================================================
 * ARENA BREAKOUT · DARK ZONE MBTI
 * CA Visual Identity — Tactical HUD Redesign
 *
 * Color:  #0a0b0c(背景黑) / #596671(冷灰主色) / #ca4d32(橙红点缀)
 * Font:   Refrigerator Deluxe / HeadlinerNo.45 / Roboto Condensed / 方正兰亭黑
 * ========================================================= */

/* ------------ 0. 字体 ------------ */
@font-face {
  font-family: 'Refrigerator';
  src: url('../assets/fonts/Refrigerator-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Refrigerator';
  src: url('../assets/fonts/Refrigerator-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Refrigerator';
  src: url('../assets/fonts/Refrigerator-Heavy.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Refrigerator';
  src: url('../assets/fonts/Refrigerator-Extrabold.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Headliner45';
  src: url('../assets/fonts/HeadlinerNo45.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'RobotoCondensed';
  src: url('../assets/fonts/RobotoCondensed-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'RobotoCondensed';
  src: url('../assets/fonts/RobotoCondensed-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FZLT';
  src: url('../assets/fonts/FZLTZHK-GB18030.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FZLT';
  src: url('../assets/fonts/FZLTCHK-GBK.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ------------ 1. 变量 ------------ */
:root{
  /* 色彩 — 严格按手册比例 */
  --bg:         #0a0b0c;    /* 纯黑底 */
  --bg-2:       #111316;    /* 卡片/模块底 */
  --bg-3:       #181b1f;    /* hover / 分层 */
  --line:       #2a2f34;    /* 细边框 */
  --line-2:     #3d444a;    /* 高亮边框 */
  --steel:      #596671;    /* 冷灰主色（手册 70%）*/
  --steel-2:    #7b8891;    /* 冷灰浅 */
  --steel-3:    #9ba6ae;    /* 冷灰亮 */
  --accent:     #ca4d32;    /* 橙红点缀（手册 ≤10%）*/
  --accent-2:   #e06a4f;    /* 橙红亮 */
  --accent-dim: #7a2e1e;    /* 橙红暗 */
  --text:       #e8ebee;    /* 主文字 */
  --text-dim:   #aab3bb;    /* 次文字 */
  --text-mute:  #6c757d;    /* 弱化文字 */
  --danger:     #c23f2b;
  --ok:         #6a8f5f;

  /* 字体 */
  --ff-display: 'Refrigerator', 'RobotoCondensed', 'Headliner45', 'FZLT', 'PingFang SC', sans-serif;
  --ff-num:     'Headliner45', 'Refrigerator', 'RobotoCondensed', monospace;
  --ff-en:      'RobotoCondensed', 'Refrigerator', 'Arial Narrow', sans-serif;
  --ff-cn:      'FZLT', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 其他 */
  --radius: 2px;              /* 几乎无圆角，军工硬朗 */
  --radius-card: 4px;
  --shadow-xl: 0 24px 60px rgba(0,0,0,.65);
  --shadow-md: 0 10px 30px rgba(0,0,0,.5);
}

/* ------------ 2. Reset ------------ */
*,*::before,*::after{ box-sizing:border-box; }
html{
  background: var(--bg);
  color: var(--text);
}
html,body{
  margin:0; padding:0;
  font-family: var(--ff-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body{
  background: transparent; /* 透明 —— 让 .bg 的 fixed z=-1 层（包括 KV）能透过来 */
}
html,body{ min-height:100%; }
body{ overflow-x:hidden; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img{ display:block; max-width:100%; }
::selection{ background: var(--accent); color:#fff; }

/* 全局 focus — 统一为细外框，避免被 hover 样式误继承 */
*:focus{ outline: none; }
*:focus-visible{
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.codex-card:focus,
.codex-card:active,
.chip:focus,
.chip:active,
.btn-primary:focus,
.btn-ghost:focus,
.q-opt:focus{ outline: none; }
.codex-card:focus-visible{ outline: 1px solid var(--accent); outline-offset: 2px; }

/* 主滚动条（暗区硬朗风）*/
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:#0a0b0c; }
::-webkit-scrollbar-thumb{ background:#2a2f34; }
::-webkit-scrollbar-thumb:hover{ background:#3d444a; }

/* ------------ 3. 背景层（KV + 扫描线 + 网格 + 噪点）------------ */
.bg{
  position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;
  background: transparent; /* body 已有黑底，这里不再覆盖 */
}
/* 内容层：不依赖 z-index，只要 body 背景透明即可让 fixed -1 的 KV 露出 */
.bg-grain{
  position:absolute; inset:-20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity:.22; mix-blend-mode:overlay;
}
/* 地球网格 — 低调透明，仅在封面/结果可见 */
.bg-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(89,102,113,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89,102,113,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.9) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.9) 0%, transparent 70%);
}
/* 扫描线 */
.bg-scan{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,0) 3px,
    rgba(255,255,255,.015) 4px,
    rgba(255,255,255,0) 5px
  );
}
/* KV 大图 — 封面层使用，由 body.on-cover class 控制显隐（兼容所有浏览器）*/
.bg-kv{
  position:absolute; inset:0;
  background:
    /* 左侧重压保护文字区，右侧保留雕像可见度 */
    linear-gradient(90deg, rgba(10,11,12,.88) 0%, rgba(10,11,12,.68) 26%, rgba(10,11,12,.3) 55%, rgba(10,11,12,.1) 100%),
    /* 顶底整体暗化 */
    linear-gradient(180deg, rgba(10,11,12,.62) 0%, rgba(10,11,12,.08) 25%, rgba(10,11,12,.12) 65%, rgba(10,11,12,.72) 100%),
    /* KV 本体：放大裁剪到只显示雕像核心，切掉顶部 1ST ANNIVERSARY 和底部 4500 BONDS */
    url('../assets/brand/kv-anniversary.jpg');
  background-position: center center, center center, 32% 35%;
  background-size: 100% 100%, 100% 100%, auto 180%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
body.on-cover .bg-kv{ opacity: 1; }

/* ------------ 4. 顶部导航（战术 HUD 条）------------ */
.nav{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, rgba(10,11,12,.92), rgba(10,11,12,.7) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(89,102,113,.2);
}
.nav::before{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
  opacity:.45;
}
.nav-inner{
  max-width: 1180px; margin:0 auto; padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.nav-brand{ display:flex; align-items:center; gap:10px; }
.nav-dot{
  width:10px; height:10px; background: var(--accent);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); /* 菱形标记 */
}
.nav-title{
  font-family: var(--ff-display);
  font-weight:800; font-size:17px; letter-spacing:.06em;
  text-transform: uppercase;
}
.nav-title em{
  display:block; font-family: var(--ff-en); font-weight:700;
  font-size:10px; letter-spacing:.3em; color: var(--steel-3);
  margin-top:2px; font-style:normal;
}
.nav-links{ display:flex; gap:4px; }
.nav-links a{
  position:relative; padding:8px 14px;
  font-family: var(--ff-display); font-weight:700; font-size:13px;
  letter-spacing:.15em; text-transform: uppercase;
  color: var(--text-dim); transition: color .2s;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a::before{ content:"["; margin-right:6px; color: var(--steel); opacity:0; transition: opacity .2s; }
.nav-links a::after {  content:"]"; margin-left:6px;  color: var(--steel); opacity:0; transition: opacity .2s; }
.nav-links a:hover::before, .nav-links a:hover::after{ opacity:1; color: var(--accent); }

/* ------------ 5. Screen 容器 + 转场 ------------ */
main{
  position:relative;
  min-height: calc(100vh - 62px);
  padding: 0 0 120px;
}
.screen{
  display:none;
  position:relative;
  max-width: 1180px; margin: 0 auto;
  padding: 48px 24px 40px;
  animation: none;
}
.screen.is-active{ display:block; }
.screen.is-leaving{ display:block; }

/* 切页动画 */
@keyframes ca-enter-fwd{
  from{ opacity:0; transform: translate3d(24px,0,0); }
  to  { opacity:1; transform: translate3d(0,0,0); }
}
@keyframes ca-enter-back{
  from{ opacity:0; transform: translate3d(-24px,0,0); }
  to  { opacity:1; transform: translate3d(0,0,0); }
}
@keyframes ca-leave-fwd{
  from{ opacity:1; transform: translate3d(0,0,0); }
  to  { opacity:0; transform: translate3d(-24px,0,0); }
}
@keyframes ca-leave-back{
  from{ opacity:1; transform: translate3d(0,0,0); }
  to  { opacity:0; transform: translate3d(24px,0,0); }
}
.screen.screen-enter-fwd { animation: ca-enter-fwd .5s cubic-bezier(.22,.8,.35,1) both; }
.screen.screen-enter-back{ animation: ca-enter-back .5s cubic-bezier(.22,.8,.35,1) both; }
.screen.screen-leave-fwd { animation: ca-leave-fwd .4s ease-in both; position:absolute; inset:0 0 auto 0; }
.screen.screen-leave-back{ animation: ca-leave-back .4s ease-in both; position:absolute; inset:0 0 auto 0; }

/* =========================================================
 * 6. 封面（Cover）
 * ========================================================= */
.screen--cover{ padding-top: 40px; padding-bottom: 80px; }
.cover-wrap{
  position:relative;
  min-height: calc(100vh - 180px);
  display:flex; flex-direction:column; justify-content:center;
  gap: 16px;
  max-width: 720px;
}

/* HUD 角标（四个角）*/
.hud-corners{ position:absolute; inset:0; pointer-events:none; }
.hud-corners::before,
.hud-corners::after,
.hud-corners > span:nth-child(1),
.hud-corners > span:nth-child(2){
  content:""; position:absolute; width:30px; height:30px;
  border: 1px solid var(--steel); opacity:.55;
}
.hud-corners::before{ top:0; left:0; border-right:none; border-bottom:none; }
.hud-corners::after { top:0; right:0; border-left:none;  border-bottom:none; }
.hud-corners > span:nth-child(1){ bottom:0; left:0;  border-right:none; border-top:none; }
.hud-corners > span:nth-child(2){ bottom:0; right:0; border-left:none;  border-top:none; }

.cover-eyebrow{
  font-family: var(--ff-en);
  font-weight:700; font-size:12px; letter-spacing:.36em;
  color: var(--accent);
  text-transform: uppercase;
  display:inline-flex; align-items:center; gap:12px;
  width:fit-content;
}
.cover-eyebrow::before{
  content:""; width:28px; height:1px; background: var(--accent);
}
.cover-title{
  font-family: var(--ff-display);
  font-weight:900; font-size: clamp(48px, 8.2vw, 108px);
  line-height: .92; letter-spacing:.01em;
  margin: 6px 0 4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.cover-title .grad{
  display:inline-block;
  color: var(--accent);
  font-family: var(--ff-display);
  font-weight:900;
  position:relative;
}
.cover-title .grad::after{
  content:""; position:absolute; left:-4px; right:-4px; bottom:.12em; height:.16em;
  background: var(--accent); opacity:.18;
  z-index:-1;
}
.cover-sub{
  max-width: 560px;
  font-family: var(--ff-cn);
  font-weight:500; font-size: 15px; line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 10px;
}

/* CTA 按钮区 */
.cover-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:stretch;
}
.cover-cta,
.cover-ghost{
  margin:0;
  min-height:52px;
}

/* 统计 metadata */
.cover-meta{
  display:flex; gap: 44px; margin-top: 30px;
  border-top: 1px solid rgba(89,102,113,.25);
  border-bottom: 1px solid rgba(89,102,113,.25);
  padding: 18px 0;
  width: fit-content;
}
.cover-meta > div{
  display:flex; flex-direction:column; gap:2px;
  font-family: var(--ff-num);
}
.cover-meta strong{
  font-size: 34px; font-weight:400;
  color: #fff; line-height:1;
  letter-spacing:.02em;
}
.cover-meta span{
  font-family: var(--ff-cn);
  font-size: 11px; letter-spacing: .2em; color: var(--steel-3);
  margin-top: 4px;
}

/* 漂浮预览图 */
.cover-float{
  position:absolute; right: -40px; top: 40px;
  width: 520px; height: 520px;
  pointer-events:none;
  display:none;
}
@media (min-width: 980px){ .cover-float{ display:block; } }
.float-card{
  position:absolute;
  border: 1px solid rgba(89,102,113,.4);
  background: rgba(16,18,21,.7);
  overflow:hidden;
  box-shadow: var(--shadow-md);
  animation: floaty 7s ease-in-out infinite;
}
.float-card::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(202,77,50,0) 60%, rgba(202,77,50,.22));
  z-index:1; pointer-events:none;
}
.float-card::after{
  content:""; position:absolute; top:-1px; left:-1px; width:14px; height:14px;
  border-top:2px solid var(--accent); border-left:2px solid var(--accent);
}
.float-card img{ width:100%; height:100%; object-fit:cover; filter: contrast(1.04) saturate(1.02); }
.float-card.f1{ width:180px; height:230px; top: 20px;   right: 40px; transform: rotate(-3deg); animation-delay:0s; }
.float-card.f2{ width:150px; height:190px; top: 80px;   right: 260px; transform: rotate(4deg);  animation-delay:-1.4s; }
.float-card.f3{ width:170px; height:220px; top: 240px;  right: 20px;  transform: rotate(2deg);  animation-delay:-2.8s; }
.float-card.f4{ width:140px; height:180px; top: 300px;  right: 220px; transform: rotate(-4deg); animation-delay:-1s; }
.float-card.f5{ width:130px; height:170px; top: 60px;   right: 440px; transform: rotate(3deg);  animation-delay:-3.5s; }
.float-card.f6{ width:160px; height:210px; top: 310px;  right: 390px; transform: rotate(-2deg); animation-delay:-2s; }
@keyframes floaty{
  0%,100%{ transform: translateY(0) rotate(var(--r,0)); }
  50%    { transform: translateY(-10px) rotate(var(--r,0)); }
}

/* =========================================================
 * 7. 按钮系统（方括号 + 一级橙 / 二级描边 / Ghost）
 * ========================================================= */
.btn-primary,
.btn-ghost{
  position:relative;
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 28px;
  font-family: var(--ff-display);
  font-weight: 800; font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor:pointer;
  user-select:none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary::before,
.btn-primary::after,
.btn-ghost::before,
.btn-ghost::after{
  content:""; position:absolute; width:8px; height:8px;
}
/* 按钮的四个角 cut */
.btn-primary::before{ top:-1px;   left:-1px;   border-top:2px solid #fff; border-left:2px solid #fff; }
.btn-primary::after { bottom:-1px; right:-1px; border-bottom:2px solid #fff; border-right:2px solid #fff; }
.btn-primary:hover{
  background: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 10px 30px rgba(202,77,50,.35);
  transform: translateY(-1px);
}
.btn-primary:active{ transform: translateY(0); }
.btn-primary:disabled{
  background: #2a2f34; color: #5a6068;
  border-color: #2a2f34; cursor: not-allowed;
  opacity:.7;
  transform:none; box-shadow:none;
}
.btn-primary:disabled::before,
.btn-primary:disabled::after{ display:none; }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--steel);
}
.btn-ghost::before{ top:-1px;   left:-1px;   border-top:2px solid var(--accent); border-left:2px solid var(--accent); }
.btn-ghost::after { bottom:-1px; right:-1px; border-bottom:2px solid var(--accent); border-right:2px solid var(--accent); }
.btn-ghost:hover{
  color: #fff; border-color: var(--steel-3);
  background: rgba(89,102,113,.12);
}
.btn-ghost:disabled{
  color: #555; border-color:#2a2f34; cursor:not-allowed;
}
.btn-ghost:disabled::before,
.btn-ghost:disabled::after{ display:none; }

/* Icon Button */
.icon-btn{
  width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(16,18,21,.5);
  transition: all .2s;
}
.icon-btn:hover{ color:#fff; border-color: var(--steel); background: rgba(89,102,113,.15); }

/* =========================================================
 * 8. 答题页（Quiz）
 * ========================================================= */
.screen--quiz{ padding-top: 28px; }
.quiz-top{
  display:flex; align-items:center; gap:16px;
  padding: 14px 18px;
  background: rgba(16,18,21,.7);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  position:relative;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.quiz-top::before{
  content:""; position:absolute; top:-1px; left:-1px; width:14px; height:14px;
  border-top:2px solid var(--accent); border-left:2px solid var(--accent);
}
.quiz-top::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:14px; height:14px;
  border-bottom:2px solid var(--accent); border-right:2px solid var(--accent);
}

.quiz-progress{ flex:1; display:flex; align-items:center; gap:16px; }
.qp-count{
  font-family: var(--ff-num);
  font-size:18px;
  color: var(--text); white-space: nowrap;
  letter-spacing:.05em;
}
.qp-count em{
  font-style:normal; color: var(--accent); font-weight:400; font-size:22px;
}
.qp-bar{
  flex:1; height:6px;
  background: rgba(89,102,113,.2);
  border: 1px solid var(--line);
  position:relative;
}
.qp-fill{
  position:absolute; inset:0 auto 0 0;
  background: var(--accent);
  width:0%;
  transition: width .5s cubic-bezier(.22,.8,.35,1);
}
.qp-fill::after{
  content:""; position:absolute; right:0; top:-3px; bottom:-3px; width:2px;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent);
}

/* 分页容器 */
.q-page{ animation: qPageIn .5s ease-out both; }
.q-page.leave{ animation: qPageOut .22s ease-in both; }
@keyframes qPageIn{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform: translateY(0);} }
@keyframes qPageOut{ from{ opacity:1; transform:translateY(0);} to{ opacity:0; transform:translateY(-8px);} }

.q-eyebrow{
  font-family: var(--ff-en);
  font-weight:700; font-size:11px; letter-spacing:.3em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 22px;
  display:inline-flex; align-items:center; gap:10px;
}
.q-eyebrow::before{ content:""; width:22px; height:1px; background: var(--accent); }
.q-eyebrow::after{ content:""; width:6px; height:6px; background: var(--accent); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }

.q-list{ display:flex; flex-direction:column; gap: 40px; }

.q-block{
  position:relative;
  padding: 28px 28px 28px 96px;
  background: linear-gradient(180deg, rgba(16,18,21,.7), rgba(16,18,21,.55));
  border: 1px solid var(--line);
  animation: qBlockIn .5s ease-out both;
}
.q-block::before{
  content:""; position:absolute; top:-1px; left:-1px; width:14px; height:14px;
  border-top:2px solid var(--steel); border-left:2px solid var(--steel);
}
.q-block::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:14px; height:14px;
  border-bottom:2px solid var(--steel); border-right:2px solid var(--steel);
}
@keyframes qBlockIn{ from{ opacity:0; transform: translateY(16px);} to{ opacity:1; transform: translateY(0);} }

.q-num{
  position:absolute; left: 18px; top: 26px;
  font-family: var(--ff-num);
  font-size: 56px; line-height:1;
  color: var(--accent);
  letter-spacing: .02em;
  opacity: .85;
  display:flex; align-items:flex-start; gap:4px;
}
.q-num::before{
  content:"Q";
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing:.1em;
  color: var(--steel-2);
  align-self: flex-end;
  margin-bottom: 8px;
  margin-right: 2px;
}

.q-title{
  font-family: var(--ff-cn);
  font-weight:700; font-size: 20px; line-height: 1.6;
  color: #fff;
  margin: 4px 0 22px;
}

.q-options{ display:flex; flex-direction:column; gap:10px; }

.q-opt{
  position:relative;
  display:flex; align-items:center; gap:14px;
  padding: 14px 18px 14px 16px;
  background: rgba(10,11,12,.6);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  font: inherit; font-size: 15px;
  transition: all .18s ease;
  cursor:pointer;
}
.q-opt:hover{
  background: rgba(89,102,113,.12);
  border-color: var(--steel);
  transform: translateX(2px);
}
.opt-key{
  font-family: var(--ff-display);
  font-weight: 800;
  width:34px; height:34px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(89,102,113,.15);
  color: var(--steel-3);
  font-size: 16px;
  letter-spacing: 0;
  border: 1px solid var(--line);
  transition: all .18s;
}
.opt-text{ line-height:1.55; font-family: var(--ff-cn); font-weight:500; }

.q-opt.selected{
  background: rgba(202,77,50,.08);
  border-color: var(--accent);
  color: #fff;
}
.q-opt.selected .opt-key{
  background: var(--accent); color:#fff; border-color: var(--accent);
}
.q-opt.selected::before{
  content:""; position:absolute; top:-1px; left:-1px; width:10px; height:10px;
  border-top:2px solid var(--accent); border-left:2px solid var(--accent);
}
.q-opt.selected::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:10px; height:10px;
  border-bottom:2px solid var(--accent); border-right:2px solid var(--accent);
}

/* 底部导航条 */
.q-nav{
  margin-top: 40px;
  display:flex; align-items:center; gap:16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(16,18,21,.7);
}
.q-nav-meta{
  flex:1; text-align:center;
  font-family: var(--ff-en);
  font-size: 12px; letter-spacing:.2em;
  color: var(--text-dim); text-transform: uppercase;
}
.q-nav-meta span{ color: var(--accent); font-weight:700; }
.q-nav .btn-ghost,
.q-nav .btn-primary{ padding: 12px 22px; font-size: 13px; }

/* =========================================================
 * 9. 结果页
 * ========================================================= */
.screen--result{ padding-top: 40px; }
.result-wrap{ display:flex; flex-direction:column; gap: 50px; }

.result-hero{
  display:grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items:start;
  padding: 36px;
  position:relative;
  background:
    linear-gradient(135deg, rgba(16,18,21,.82), rgba(10,11,12,.9)),
    radial-gradient(circle at 80% 20%, rgba(202,77,50,.12), transparent 60%);
  border: 1px solid var(--line);
}
.result-hero::before{
  content:""; position:absolute; top:-1px; left:-1px; width:22px; height:22px;
  border-top:3px solid var(--accent); border-left:3px solid var(--accent);
}
.result-hero::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:22px; height:22px;
  border-bottom:3px solid var(--accent); border-right:3px solid var(--accent);
}

.result-eyebrow{
  font-family: var(--ff-en);
  font-weight:700; font-size:11px; letter-spacing:.32em;
  color: var(--steel-3); text-transform: uppercase;
  display:inline-flex; align-items:center; gap:10px;
  margin-bottom: 14px;
}
.result-eyebrow::before{ content:""; width:22px; height:1px; background: var(--accent); }
.result-code{
  margin-left: 6px;
  color: var(--accent);
  font-family: var(--ff-num);
  font-size: 14px; letter-spacing: .15em;
}

.result-name{
  font-family: var(--ff-cn);
  font-weight:700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing:.01em;
}
.result-en{
  font-family: var(--ff-display);
  font-weight:800; font-size: 20px; letter-spacing:.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.result-rarity{
  display:inline-flex; align-items:center; gap:8px;
  padding: 5px 12px;
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing:.22em;
  text-transform: uppercase;
  background: rgba(89,102,113,.15);
  border: 1px solid var(--line-2);
  color: var(--text);
  margin-bottom: 24px;
}
.rd{ width:7px; height:7px; display:inline-block; }
.rd--普通{ background: var(--steel-3); }
.rd--稀有{ background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.rd--隐藏{ background: #f0c14b; box-shadow: 0 0 10px #f0c14b; }

.result-punch{
  font-family: var(--ff-cn);
  font-weight:700; font-size: 20px; line-height:1.5;
  color: #fff;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(89,102,113,.08);
  margin: 0 0 22px;
}

.result-summary{
  font-family: var(--ff-cn);
  font-size: 15px; line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 22px;
}

.result-tags{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom: 24px;
}
.tag{
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing:.12em;
  padding: 4px 10px;
  background: rgba(202,77,50,.1);
  color: var(--accent-2);
  border: 1px solid rgba(202,77,50,.3);
  text-transform: uppercase;
}

.vibes{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction: column; gap: 10px;
}
.vibes li{
  position:relative; padding-left: 24px;
  font-family: var(--ff-cn); font-size: 14px; line-height: 1.7;
  color: var(--text-dim);
}
.vibes li::before{
  content:""; position:absolute; left:0; top: 10px;
  width:10px; height:1px; background: var(--accent);
}
.vibes li::after{
  content:""; position:absolute; left:10px; top: 8px;
  width:4px; height:4px; background: var(--accent);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.result-img{
  position:relative;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(89,102,113,.1), rgba(10,11,12,.7));
}
.result-img::before{
  content:""; position:absolute; top:-2px; left:-2px;
  width:24px; height:24px;
  border-top:3px solid var(--accent); border-left:3px solid var(--accent);
  z-index: 3;
}
.result-img::after{
  content:""; position:absolute; bottom:-2px; right:-2px;
  width:24px; height:24px;
  border-bottom:3px solid var(--accent); border-right:3px solid var(--accent);
  z-index: 3;
}
.result-img .r-img-wrap{
  position: relative;
  overflow: hidden;
  background: #0a0b0c;
}
.result-img .r-img-wrap::after{
  /* overlay 色调 + 底部暗压 */
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(89,102,113,.12), rgba(10,11,12,0) 50%, rgba(10,11,12,.22));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.result-img img{
  width:100%; height:auto; display:block;
  filter: contrast(1.06) saturate(1.04) brightness(1);
}

/* 人格分布 */
.result-bars{
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: rgba(16,18,21,.55);
}
.result-bars h3{
  font-family: var(--ff-display);
  font-weight:800; font-size: 18px; letter-spacing:.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display:flex; align-items:center; gap:10px;
}
.result-bars h3::before{
  content:""; width:8px; height:8px; background: var(--accent);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.bar-row{
  display:grid; grid-template-columns: 140px 1fr 50px;
  align-items:center; gap: 16px;
  padding: 10px 0;
}
.bar-name{
  font-family: var(--ff-cn);
  font-weight:700; font-size: 14px; color: var(--text);
}
.bar-track{
  height: 8px;
  background: rgba(89,102,113,.18);
  border: 1px solid var(--line);
  position:relative;
}
.bar-fill{
  height:100%; background: var(--accent);
  transition: width 1s cubic-bezier(.22,.8,.35,1);
  position:relative;
}
.bar-fill::after{
  content:""; position:absolute; right:-1px; top:-3px; bottom:-3px; width:2px;
  background: var(--accent-2); box-shadow: 0 0 6px var(--accent);
}
.bar-v{
  font-family: var(--ff-num);
  font-size: 18px; color: var(--accent);
  text-align: right;
}

/* 配对 */
.result-pair{
  display:grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.pair-card{
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: rgba(16,18,21,.55);
  position:relative;
}
.pair-card h4{
  font-family: var(--ff-display);
  font-weight:800; font-size: 16px; letter-spacing:.18em;
  text-transform: uppercase;
  margin: 0 0 4px;
  display:flex; align-items:center; gap:8px;
}
.pair-card h4.ok{ color: var(--text); }
.pair-card h4.no{ color: var(--text); }
.pair-card h4.ok::before{ content:"◆"; color: #7bb263; }
.pair-card h4.no::before{ content:"◆"; color: var(--accent); }
.pair-sub{
  font-family: var(--ff-cn);
  font-size: 13px; color: var(--text-mute);
  margin: 2px 0 18px;
}
.pair-list{ display:flex; flex-direction:column; gap: 10px; }
.pair-item{
  display:flex; align-items:center; gap: 14px;
  padding: 10px 14px;
  background: rgba(10,11,12,.5);
  border: 1px solid var(--line);
  cursor:pointer;
  transition: all .18s;
}
.pair-item:hover{
  border-color: var(--steel);
  background: rgba(89,102,113,.1);
  transform: translateX(3px);
}
.pair-item img{
  width: 44px; height: 44px; object-fit:cover;
  border: 1px solid var(--line-2);
  filter: contrast(1.05);
}
.pair-item.is-locked{
  background:
    linear-gradient(90deg, rgba(202,77,50,.12), rgba(10,11,12,.52));
}
.pi-lock{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  border: 1px solid rgba(202,77,50,.42);
  background:
    radial-gradient(circle at 50% 42%, rgba(202,77,50,.24), transparent 62%),
    rgba(5,6,7,.9);
  font-family: var(--ff-display);
  font-size: 34px;
  line-height: 1;
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 16px rgba(202,77,50,.75), 0 3px 10px rgba(0,0,0,.9);
}
.pi-cn{
  font-family: var(--ff-cn);
  font-weight:700; font-size:15px; color: #fff;
  line-height:1.2;
}
.pi-en{
  font-family: var(--ff-en);
  font-size:11px; letter-spacing:.15em;
  color: var(--steel-3);
  text-transform: uppercase;
  margin-top: 3px;
}

/* 结果页操作条 */
.result-actions{
  display:flex; flex-wrap:wrap; gap: 12px;
  padding-top: 10px;
}

/* =========================================================
 * 10. 图鉴
 * ========================================================= */
.screen--codex{ padding-top: 40px; }
.codex-head{ margin-bottom: 38px; position:relative; }
.codex-eyebrow{
  font-family: var(--ff-en);
  font-weight:700; font-size: 11px; letter-spacing: .35em;
  color: var(--accent); text-transform: uppercase;
  display:inline-flex; align-items:center; gap:12px;
  margin-bottom: 14px;
}
.codex-eyebrow::before{ content:""; width:24px; height:1px; background: var(--accent); }
.codex-title{
  font-family: var(--ff-display);
  font-weight: 900; font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  margin: 0 0 10px;
  letter-spacing:.01em;
  text-transform: uppercase;
}
.codex-sub{
  font-family: var(--ff-cn);
  font-size: 14px; color: var(--text-dim);
  margin: 0 0 22px;
}
.codex-filter{ display:flex; gap: 10px; flex-wrap:wrap; }
.chip{
  padding: 8px 18px;
  font-family: var(--ff-display);
  font-weight:700; font-size: 12px; letter-spacing:.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  transition: all .2s;
  cursor:pointer;
}
.chip:hover{ color: #fff; border-color: var(--steel); }
.chip.active{
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  position:relative;
}
.chip.active::before{
  content:""; position:absolute; top:-1px; left:-1px; width:6px; height:6px;
  border-top:2px solid #fff; border-left:2px solid #fff;
}
.chip.active::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:6px; height:6px;
  border-bottom:2px solid #fff; border-right:2px solid #fff;
}

.codex-grid{
  display:grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.codex-card{
  position:relative;
  background: rgba(16,18,21,.6);
  border: 1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  transition: all .2s ease;
  animation: ccIn .45s ease-out both;
}
@keyframes ccIn{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:translateY(0);} }
.codex-card::before{
  content:""; position:absolute; top:-1px; left:-1px; width:10px; height:10px;
  border-top:2px solid var(--steel); border-left:2px solid var(--steel);
  transition: all .2s;
  z-index:2;
}
.codex-card::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:10px; height:10px;
  border-bottom:2px solid var(--steel); border-right:2px solid var(--steel);
  transition: all .2s;
  z-index:2;
}
.codex-card:hover{
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.codex-card:hover::before,
.codex-card:hover::after{
  border-color: var(--accent);
  width: 14px; height: 14px;
}
.cc-img{
  aspect-ratio: 1 / 1;
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(10,11,12,.08)),
    #e6e4e1;
}
.cc-img img{
  width:100%; height:100%; object-fit:contain;
  filter: contrast(1.05) saturate(1.03) brightness(1);
  transition: transform .5s ease, filter .5s ease;
}
.cc-img.is-locked{
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 44%, rgba(202,77,50,.22), transparent 58%),
    linear-gradient(135deg, rgba(89,102,113,.18), rgba(8,9,10,.98)),
    #090a0b;
}
.locked-mark{
  display:grid;
  place-items:center;
  width: min(70%, 190px);
  aspect-ratio: 1;
  border: 1px solid rgba(202,77,50,.42);
  background:
    linear-gradient(135deg, rgba(202,77,50,.18), transparent 46%),
    rgba(0,0,0,.34);
  font-family: var(--ff-display);
  font-size: clamp(108px, 16vw, 220px);
  line-height: .72;
  color: rgba(255,255,255,.94);
  text-shadow:
    0 0 18px rgba(202,77,50,.85),
    0 0 44px rgba(202,77,50,.42),
    0 14px 28px rgba(0,0,0,.92);
  z-index: 2;
}
.codex-card:hover .cc-img img{ filter: contrast(1.08) saturate(1.06) brightness(1.04); transform: scale(1.02); }
.cc-img::before{
  /* 冷灰色调叠加，强化军事感 */
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(89,102,113,.14), rgba(10,11,12,.04) 50%, rgba(10,11,12,.12));
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}
.cc-img::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 56%, rgba(10,11,12,.52));
  z-index: 1;
  pointer-events: none;
}
.codex-card:hover .cc-img img{ transform: scale(1.02); }
.cc-body{
  padding: 14px 16px 16px;
}
.cc-cn{
  font-family: var(--ff-cn);
  font-weight:700; font-size: 17px; color:#fff;
  line-height: 1.2;
}
.cc-en{
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .15em;
  color: var(--steel-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.cc-meta{
  display:flex; justify-content:space-between; align-items:center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.cc-rare{
  font-family: var(--ff-en);
  font-size: 10px; letter-spacing: .2em;
  padding: 3px 8px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.cc-rare.普通{ color: var(--steel-3); }
.cc-rare.稀有{ color: var(--accent); }
.cc-rare.隐藏{ color: #f0c14b; }
.cc-code{
  font-family: var(--ff-num);
  font-size: 13px; color: var(--text-mute);
  letter-spacing:.1em;
}

/* =========================================================
 * 11. 人格详情 Modal
 * ========================================================= */
.modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center;
  padding: 40px 20px;
}
.modal[hidden]{ display:none; }
.modal-mask{
  position:absolute; inset:0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: mFade .25s ease both;
}
@keyframes mFade{ from{ opacity:0;} to{ opacity:1;} }
.modal-card{
  position:relative;
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #0f1114;
  border: 1px solid var(--line-2);
  display:grid; grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
  animation: mPop .4s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes mPop{ from{opacity:0; transform:translateY(14px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);} }
.modal-card::before{
  content:""; position:absolute; top:-1px; left:-1px; width:24px; height:24px;
  border-top:3px solid var(--accent); border-left:3px solid var(--accent);
  z-index:3;
}
.modal-card::after{
  content:""; position:absolute; bottom:-1px; right:-1px; width:24px; height:24px;
  border-bottom:3px solid var(--accent); border-right:3px solid var(--accent);
  z-index:3;
}
.modal-close{
  position:absolute; top:14px; right:14px; z-index:5;
  width:34px; height:34px;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; background: rgba(0,0,0,.6);
  border: 1px solid var(--line-2);
  transition: all .2s;
}
.modal-close:hover{ border-color: var(--accent); color: var(--accent); }

.m-hero{
  position:relative; overflow:hidden;
  background:
    linear-gradient(180deg, rgba(10,11,12,.12), rgba(10,11,12,.2)),
    #e6e4e1;
  min-height: min(78vh, 760px);
  display:grid;
  place-items:center;
  padding: 18px;
}
.m-hero img{
  width:100%; height:100%; object-fit:contain;
  filter: contrast(1.06) saturate(1.04) brightness(1);
}
.m-hero.is-locked{
  background:
    radial-gradient(circle at 50% 46%, rgba(202,77,50,.22), transparent 56%),
    repeating-linear-gradient(112deg, transparent 0 46px, rgba(255,255,255,.04) 47px 48px),
    #08090a;
}
.m-hero.is-locked .locked-mark{
  width: min(52%, 340px);
  font-size: clamp(180px, 28vw, 360px);
}
.m-hero::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(89,102,113,.14), rgba(10,11,12,0) 40%, rgba(10,11,12,.24)),
    linear-gradient(90deg, transparent 70%, rgba(10,11,12,.18));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.m-body{
  padding: 34px 32px 42px;
  display:flex; flex-direction:column; gap: 14px;
  min-width: 0;
}
.m-name{
  font-family: var(--ff-cn);
  font-weight:700; font-size: 34px; line-height: 1.1;
  color:#fff; margin: 0;
}
.m-en{
  font-family: var(--ff-display);
  font-weight: 800; font-size: 16px; letter-spacing:.14em;
  color: var(--accent); text-transform: uppercase;
}
.m-punch{
  font-family: var(--ff-cn);
  font-weight: 700; font-size: 17px; line-height: 1.55;
  color:#fff;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(89,102,113,.08);
  margin-top: 4px;
}
.m-sum{
  font-family: var(--ff-cn);
  font-size: 14px; line-height: 1.8;
  color: var(--text-dim);
  margin: 0;
}

/* =========================================================
 * 12. 页脚
 * ========================================================= */
.foot{
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 24px 40px;
  text-align:center;
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .22em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* =========================================================
 * 13. 响应式
 * ========================================================= */
@media (max-width: 980px){
  .result-hero{ grid-template-columns: 1fr; gap: 28px; }
  .result-pair{ grid-template-columns: 1fr; }
  .modal-card{ grid-template-columns: 1fr; max-height: 92vh; }
  .m-hero{ min-height: 220px; max-height: 280px; }
}
@media (max-width: 640px){
  .screen{ padding: 32px 18px 40px; }
  .nav-inner{ padding: 12px 18px; }
  .cover-title{ font-size: 54px; }
  .cover-sub{ font-size: 14px; }
  .cover-meta{ gap: 28px; }
  .cover-meta strong{ font-size: 28px; }
  .q-block{ padding: 24px 18px 22px 18px; }
  .q-num{ position: static; font-size: 40px; margin-bottom: 4px; }
  .q-title{ font-size: 17px; }
  .result-hero{ padding: 24px; }
  .result-name{ font-size: 36px; }
  .bar-row{ grid-template-columns: 90px 1fr 44px; gap: 10px; }
  .codex-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cc-cn{ font-size:15px; }
  .q-nav{ flex-wrap: wrap; }
  .q-nav-meta{ order: 3; flex-basis: 100%; text-align: center; padding-top: 4px; }
}

/* =========================================================
 * 14. 封面 · 人格橱窗（Persona Showcase）
 * ========================================================= */
/* 双列 grid：左列 cover-wrap 原样不动，右列新增 showcase */
.cover-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
@media (min-width: 1100px){
  .cover-grid{
    grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
    gap: clamp(32px, 4vw, 72px);
  }
}

.cover-showcase{
  display:flex; flex-direction:column;
  gap: 16px;
  align-self: stretch;
  min-width: 0;
}

/* =========================================================
 * PERSONA PROFILE CARD — Tactical Dossier
 * Black/charcoal gradient + hairlines + scanline + noise
 * Coordinate ticks, file number, orange accents (<=10%)
 * ========================================================= */
.ps-card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  min-height: 500px;
  padding: 48px 28px 34px 28px;
  background:
    linear-gradient(135deg, rgba(20,23,26,.96) 0%, rgba(12,14,16,.98) 55%, rgba(7,8,9,1) 100%);
  border: 1px solid rgba(89,102,113,.32);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 30px 60px -20px rgba(0,0,0,.8);
  overflow: hidden;
  isolation: isolate;
}
/* 扫描线 + 噪点：全卡覆盖层 */
.ps-card::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index: 4;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .5;
}
.ps-card::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index: 4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/></svg>");
  opacity: .18;
}

/* 四角 HUD L 型描边 */
.ps-corner-bl,
.ps-corner-br,
.ps-corner-tl,
.ps-corner-tr{
  position:absolute; width:22px; height:22px;
  border: 1px solid rgba(202,77,50,.85);
  pointer-events:none; z-index: 5;
}
.ps-corner-tl{ top:14px; left:14px;    border-right:none; border-bottom:none; }
.ps-corner-tr{ top:14px; right:14px;   border-left:none;  border-bottom:none; }
.ps-corner-bl{ bottom:14px; left:14px; border-right:none; border-top:none;    }
.ps-corner-br{ bottom:14px; right:14px;border-left:none;  border-top:none;    }

/* ========== 档案头：Persona File No. + 分类 ========== */
.ps-head{
  position: absolute;
  top: 14px; left: 46px; right: 46px;
  z-index: 5;
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  pointer-events: none;
}
.ps-file-no{
  display:inline-flex; align-items:center; gap: 10px;
  font-family: var(--ff-en);
  font-weight: 700; font-size: 10px; letter-spacing: .34em;
  color: var(--accent);
  text-transform: uppercase;
}
.ps-file-no::before{
  content:""; width: 22px; height:1px; background: var(--accent);
}
.ps-file-no span{ color: var(--steel-3); font-weight: 400; }

.ps-classify{
  display:inline-flex; align-items:center; gap: 8px;
  font-family: var(--ff-en);
  font-size: 10px; letter-spacing: .32em;
  color: var(--steel-3);
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(89,102,113,.45);
  background: rgba(0,0,0,.55);
}
.ps-classify i{
  display:inline-block; width:6px; height:6px; transform:rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(202,77,50,.65);
}

/* ========== 左列：标题 / 稀有度 / 特征列表 ========== */
.ps-left-col{
  position: relative; z-index: 3;
  display:flex; flex-direction:column;
  padding-top: 4px;
  min-width: 0;
}
.ps-title{
  display:flex; flex-direction:column; gap: 4px;
  margin-bottom: 18px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.ps-title .ps-en{
  font-family: var(--ff-display);
  font-weight: 900; font-size: clamp(26px, 3vw, 38px);
  letter-spacing: .005em; line-height: .95;
  color: #fff;
  text-transform: uppercase;
  /* Refrigerator 压缩感 */
  font-stretch: condensed;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.ps-title .ps-cn{
  font-family: var(--ff-cn);
  font-weight: 800; font-size: 19px;
  color: #e8ebee;
  letter-spacing: .06em;
}
.ps-title .ps-rarity{
  margin-top: 8px;
  display:inline-flex; align-items:center; gap: 8px;
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--steel-3);
}
.ps-title .ps-rarity b{
  font-family: var(--ff-display);
  font-weight: 900; letter-spacing: .22em;
  padding: 2px 8px;
  border: 1px solid rgba(89,102,113,.5);
  background: rgba(0,0,0,.35);
}
.ps-title .ps-rarity.r-common b{ color: #cfd6dc; }
.ps-title .ps-rarity.r-rare b{
  color: var(--accent); border-color: rgba(202,77,50,.6);
  background: rgba(202,77,50,.08);
}
.ps-title .ps-rarity.r-hidden b{
  color: #fff; border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(202,77,50,.5);
}

/* 特征列表 */
.ps-features-head{
  display:flex; align-items:center; gap: 10px;
  margin-bottom: 10px;
  font-family: var(--ff-en);
  font-size: 10px; letter-spacing: .34em;
  color: var(--steel-3);
  text-transform: uppercase;
}
.ps-features-head::before{ content:""; width:10px; height:1px; background: var(--steel); }
.ps-features-head::after{ content:""; flex:1; height:1px; background: linear-gradient(90deg, rgba(89,102,113,.4), transparent); }

.ps-features{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap: 8px;
}
.ps-feature{
  display:grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items:center;
  padding: 4px 0;
  opacity: 0;
  transform: translateX(-8px);
  animation: ps-feat-in .42s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ps-feat-in{
  to { opacity: 1; transform: translateX(0); }
}
.ps-feature .ps-ico{
  width: 30px; height: 30px;
  display:grid; place-items:center;
  color: var(--accent);
  border: 1px solid rgba(202,77,50,.45);
  background: rgba(202,77,50,.08);
  position: relative;
}
.ps-feature .ps-ico::before{
  content:""; position:absolute; inset:-1px;
  border: 1px solid transparent;
  border-top-color: rgba(202,77,50,.25);
  border-left-color: rgba(202,77,50,.25);
  pointer-events:none;
}
.ps-feature .ps-ico svg{ width: 18px; height: 18px; display:block; }
.ps-feature .ps-txt{ min-width:0; display:flex; flex-direction:column; gap: 1px; }
.ps-feature .ps-en-s{
  font-family: var(--ff-en);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: #eaecef;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-feature .ps-cn-s{
  font-family: var(--ff-cn);
  font-size: 12.5px; color: var(--steel-3);
  letter-spacing: .04em;
}

/* ========== 右列：立绘舞台 ========== */
.ps-illust{
  position: relative;
  display:grid; place-items: end center;
  min-height: 300px;
  margin: 0 -6px -6px 0;
  z-index: 2;
}
/* 背景径向聚光 + 网格 */
.ps-illust::before{
  content:""; position:absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 62% 78%, rgba(202,77,50,.16) 0%, rgba(202,77,50,0) 62%),
    radial-gradient(85% 70% at 50% 110%, rgba(0,0,0,.7) 0%, transparent 60%);
  z-index: 0;
}
.ps-illust::after{
  content:""; position:absolute; inset: 0;
  background:
    linear-gradient(transparent 97%, rgba(89,102,113,.25) 97%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(89,102,113,.08) 39px 40px),
    repeating-linear-gradient(0deg,  transparent 0 39px, rgba(89,102,113,.05) 39px 40px);
  z-index: 0;
  opacity: .8;
}

/* 坐标刻度（顶部 + 左侧） */
.ps-coord-x,
.ps-coord-y{
  position:absolute; z-index: 1;
  display:flex; gap: 0;
  font-family: var(--ff-num);
  font-size: 9px; letter-spacing: .14em;
  color: var(--steel);
  pointer-events:none;
}
.ps-coord-x{
  top: 2px; left: 4px; right: 10px;
  justify-content: space-between;
}
.ps-coord-x i{ display:block; width: 1px; height: 6px; background: rgba(89,102,113,.5); font-style: normal; }
.ps-coord-x i.on{ background: var(--accent); height: 9px; }

.ps-coord-y{
  top: 8px; bottom: 18px; left: 2px;
  flex-direction: column;
  justify-content: space-between;
}
.ps-coord-y i{ display:block; width: 6px; height: 1px; background: rgba(89,102,113,.5); font-style: normal; }
.ps-coord-y i.on{ background: var(--accent); width: 10px; }

/* 立绘底盘：椭圆软阴影 */
.ps-stage{
  position:absolute; left:50%; bottom: 10px;
  width: 78%; height: 22px; transform: translateX(-50%);
  z-index: 1;
  background: radial-gradient(50% 100% at 50% 60%, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 70%);
  filter: blur(1px);
  pointer-events:none;
}
/* 橙色底部短线（"当前目标"） */
.ps-stage::after{
  content:""; position:absolute; left:50%; bottom: -6px;
  width: 44%; height: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(202,77,50,.6);
}

/* 粒子层（静态点阵，避免额外 JS） */
.ps-particles{
  position:absolute; inset:0; z-index: 1; pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 18% 38%, rgba(202,77,50,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 72%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 30%, rgba(202,77,50,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 55%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 82%, rgba(202,77,50,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 88%, rgba(255,255,255,.35) 50%, transparent 51%);
  animation: ps-drift 9s linear infinite;
}
@keyframes ps-drift{
  0%   { transform: translateY(0);    opacity: .85; }
  50%  { transform: translateY(-6px); opacity: 1;   }
  100% { transform: translateY(0);    opacity: .85; }
}

/* 立绘本体 */
.ps-illust .ps-figure{
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  max-height: 440px;
  display:grid; place-items: end center;
}
.ps-illust img{
  position: relative;
  max-width: 100%; max-height: 440px;
  width: auto; height: 100%;
  object-fit: contain; object-position: bottom center;
  /* 橙色 rim light + 冷色补光 */
  filter:
    drop-shadow(2px 0 0 rgba(202,77,50,.85))
    drop-shadow(-1px 1px 0 rgba(202,77,50,.55))
    drop-shadow(0 0 22px rgba(202,77,50,.35))
    drop-shadow(-4px 2px 0 rgba(80,100,120,.25))
    drop-shadow(0 20px 30px rgba(0,0,0,.75))
    contrast(1.05) saturate(1.05);
}

/* 主图切换动画 */
.ps-figure{
  animation: ps-fig-in .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ps-fig-in{
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.ps-figure.leaving{
  animation: ps-fig-out .32s cubic-bezier(.4,0,.7,0) both;
}
@keyframes ps-fig-out{
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-18px); }
}

/* 标题切换动画 */
.ps-title,
.ps-features-head{
  animation: ps-fade-down .42s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ps-fade-down{
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.ps-title.leaving,
.ps-features-head.leaving,
.ps-features.leaving .ps-feature{
  animation: ps-fade-out .25s ease both;
}
@keyframes ps-fade-out{
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-10px); }
}

/* 右下角档案代码 + 时间戳 */
.ps-footer{
  position:absolute; left: 28px; right: 28px; bottom: 16px;
  z-index: 3;
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--ff-num);
  font-size: 10px; letter-spacing: .22em;
  color: var(--steel);
  pointer-events:none;
  text-transform: uppercase;
}
.ps-footer .ps-code-tag{ color: var(--accent); }

/* =========================================================
 * PERSONA SELECTOR (Rail + Thumbs + Dots)
 * ========================================================= */
.ps-rail{
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: stretch;
}
.ps-arrow{
  border: 1px solid rgba(89,102,113,.4);
  background: rgba(12,14,16,.85);
  color: var(--steel-3);
  display:grid; place-items:center;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ps-arrow:hover{ color: var(--accent); border-color: var(--accent); background: rgba(202,77,50,.1); }
.ps-arrow:focus{ outline: none; }

.ps-thumbs{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  min-width: 0;
}
.ps-thumb{
  position: relative;
  aspect-ratio: 3 / 4;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(20,23,26,.9), rgba(8,9,10,.95));
  border: 1px solid rgba(89,102,113,.28);
  cursor: pointer;
  display:grid; place-items:end center;
  overflow:hidden;
  transition: transform .24s cubic-bezier(.22,1,.36,1),
              border-color .2s ease,
              filter .24s ease,
              box-shadow .24s ease;
  transform: scale(.96);
  filter: grayscale(.55) brightness(.72);
}
/* 扫描线叠加 */
.ps-thumb::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
/* 缩略图编号（左上） */
.ps-thumb .ps-thumb-idx{
  position:absolute; top:5px; left:6px; z-index:2;
  font-family: var(--ff-num);
  font-size: 10px; letter-spacing: .18em;
  color: var(--steel-3);
  padding: 1px 5px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(89,102,113,.3);
}
.ps-thumb img{
  width: 115%; height: 108%;
  object-fit: contain; object-position: center bottom;
  filter: contrast(1.05) saturate(1.0);
  transition: transform .24s ease, filter .24s ease;
}
.ps-thumb .ps-thumb-label{
  position:absolute; left:6px; right:6px; bottom:6px; z-index:2;
  font-family: var(--ff-en);
  font-size: 9.5px; letter-spacing: .18em;
  color: var(--steel-3);
  text-transform: uppercase;
  white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.ps-thumb:hover{
  border-color: rgba(202,77,50,.55);
  filter: grayscale(.3) brightness(.85);
  transform: scale(.99);
}

/* 选中态：放大 + 提亮 + 橙色描边 + 底部短线 */
.ps-thumb.active{
  transform: scale(1.08);
  filter: grayscale(0) brightness(1);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(202,77,50,.5),
    0 10px 24px -8px rgba(202,77,50,.5),
    0 0 0 2px rgba(202,77,50,.18);
  z-index: 2;
}
.ps-thumb.active img{
  filter: contrast(1.1) saturate(1.15) brightness(1.05);
}
.ps-thumb.active .ps-thumb-label{ color: #fff; }
.ps-thumb.active .ps-thumb-idx{
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(202,77,50,.1);
}
/* 底部橙色短线 */
.ps-thumb.active::after{
  content:""; position:absolute;
  left: 50%; bottom: -5px;
  width: 54%; height: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(202,77,50,.7);
  z-index: 3;
}

/* Dots */
.ps-dots{
  display:flex; justify-content:center; gap: 10px;
  padding-top: 6px;
}
.ps-dot{
  width: 28px; height: 4px;
  background: rgba(89,102,113,.3);
  border: none; padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.ps-dot:hover{ background: rgba(89,102,113,.55); }
.ps-dot.active{ background: var(--accent); width: 40px; }
.ps-dot:focus{ outline: none; }

/* 响应式：窄屏下卡内双列变单列 */
@media (max-width: 1099px){
  .cover-showcase{ margin-top: 20px; }
}
@media (max-width: 720px){
  .ps-card{
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 18px 24px;
  }
  .ps-head{ left: 28px; right: 28px; }
  .ps-illust{ min-height: 260px; grid-row: 2; margin: 0; }
  .ps-illust img{ max-height: 280px; }
  .ps-thumbs{ grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .ps-thumb .ps-thumb-label{ font-size: 8.5px; }
  .ps-thumb .ps-thumb-idx{ font-size: 8.5px; padding: 1px 4px; }
  .ps-footer{ left: 16px; right: 16px; font-size: 9px; }
}

/* =========================================================
 * 15. 首页参考图匹配优化
 * ========================================================= */
.nav-inner{
  max-width: 1880px;
}

.screen--cover{
  max-width: min(1880px, 100vw);
  padding: clamp(28px, 3.2vw, 52px) clamp(24px, 3.8vw, 72px) 72px;
}

.screen--cover .hud-corners{
  display: none;
}

.screen--cover::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202,77,50,.52) 18%, rgba(89,102,113,.24) 48%, transparent);
  pointer-events:none;
}

.cover-grid{
  min-height: calc(100vh - 148px);
  align-items: center;
}

@media (min-width: 1100px){
  .cover-grid{
    grid-template-columns: minmax(380px, .72fr) minmax(620px, 1.28fr);
    gap: clamp(34px, 3.8vw, 76px);
  }
}

.cover-wrap{
  min-height: auto;
  max-width: 700px;
  padding-bottom: clamp(40px, 8vh, 110px);
}

.cover-title{
  font-size: clamp(70px, 7.4vw, 126px);
}

.cover-sub{
  max-width: 430px;
  font-size: 16px;
  color: rgba(214,220,225,.72);
}

.cover-actions{
  margin-top: 18px;
}

.cover-cta,
.cover-ghost{
  min-width: 260px;
  min-height: 64px;
  justify-content: center;
  font-size: 16px;
}

.cover-meta{
  gap: clamp(34px, 4vw, 72px);
  margin-top: 34px;
  padding: 24px 0;
}

.cover-meta strong{
  font-size: 46px;
}

.cover-showcase{
  gap: 20px;
  min-height: min(760px, calc(100vh - 148px));
  justify-content: center;
}

.ps-card{
  grid-template-columns: minmax(260px, .44fr) minmax(0, .56fr);
  gap: clamp(18px, 2vw, 34px);
  min-height: clamp(520px, 58vh, 680px);
  padding: clamp(54px, 4vw, 76px) clamp(34px, 3vw, 60px) 48px;
  border-color: rgba(139,107,78,.38);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 22px);
  background:
    linear-gradient(115deg, rgba(13,15,17,.98) 0%, rgba(13,14,15,.94) 42%, rgba(9,9,9,.98) 100%),
    linear-gradient(28deg, transparent 0 48%, rgba(202,77,50,.12) 49%, transparent 50% 100%),
    repeating-linear-gradient(112deg, transparent 0 74px, rgba(202,77,50,.055) 75px 76px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    inset 0 -90px 130px rgba(0,0,0,.48),
    0 28px 80px -24px rgba(0,0,0,.9);
}

.ps-card::before{
  z-index: 6;
  opacity: .36;
}

.ps-card::after{
  z-index: 6;
  opacity: .14;
}

.ps-head{
  top: 24px;
  left: clamp(38px, 3vw, 62px);
  right: clamp(38px, 3vw, 62px);
}

.ps-file-no,
.ps-classify{
  letter-spacing: .28em;
}

.ps-left-col{
  padding-top: 14px;
  align-self: start;
}

.ps-title{
  border-left: none;
  padding-left: 0;
  margin-bottom: clamp(20px, 3vh, 34px);
}

.ps-title::before{
  content:"PERSONA";
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px 2px;
  margin-bottom: 8px;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(232,235,238,.65);
  background: rgba(232,188,118,.08);
  border-left: 3px solid rgba(202,77,50,.75);
}

.ps-title .ps-en{
  font-size: clamp(40px, 4.7vw, 72px);
  line-height: .86;
  max-width: 8.5em;
}

.ps-title .ps-cn{
  font-size: clamp(27px, 2.9vw, 46px);
  line-height: 1.08;
  color: var(--accent);
  letter-spacing: .02em;
}

.ps-title .ps-rarity{
  margin-top: 10px;
}

.ps-features-head{
  margin-bottom: 14px;
}

.ps-features{
  border: 1px solid rgba(89,102,113,.2);
  border-bottom: none;
  background: rgba(5,6,7,.2);
}

.ps-feature{
  grid-template-columns: 50px 1fr;
  gap: 16px;
  min-height: 66px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(89,102,113,.2);
  background:
    linear-gradient(90deg, rgba(89,102,113,.1), transparent 72%),
    rgba(5,6,7,.16);
}

.ps-feature .ps-ico{
  width: 38px;
  height: 38px;
  color: rgba(232,235,238,.9);
  border-color: rgba(232,235,238,.22);
  background: rgba(232,235,238,.04);
}

.ps-feature .ps-ico svg{
  width: 25px;
  height: 25px;
}

.ps-feature .ps-en-s{
  font-size: 15px;
  letter-spacing: .12em;
}

.ps-feature .ps-cn-s{
  font-size: 14px;
}

.ps-illust{
  min-height: clamp(430px, 52vh, 620px);
  margin: -18px -24px -18px -34px;
  overflow: visible;
}

.ps-illust::before{
  inset: -12% -8% -8% -18%;
  background:
    linear-gradient(118deg, rgba(202,77,50,.1), transparent 40%),
    radial-gradient(88% 66% at 55% 77%, rgba(145,102,62,.28) 0%, rgba(145,102,62,.06) 45%, transparent 72%),
    linear-gradient(180deg, transparent 0 62%, rgba(0,0,0,.55) 100%);
}

.ps-illust::after{
  inset: -8% -10%;
  opacity: .48;
  background:
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(202,77,50,.075) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(89,102,113,.06) 48px 49px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.ps-stage{
  bottom: 20px;
  width: 92%;
  height: 58px;
  background:
    radial-gradient(55% 90% at 50% 42%, rgba(184,105,52,.28), transparent 62%),
    radial-gradient(60% 80% at 50% 70%, rgba(0,0,0,.86), transparent 74%);
  filter: blur(.4px);
}

.ps-stage::before{
  content:"";
  position:absolute;
  inset: -60px -20px 8px;
  background:
    radial-gradient(2px 2px at 10% 70%, rgba(218,141,83,.62) 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 42%, rgba(232,235,238,.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 60%, rgba(202,77,50,.58) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 34%, rgba(232,188,118,.52) 50%, transparent 51%),
    radial-gradient(2px 2px at 84% 80%, rgba(202,77,50,.5) 50%, transparent 51%);
  pointer-events:none;
}

.ps-stage::after{
  bottom: 0;
  width: 64%;
  opacity: .55;
}

.ps-particles{
  opacity: .95;
}

.ps-illust .ps-figure{
  max-height: none;
  place-items: end center;
  transform: translateX(4%);
}

.ps-illust img{
  width: auto;
  height: min(112%, 660px);
  max-width: 128%;
  max-height: none;
  object-position: bottom center;
  filter:
    drop-shadow(2px 0 0 rgba(202,77,50,.68))
    drop-shadow(0 0 20px rgba(232,188,118,.22))
    drop-shadow(0 26px 34px rgba(0,0,0,.82))
    contrast(1.08) saturate(1.06) brightness(.98);
}

.ps-coord-x{
  top: 6px;
  left: 12%;
  right: 8%;
}

.ps-coord-y{
  left: auto;
  right: 2px;
  top: 8%;
  bottom: 12%;
}

.ps-footer{
  left: clamp(34px, 3vw, 60px);
  right: clamp(34px, 3vw, 60px);
  bottom: 18px;
  color: rgba(155,166,174,.72);
}

.ps-rail{
  grid-template-columns: 38px 1fr 38px;
  gap: 12px;
  padding: 0 10px;
}

.ps-arrow{
  background: transparent;
  border-color: transparent;
  color: rgba(232,235,238,.62);
}

.ps-arrow svg{
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.8));
}

.ps-thumbs{
  gap: 10px;
  padding: 2px 0 8px;
}

.ps-thumb{
  aspect-ratio: 1.18 / 1;
  place-items: end center;
  transform: none;
  background:
    linear-gradient(180deg, rgba(20,23,26,.92), rgba(6,7,8,.98)),
    repeating-linear-gradient(112deg, transparent 0 42px, rgba(89,102,113,.08) 43px 44px);
  border-color: rgba(89,102,113,.28);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 10px);
  filter: grayscale(.58) sepia(.14) brightness(.7) saturate(.78);
}

.ps-thumb img{
  width: 112%;
  height: 104%;
  transform: translateY(6%) scale(1.04);
  object-fit: contain;
}

.ps-thumb .ps-thumb-idx{
  display: none;
}

.ps-thumb .ps-thumb-label{
  left: 14px;
  right: 10px;
  bottom: 13px;
  font-size: clamp(10px, .85vw, 15px);
  letter-spacing: .06em;
  color: rgba(232,235,238,.82);
}

.ps-thumb .ps-thumb-label::after{
  content: attr(aria-hidden);
}

.ps-thumb::after{
  content:"";
  position:absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  pointer-events:none;
}

.ps-thumb:hover{
  transform: translateY(-2px);
}

.ps-thumb.active{
  transform: translateY(-2px);
  border-color: var(--accent);
  filter: grayscale(0) sepia(.06) brightness(1) saturate(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(202,77,50,.65),
    inset 0 -48px 48px rgba(202,77,50,.08),
    0 0 0 1px rgba(202,77,50,.28),
    0 20px 34px -20px rgba(202,77,50,.62);
}

.ps-thumb.active::before{
  background:
    linear-gradient(90deg, var(--accent) 0 22px, transparent 22px),
    linear-gradient(180deg, var(--accent) 0 22px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  z-index: 3;
}

.ps-thumb.active::after{
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 52%;
  transform: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  border-bottom: 2px solid var(--accent);
  box-shadow: inset 0 -18px 24px rgba(202,77,50,.08);
}

.ps-thumb.active img{
  transform: translateY(5%) scale(1.1);
}

.ps-thumb.active .ps-thumb-label{
  color: #fff;
  z-index: 4;
}

.ps-figure-lock,
.ps-thumb-lock{
  display: none;
}

.ps-card.is-apex-locked .ps-illust img,
.ps-thumb.is-locked img{
  display: none;
}

.ps-card.is-apex-locked .ps-glow{
  opacity: .88;
  background:
    radial-gradient(circle at 56% 46%, rgba(202,77,50,.32), transparent 52%),
    radial-gradient(circle at 48% 64%, rgba(232,188,118,.18), transparent 58%);
  filter: blur(20px);
}

.ps-card.is-apex-locked .ps-figure-lock{
  display:grid;
  place-items:center;
  position: relative;
  z-index: 4;
  width: min(62%, 360px);
  aspect-ratio: 1;
  margin-bottom: clamp(28px, 4vw, 60px);
  border: 1px solid rgba(202,77,50,.44);
  background:
    linear-gradient(135deg, rgba(202,77,50,.2), transparent 44%),
    radial-gradient(circle at 50% 46%, rgba(202,77,50,.24), transparent 62%),
    rgba(0,0,0,.32);
  font-family: var(--ff-display);
  font-size: clamp(150px, 18vw, 300px);
  line-height: .7;
  color: rgba(255,255,255,.94);
  text-shadow:
    0 0 18px rgba(202,77,50,.92),
    0 0 56px rgba(202,77,50,.44),
    0 18px 34px rgba(0,0,0,.9);
  animation: apex-lock-pulse 2.8s ease-in-out infinite;
}

.ps-card.is-apex-locked .ps-figure-lock::before,
.ps-card.is-apex-locked .ps-figure-lock::after{
  content:"";
  position:absolute;
  width: 30px;
  height: 30px;
  border-color: var(--accent);
  opacity: .88;
}
.ps-card.is-apex-locked .ps-figure-lock::before{
  left: -2px;
  top: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.ps-card.is-apex-locked .ps-figure-lock::after{
  right: -2px;
  bottom: -2px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.ps-thumb.is-locked{
  background:
    radial-gradient(circle at 50% 44%, rgba(202,77,50,.2), transparent 56%),
    linear-gradient(180deg, rgba(20,23,26,.92), rgba(6,7,8,.98));
}

.ps-thumb.is-locked .ps-thumb-lock{
  display:grid;
  place-items:center;
  position:absolute;
  inset: 10px 14px 30px;
  z-index: 3;
  font-family: var(--ff-display);
  font-size: clamp(58px, 6.8vw, 108px);
  line-height: .78;
  color: rgba(255,255,255,.94);
  text-shadow:
    0 0 14px rgba(202,77,50,.88),
    0 9px 18px rgba(0,0,0,.9);
}

.ps-thumb.is-locked .ps-thumb-label{
  color: rgba(255,255,255,.88);
}

@keyframes apex-lock-pulse{
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(.98); }
  50% { transform: translateY(-4px) scale(1.025); filter: brightness(1.15); }
}

.ps-dots{
  gap: 18px;
  padding-top: 2px;
}

.ps-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(126,135,142,.42);
}

.ps-dot.active{
  width: 9px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(202,77,50,.8);
}

@media (max-width: 1280px){
  .ps-title .ps-en{
    font-size: clamp(34px, 4vw, 54px);
  }
  .ps-feature{
    min-height: 58px;
    grid-template-columns: 42px 1fr;
    padding: 8px 12px;
  }
  .ps-feature .ps-en-s{
    font-size: 13px;
  }
  .ps-illust img{
    height: min(104%, 560px);
  }
}

@media (max-width: 1099px){
  .cover-grid{
    min-height: auto;
  }
  .cover-wrap{
    padding-bottom: 0;
  }
  .cover-showcase{
    min-height: 0;
  }
}

@media (max-width: 720px){
  .screen--cover{
    padding: 28px 16px 48px;
  }
  .cover-title{
    font-size: 56px;
  }
  .cover-actions{
    width: 100%;
  }
  .cover-cta,
  .cover-ghost{
    min-width: 0;
    width: 100%;
  }
  .cover-meta{
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .cover-meta span{
    letter-spacing: .08em;
  }
  .ps-card{
    padding: 46px 16px 32px;
  }
  .ps-title .ps-en{
    font-size: 40px;
  }
  .ps-title .ps-cn{
    font-size: 27px;
  }
  .ps-illust{
    min-height: 330px;
    margin: 0 -8px;
  }
  .ps-illust img{
    height: min(110%, 390px);
    max-width: 140%;
  }
  .ps-rail{
    grid-template-columns: 28px 1fr 28px;
    gap: 6px;
    padding: 0;
  }
  .ps-thumbs{
    gap: 6px;
  }
  .ps-thumb .ps-thumb-label{
    left: 6px;
    right: 6px;
    bottom: 7px;
    font-size: 8px;
  }
}

/* 固定模板动态内容：描述、标签、人物地面装饰与轻量粒子 */
.ps-desc{
  max-width: 440px;
  min-height: 64px;
  margin: -10px 0 12px;
  font-family: var(--ff-cn);
  font-size: 13px;
  line-height: 1.72;
  color: rgba(214,220,225,.68);
}

.ps-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 18px;
}

.ps-tag{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 9px;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(224,106,79,.9);
  text-transform: uppercase;
  border: 1px solid rgba(202,77,50,.32);
  background: rgba(202,77,50,.08);
}

.ps-tag[hidden]{
  display:none;
}

.ps-glow{
  position:absolute;
  left: 38%;
  right: 2%;
  bottom: 9%;
  height: 42%;
  z-index: 1;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 58% 58%, rgba(244,172,83,.34), rgba(202,77,50,.18) 38%, transparent 76%),
    radial-gradient(closest-side at 42% 80%, rgba(255,222,142,.22), transparent 72%);
  filter: blur(22px);
  opacity: .72;
  animation: ps-glow-pulse 3.8s ease-in-out infinite;
}

.ps-glow::before,
.ps-glow::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  pointer-events:none;
}

.ps-glow::before{
  width: 72%;
  height: 28%;
  border: 1px solid rgba(224,106,79,.28);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(202,77,50,.26),
    inset 0 0 18px rgba(244,172,83,.18);
  animation: ps-ring-breathe 4.2s ease-in-out infinite;
}

.ps-glow::after{
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224,106,79,.86), transparent);
  box-shadow: 0 0 18px rgba(224,106,79,.7);
}

@keyframes ps-glow-pulse{
  0%, 100%{ transform: scale(.96); opacity: .58; }
  50%{ transform: scale(1.04); opacity: .86; }
}

@keyframes ps-ring-breathe{
  0%, 100%{ opacity: .36; transform: translateX(-50%) scaleX(.94); }
  50%{ opacity: .74; transform: translateX(-50%) scaleX(1.08); }
}

.ps-illust .ps-figure{
  position:absolute;
  left: 23%;
  right: 2%;
  bottom: 11%;
  width: auto;
  height: 58%;
  max-height: none;
  display:grid;
  place-items:end center;
  z-index: 4;
  transform: none;
}

.ps-illust img[data-ps="figure"]{
  width: auto;
  height: 100%;
  max-width: 112%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 4;
}

.ps-stage{
  z-index: 1;
  bottom: 7%;
  height: 82px;
  width: 84%;
  background:
    radial-gradient(56% 64% at 50% 46%, rgba(244,172,83,.28), rgba(202,77,50,.1) 34%, transparent 70%),
    radial-gradient(58% 86% at 50% 70%, rgba(0,0,0,.82), transparent 74%);
  filter: blur(.6px);
}

.ps-stage::before{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 18px;
  width: 78%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(224,106,79,.64), transparent);
  box-shadow:
    0 0 16px rgba(224,106,79,.64),
    0 -14px 32px rgba(244,172,83,.18);
}

.ps-stage::after{
  bottom: 14px;
  width: 46%;
  opacity: .72;
}

.ps-particles{
  background-image: none;
  overflow: visible;
  z-index: 5;
}

.ps-spark{
  --spark-x: 50%;
  --spark-y: 70%;
  --spark-drift: 18px;
  --spark-scale: 1;
  --spark-delay: 0s;
  position:absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(238,151,72,.9);
  box-shadow:
    0 0 8px rgba(238,151,72,.75),
    0 0 18px rgba(202,77,50,.34);
  opacity: 0;
  transform: translate3d(0,0,0) scale(var(--spark-scale));
  animation: ps-spark-rise 3.8s ease-in-out infinite;
  animation-delay: var(--spark-delay);
}

.ps-spark:nth-child(3n){
  width: 2px;
  height: 2px;
  background: rgba(255,231,178,.86);
}

.ps-spark:nth-child(4n){
  width: 7px;
  height: 1px;
  border-radius: 0;
  transform: rotate(-18deg) scale(var(--spark-scale));
}

@keyframes ps-spark-rise{
  0%{
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(var(--spark-scale));
  }
  18%{
    opacity: .85;
  }
  100%{
    opacity: 0;
    transform: translate3d(calc(var(--spark-drift) * -.45), calc(var(--spark-drift) * -1), 0) scale(.35);
  }
}

.ps-card.is-updating .ps-title,
.ps-card.is-updating .ps-desc,
.ps-card.is-updating .ps-tags,
.ps-card.is-updating .ps-features{
  animation: ps-content-refresh .24s ease both;
}

.ps-card.is-updating .ps-figure{
  animation: ps-figure-refresh .38s cubic-bezier(.22,1,.36,1) both;
}

@keyframes ps-content-refresh{
  from{ opacity: .72; transform: translateY(2px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes ps-figure-refresh{
  from{ opacity: .78; transform: translateX(10px); }
  to{ opacity: 1; transform: translateX(0); }
}

@media (max-width: 1280px){
  .ps-desc{
    min-height: 56px;
    font-size: 12.5px;
    line-height: 1.62;
  }
  .ps-tags{
    margin-bottom: 14px;
  }
}

@media (max-width: 720px){
  .ps-desc{
    min-height: auto;
    font-size: 12px;
  }
  .ps-illust .ps-figure{
    left: 3%;
    right: 0;
    bottom: 9%;
    height: 70%;
  }
  .ps-glow{
    left: 14%;
    right: 10%;
    bottom: 12%;
  }
}

/* --- Profile icon --- */
#nav-profile { display:flex; align-items:center; }
.nav-pfp-wrap { position:relative; }
.nav-pfp {
  width:32px; height:32px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.15);
  cursor:pointer;
  display:block;
  transition:border-color .15s;
}
.nav-pfp:hover { border-color:rgba(255,255,255,.4); }
.nav-pfp-menu {
  display:none;
  position:absolute; top:calc(100% + 10px); right:0;
  background:#111213;
  border:1px solid rgba(255,255,255,.1);
  border-radius:6px;
  min-width:140px;
  padding:10px;
  z-index:200;
}
.nav-pfp-wrap .nav-pfp-menu { display:none; }
.nav-pfp-name {
  font:500 11px/1 monospace;
  letter-spacing:.06em;
  color:rgba(255,255,255,.6);
  padding:4px 6px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav-pfp-logout {
  width:100%;
  background:none;
  border:1px solid rgba(202,77,50,.4);
  border-radius:4px;
  color:#ca4d32;
  font:600 10px/1 monospace;
  letter-spacing:.1em;
  padding:7px;
  cursor:pointer;
  transition:background .15s;
}
.nav-pfp-logout:hover { background:rgba(202,77,50,.12); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  color: rgba(255,255,255,.6);
  font: 600 10px/1 monospace;
  letter-spacing: .1em;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color:rgba(255,255,255,.5); color:#fff; }

/* --- i18n font scaling --- */
:root[lang="en"] .cover-title,
:root[lang="ru"] .cover-title {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.15;
}

:root[lang="en"] .result-name,
:root[lang="ru"] .result-name {
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.2;
}

:root[lang="en"] .m-name,
:root[lang="ru"] .m-name {
  font-size: clamp(20px, 3.5vw, 42px);
}

:root[lang="en"] .ps-en,
:root[lang="ru"] .ps-en {
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.2;
}

:root[lang="en"] .cover-sub,
:root[lang="ru"] .cover-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.7;
}

.q-block .q-title {
  padding-left: 72px !important;
  margin-top: 0 !important;
}

.ps-en {
  font-size: clamp(20px, 2.8vw, 36px) !important;
  line-height: 1.15 !important;
}

.q-block {
  position: relative;
  padding-left: 0 !important;
}

.q-num {
  position: static !important;
  display: inline-block !important;
  margin-bottom: 10px !important;
  font-size: clamp(28px, 4vw, 48px) !important;
}

.q-block .q-title {
  padding-left: 0 !important;
  margin-top: 0 !important;
  display: block !important;
}

.quiz-body .q-eyebrow + .q-list .q-block::before {
  display: none !important;
}

.q-block::before,
.q-block > .q-num::before {
  display: none !important;
  content: none !important;
}

/* hide the gray Q letter next to number */
.quiz-body .q-num {
  font-size: clamp(32px, 5vw, 52px) !important;
  letter-spacing: 0.05em !important;
}

.quiz-body .q-block {
  padding-left: 16px !important;
}

/* --- Discord result CTA --- */
.result-discord-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font: 500 11px/1 monospace;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}

.result-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5865F2;
  text-decoration: none;
  font: 700 11px/1 monospace;
  letter-spacing: .08em;
  padding: 4px 10px;
  border: 1px solid rgba(88,101,242,.35);
  border-radius: 3px;
  background: rgba(88,101,242,.08);
  transition: background .15s, border-color .15s;
}

.result-discord-link:hover {
  background: rgba(88,101,242,.18);
  border-color: rgba(88,101,242,.6);
  color: #7289da;
}

/* --- Discord banner --- */
.discord-banner {
  position: relative;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(88,101,242,.07);
  border-bottom: 1px solid rgba(88,101,242,.18);
  font: 600 12px/1 monospace;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  overflow: hidden;
}

body.on-result .discord-banner {
  display: flex;
}

.discord-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(88,101,242,.08) 40%,
    rgba(88,101,242,.08) 60%,
    transparent 100%
  );
}


.discord-banner svg {
  flex-shrink: 0;
  color: #5865F2;
  position: relative;
  z-index: 1;
}


.db-text {
  position: relative;
  z-index: 1;
}

.db-link {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-decoration: none;
  font: 700 13px/1 monospace;
  letter-spacing: .12em;
  padding: 5px 12px;
  border: none;
  border-radius: 3px;
  background: #5865F2;
  transition: background .15s;
}

.db-link:hover {
  background: #4752c4;
  color: #ffffff;
}


.db-link:hover {
  background: rgba(88,101,242,.25);
  border-color: rgba(88,101,242,.7);
  color: #7289da;
}

.db-share-btn {
  position: relative;
  z-index: 1;
  display: none !important;
  align-items: center;
  gap: 7px;
  background: #ca4d32;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font: 700 11px/1 monospace;
  letter-spacing: .12em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s;
}

.db-share-btn:hover {
  background: #a33a22;
}

body.on-result .db-share-btn {
  display: inline-flex !important;
}

@keyframes db-link-glow-red {
  0%, 100% { box-shadow: 0 0 0px rgba(202,77,50,0); }
  50%       { box-shadow: 0 0 10px rgba(202,77,50,.4); }
}

.db-share-btn:hover {
  background: rgba(202,77,50,.28);
  border-color: rgba(202,77,50,.7);
}

.discord-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(88,101,242,.03) 2px,
    rgba(88,101,242,.03) 4px
  );
  pointer-events: none;
}

.db-link {
  animation: none;
}

.db-share-btn {
  animation: none;
  display: none !important;
}

body.on-result .db-share-btn {
  display: inline-flex !important;
}

