:root {
  --paper: #EAF2F8;
  --paper-2: #F6FAFD;
  --ink: #12233D;
  --slate: #4B6885;
  --accent: #1E88E5;
  --accent-deep: #0F5CA8;
  --beam: #7DBEFF;
  --line: rgba(18, 35, 61, .14);
  --grid: rgba(18, 35, 61, .04);
  --sans: "Inter Tight", "Noto Sans SC", system-ui, sans-serif;
  --cn: "Noto Sans SC", "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- 主题：点首页的名字切换（原色 ⇄ 黑色） ----------
   黑色主题换一套颜色变量；首页的大标题和名字各自有字体变量，两个主题用不同的字。 */
:root {
  --page: #EAF2F8; --page-grid: rgba(18, 35, 61, .04); --cut: #EAF2F8; --body: #3A526E;
  --title-ls: -.028em;
  /* 大标题：细衬线；名字：加粗斜体 */
  --world-font: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  --world-w: 400; --world-k: 1.22; --world-ls: -.012em; --world-em: italic;
  --name-font: var(--sans);
  --name-style: italic; --name-w: 800; --name-ls: -.035em; --name-k: 1;
}
:root[data-theme="night"] {
  --page: #05070D; --page-grid: rgba(150, 185, 255, .05); --cut: #05070D;
  --ink: #EAF2FB; --slate: #8EA5C4; --body: #A9BDD8;
  --accent: #4BA3FF; --accent-deep: #1D62C4; --beam: #8CC6FF;
  --line: rgba(190, 215, 255, .16);
  /* 大标题和名字都换成 Unbounded：标题细、名字粗 */
  --world-font: "Unbounded", var(--sans);
  --world-w: 300; --world-k: .58; --world-ls: .01em; --world-em: normal;
  --name-font: "Unbounded", var(--sans);
  --name-style: normal; --name-w: 800; --name-ls: -.03em; --name-k: .74;
  color-scheme: dark;
}
/* 黑色主题里，物件本身（机器、相机、白色的卡片和票）还按浅色那套上色 */
:root[data-theme="night"] :is(.meter, .lab, .shot, .gacha, .g-prize, .g-result, .pass) {
  --ink: #12233D; --slate: #4B6885; --body: #3A526E;
  --accent: #1E88E5; --accent-deep: #0F5CA8; --beam: #7DBEFF;
  --line: rgba(18, 35, 61, .14);
}
:root[data-theme="night"] .pill:hover { background: #F2F7FD; color: #05070D; }
/* 顶上最亮，给导航垫一层暗底，字才看得清 */
:root[data-theme="night"] .nav { background: linear-gradient(180deg, rgba(5, 7, 13, .82), rgba(5, 7, 13, .5) 62%, transparent); }
:root[data-theme="night"] .links a { color: #B9CBE4; }
:root[data-theme="night"] .links a:hover, :root[data-theme="night"] .links a.on { color: #fff; }
:root[data-theme="night"] .life-list dt { color: var(--beam); }

/* ---------- 黑色主题的首页 ----------
   思路：房间是暗的，光只来自辉光管——管子背后有一团光晕、台面上有一片反光，名字和数字是同一种蓝白色的光。
   只改颜色、光和质感，不动排版。 */
/* 环境光：中间一片很深的蓝，四周回到纯黑 */
:root[data-theme="night"] .hero::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 62% 52% at 50% 60%, rgba(24, 58, 138, .44), rgba(14, 30, 78, .2) 55%, transparent 78%),
    radial-gradient(ellipse 80% 34% at 50% 0%, rgba(30, 60, 130, .16), transparent 70%);
}
/* 一层很细的颗粒，暗部不会是一块死黑，渐变也不会出现色带 */
:root[data-theme="night"] .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .88 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .075;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
/* 层级：名字最亮，大标题退后一档，"world line" 两个词提亮 */
:root[data-theme="night"] .world { color: #A9BEDD; }
:root[data-theme="night"] .world em { color: #F1F7FF; }
:root[data-theme="night"] .hero .bio { color: #93A9C9; }
/* 名字：不再是一块平的蓝色，而是和辉光管数字一样的蓝白光（发光用 filter，才不会被入场动画的遮罩裁掉） */
:root[data-theme="night"] .name {
  color: #EAF4FF;
  filter: drop-shadow(0 0 .05em rgba(110, 180, 255, .8)) drop-shadow(0 0 .24em rgba(40, 120, 255, .42));
}
:root[data-theme="night"] .name > span { text-shadow: 0 0 .025em #fff, 0 0 .06em rgba(160, 210, 255, .9); }
/* 机器：整体压暗一档，亮的只剩数字和灯；脚下加一段倒影，像放在一张黑色亮面的桌上 */
:root[data-theme="night"] .nx-img {
  filter: brightness(.8) contrast(1.1) saturate(1.15);
  -webkit-box-reflect: below 0 linear-gradient(transparent 76%, rgba(255, 255, 255, .2));
}
/* 管子背后的光晕放大，照到周围 */
:root[data-theme="night"] .aura {
  left: -20%; right: -20%; top: -46%; height: 150%;
  background: radial-gradient(50% 50% at 50% 54%, rgba(48, 128, 255, .34), rgba(40, 104, 240, .13) 46%, transparent 72%);
  filter: blur(4cqw);
  opacity: 1;
}
/* 浅色主题里这是一块影子；黑色主题里换成台面上的一片蓝光 */
:root[data-theme="night"] .meter .shadow {
  left: -6cqw; right: -6cqw; height: 10cqw; margin-top: -5.2cqw;
  background: radial-gradient(50% 50% at 50% 50%, rgba(70, 150, 255, .42), rgba(40, 110, 255, .14) 50%, transparent 74%);
  filter: blur(1.6cqw);
}
:root[data-theme="night"] .tube .glow { background: radial-gradient(closest-side, rgba(110, 185, 255, .62), rgba(40, 130, 240, .26) 58%, transparent); }
:root[data-theme="night"] .meter-cap { color: #7F97BA; }

/* 换主题时，新主题从点击的位置一圈圈扩开 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--page); color: var(--ink); }

body {
  font-family: var(--cn);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

a { color: inherit; text-decoration: none; }

/* 键盘焦点：统一一圈强调色。物件上的按钮各有自己的焦点样式，写在后面 */
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.cam-shutter:focus-visible, .wall:focus-visible { outline: none; }
::selection { background: var(--accent); color: #fff; }
/* 跳到正文：只有按 Tab 时才出现 */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 20;
  padding: 11px 16px; border-radius: 99px;
  background: var(--ink); color: var(--page); font: 500 13px/1 var(--cn);
  transform: translateY(-220%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 40px;
  padding: 22px clamp(16px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 7px; font: 600 14px/1 var(--sans); letter-spacing: .14em; }
.brand i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--beam); }
.links { display: flex; gap: 34px; margin-left: auto; }
.links a {
  position: relative;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--slate);
  padding: 7px 0; transition: color .3s;
}
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.links a:hover, .links a.on { color: var(--ink); }
.links a.on::after, .links a:hover::after { transform: scaleX(1); }
.pill {
  font: 500 12px/1 var(--mono); letter-spacing: .12em;
  padding: 12px 20px; border-radius: 99px;
  background: var(--accent); color: #fff;
  transition: background .3s, transform .3s var(--ease);
}
.pill:hover { background: var(--ink); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(36px, 6vh, 72px);
  padding: 104px clamp(16px, 6vw, 96px) 56px;
  max-width: 1560px; margin: 0 auto;
  text-align: center;
}
/* 首页背景：世界线（worldline.js），铺满整个视口宽度，往下淡出 */
.hero { position: relative; isolation: isolate; }
.hero-bg {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; overflow: hidden; pointer-events: none;
  /* 往下淡出；中间文字那一块压淡，保证字看得清 */
  -webkit-mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0, #000 16%, #000 60%, transparent 97%),
    radial-gradient(ellipse 30% 26% at 50% 31%, rgba(0, 0, 0, .16) 0 55%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0, #000 16%, #000 60%, transparent 97%),
    radial-gradient(ellipse 30% 26% at 50% 31%, rgba(0, 0, 0, .16) 0 55%, #000 100%);
  mask-composite: intersect;
}
.worldline-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-object { width: 100%; }

.world {
  font: var(--world-w) calc(clamp(28px, 3.3vw, 54px) * var(--world-k))/1.2 var(--world-font);
  letter-spacing: var(--world-ls);
}
.world em { font-style: var(--world-em); }
.name-h { font: inherit; }
.name {
  display: block;
  margin-top: clamp(8px, 1vw, 16px);
  font: var(--name-style) var(--name-w) calc(clamp(64px, 7vw, 124px) * var(--name-k))/.95 var(--name-font);
  letter-spacing: var(--name-ls);
  color: var(--accent);
  white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.name:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; }
.name > span {
  padding: 0 .12em .2em 0;
  margin-bottom: -.1em;
  text-shadow:
    .010em .010em 0 var(--accent-deep), .020em .020em 0 var(--accent-deep),
    .030em .030em 0 var(--accent-deep), .040em .040em 0 var(--accent-deep),
    .050em .050em 0 var(--accent-deep);
}
.bio {
  margin-top: clamp(20px, 2.4vw, 34px);
  font: 700 clamp(15px, 1.2vw, 18px)/2 var(--cn);
  color: var(--body);
}

/* ---------- meter ---------- */
/* 探测仪是一张透明底的渲染图（7 根辉光管 + 底座），数字、灯和铭牌刻字是叠上去的 */
.hero-object { display: flex; justify-content: center; }
.meter {
  container-type: inline-size;
  width: min(100%, 780px, 80vh);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.meter-in { position: relative; }
.nx-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }

.aura {
  position: absolute; left: 2%; right: 2%; top: -12%; height: 76%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(30, 136, 229, .36), rgba(125, 190, 255, .13) 55%, transparent 72%);
  filter: blur(2.4cqw);
  pointer-events: none;
  opacity: .85;
}
.shifting .aura { animation: aura .12s steps(2) infinite; }
@keyframes aura { 50% { opacity: .45; } }

/* 每根管子：一个盖在图上深色管芯位置的小盒子 */
.tubes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tube {
  position: absolute; left: var(--x); top: 26.86%; width: 8.6cqw; height: 31.7%;
  transform: translate(-50%, -50%);
}
/* 点亮时管子里的光，会漫到玻璃和底下的铬座上 */
.tube .glow, .tube .spill {
  position: absolute; pointer-events: none; mix-blend-mode: screen;
  opacity: 1; transition: opacity .12s, filter .5s ease-out;
}
.tube .glow {
  inset: -9% -34% -4%;
  background: radial-gradient(closest-side, rgba(96, 178, 255, .5), rgba(30, 136, 229, .2) 58%, transparent);
}
.tube .spill {
  left: -52%; right: -52%; top: 105%; height: 38%;
  background: radial-gradient(closest-side, rgba(120, 195, 255, .5), transparent);
}
.tube.off .glow, .tube.off .spill { opacity: 0; }
.stack span, .lit {
  position: absolute; left: 50%; top: 48%;
  font: 300 12.8cqw/1 "Jost", var(--sans);
  transform: translate(-50%, -50%) scaleX(.8);
}
.stack span {
  color: rgba(165, 200, 235, .075);
  margin-left: calc((var(--j) - 4.5) * .07cqw);
}
.lit {
  color: #F2FAFF; font-style: normal;
  text-shadow:
    0 0 .3cqw #DDF0FF,
    0 0 1.2cqw var(--beam),
    0 0 2.8cqw rgba(30, 136, 229, .95),
    0 0 6cqw rgba(30, 136, 229, .6);
  animation: shimmer 3.4s ease-in-out infinite;
  transition: filter .5s ease-out;
}
.tube:nth-child(odd) .lit { animation-delay: -1.3s; }
.tube:nth-child(3n) .lit { animation-delay: -2.2s; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 46% { opacity: .93; } 50% { opacity: .99; } 54% { opacity: .9; } }
/* 世界线的心跳：数字和管子里的光一起亮一下，再慢慢落回去。只改 filter，不碰 .lit 的 animation，也不给 .tubes 整体加 filter（会破坏 .glow 的 screen 混合） */
.tubes.beat .lit { filter: brightness(calc(1 + .32 * var(--beat, 1))); transition-duration: .05s; }
.tubes.beat .glow { filter: brightness(calc(1 + .6 * var(--beat, 1))); transition-duration: .05s, .05s; }
/* 小数点和数字在同一根管里，真的辉光管也是这样 */
.dp {
  position: absolute; left: 82%; top: 82%;
  width: 1.25cqw; height: 1.25cqw; border-radius: 50%;
  background: #F2FAFF;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 .5cqw #DDF0FF, 0 0 1.4cqw var(--beam), 0 0 3cqw rgba(30, 136, 229, .95);
  transition: opacity .1s;
}
.tube.off .lit { opacity: 0; animation: none; }
.tube.off .dp, .dp.off { opacity: 0; }
/* 管芯前面那层玻璃的反光，压在数字上面 */
.tube .shine {
  position: absolute; left: 7%; top: 3%; width: 9%; height: 82%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03));
  filter: blur(.15cqw);
}
.tube.lock .lit { animation: lock .34s ease-out; }
@keyframes lock { 0% { filter: brightness(1.8); transform: translate(-50%, -50%) scaleX(.8) scale(1.04); } 100% { filter: none; } }

/* 底座上的灯：图里本来就有，这里再叠一层会呼吸的光 */
.nx-strip, .nx-led { position: absolute; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.nx-strip {
  left: 1%; right: 1%; top: 78.71%; height: 4.17%;
  background: linear-gradient(90deg, transparent, rgba(150, 215, 255, .85) 12%, rgba(190, 232, 255, .95) 50%, rgba(150, 215, 255, .85) 88%, transparent);
  filter: blur(.5cqw);
  animation: led 3.4s ease-in-out infinite;
}
.nx-led {
  left: 18%; top: 70.13%; width: 5.4cqw; height: 5.4cqw; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(215, 240, 255, .95), rgba(90, 175, 255, .6) 45%, transparent);
  animation: led 2.4s ease-in-out infinite;
}
.shifting .nx-strip, .shifting .nx-led { animation: led .16s steps(2) infinite; }
@keyframes led { 50% { opacity: .3; } }

/* 刻字 */
.nx-plate {
  position: absolute; z-index: 2; white-space: nowrap; pointer-events: none;
  font-family: var(--mono); line-height: 1;
}
.nx-plate {
  left: 50.2%; top: 70.48%; transform: translate(-50%, -50%);
  padding-left: .22em;
  font-weight: 700; font-size: 1.42cqw; letter-spacing: .22em;
  color: #2B405F;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
/* 右边的蓝色按钮：图上是静止的，按下去时压暗一下 */
.toggle {
  position: absolute; z-index: 3; left: 81.95%; top: 70.36%;
  width: max(8.4cqw, 44px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: none; border: 0; cursor: pointer; outline: none;
  display: grid; place-items: center;
}
.toggle i {
  width: min(100%, 5.6cqw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, rgba(190, 228, 255, .5), transparent 62%);
  mix-blend-mode: screen; opacity: 0;
  transition: opacity .2s, box-shadow .2s;
}
.meter:hover .toggle i { opacity: .7; }
.toggle.press i { opacity: 1; box-shadow: inset 0 .5cqw 1cqw rgba(4, 16, 48, .75); mix-blend-mode: normal; background: rgba(4, 18, 60, .35); }
.shifting .toggle i { opacity: 1; }
.toggle:focus-visible i { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

.meter-cap {
  display: none; margin-top: 10px; text-align: center;
  font: 500 11px/1 var(--mono); letter-spacing: .3em; color: var(--slate);
}
/* 机器小到刻字放不下时，刻字挪到机器下面一行 */
@container (max-width: 560px) {
  .nx-plate { display: none; }
  .meter-cap { display: block; }
  /* 机器下面有一行说明文字，倒影会压在字上，这里不要倒影 */
  :root[data-theme="night"] .nx-img { -webkit-box-reflect: unset; }
}
/* 影子不占高度，这样上面那些按百分比定位的东西才和图对得上 */
.shadow {
  position: absolute; left: 3cqw; right: 3cqw; top: 100%;
  height: 3.4cqw; margin-top: -1.7cqw;
  background: radial-gradient(50% 50% at 50% 50%, rgba(18, 35, 61, .3), transparent 72%);
  filter: blur(.8cqw);
}

/* ---------- entrance ---------- */
.mask { overflow: hidden; }
.mask > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); }
.ready .hero .mask > span, .sec.in .mask > span { transform: none; }
.ready .name.mask > span { transition-delay: .1s; }
.fade { opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * .12s + .2s); }
.ready .hero .fade, .sec.in .fade { opacity: 1; transform: none; }

/* ---------- sections ---------- */
html { scroll-behavior: smooth; }
/* 整屏吸附：用浏览器自带的滚动吸附，不再用脚本接管滚轮。
   触控板上页面跟着手指一点点走，松手后自己滑到最近的一屏；一次最多走一屏（scroll-snap-stop）。
   手机上模块不是整屏高，不吸附。 */
@media (min-width: 761px) {
  html { scroll-snap-type: y mandatory; }
  .hero, .sec { scroll-snap-align: start; scroll-snap-stop: always; }
}
.sec {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(36px, 6vh, 64px);
  padding: 104px clamp(16px, 6vw, 96px) 72px;
  max-width: 1560px; margin: 0 auto;
}
.title {
  font: 800 clamp(36px, 4.9vw, 80px)/1.1 var(--sans);
  letter-spacing: var(--title-ls); text-align: center;
}

/* 3D 立体标题：白字面 + 一层层蓝色厚度，方向固定 */
.depth {
  --dx: .46; --dy: .7; --u: .0118em;
  --rim: rgba(26, 104, 182, .72);
  padding: .26em .3em .42em;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s, transform .9s var(--ease);
}
.sec.in .depth { opacity: 1; transform: none; }
.depth > span {
  display: inline-block; color: #FCFEFF;
  text-shadow:
    0px -1px 0 var(--rim),
    1px -1px 0 var(--rim),
    1px 0px 0 var(--rim),
    1px 1px 0 var(--rim),
    0px 1px 0 var(--rim),
    -1px 1px 0 var(--rim),
    -1px 0px 0 var(--rim),
    -1px -1px 0 var(--rim),
    calc(var(--dx) * 1 * var(--u)) calc(var(--dy) * 1 * var(--u)) 0 #9ACCFF,
    calc(var(--dx) * 2 * var(--u)) calc(var(--dy) * 2 * var(--u)) 0 #94C7FB,
    calc(var(--dx) * 3 * var(--u)) calc(var(--dy) * 3 * var(--u)) 0 #8EC2F7,
    calc(var(--dx) * 4 * var(--u)) calc(var(--dy) * 4 * var(--u)) 0 #88BCF2,
    calc(var(--dx) * 5 * var(--u)) calc(var(--dy) * 5 * var(--u)) 0 #82B7EE,
    calc(var(--dx) * 6 * var(--u)) calc(var(--dy) * 6 * var(--u)) 0 #7DB2EA,
    calc(var(--dx) * 7 * var(--u)) calc(var(--dy) * 7 * var(--u)) 0 #77ADE6,
    calc(var(--dx) * 8 * var(--u)) calc(var(--dy) * 8 * var(--u)) 0 #71A8E1,
    calc(var(--dx) * 9 * var(--u)) calc(var(--dy) * 9 * var(--u)) 0 #6BA2DD,
    calc(var(--dx) * 10 * var(--u)) calc(var(--dy) * 10 * var(--u)) 0 #659DD9,
    calc(var(--dx) * 11 * var(--u)) calc(var(--dy) * 11 * var(--u)) 0 #5F98D5,
    calc(var(--dx) * 12 * var(--u)) calc(var(--dy) * 12 * var(--u)) 0 #5993D0,
    calc(var(--dx) * 13 * var(--u)) calc(var(--dy) * 13 * var(--u)) 0 #538ECC,
    calc(var(--dx) * 14 * var(--u)) calc(var(--dy) * 14 * var(--u)) 0 #4E88C8,
    calc(var(--dx) * 15 * var(--u)) calc(var(--dy) * 15 * var(--u)) 0 #4883C4,
    calc(var(--dx) * 16 * var(--u)) calc(var(--dy) * 16 * var(--u)) 0 #427EBF,
    calc(var(--dx) * 17 * var(--u)) calc(var(--dy) * 17 * var(--u)) 0 #3C79BB,
    calc(var(--dx) * 18 * var(--u)) calc(var(--dy) * 18 * var(--u)) 0 #3674B7,
    calc(var(--dx) * 19 * var(--u)) calc(var(--dy) * 19 * var(--u)) 0 #306EB3,
    calc(var(--dx) * 20 * var(--u)) calc(var(--dy) * 20 * var(--u)) 0 #2A69AE,
    calc(var(--dx) * 21 * var(--u)) calc(var(--dy) * 21 * var(--u)) 0 #2464AA,
    calc(var(--dx) * 22 * var(--u)) calc(var(--dy) * 22 * var(--u)) 0 #1F5FA6,
    calc(var(--dx) * 23 * var(--u)) calc(var(--dy) * 23 * var(--u)) 0 #195AA2,
    calc(var(--dx) * 24 * var(--u)) calc(var(--dy) * 24 * var(--u)) 0 #13549D,
    calc(var(--dx) * 25 * var(--u)) calc(var(--dy) * 25 * var(--u)) 0 #0D4F99,
    calc(var(--dx) * 26 * var(--u)) calc(var(--dy) * 26 * var(--u)) 0 #074A95,
    calc(var(--dx) * 29 * var(--u)) calc(var(--dy) * 29 * var(--u)) .2em rgba(12, 66, 128, .3);
}

/* ---------- builder: 未来道具展示柜 ---------- */
/* 柜子和三件道具是一张透明底的渲染图；三张标签卡是真文字，叠在每一格的台座前面 */
#builder { padding-top: 92px; padding-bottom: 40px; gap: clamp(8px, 2.4vh, 36px); }
.lab {
  position: relative; container-type: inline-size;
  width: min(100%, 1240px, calc((100vh - 300px) * 1.866));
}
.lab-img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.lab-list { list-style: none; }
.fg {
  position: absolute; top: 16.6%; bottom: 13.6%;
  left: var(--l); width: var(--w);
}
.fg.n1 { --l: 4.6%; --w: 29.2%; border-radius: 3.6cqw 0 0 3.6cqw; }
.fg.n2 { --l: 35.5%; --w: 29%; }
.fg.n3 { --l: 66.2%; --w: 29.3%; border-radius: 0 3.6cqw 3.6cqw 0; }
/* 进场：三格的灯一格一格亮起来 */
.fg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(6, 18, 48, .5);
  transition: opacity .38s ease-out; transition-delay: calc(var(--i) * .13s + .35s);
}
.sec.in .fg::before { opacity: 0; }
/* 指到哪一格，那一格的灯更亮 */
.fg-light {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 62% at 50% 4%, rgba(190, 230, 255, .6), rgba(120, 190, 255, .16) 55%, transparent 78%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .25s;
}
.fg:hover .fg-light, .fg:focus-within .fg-light { opacity: 1; }
.fg-shot { display: none; }

.fg-tag {
  position: absolute; left: 50%; bottom: 3.5%; width: 84%;
  padding: 1.15cqw 1.35cqw 1.2cqw;
  background: linear-gradient(180deg, #FDFEFF, #EEF4FA);
  border-radius: .55cqw;
  box-shadow: 0 1.4cqw 2cqw -1cqw rgba(6, 22, 60, .7), 0 0 0 1px rgba(18, 35, 61, .08), inset 0 1px 0 #fff;
  color: var(--ink);
  opacity: 0; transform: translate(-50%, 14px);
  transition: opacity .38s ease-out, transform .38s var(--ease), box-shadow .25s;
  transition-delay: calc(var(--i) * .13s + .45s), calc(var(--i) * .13s + .45s), 0s;
}
.sec.in .fg-tag { opacity: 1; transform: translate(-50%, 0); }
.sec.in .fg:hover .fg-tag, .sec.in .fg:focus-within .fg-tag {
  transform: translate(-50%, -5px); transition-delay: 0s;
  box-shadow: 0 2cqw 2.4cqw -1cqw rgba(6, 22, 60, .8), 0 0 0 1px rgba(30, 136, 229, .35), inset 0 1px 0 #fff;
}
.fg-no { font: 500 clamp(10px, 1cqw, 12.5px)/1 var(--mono); letter-spacing: .08em; color: var(--accent-deep); }
.fg-led {
  position: absolute; right: 1.3cqw; top: 1.15cqw; width: clamp(8px, .95cqw, 11px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%);
  box-shadow: 0 0 0 1px rgba(18, 35, 61, .18), 0 0 .7cqw var(--c);
}
.fg-led.live { --c: #2DBE5A; }
.fg-led.wip { --c: #F2A81D; animation: led 2s ease-in-out infinite; }
.fg-led.done { --c: #2F8BF0; }
.fg-name { margin-top: .45cqw; font: 800 clamp(15px, 1.9cqw, 24px)/1.15 var(--sans); letter-spacing: -.02em; }
.fg-desc { margin-top: .5cqw; font: 500 clamp(11.5px, 1.2cqw, 15px)/1.45 var(--cn); color: #1F3350; }
.fg-meta { margin-top: .55cqw; font: 400 clamp(11px, 1.08cqw, 13.5px)/1.45 var(--cn); color: #3A526E; }
.fg-go {
  display: inline-block; margin-top: .6cqw;
  font: 600 clamp(11.5px, 1.2cqw, 15px)/1.3 var(--sans); color: #0F62C0;
  text-decoration: underline; text-decoration-color: rgba(15, 98, 192, .35); text-underline-offset: .2em;
}
/* 整张卡都能点 */
.fg-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fg-go:hover { text-decoration-color: currentColor; }
.fg-go:focus-visible { outline: none; }
.fg-go:focus-visible::after { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.fg-go span { display: inline-block; transition: transform .2s; }
.fg:hover .fg-go span { transform: translate(2px, -2px); }
/* 琥珀主题整页转色相，状态灯要保持原色 */

/* ---------- creator: instant camera ---------- */
#creator { position: relative; }   /* 全屏闪光那一层以这一屏为准 */
.shot {
  position: relative;
  --camw: min(46vw, 530px);
  --cardw: min(35vw, 440px);
  --gap: min(9vw, 124px);                   /* 相机和照片之间的空隙 */
  --camh: calc(var(--camw) * .6835);        /* 相机图的高 */
  --lip: calc(var(--camh) * .172);          /* 出片口那条线到机身底边的距离 */
  display: flex; align-items: flex-start; justify-content: center; width: 100%;
}
/* 机身是一张透明底的渲染图，上面叠闪光、铭牌刻字、灯带和快门的点击区 */
.cam { container-type: inline-size; position: relative; z-index: 2; flex: none; width: var(--camw); }
.cam-body { position: relative; aspect-ratio: 1447 / 989; }
.cam-body > * { position: absolute; }
.cam-body::after {
  content: ""; position: absolute; left: 4%; width: 92%; top: 95%; height: 7%; z-index: -1;
  border-radius: 50%; background: radial-gradient(50% 50%, rgba(18, 35, 61, .36), transparent 70%);
  filter: blur(1cqw);
}
.cam-img { left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; pointer-events: none; }
.cam-flash {
  left: 10.92%; top: 17.39%; width: 18.45%; height: 12.94%; border-radius: 1cqw;
  background: #fff; opacity: 0; pointer-events: none;
}
.cam-flash.fire { animation: fire .62s ease-out; }
/* 按快门的一瞬间，闪光灯把整屏照亮一下；亮的中心在闪光灯上（--fx / --fy 由 camera.js 给） */
.cam-burst {
  position: absolute; z-index: 6; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(circle at var(--fx, 40%) var(--fy, 50%),
    rgba(240, 247, 255, .8), rgba(206, 228, 255, .4) 20%, rgba(130, 180, 255, .11) 52%, transparent 78%);
  opacity: 0;
}
.cam-burst.fire { animation: burst .95s ease-out; }
@keyframes burst { 0% { opacity: 0; } 7% { opacity: var(--burst, .4); } 100% { opacity: 0; } }
@keyframes fire {
  0% { opacity: 1; box-shadow: 0 0 0 0 #fff; }
  14% { opacity: 1; box-shadow: 0 0 var(--fire-blur, 30cqw) var(--fire-spread, 14cqw) var(--fire, rgba(255, 255, 255, .95)); }
  100% { opacity: 0; box-shadow: 0 0 8cqw 2cqw rgba(255, 255, 255, 0); }
}
.cam-name {
  left: 8.98%; width: 19.2%; top: 47%; height: 8.1%;
  display: grid; place-items: center; white-space: nowrap;
  font: 700 2.05cqw/1 var(--mono); letter-spacing: .2em; text-indent: .2em; color: #3A4E6B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(20, 40, 80, .22);
}
.cam-led {
  top: 63.2%; height: 7.6%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(50% 50%, rgba(150, 215, 255, .9), rgba(40, 140, 255, .5) 55%, transparent 76%);
  filter: blur(.6cqw); opacity: .3; animation: gidle 3.4s ease-in-out infinite;
}
.cam-led.l { left: -1%; width: 33%; }
.cam-led.r { left: 70%; width: 31%; }
.cam.firing .cam-led { animation: gflash .9s linear; }
.cam-shutter {
  left: 77.06%; top: 40.75%; width: 13.41%; aspect-ratio: 1; padding: 0;
  border: 0; background: none; border-radius: 50%; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.cam-shutter i {
  position: absolute; inset: 12%; border-radius: 50%;
  transition: background .15s, box-shadow .15s;
}
.cam-shutter:hover i { background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 70%); }
.cam-shutter:active i { background: rgba(4, 20, 60, .36); box-shadow: inset 0 .8cqw 1.4cqw rgba(0, 10, 40, .65); }
.cam-shutter::after {
  content: ""; position: absolute; inset: -5%; border-radius: 50%;
  border: 1.5px solid var(--beam);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.cam-shutter:focus-visible { box-shadow: 0 0 0 .5cqw var(--beam); }

.tray {
  container-type: inline-size;   /* 名片里的字号跟着卡片宽度一起缩放 */
  position: relative; z-index: 3;
  flex: none; width: var(--cardw);
  height: var(--camh);           /* 和机身一样高，照片落定后底边齐平 */
  margin-left: var(--gap);
}
.card {
  --x0: calc(var(--camw) * -.498 - var(--gap) - 50%);   /* 横向对准出片口正中 */
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 4.4cqw;   /* 四边一样宽的白边，底部不留写字的地方 */
  background: linear-gradient(180deg, #FDFEFF, #F1F6FA);
  border-radius: .95cqw;
  box-shadow: 0 18px 30px -14px rgba(18, 35, 61, .5), 0 1px 0 rgba(18, 35, 61, .08);
  /* 初始：整张停在出片口那条线的上方，全被裁掉 */
  transform: translate(var(--x0), calc(var(--lip) * -1));
  clip-path: inset(100% -80px -80px -80px);
  transition: transform .85s linear, clip-path .85s linear, filter .5s;
}
/* 第一步：从出片口匀速吐出来。下移多少、裁切线就上移多少，所以看起来是从那条缝里出来的 */
.card.drop { transform: translate(var(--x0), calc(100% - var(--lip))); clip-path: inset(0 -80px -80px -80px); }
/* 第二步：再滑到相机右边，落定后和机身齐平 */
.card.out {
  transform: translate(0, 0) rotate(-3.2deg); clip-path: inset(-80px);
  transition: transform .9s cubic-bezier(.34, .6, .26, 1), clip-path .2s, filter .5s;
}
.card.old {
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 4deg)); clip-path: inset(-80px);
  transition-duration: .6s; filter: brightness(.95); pointer-events: none;
}
.pic {
  position: relative; overflow: hidden; border-radius: .65cqw;
  background: linear-gradient(160deg, #3F72B4, #22508F);
}
.pic::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(125, 190, 255, .07) 1px, transparent 1px) 0 0 / 6.9cqw 6.9cqw,
    linear-gradient(90deg, rgba(125, 190, 255, .07) 1px, transparent 1px) 0 0 / 6.9cqw 6.9cqw;
}
.pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  display: none;
}
.pic-in {
  position: relative; padding: 1.9cqw 5.66cqw;
}
.row {
  display: grid; grid-template-columns: 17cqw 1fr auto; align-items: baseline; gap: .63cqw 3.15cqw;
  padding: 4.72cqw 0; color: #F2F9FF;
}
.row + .row { border-top: 1px dashed rgba(165, 205, 245, .26); }
.row-plat { font: 500 3.77cqw/1.2 var(--cn); letter-spacing: .08em; color: rgba(225, 240, 255, .9); }
.row-name { font: 600 5.97cqw/1.2 var(--sans); letter-spacing: .005em; }
.row-go { font: 500 4.72cqw/1 var(--sans); color: rgba(225, 240, 255, .9); transition: transform .3s var(--ease); }
.row-sub { grid-column: 1 / -1; margin-top: 1.57cqw; font: 400 3.62cqw/1.5 var(--cn); color: rgba(234, 245, 255, .88); white-space: nowrap; }
a.row:hover .row-go { transform: translate(3px, -3px); }
a.row:hover .row-name { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 黑色主题的相机这一屏 ----------
   和首页一个思路：房间是暗的，光来自相机——机身背后一团光晕，脚下的台面有倒影和一片蓝光，闪光灯留着一点余光。 */
/* 黑底上闪光很刺眼：整屏那一下和灯罩周围的光都收一档 */
:root[data-theme="night"] .cam-burst { --burst: .55; }
:root[data-theme="night"] .cam-flash { --fire-blur: 22cqw; --fire-spread: 8cqw; --fire: rgba(225, 238, 255, .6); }
/* 环境光：相机和相纸所在的那一片是很深的蓝，四周回到纯黑 */
#creator { isolation: isolate; }
:root[data-theme="night"] #creator::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(ellipse 56% 48% at 47% 63%, rgba(24, 58, 138, .42), rgba(14, 30, 78, .18) 55%, transparent 78%);
}
:root[data-theme="night"] .cam::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -34%; right: -34%; top: -52%; height: 190%;
  background: radial-gradient(50% 50% at 50% 54%, rgba(48, 128, 255, .36), rgba(36, 96, 230, .13) 48%, transparent 72%);
  filter: blur(4cqw);
}
/* 机身压暗一档，亮的只剩灯；脚下加一段倒影 */
:root[data-theme="night"] .cam-img {
  filter: brightness(.84) contrast(1.08) saturate(1.12);
  -webkit-box-reflect: below 0 linear-gradient(transparent 74%, rgba(255, 255, 255, .2));
}
:root[data-theme="night"] .cam-led { opacity: .5; }
/* 浅色主题里这是机身的影子；黑色主题里换成台面上的一片蓝光 */
:root[data-theme="night"] .cam-body::after {
  left: -8%; width: 116%; top: 91%; height: 15%;
  background: radial-gradient(50% 50%, rgba(70, 150, 255, .44), rgba(40, 110, 255, .14) 52%, transparent 76%);
  filter: blur(1.8cqw);
}
/* 闪光灯的余光：一明一暗地喘气，照亮灯罩周围一小圈 */
:root[data-theme="night"] .cam-flash:not(.fire) {
  opacity: .16; box-shadow: 0 0 7cqw 1.2cqw rgba(190, 225, 255, .55);
  animation: afterglow 4.2s ease-in-out infinite;
}
@keyframes afterglow { 50% { opacity: .3; } }
/* 相纸是这一屏第二亮的东西：边上一圈冷光，底下一片落在台面上的光 */
:root[data-theme="night"] .card {
  box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .85), 0 0 54px -8px rgba(96, 164, 255, .3);
}
:root[data-theme="night"] .card.old { filter: brightness(.7); }
:root[data-theme="night"] .tray::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -10%; right: -10%; top: 94%; height: 16%;
  background: radial-gradient(50% 50%, rgba(120, 180, 255, .3), rgba(60, 120, 255, .1) 52%, transparent 76%);
  filter: blur(1.6cqw);
  opacity: 0; transition: opacity 1.2s ease .9s;
}
:root[data-theme="night"] .tray.has::after { opacity: 1; }

/* ---------- life: gacha machine ---------- */
/* 这一屏标题放进右栏，扭蛋机在左边占满整屏的高度；整组在屏幕里上下左右居中 */
#life { padding-top: 92px; padding-bottom: 36px; }
.life {
  position: relative;
  display: grid; grid-template-columns: auto fit-content(860px);
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas: "m ." "m h" "m t" "m r" "m .";
  column-gap: clamp(48px, 5.5vw, 96px); row-gap: clamp(14px, 2vh, 26px);
  justify-content: center; align-content: center;
  width: 100%;
}
.gacha { grid-area: m; align-self: center; container-type: inline-size; width: min(33vw, 580px, calc((100vh - 136px) * .649)); }
.l-title { grid-area: h; justify-self: start; text-align: left; margin-left: -.3em; margin-bottom: calc(-1 * clamp(6px, 1vh, 12px)); }
.life-text { grid-area: t; }
.g-result { grid-area: r; margin-top: clamp(4px, 1vh, 12px); }

/* 机身：整台机器是一张带透明玻璃的图，扭蛋垫在玻璃后面 */
.g-stage { position: relative; width: 100%; aspect-ratio: 910 / 1402; transform-origin: 50% 97%; }
.g-stage > * { position: absolute; }
.g-img { left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; pointer-events: none; }
.g-balls { inset: 0; }
.g-ground {
  left: 4%; width: 92%; top: 96.4%; height: 5%; border-radius: 50%;
  background: radial-gradient(50% 50%, rgba(18, 35, 61, .36), transparent 70%);
  filter: blur(1.2cqw);
}
.g-stage.turning { animation: gshake .7s cubic-bezier(.3, .6, .4, 1); }
@keyframes gshake {
  0% { transform: rotate(0); } 14% { transform: rotate(-1.7deg); } 30% { transform: rotate(1.5deg); }
  46% { transform: rotate(-1.2deg); } 62% { transform: rotate(.9deg); } 80% { transform: rotate(-.4deg); }
  100% { transform: rotate(0); }
}

/* ---------- 黑色主题的扭蛋机 ----------
   和首页、相机一个思路：房间是暗的，光来自机器——玻璃球从底下被照亮，机身背后一团光晕，脚下有倒影和一片蓝光。 */
#life { isolation: isolate; }
:root[data-theme="night"] .gacha { position: relative; }
:root[data-theme="night"] .gacha::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -36%; right: -36%; top: -6%; height: 108%;
  background: radial-gradient(50% 50% at 50% 44%, rgba(48, 128, 255, .3), rgba(36, 96, 230, .11) 48%, transparent 72%);
  filter: blur(5cqw);
}
/* 玻璃球里的光：垫在扭蛋后面，和球一样大。底座那一圈最亮，越往上越淡 */
:root[data-theme="night"] .g-stage::before {
  content: ""; position: absolute; pointer-events: none;
  left: 1.9%; width: 95.8%; top: 8%; height: 56.8%; border-radius: 50%;
  background:
    radial-gradient(62% 46% at 50% 86%, rgba(124, 192, 255, .6), rgba(60, 132, 246, .26) 56%, transparent 100%),
    radial-gradient(closest-side, rgba(48, 108, 224, .3), rgba(44, 100, 214, .16) 82%, transparent);
}
/* 拧的时候球里的光跟着亮一下 */
:root[data-theme="night"] .g-stage.turning::before { animation: gpulse .9s ease-out; }
@keyframes gpulse { 0% { filter: brightness(1); } 18% { filter: brightness(1.7); } 100% { filter: brightness(1); } }
/* 机身压暗一档，亮的只剩灯和玻璃球；脚下加一段倒影 */
:root[data-theme="night"] .g-img {
  filter: brightness(.86) contrast(1.06) saturate(1.1);
  -webkit-box-reflect: below 0 linear-gradient(transparent 82%, rgba(255, 255, 255, .18));
}
:root[data-theme="night"] .g-glow { opacity: .5; }
/* 浅色主题里这是机身的影子；黑色主题里换成台面上的一片蓝光 */
:root[data-theme="night"] .g-ground {
  left: -7%; width: 114%; top: 94.2%; height: 9.5%;
  background: radial-gradient(50% 50%, rgba(70, 150, 255, .42), rgba(40, 110, 255, .14) 52%, transparent 76%);
  filter: blur(1.8cqw);
}
/* 掉出来的扭蛋和结果卡：带一圈冷光 */
:root[data-theme="night"] .g-prize { filter: drop-shadow(0 0 9px rgba(110, 180, 255, .6)); }
:root[data-theme="night"] .g-result {
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .85), 0 0 50px -10px rgba(96, 164, 255, .3), inset 0 0 0 1px rgba(18, 35, 61, .08);
}

/* 玻璃球里的扭蛋 */
.ball { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; transition: opacity .28s; }
.ball .skin {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(180deg,
    var(--c1) 0 47%, rgba(8, 26, 60, .5) 47% 49.6%,
    rgba(255, 255, 255, .8) 49.6% 51.4%, var(--c2) 51.4% 100%);
}
.ball::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .42) 12%, transparent 30%),
    radial-gradient(circle at 70% 79%, rgba(255, 255, 255, .24), transparent 25%),
    radial-gradient(circle at 42% 36%, transparent 42%, rgba(6, 22, 54, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 28, 66, .3);
}
.ball.out { opacity: 0; }

/* 灯：顶上的宝石和机身两条灯带，平时呼吸，拧的时候闪 */
.g-glow { pointer-events: none; mix-blend-mode: screen; opacity: .3; animation: gidle 3.4s ease-in-out infinite; }
.g-glow.led {
  top: 82.4%; height: 3.8%; border-radius: 50%;
  background: radial-gradient(50% 50%, rgba(150, 215, 255, .95), rgba(40, 140, 255, .55) 55%, transparent 76%);
  filter: blur(.7cqw);
}
.g-glow.led.l { left: 4.6%; width: 24.6%; }
.g-glow.led.r { left: 70.4%; width: 24.6%; }
.g-glow.jewel {
  left: 32%; width: 35%; top: -2.6%; height: 10%; border-radius: 50%;
  background: radial-gradient(50% 50%, rgba(160, 220, 255, .9), rgba(40, 130, 255, .5) 50%, transparent 72%);
  filter: blur(1cqw);
}
@keyframes gidle { 50% { opacity: .62; } }
.g-stage.turning .g-glow { animation: gflash .9s linear; }
@keyframes gflash {
  0% { opacity: .4; } 10% { opacity: 1; } 24% { opacity: .25; } 38% { opacity: 1; }
  52% { opacity: .3; } 66% { opacity: 1; } 100% { opacity: .5; }
}

/* 铭牌上的刻字 */
.g-plate {
  left: 36.04%; width: 27.91%; top: 65.05%; height: 4.71%;
  display: grid; place-items: center;
  font: 700 3.25cqw/1 var(--mono); letter-spacing: .2em; text-indent: .2em; color: #3A4E6B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(20, 40, 80, .22);
}

/* 旋钮：图上那圈铬环不动，上面加一根会转的把手 */
.g-knob {
  left: 69.12%; top: 65.9%; width: 14.5%; aspect-ratio: 1; padding: 0;
  border: 0; background: none; border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kn-halo {
  position: absolute; inset: -8%; border-radius: 50%;
  box-shadow: 0 0 0 .55cqw rgba(125, 190, 255, .6), 0 0 2.4cqw rgba(125, 190, 255, .5);
  opacity: 0; animation: knhalo 2.4s ease-out infinite;
}
@keyframes knhalo { 0% { transform: scale(.8); opacity: .95; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.g-stage.busy .kn-halo { animation: none; }
.kn-turn { position: absolute; inset: 0; border-radius: 50%; transition: transform .35s var(--ease); }
.g-knob:hover .kn-turn { transform: rotate(-20deg); }
.kn-turn.go { animation: knturn .7s cubic-bezier(.45, 0, .3, 1) both; }
@keyframes knturn {
  0% { transform: rotate(0); } 40% { transform: rotate(184deg); } 50% { transform: rotate(178deg); }
  92% { transform: rotate(364deg); } 100% { transform: rotate(360deg); }
}
.kn-bar {
  position: absolute; left: 7%; right: 7%; top: 50%; height: 26%;
  transform: translateY(-50%); border-radius: 999px;
  background: linear-gradient(180deg, #FDFEFE 0%, #CDD7E2 26%, #8A98AD 52%, #EAF0F6 74%, #A5B2C3 100%);
  box-shadow: 0 .6cqw 1cqw rgba(4, 14, 38, .6), inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(20, 40, 70, .45);
}
.kn-cap {
  position: absolute; left: 50%; top: 50%; width: 36%; height: 36%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #5E80BE, #16305E 58%, #0A1730);
  box-shadow: 0 0 0 .4cqw #E3EAF1, 0 0 0 .58cqw rgba(20, 40, 70, .55), inset 0 1px 1px rgba(255, 255, 255, .45);
}
.g-knob:focus-visible { outline: none; }
.g-knob:focus-visible .kn-bar { box-shadow: 0 0 0 .5cqw var(--beam), 0 .6cqw 1cqw rgba(4, 14, 38, .6); }

/* 掉出来的那颗扭蛋：上半有颜色，下半白 */
.capsule { --c1: #2F86E6; --c1l: #86C2FF; --c1d: #1658AD; }
.capsule .h-top, .capsule .h-bot { position: absolute; left: 0; width: 100%; height: 50%; }
.capsule .h-top {
  top: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(circle at 31% 50%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, .38) 15%, transparent 34%),
    linear-gradient(180deg, var(--c1l), var(--c1) 55%, var(--c1d));
  box-shadow: inset 0 -2px 0 rgba(6, 22, 54, .34), inset 0 0 0 1px rgba(8, 28, 66, .26);
}
.capsule .h-bot {
  bottom: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background:
    radial-gradient(circle at 68% 60%, rgba(255, 255, 255, .55), transparent 30%),
    linear-gradient(180deg, #FBFDFF, #D5E3F1 50%, #A6BED7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -6px 9px rgba(16, 40, 80, .28), inset 0 0 0 1px rgba(8, 28, 66, .22);
}
.g-prize {
  position: absolute; left: 0; top: 0; z-index: 6; opacity: 0;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 5px 7px rgba(18, 35, 61, .38));
}

/* 结果卡：扭蛋飞到这里，裂开，露出番名 */
.g-result {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px 14px 18px; min-height: 86px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FDFEFF, #EDF4FB);
  box-shadow: 0 18px 30px -20px rgba(18, 35, 61, .55), inset 0 0 0 1px rgba(18, 35, 61, .08);
}
.gr-cap { position: relative; flex: none; width: 56px; height: 56px; }
.gr-cap::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  border: 2px dashed rgba(95, 124, 153, .42); transition: opacity .3s;
}
.gr-cap .h-top, .gr-cap .h-bot { opacity: 0; }
.gr-cap.has::before { opacity: 0; }
.gr-cap.has .h-top, .gr-cap.has .h-bot { opacity: 1; }
.gr-cap.has { animation: grland .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes grland {
  0% { transform: translateY(-8px) scale(.96, 1.05); } 42% { transform: translateY(1px) scale(1.14, .84); }
  100% { transform: none; }
}
.gr-cap .h-top { transform-origin: 4% 100%; transition: transform .55s cubic-bezier(.3, 1.5, .4, 1); }
.gr-cap .h-bot::before {
  content: ""; position: absolute; left: 3%; right: 3%; top: -16%; height: 32%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #6E8CB0, #B9CCE0 70%, #E6EEF6);
  box-shadow: inset 0 0 0 1px rgba(8, 28, 66, .22);
  opacity: 0; transition: opacity .2s .1s;
}
.gr-cap.open .h-top { transform: translate(-16%, -30%) rotate(-52deg); }
.gr-cap.open .h-bot::before { opacity: 1; }
.spark {
  position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; margin: -4.5px; opacity: 0;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.gr-cap.open .spark { animation: spark .75s ease-out both; }
@keyframes spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-8px) scale(.3); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-48px) scale(1.15); }
}
.spark.s1 { --a: -64deg; } .spark.s2 { --a: -24deg; animation-delay: .05s !important; background: var(--beam); }
.spark.s3 { --a: 14deg; } .spark.s4 { --a: 54deg; animation-delay: .07s !important; background: var(--beam); }
.spark.s5 { --a: -104deg; animation-delay: .03s !important; } .spark.s6 { --a: 92deg; background: var(--beam); }
/* 扭蛋裂开后，原地换成专辑封面；点封面播放 / 暂停 30 秒试听，外圈是进度 */
.gr-slot { position: relative; flex: none; width: 64px; height: 64px; margin: 0 4px; display: grid; place-items: center; }
.gr-cap { transition: opacity .3s, transform .4s var(--ease); }
.g-result.song .gr-cap { opacity: 0; transform: scale(.6); }
.gr-play {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: #0E2244; overflow: visible;
  opacity: 0; transform: scale(.55) rotate(-8deg); pointer-events: none;
  transition: opacity .35s, transform .55s cubic-bezier(.3, 1.5, .45, 1);
  box-shadow: 0 10px 18px -10px rgba(18, 35, 61, .7);
}
.g-result.song .gr-play { opacity: 1; transform: none; pointer-events: auto; }
.gr-play img { display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.gr-ico {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center;
  background: rgba(8, 22, 48, .32); transition: background .25s;
}
.gr-ico::before {
  content: ""; width: 16px; height: 18px; margin-left: 3px; background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}
.gr-play.on .gr-ico { background: rgba(8, 22, 48, .12); }
.gr-play.on .gr-ico::before {
  width: 14px; height: 16px; margin-left: 0; clip-path: none;
  background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66%);
  opacity: 0; transition: opacity .2s;
}
.gr-play.on:hover .gr-ico, .gr-play.on:focus-visible .gr-ico { background: rgba(8, 22, 48, .32); }
.gr-play.on:hover .gr-ico::before, .gr-play.on:focus-visible .gr-ico::before { opacity: 1; }
.gr-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* 进度框：封面外面留一圈空隙，沿着圆角方框走，从顶边正中开始顺时针 */
.gr-ring {
  position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px);
  pointer-events: none; overflow: visible;
}
.gr-ring path { fill: none; stroke-width: 2.4; opacity: 0; transition: opacity .3s; }
.gr-ring .rg-track { stroke: color-mix(in srgb, var(--accent) 16%, transparent); }
.gr-ring .rg-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--p, 0) 100; }
.gr-play.on .gr-ring path, .gr-play.paused .gr-ring path { opacity: 1; }
/* 正在放：封面轻轻呼吸 */
.gr-play.on img { animation: grbeat 1.6s ease-in-out infinite; }
@keyframes grbeat { 50% { transform: scale(.965); } }
.gr-am {
  align-self: flex-start; margin-top: 2px;
  font: 500 13px/1.2 var(--cn); color: var(--accent); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color .2s;
}
.gr-am:hover { border-bottom-color: var(--accent); }
.gr-txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gr-k { display: flex; align-items: baseline; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--slate); }
.gr-k b { font-weight: 500; color: var(--accent); }
.gr-v { font: 700 clamp(18px, 1.6vw, 22px)/1.3 var(--cn); color: var(--ink); }
.gr-v.swap { animation: grswap .5s var(--ease) both; }
@keyframes grswap { from { opacity: 0; transform: translateX(-12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* 右边的文字 */
.life-lead {
  font: 500 clamp(18px, 1.5vw, 23px)/1.7 var(--cn);
  color: var(--ink); margin-bottom: clamp(16px, 2vw, 26px);
}
.life-list { display: flex; flex-direction: column; }
.life-list .li {
  display: grid; grid-template-columns: 84px 1fr; align-items: baseline; gap: 18px;
  padding: 18px 0;
}
.life-list .li + .li { border-top: 1px solid var(--line); }
.life-list dt { font: 700 13px/1.4 var(--sans); letter-spacing: .14em; color: var(--accent-deep); }
.life-list dd { font: 400 clamp(16px, 1.28vw, 19px)/1.75 var(--cn); color: var(--slate); }
/* 宽屏上每条都排成一行，不折行 */
@media (min-width: 1280px) { .life-list dd { white-space: nowrap; } }

/* ---------- life 第二屏：二次元照片墙（凹面墙） ---------- */
.wall { position: relative; width: min(100%, 1320px); outline: none; }
.w-stage {
  position: relative; height: clamp(300px, 47vh, 500px);
  touch-action: pan-y; cursor: grab; user-select: none;
  overflow-x: clip;   /* 两边转出去的海报不撑宽页面 */
  /* 两边淡出到页面底色 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.wall.grab .w-stage { cursor: grabbing; }
.w-card {
  position: absolute; left: 50%; top: 50%; margin: 0;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #3F72B4, #1B3F73);
  box-shadow: 0 22px 40px -22px rgba(18, 35, 61, .55), inset 0 0 0 1px rgba(255, 255, 255, .12);
  -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(0, 0, 0, .14));
  backface-visibility: hidden; will-change: transform, opacity;
}
.w-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; pointer-events: none; }
.w-card.has-img img { opacity: 1; }
.w-card.has-img .w-ph { visibility: hidden; }
/* 还没有海报时的文字卡 */
.w-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 9% 10%; color: #F2F9FF;
  background:
    radial-gradient(120% 70% at 80% 0%, rgba(125, 190, 255, .35), transparent 60%),
    linear-gradient(rgba(125, 190, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(125, 190, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px;
}
.w-ph strong { font: 800 clamp(18px, 1.9vw, 28px)/1.25 var(--cn); letter-spacing: .02em; }
.w-ph em { font: 500 11px/1.4 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #A9D6FF; }
.w-no { position: absolute; top: 8%; left: 10%; font: 700 12px/1 var(--mono); letter-spacing: .2em; color: #A9D6FF; }
.w-yr { position: absolute; top: 8%; right: 10%; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: rgba(242, 249, 255, .7); }
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, 760px); margin: clamp(26px, 4vh, 44px) auto 0; }
.w-cap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-cap strong { font: 700 clamp(20px, 1.7vw, 26px)/1.3 var(--cn); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-cap span { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.w-ctrl { display: flex; align-items: center; gap: 14px; flex: none; }
.w-count { font: 600 13px/1 var(--mono); letter-spacing: .12em; color: var(--ink); min-width: 64px; text-align: center; }
.w-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 500 17px/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.w-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.wall:focus-visible .w-stage { outline: 2px solid var(--accent); outline-offset: 6px; }
/* 琥珀主题整页转色相，海报要转回原色 */
@media (max-width: 760px) {
  .w-stage { height: 360px; }
  .w-bar { flex-direction: column; gap: 16px; text-align: center; }
  .w-cap { align-items: center; max-width: 100%; }
  .w-btn { width: 38px; height: 38px; }
}

/* ---------- contact: 登机牌 ---------- */
.reach { display: flex; justify-content: center; width: 100%; }

.pass {
  --bar: #12233D;
  container-type: inline-size;
  position: relative;
  width: min(100%, 1180px);
  display: flex;
  border-radius: 0;                     /* 四个角是直角 */
  background: #FDFEFF;
  box-shadow:
    0 3cqw 5cqw -2.2cqw rgba(18, 35, 61, .45),
    0 .4cqw 1cqw rgba(18, 35, 61, .12),
    0 0 0 1px rgba(18, 35, 61, .1);
  overflow: hidden;
}

/* 顶上的深蓝色带，主票和票根连成一条 */
.p-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
  height: 5.4cqw; padding: 0 2.6cqw 0 3cqw;
  color: #F2F8FE;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 .5cqw, transparent .5cqw 1.6cqw),
    linear-gradient(180deg, #1B3A78, #0E2350);
  border-bottom: .34cqw solid var(--accent);
}
.p-logo { display: flex; align-items: center; gap: 1.1cqw; font: 800 2.1cqw/1 var(--sans); letter-spacing: .26em; }
.p-logo i {
  display: grid; place-items: center; width: 2.9cqw; height: 2.9cqw; border-radius: 50%;
  background: linear-gradient(160deg, #53A8F5, #1668D8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.p-logo svg { width: 62%; height: 62%; fill: #fff; transform: rotate(45deg); }
.p-kind { display: flex; align-items: baseline; gap: 1.1cqw; font: 500 1.16cqw/1 var(--mono); letter-spacing: .3em; }
.p-kind b { font: 500 1.16cqw/1 var(--cn); letter-spacing: .2em; opacity: .72; }

/* 主票 */
.p-main { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-left: 2.3cqw; }
.p-side {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2.3cqw;
  display: grid; place-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 .86cqw/1 var(--mono); letter-spacing: .36em; white-space: nowrap;
  color: rgba(226, 240, 255, .78);
  background: linear-gradient(180deg, #0E2350, #1B3A78);
}
.p-body {
  position: relative; flex: 1 1 auto; padding: 2.5cqw 3cqw 2.2cqw;
  background:
    repeating-linear-gradient(0deg, rgba(30, 136, 229, .04) 0 1px, transparent 1px .82cqw),
    linear-gradient(176deg, #FFFFFF, #F1F7FC);
  overflow: hidden;
}
/* 底纹里的大字水印 */
.p-wm {
  position: absolute; right: -1.5cqw; top: -4.4cqw;
  font: 800 27cqw/1 var(--sans); letter-spacing: -.04em; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px rgba(30, 136, 229, .1);
  pointer-events: none; user-select: none;
}

/* 航线：YOU → SU */
.p-route { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.6cqw; }
.p-city { display: flex; flex-direction: column; }
.p-city.to { align-items: flex-end; text-align: right; }
.pc-k { display: flex; align-items: baseline; gap: .7cqw; font: 500 1cqw/1 var(--mono); letter-spacing: .24em; color: var(--slate); }
.pc-k b { font: 400 1cqw/1 var(--cn); letter-spacing: .12em; }
.p-city strong { margin: .9cqw 0 .5cqw; font: 800 6.6cqw/.92 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.pc-n { font: 500 1.3cqw/1 var(--cn); color: var(--accent-deep); }
.p-path { display: flex; flex-direction: column; align-items: center; gap: 1.1cqw; min-width: 0; }
.pp-note { font: 500 1.62cqw/1.3 var(--cn); color: var(--ink); white-space: nowrap; }
.pp-line {
  position: relative; width: 100%; height: 0;
  border-top: .17cqw dashed rgba(18, 35, 61, .34);
}
.pp-line::before, .pp-line::after {
  content: ""; position: absolute; top: -.6cqw; width: 1.05cqw; height: 1.05cqw; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 .2cqw var(--accent);
}
.pp-line::before { left: -.5cqw; }
.pp-line::after { right: -.5cqw; }
.pp-plane {
  position: absolute; left: 50%; top: 0; width: 2.9cqw; height: 2.9cqw;
  margin: -1.52cqw 0 0 -1.45cqw; padding: .3cqw; border-radius: 50%;
  background: #F8FBFE;
}
.pp-plane svg { display: block; width: 100%; height: 100%; fill: var(--accent); transform: rotate(90deg); }
.pass.stamped .pp-plane { animation: ppfly 6s cubic-bezier(.45, .05, .35, 1) infinite; }
@keyframes ppfly {
  0% { left: 4%; opacity: 0; } 8% { opacity: 1; }
  52% { left: 96%; opacity: 1; } 60% { left: 96%; opacity: 0; }
  61% { left: 50%; opacity: 0; } 72%, 100% { left: 50%; opacity: 1; }
}
.pp-sub { font: 500 .96cqw/1 var(--mono); letter-spacing: .26em; color: var(--slate); }

/* 字段 */
.p-fields {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.9cqw 0; margin-top: 2.3cqw; padding-top: 2cqw;
  border-top: 1px solid rgba(18, 35, 61, .12);
}
.pf { min-width: 0; padding: 0 1.6cqw; border-left: 1px dashed rgba(18, 35, 61, .16); }
.pf:nth-child(4n + 1), .pf-wide + .pf + .pf { }
.pf:nth-child(1), .pf.pf-wide { padding-left: 0; border-left: none; }
.pf-wide { grid-column: span 2; }
.pf dt {
  display: flex; align-items: baseline; gap: .7cqw;
  font: 500 .98cqw/1 var(--mono); letter-spacing: .22em; color: var(--slate); white-space: nowrap;
}
.pf dt b { font: 400 .98cqw/1 var(--cn); letter-spacing: .1em; opacity: .85; }
.pf dd { margin-top: .85cqw; font: 600 1.5cqw/1.3 var(--cn); color: var(--ink); white-space: nowrap; }
.pf dd a { display: inline-flex; align-items: baseline; gap: .6cqw; transition: color .3s; }
.pf dd a i { font-style: normal; font-size: 1.3cqw; color: var(--accent); transition: transform .3s var(--ease); }
.pf dd a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .35cqw; }
.pf dd a:hover i { transform: translate(.22cqw, -.22cqw); }

/* 票脚：条码、编号、微缩字 */
.p-foot {
  position: relative; display: flex; align-items: center; gap: 2cqw;
  height: 5.6cqw; padding: 0 3cqw;
  background: #EEF4FA; border-top: 1px solid rgba(18, 35, 61, .1);
  overflow: hidden;
}
.p-barcode { flex: none; width: 27cqw; height: 3.3cqw; background: linear-gradient(90deg, var(--bar) 0.00% 1.54%, transparent 1.54% 2.05%, var(--bar) 2.05% 2.56%, transparent 2.56% 3.08%, var(--bar) 3.08% 3.59%, transparent 3.59% 4.62%, var(--bar) 4.62% 5.64%, transparent 5.64% 6.67%, var(--bar) 6.67% 7.18%, transparent 7.18% 7.69%, var(--bar) 7.69% 9.23%, transparent 9.23% 10.26%, var(--bar) 10.26% 10.77%, transparent 10.77% 11.28%, var(--bar) 11.28% 11.79%, transparent 11.79% 13.33%, var(--bar) 13.33% 14.36%, transparent 14.36% 15.38%, var(--bar) 15.38% 15.90%, transparent 15.90% 17.44%, var(--bar) 17.44% 17.95%, transparent 17.95% 18.97%, var(--bar) 18.97% 19.49%, transparent 19.49% 20.00%, var(--bar) 20.00% 21.03%, transparent 21.03% 22.56%, var(--bar) 22.56% 23.08%, transparent 23.08% 23.59%, var(--bar) 23.59% 24.10%, transparent 24.10% 24.62%, var(--bar) 24.62% 25.13%, transparent 25.13% 26.15%, var(--bar) 26.15% 27.18%, transparent 27.18% 27.69%, var(--bar) 27.69% 28.21%, transparent 28.21% 29.23%, var(--bar) 29.23% 30.26%, transparent 30.26% 31.28%, var(--bar) 31.28% 31.79%, transparent 31.79% 32.82%, var(--bar) 32.82% 34.36%, transparent 34.36% 35.38%, var(--bar) 35.38% 36.92%, transparent 36.92% 37.44%, var(--bar) 37.44% 38.46%, transparent 38.46% 38.97%, var(--bar) 38.97% 39.49%, transparent 39.49% 41.03%, var(--bar) 41.03% 42.05%, transparent 42.05% 43.08%, var(--bar) 43.08% 44.10%, transparent 44.10% 44.62%, var(--bar) 44.62% 45.13%, transparent 45.13% 46.67%, var(--bar) 46.67% 47.69%, transparent 47.69% 48.21%, var(--bar) 48.21% 48.72%, transparent 48.72% 49.23%, var(--bar) 49.23% 49.74%, transparent 49.74% 50.26%, var(--bar) 50.26% 50.77%, transparent 50.77% 51.28%, var(--bar) 51.28% 52.31%, transparent 52.31% 52.82%, var(--bar) 52.82% 53.85%, transparent 53.85% 54.36%, var(--bar) 54.36% 54.87%, transparent 54.87% 55.38%, var(--bar) 55.38% 56.92%, transparent 56.92% 58.46%, var(--bar) 58.46% 58.97%, transparent 58.97% 59.49%, var(--bar) 59.49% 60.00%, transparent 60.00% 60.51%, var(--bar) 60.51% 62.05%, transparent 62.05% 63.08%, var(--bar) 63.08% 64.10%, transparent 64.10% 65.13%, var(--bar) 65.13% 66.67%, transparent 66.67% 68.21%, var(--bar) 68.21% 69.74%, transparent 69.74% 70.26%, var(--bar) 70.26% 71.28%, transparent 71.28% 72.82%, var(--bar) 72.82% 73.33%, transparent 73.33% 74.87%, var(--bar) 74.87% 75.38%, transparent 75.38% 76.41%, var(--bar) 76.41% 76.92%, transparent 76.92% 77.95%, var(--bar) 77.95% 78.97%, transparent 78.97% 80.00%, var(--bar) 80.00% 80.51%, transparent 80.51% 81.03%, var(--bar) 81.03% 82.05%, transparent 82.05% 83.08%, var(--bar) 83.08% 83.59%, transparent 83.59% 84.10%, var(--bar) 84.10% 85.13%, transparent 85.13% 86.15%, var(--bar) 86.15% 86.67%, transparent 86.67% 87.69%, var(--bar) 87.69% 88.21%, transparent 88.21% 89.74%, var(--bar) 89.74% 90.26%, transparent 90.26% 90.77%, var(--bar) 90.77% 91.79%, transparent 91.79% 92.82%, var(--bar) 92.82% 93.33%, transparent 93.33% 94.87%, var(--bar) 94.87% 96.41%, transparent 96.41% 96.92%, var(--bar) 96.92% 97.44%, transparent 97.44% 98.46%, var(--bar) 98.46% 98.97%, transparent 98.97% 100.00%); }
.p-barcode.small { width: 100%; height: 2.3cqw; background: linear-gradient(90deg, var(--bar) 0.00% 2.68%, transparent 2.68% 3.57%, var(--bar) 3.57% 4.46%, transparent 4.46% 7.14%, var(--bar) 7.14% 8.93%, transparent 8.93% 9.82%, var(--bar) 9.82% 11.61%, transparent 11.61% 14.29%, var(--bar) 14.29% 15.18%, transparent 15.18% 16.96%, var(--bar) 16.96% 19.64%, transparent 19.64% 21.43%, var(--bar) 21.43% 22.32%, transparent 22.32% 24.11%, var(--bar) 24.11% 26.79%, transparent 26.79% 28.57%, var(--bar) 28.57% 29.46%, transparent 29.46% 32.14%, var(--bar) 32.14% 34.82%, transparent 34.82% 35.71%, var(--bar) 35.71% 38.39%, transparent 38.39% 39.29%, var(--bar) 39.29% 40.18%, transparent 40.18% 41.96%, var(--bar) 41.96% 43.75%, transparent 43.75% 44.64%, var(--bar) 44.64% 45.54%, transparent 45.54% 47.32%, var(--bar) 47.32% 49.11%, transparent 49.11% 50.89%, var(--bar) 50.89% 51.79%, transparent 51.79% 52.68%, var(--bar) 52.68% 53.57%, transparent 53.57% 56.25%, var(--bar) 56.25% 57.14%, transparent 57.14% 58.93%, var(--bar) 58.93% 61.61%, transparent 61.61% 63.39%, var(--bar) 63.39% 64.29%, transparent 64.29% 66.07%, var(--bar) 66.07% 67.86%, transparent 67.86% 70.54%, var(--bar) 70.54% 72.32%, transparent 72.32% 75.00%, var(--bar) 75.00% 75.89%, transparent 75.89% 77.68%, var(--bar) 77.68% 78.57%, transparent 78.57% 81.25%, var(--bar) 81.25% 82.14%, transparent 82.14% 83.93%, var(--bar) 83.93% 86.61%, transparent 86.61% 87.50%, var(--bar) 87.50% 88.39%, transparent 88.39% 90.18%, var(--bar) 90.18% 91.07%, transparent 91.07% 93.75%, var(--bar) 93.75% 94.64%, transparent 94.64% 96.43%, var(--bar) 96.43% 97.32%, transparent 97.32% 100.00%); opacity: .9; }
.p-serial { display: flex; align-items: baseline; gap: .9cqw; font: 500 1.24cqw/1 var(--mono); letter-spacing: .12em; color: var(--ink); white-space: nowrap; }
.p-serial b { font-weight: 500; font-size: .92cqw; letter-spacing: .24em; color: var(--slate); }
.p-micro {
  position: absolute; left: 3cqw; right: 0; bottom: .42cqw;
  font: 400 .52cqw/1 var(--mono); letter-spacing: .3em; white-space: nowrap; color: rgba(18, 35, 61, .38);
}

/* 盖章 */
.p-stamp {
  position: absolute; right: .9cqw; bottom: .5cqw; z-index: 2;
  width: 9.4cqw; height: 9.4cqw; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45cqw;
  font-style: normal; text-align: center;
  color: rgba(30, 136, 229, .7);
  box-shadow: inset 0 0 0 .32cqw rgba(30, 136, 229, .55), inset 0 0 0 .56cqw rgba(30, 136, 229, 0), inset 0 0 0 .72cqw rgba(30, 136, 229, .3);
  transform: rotate(-14deg) scale(2.6); opacity: 0;
  transition: transform .42s cubic-bezier(.2, 1.3, .4, 1), opacity .3s;
}
.p-stamp b { font: 800 1.5cqw/1 var(--cn); letter-spacing: .06em; }
.p-stamp span { font: 600 .98cqw/1 var(--cn); letter-spacing: .1em; }
.pass.stamped .p-stamp { transform: rotate(-14deg) scale(1); opacity: 1; }

/* 撕线和齿孔 */
.p-tear {
  position: absolute; top: 1.6cqw; bottom: 1.6cqw; right: 26cqw; z-index: 2;
  width: 0; border-left: .2cqw dashed rgba(120, 150, 185, .75);
}
.p-notch {
  position: absolute; right: 26cqw; width: 2.6cqw; height: 2.6cqw; z-index: 3;
  margin-right: -1.3cqw; border-radius: 50%;
  background: var(--cut);
  box-shadow: inset 0 0 0 1px rgba(18, 35, 61, .12);
}
.p-notch.top { top: -1.3cqw; }
.p-notch.bot { bottom: -1.3cqw; }

/* 票根 */
.p-stub { flex: none; width: 26cqw; display: flex; flex-direction: column; }
.p-stub .p-band { justify-content: center; padding: 0 1.4cqw; }
.s-body {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25cqw;
  padding: 2cqw 2.4cqw 1.8cqw;
  background:
    repeating-linear-gradient(135deg, rgba(30, 136, 229, .055) 0 .7cqw, transparent .7cqw 2.1cqw),
    linear-gradient(180deg, #F6FAFE, #E9F1F9);
}
.s-qr {
  position: relative; width: 16.6cqw; padding: .8cqw; background: #fff;
  box-shadow: 0 .8cqw 1.6cqw -.6cqw rgba(18, 35, 61, .34), 0 0 0 1px rgba(18, 35, 61, .1);
  overflow: hidden;
}
.s-qr img { display: block; width: 100%; height: auto; }
.s-qr::before, .s-qr::after {
  content: ""; position: absolute; width: 2.2cqw; height: 2.2cqw; pointer-events: none;
  border: .26cqw solid var(--accent);
}
.s-qr::before { left: 0; top: 0; border-right: none; border-bottom: none; }
.s-qr::after { right: 0; bottom: 0; border-left: none; border-top: none; }
.s-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(125, 190, 255, .16) 80%, rgba(30, 136, 229, .42) 98%, transparent);
  opacity: 0;
}
.pass.stamped .s-scan { animation: sscan 8s ease-in-out 1s infinite; }
@keyframes sscan {
  0% { transform: translateY(-100%); opacity: 0; } 6% { opacity: 1; }
  20% { transform: translateY(455%); opacity: 1; } 23%, 100% { transform: translateY(455%); opacity: 0; }
}
.s-n { font: 600 1.42cqw/1 var(--cn); color: var(--ink); }
/* 票根上的照片：证件照比例 */
.s-photo { width: 14.6cqw; padding: .7cqw; }
.s-photo img { aspect-ratio: 4 / 5; object-fit: cover; }

/* 票面上「微信」那一格：点开弹出二维码 */
.wx-open {
  display: inline-flex; align-items: baseline; gap: .6cqw; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; transition: color .3s;
}
.wx-open i { font-style: normal; font-size: 1.3cqw; color: var(--accent); transition: transform .3s var(--ease); }
.wx-open:hover, .wx-open:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: .35cqw; }
.wx-open:hover i { transform: translate(.22cqw, -.22cqw); }

/* 二维码弹窗 */
.wx { margin: auto; padding: 0; border: 0; background: none; overflow: visible; max-width: none; max-height: none; }
.wx::backdrop { background: rgba(10, 22, 40, .55); backdrop-filter: blur(4px); }
.wx[open] { animation: wxin .35s cubic-bezier(.2, .9, .3, 1.2); }
.wx[open]::backdrop { animation: wxfade .3s ease; }
@keyframes wxin { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes wxfade { from { opacity: 0; } }
.wx-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: min(86vw, 340px); padding: 0 26px 24px; overflow: hidden;
  background: linear-gradient(180deg, #F6FAFE, #E9F1F9); color: #12233D;
  box-shadow: 0 30px 60px -20px rgba(10, 22, 40, .6);
}
.wx-k {
  align-self: stretch; margin: 0 -26px 10px; padding: 16px 26px; display: flex; justify-content: center; gap: 10px;
  font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .3em; color: #DCEBFA;
  background: linear-gradient(180deg, #1F3F78, #16305E); border-bottom: 3px solid #1E88E5;
}
.wx-k b { font: 500 12px/1 "Noto Sans SC", sans-serif; letter-spacing: .14em; }
.wx-qr { width: 100%; padding: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 35, 61, .1), 0 10px 20px -12px rgba(18, 35, 61, .35); }
.wx-qr img { display: block; width: 100%; height: auto; }
.wx-n { margin-top: 4px; font: 700 18px/1 "Noto Sans SC", sans-serif; }
.wx-h { font: 400 13px/1 "Noto Sans SC", sans-serif; color: #5B6F88; }
.wx-x {
  position: absolute; top: 7px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: #DCEBFA; font: 400 24px/1 sans-serif; cursor: pointer; z-index: 1;
}
.wx-x:hover { background: rgba(255, 255, 255, .14); }
.s-mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; width: 100%; }
.s-mini dt { font: 500 .82cqw/1 var(--mono); letter-spacing: .22em; color: var(--slate); }
.s-mini dd { margin-top: .5cqw; font: 600 1.06cqw/1 var(--mono); letter-spacing: .08em; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { gap: 24px; }
  .links { gap: 24px; }
}
@media (max-width: 760px) {
  /* 手机上导航一行放下四个模块 + CONTACT；往下滚以后垫一层毛玻璃，内容不会和导航叠在一起 */
  .nav { padding: 8px 16px; gap: 12px; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
  .scrolled .nav {
    background: color-mix(in srgb, var(--cut) 80%, transparent); border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  }
  :root[data-theme="night"].scrolled .nav { background: rgba(5, 7, 13, .78); }
  .brand { display: none; }
  .links { margin-left: 0; gap: clamp(8px, 3.4vw, 20px); }
  .links a { font-size: 11px; letter-spacing: .08em; padding: 14px 0; }
  .links a::after { bottom: 6px; }
  .pill { margin-left: auto; padding: 11px 13px; font-size: 11px; letter-spacing: .08em; }
  .hero { min-height: 100svh; padding: 96px 16px 56px; gap: 48px; }
  /* 黑色主题的光晕在手机上不能比屏幕宽，否则页面会被撑出横向滚动 */
  :root[data-theme="night"] .aura { left: -4%; right: -4%; }
  :root[data-theme="night"] .meter .shadow { left: 0; right: 0; }
  /* 手机上世界线从上往下穿过文字：文字那一块压得更淡、范围更大 */
  .hero-bg {
    -webkit-mask-image:
      linear-gradient(180deg, rgba(0, 0, 0, .5) 0, #000 12%, #000 70%, transparent 97%),
      radial-gradient(ellipse 80% 27% at 50% 38%, rgba(0, 0, 0, .14) 0 55%, #000 100%);
    mask-image:
      linear-gradient(180deg, rgba(0, 0, 0, .5) 0, #000 12%, #000 70%, transparent 97%),
      radial-gradient(ellipse 80% 27% at 50% 38%, rgba(0, 0, 0, .14) 0 55%, #000 100%);
  }
  .meter { width: 100%; }
  .sec { min-height: 0; padding: 72px 16px 40px; gap: 28px; scroll-margin-top: 0; }   /* 手机上不撑满一屏，内容多高就多高，模块之间不留大片空白 */
  .title { font-size: clamp(38px, 11.5vw, 56px); }
  .depth { --u: .019em; }
  /* 展示柜在手机上拆成三格，上下排：每格上面是道具，标签卡压在下沿 */
  #builder { padding-top: 72px; padding-bottom: 40px; gap: 24px; }
  .lab { width: min(100%, 420px); }
  .lab-img { display: none; }
  .lab::before {
    content: "FUTURE GADGET LAB"; display: block; width: max-content; margin: 0 auto 16px; padding: 8px 14px 8px 16px;
    font: 700 11px/1 var(--mono); letter-spacing: .22em; color: #2B405F;
    border-radius: 6px; background: linear-gradient(180deg, #F4F7FA, #C6D2DF 55%, #E3EAF1);
    box-shadow: 0 0 0 1px rgba(18, 35, 61, .2), 0 6px 12px -6px rgba(18, 35, 61, .5), inset 0 1px 0 #fff;
  }
  .lab-list { display: grid; gap: 20px; }
  .fg, .fg.n1, .fg.n3 { position: relative; inset: auto; left: auto; width: auto; border-radius: 0; }
  .fg::before, .fg-light { display: none; }
  .fg-shot {
    display: block; aspect-ratio: 5 / 3.9; border-radius: 18px;
    background: #7FB2E6 var(--shot) center 20% / cover no-repeat;
    box-shadow: 0 0 0 1px #C9D6E5, 0 0 0 5px #15307A, 0 0 0 6px #0C1E52, 0 20px 30px -18px rgba(12, 30, 82, .7);
    opacity: 0; transform: translateY(14px);
    transition: opacity .38s ease-out, transform .38s var(--ease); transition-delay: calc(var(--i) * .1s + .2s);
  }
  .sec.in .fg-shot { opacity: 1; transform: none; }
  .fg.n1 .fg-shot { --shot: url(img/gadget-1.webp); }
  .fg.n2 .fg-shot { --shot: url(img/gadget-2.webp); }
  .fg.n3 .fg-shot { --shot: url(img/gadget-3.webp); }
  .fg-tag {
    position: relative; left: auto; bottom: auto; width: auto; margin: -34px 14px 0;
    padding: 14px 16px 15px; border-radius: 8px;
    transform: translateY(14px); transition-delay: calc(var(--i) * .1s + .28s), calc(var(--i) * .1s + .28s), 0s;
  }
  .sec.in .fg-tag, .sec.in .fg:hover .fg-tag, .sec.in .fg:focus-within .fg-tag { transform: none; }
  .fg-no { font-size: 12px; }
  .fg-led { right: 16px; top: 14px; width: 11px; }
  .fg-name { margin-top: 6px; font-size: 22px; }
  .fg-desc { margin-top: 6px; font-size: 15px; }
  .fg-meta { margin-top: 6px; font-size: 13.5px; }
  .fg-go { margin-top: 8px; font-size: 15px; }
  .shot { flex-direction: column; align-items: center; --camw: min(100%, 343px); --cardw: calc(var(--camw) * .74); }
  :root[data-theme="night"] .cam-img { -webkit-box-reflect: unset; }
  :root[data-theme="night"] .cam-body::after, :root[data-theme="night"] .tray::after { display: none; }
  :root[data-theme="night"] .cam::before { left: -8%; right: -8%; }
  /* 竖排：托盘的上沿就是出片口那条线，照片从线下面出来 */
  .tray {
    height: calc(var(--cardw) * .86 + var(--lip) + 34px); margin: calc(var(--lip) * -1) 0 0;
    clip-path: inset(0 -400px -400px -400px);
  }
  .card { top: 0; bottom: auto; transform: translateY(-100%); clip-path: none; transition: transform .85s linear, filter .5s; }
  .card.drop { transform: translateY(0); clip-path: none; }
  .card.out { transform: translate(0, calc(var(--lip) + 16px)) rotate(-2.2deg); clip-path: none; transition: transform .7s cubic-bezier(.34, .6, .26, 1), filter .5s; }
  .card.old { transform: translate(var(--x, 0px), calc(var(--lip) + 16px + var(--y, 0px))) rotate(var(--r, 4deg)); clip-path: none; }
  .pass { flex-direction: column; width: 100%; }
  .p-band { height: 12cqw; padding: 0 5cqw 0 5cqw; border-bottom-width: .8cqw; }
  .p-logo { gap: 2.4cqw; font-size: 4.6cqw; letter-spacing: .2em; }
  .p-logo i { width: 6.4cqw; height: 6.4cqw; }
  .p-kind { gap: 1.6cqw; font-size: 2.3cqw; letter-spacing: .18em; }
  .p-kind b { font-size: 2.3cqw; letter-spacing: .1em; }
  .p-main { padding-left: 0; }
  .p-side { display: none; }
  .p-body { padding: 6cqw 5cqw 5.5cqw; background-size: auto, auto; }
  .p-wm { font-size: 58cqw; right: -4cqw; top: 6cqw; }
  .p-route { grid-template-columns: auto 1fr auto; gap: 3.4cqw; }
  .pc-k { gap: 1.2cqw; font-size: 2.3cqw; letter-spacing: .14em; } .pc-k b { font-size: 2.3cqw; }
  .p-city strong { margin: 2cqw 0 1.4cqw; font-size: 11.5cqw; }
  .pc-n { font-size: 3.2cqw; }
  .p-path { gap: 2.4cqw; }
  .pp-note { display: none; }
  .pp-line { border-top-width: .4cqw; }
  .pp-line::before, .pp-line::after { top: -1.3cqw; width: 2.4cqw; height: 2.4cqw; box-shadow: inset 0 0 0 .5cqw var(--accent); }
  .pp-line::before { left: -1.2cqw; } .pp-line::after { right: -1.2cqw; }
  .pp-plane { width: 6.4cqw; height: 6.4cqw; margin: -3.3cqw 0 0 -3.2cqw; padding: .7cqw; }
  .pp-sub { display: none; }
  .p-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.6cqw 0; margin-top: 5.5cqw; padding-top: 5cqw; }
  .pf { padding: 0 0 0 4cqw; }
  .pf:nth-child(odd), .pf.pf-wide { padding-left: 0; border-left: none; }
  .pf-wide { grid-column: 1 / -1; }
  .pf-wide ~ .pf:not(.pf-wide) { padding-left: 4cqw; border-left: 1px dashed rgba(18, 35, 61, .16); }
  .pf-wide + .pf:not(.pf-wide) { padding-left: 0; border-left: none; }
  .pf dt { gap: 1.4cqw; font-size: 2.4cqw; letter-spacing: .16em; } .pf dt b { font-size: 2.4cqw; }
  .pf dd { margin-top: 1.8cqw; font-size: 3.7cqw; }
  .pf dd a i { font-size: 3.1cqw; }
  .p-foot { height: 13cqw; padding: 0 5cqw; gap: 4cqw; }
  .p-barcode { width: 38cqw; height: 7cqw; }
  .p-serial { flex-direction: column; gap: 1.4cqw; font-size: 2.6cqw; letter-spacing: .06em; }
  .p-serial b { font-size: 2cqw; }
  .p-micro { display: none; }
  .p-stamp {
    right: 3cqw; bottom: 15.5cqw; width: 20cqw; height: 20cqw; gap: .8cqw;
    box-shadow: inset 0 0 0 .8cqw rgba(30, 136, 229, .55), inset 0 0 0 1.7cqw rgba(30, 136, 229, 0), inset 0 0 0 2cqw rgba(30, 136, 229, .3);
  }
  .p-stamp b { font-size: 3.2cqw; } .p-stamp span { font-size: 2.1cqw; }
  /* 竖排：票根掉到下面，撕线横过来 */
  .p-tear, .p-notch { display: none; }
  .p-stub { position: relative; width: 100%; border-top: .5cqw dashed rgba(120, 150, 185, .75); }
  .p-stub::before, .p-stub::after {
    content: ""; position: absolute; top: -3.2cqw; width: 6cqw; height: 6cqw; z-index: 3;
    border-radius: 50%; background: var(--cut);
    box-shadow: inset 0 0 0 1px rgba(18, 35, 61, .12);
  }
  .p-stub::before { left: -3cqw; }
  .p-stub::after { right: -3cqw; }
  .p-stub .p-band { display: none; }
  .s-body { padding: 9cqw 6cqw 7cqw; gap: 3.4cqw; }
  .s-qr { width: 56cqw; padding: 2.4cqw; }
  .s-photo { width: 48cqw; padding: 2cqw; }
  .wx-open i { font-size: 3.1cqw; }
  .s-qr::before, .s-qr::after { width: 6cqw; height: 6cqw; border-width: .7cqw; }
  .s-n { font-size: 4cqw; }
  .s-mini { width: 76%; }
  .s-mini dt { font-size: 2.1cqw; } .s-mini dd { margin-top: 1.2cqw; font-size: 2.8cqw; }
  .p-barcode.small { width: 76%; height: 6cqw; }
  #life { padding-top: 72px; padding-bottom: 40px; }
  .life { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "h" "m" "r" "t"; row-gap: 26px; }
  .l-title { justify-self: center; text-align: center; margin: 0 0 6px; }
  .gacha { width: min(78%, 320px); justify-self: center; }
  :root[data-theme="night"] .gacha::before { left: -14%; right: -14%; }
  :root[data-theme="night"] .g-img { -webkit-box-reflect: unset; }
  .life-list .li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .name { font-size: calc(clamp(60px, 19vw, 96px) * var(--name-k)); }
  .world { font-size: calc(clamp(24px, 7vw, 34px) * var(--world-k)); }
  /* 手机上铭牌的刻字太小看不清，单位改写在机器下面 */
  .nx-plate { display: none; }
  .meter-cap { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .mask > span, .fade { transition: none; }
  html { scroll-behavior: auto; }
  .lit, .nx-strip, .nx-led, .fg-led.wip, .tube.lock .lit { animation: none; }
  .fg::before, .fg-tag, .fg-shot, .fg-light, .fg-go span { transition: none; }
  .cam-shutter::after, .cam-flash, .cam-flash.fire, .cam-led, .cam.firing .cam-led { animation: none; }
  .card { transition: none; }
  .cam-burst.fire { animation: none; }
  .g-stage.turning, .g-stage.turning::before, .g-stage.turning .g-glow, .g-glow, .kn-halo, .kn-turn.go { animation: none; }
  .gr-cap.has, .gr-cap.open .spark, .gr-v.swap { animation: none; }
  .gr-cap .h-top { transition: none; }
  .gr-play.on img { animation: none; }
  .p-stamp { transition: none; }
  .pass.stamped .pp-plane, .pass.stamped .s-scan { animation: none; }
  .shifting .aura, .shifting .nx-strip, .shifting .nx-led { animation: none; }
}
