/* =========================================================
   LYSGAI · 二次元风启动页
   1. 设计令牌 / 基础
   2. 背景层（散景 / 集中线 / 星屑 / 花瓣）
   3. 启动页（徽章 / 魔法阵 / 立体字 / 进度 / 按钮）
   4. HUD 与边框
   5. 主内容
   6. 降级 & 响应式
   ========================================================= */

/* ---------- 1. 设计令牌 / 基础 ---------- */
:root {
  --sky-1: #fff4fa;
  --sky-2: #f7efff;
  --sky-3: #e9f3ff;
  --sky-4: #eefcff;

  --ink: #4a3a63;
  --ink-soft: #6b5b88;
  --muted: #9a8fb8;
  --dim: #b3a9cd;

  --pink: #ff6fa5;
  --pink-lt: #ffa6cd;
  --violet: #a97bff;
  --sky: #5ec8ff;
  --cream: #ffd98a;

  --glass: rgba(255, 255, 255, .72);
  --line: rgba(170, 130, 220, .22);

  --font-display: "Baloo 2", "Zen Maru Gothic", "Nunito", -apple-system, BlinkMacSystemFont,
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito", "Zen Maru Gothic", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic",
             "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  /* 环境漂浮用对称缓动：匀速进出，不会「猛冲一下再几乎停住」 */
  --drift: cubic-bezier(.45, 0, .55, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--sky-1);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

kbd {
  font-family: var(--font-display);
  font-size: .84em;
  font-weight: 700;
  padding: .1em .45em;
  border-radius: 6px;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 2px 0 rgba(200, 160, 230, .45);
}

::selection { background: var(--pink-lt); color: #fff; }

.stage { position: fixed; inset: 0; }

/* ---------- 2. 背景层 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 6%, #ffe6f4 0%, rgba(255, 230, 244, 0) 58%),
    radial-gradient(110% 80% at 92% 10%, #e6f1ff 0%, rgba(230, 241, 255, 0) 60%),
    radial-gradient(120% 90% at 50% 108%, #e4fbff 0%, rgba(228, 251, 255, 0) 62%),
    linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 76%, var(--sky-4) 100%);
}

.bg__layer { position: absolute; inset: -6%; will-change: transform; }
.bg__layer--bokeh  { inset: -14%; }
.bg__layer--sparkle,
.bg__layer--petals { inset: 0; }

/* — 散景光斑 —
   用多段 radial-gradient 模拟高斯衰减，代替 filter: blur()：
   效果接近，但不再有「大幅模糊层」的逐帧重绘成本（模糊半径最大 46px、面积可达 34vmax） */
.bokeh {
  --c: 255, 184, 221;
  position: absolute;
  border-radius: 50%;
  opacity: .62;
  background-image: radial-gradient(circle closest-side,
    rgba(var(--c), .95) 0%, rgba(var(--c), .78) 20%, rgba(var(--c), .5) 40%,
    rgba(var(--c), .25) 58%, rgba(var(--c), .08) 76%, rgba(var(--c), 0) 100%);
  will-change: transform;
}
.bokeh--1 {
  --c: 255, 184, 221;
  width: 34vmax; height: 34vmax; left: -8vmax; top: -8vmax;
  animation: float-a 26s var(--drift) infinite alternate;
}
.bokeh--2 {
  --c: 185, 216, 255;
  width: 30vmax; height: 30vmax; right: -6vmax; top: -2vmax;
  animation: float-b 31s var(--drift) infinite alternate;
}
.bokeh--3 {
  --c: 211, 184, 255;
  width: 26vmax; height: 26vmax; left: 46%; bottom: -10vmax;
  animation: float-c 28s var(--drift) infinite alternate;
}
.bokeh--4 {
  --c: 168, 240, 255;
  width: 18vmax; height: 18vmax; left: 18%; bottom: 4vmax;
  animation: float-b 23s var(--drift) infinite alternate-reverse;
}
.bokeh--5 {
  --c: 255, 230, 168;
  width: 15vmax; height: 15vmax; right: 14%; bottom: 8vmax;
  opacity: .5;
  animation: float-a 21s var(--drift) infinite alternate-reverse;
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vmax, 5vmax, 0) scale(1.16); }
}
@keyframes float-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-6vmax, 6vmax, 0) scale(.9); }
}
@keyframes float-c {
  from { transform: translate3d(0, 0, 0) scale(.94); }
  to   { transform: translate3d(5vmax, -6vmax, 0) scale(1.2); }
}

/* — 集中线 — */
.speedlines {
  position: absolute;
  inset: 0;
  opacity: .34;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255, 255, 255, .95) 0deg .55deg, rgba(255, 255, 255, 0) .55deg 3.4deg);
  -webkit-mask-image: radial-gradient(circle at 50% 46%,
    transparent 13%, rgba(0, 0, 0, .75) 32%, rgba(0, 0, 0, .45) 52%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 46%,
    transparent 13%, rgba(0, 0, 0, .75) 32%, rgba(0, 0, 0, .45) 52%, transparent 78%);
  will-change: transform, opacity;
}

.glow-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46% 40% at 50% 46%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 70%);
}

/* — 星屑 — */
.sparkle {
  position: absolute;
  width: var(--s, 16px);
  height: var(--s, 16px);
  opacity: 0;
  will-change: transform, opacity;
}
.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
}
.sparkle::before {
  width: 100%;
  height: 15%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--c, #fff) 50%, rgba(255, 255, 255, 0));
}
.sparkle::after {
  width: 15%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--c, #fff) 50%, rgba(255, 255, 255, 0));
}

/* — 花瓣 — */
.petal {
  position: absolute;
  width: var(--w, 11px);
  height: var(--w, 11px);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #ffe1ef 0%, #ffb0d5 55%, #ff8fc4 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .7);
  opacity: .9;
  will-change: transform;
}

/* ---------- 3. 启动页 ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vmin, 3rem);
  will-change: transform, opacity;
}

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 660px;
  text-align: center;
}

/* — 徽章 — */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: clamp(18px, 3vh, 30px);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--pink);
  background: rgba(255, 255, 255, .82);
  border: 1.5px dashed rgba(255, 111, 165, .5);
  box-shadow: 0 8px 22px -12px rgba(220, 120, 180, .8);
  transform: rotate(-2deg);
  opacity: 0;
}

/* — 魔法阵标志 — */
.mark {
  width: clamp(122px, 19vmin, 186px);
  height: auto;
  margin-bottom: clamp(14px, 2.6vh, 26px);
  overflow: visible;
  /* 不要在这里加 filter：环与光晕是逐帧动画的，filter 会因此每帧重算一遍。
     需要柔光时用 SVG 内部的 <circle class="mark__glow"> 径向渐变，零额外成本。 */
}
/* 围绕自身中心缩放的元素 */
.mark__glow,
.mark__dot,
.mark__star,
.mark__star-fill,
.mark__mini path,
.mark__ring,
.mark__ring--in {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
/* 轨道点分布在整个 viewBox 上，需绕画布中心旋转 */
.mark__orbit { transform-box: view-box; transform-origin: 70px 70px; }

.mark__glow,
.mark__ring,
.mark__star,
.mark__star-fill,
.mark__dot,
.mark__mini { opacity: 0; }

/* — 立体字 — */
.word {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 13vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
}

.ltr {
  display: inline-block;
  overflow: hidden;
  padding: .13em .055em;
}

.ltr__box {
  display: inline-grid;
  grid-template-areas: "g";
  transform: translateY(135%);
  will-change: transform;
}

/* 白色描边层（在渐变填充之下）。立体投影放在这一层：
   text-shadow 属于「文字」绘制阶段，而 background-clip:text 的渐变是元素背景、画在文字之下，
   所以阴影放在填充层会盖住渐变；放在这一层才会出现在渐变后面 —— 也只有这一层能做出立体底边 */
.ltr__o {
  grid-area: g;
  -webkit-text-stroke: .075em #fff;
  -webkit-text-stroke-width: .075em;
  -webkit-text-stroke-color: #fff;
  color: transparent;
  text-shadow: 0 .085em 0 rgba(255, 255, 255, .95),
               0 .13em .14em rgba(178, 120, 205, .4);
}

/* 渐变填充层 */
.ltr__i {
  grid-area: g;
  background-image: linear-gradient(178deg,
    #fff6fb 0%, #ffc2e0 22%, #ff6fa5 48%, #b07aff 74%, #6cc9ff 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 掠过的光带：用 background-clip:text 只提亮笔画本身 */
.ltr__s {
  grid-area: g;
  background-image: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, .98) 50%, rgba(255, 255, 255, 0) 57%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

/* — 副标题 — */
.tagline {
  align-self: stretch;
  margin-top: clamp(14px, 2.4vh, 24px);
  font-family: var(--font-jp);
  font-size: clamp(.9rem, 2.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink-soft);
  min-height: 1.7em;
  opacity: 0;
}

.subtag {
  margin-top: 6px;
  font-size: clamp(.74rem, 1.5vw, .85rem);
  letter-spacing: .16em;
  color: var(--muted);
  opacity: 0;
}

/* — 进度 — */
.boot {
  width: min(340px, 74vw);
  margin-top: clamp(28px, 5.5vh, 50px);
  opacity: 0;
}

.boot__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 9px;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}

.boot__status { transition: color .4s var(--ease); }
.boot__status.is-done { color: var(--pink); }

.boot__pct {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.boot__pct i { font-style: normal; color: var(--dim); margin-left: 1px; }

.boot__track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(184, 150, 220, .18);
  box-shadow: inset 0 1px 2px rgba(150, 110, 190, .18);
}

.boot__fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb0d5 0%, #ff6fa5 45%, #b07aff 78%, #6cc9ff 100%);
  box-shadow: 0 3px 12px -2px rgba(255, 111, 165, .65), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.boot__spark {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 14px 4px rgba(255, 143, 197, .9);
  opacity: 0;
}

.boot__fill.is-done { box-shadow: 0 3px 18px 0 rgba(255, 111, 165, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }

/* — 进入按钮 — */
.enter-wrap {
  margin-top: clamp(26px, 5vh, 44px);
  opacity: 0;
  pointer-events: none;
}
.enter-wrap.is-ready { pointer-events: auto; }

.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 14px 34px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(180, 40, 100, .35);
  background: linear-gradient(180deg, #ffa6cd 0%, #ff6fa5 52%, #ff5c9b 100%);
  box-shadow:
    0 6px 0 0 #e04d86,
    0 14px 30px -12px rgba(255, 111, 165, .85),
    inset 0 2px 0 rgba(255, 255, 255, .55);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), filter .28s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.enter:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow:
    0 8px 0 0 #e04d86,
    0 20px 38px -12px rgba(255, 111, 165, .95),
    inset 0 2px 0 rgba(255, 255, 255, .6);
}
.enter:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 0 #e04d86, 0 8px 18px -10px rgba(255, 111, 165, .8), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.enter:focus-visible { outline: 3px solid rgba(90, 200, 255, .75); outline-offset: 4px; }

.enter__arrow { flex: 0 0 auto; width: 20px; height: 20px; transition: transform .3s var(--ease); }
.enter__txt { flex: 0 0 auto; }
.enter:hover .enter__arrow { transform: translateX(4px); }

/* 沿按钮边缘跑的小星星 */
.enter::after {
  content: "✦";
  position: absolute;
  top: -8px;
  left: 12%;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, .9);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.enter:hover::after { opacity: 1; animation: orbit-dot 2.4s linear infinite; }
@keyframes orbit-dot {
  0%   { left: 8%;  top: -8px; }
  25%  { left: 88%; top: -8px; }
  50%  { left: 88%; top: calc(100% + 2px); }
  75%  { left: 8%;  top: calc(100% + 2px); }
  100% { left: 8%;  top: -8px; }
}

.hint {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--dim);
}

/* ---------- 4. HUD 与边框 ---------- */
.hud {
  position: fixed;
  z-index: 4;
  font-family: var(--font-jp);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--dim);
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
}
.hud--tl { top: 28px; left: 32px; display: flex; align-items: center; gap: 8px; }
.hud--tr { top: 28px; right: 32px; }
.hud--bl { bottom: 28px; left: 32px; }
.hud--br { bottom: 24px; right: 32px; }

.hud__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink-lt);
  box-shadow: 0 0 10px var(--pink);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

.skip {
  font-family: var(--font-jp);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.skip:hover { color: var(--pink); background: rgba(255, 255, 255, .8); transform: translateY(-1px); }

.frame {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 2px dashed rgba(196, 158, 232, .4);
  border-radius: 26px;
  pointer-events: none;
}

/* 进入涟漪 */
.ripple {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  z-index: 5;
  border: 3px solid rgba(255, 143, 197, .7);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

/* ---------- 5. 主内容 ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 3rem);
  clip-path: circle(0px at 50% 62%);
  pointer-events: none;
}
.entered .hero { pointer-events: auto; }

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 940px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(18px, 3vh, 28px);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px -14px rgba(180, 120, 210, .9);
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink-soft);
}
.eyebrow .sep { color: var(--pink); }
.eyebrow__star { font-style: normal; color: var(--pink); }

.title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--ink);
}
.title__line { display: block; overflow: hidden; padding-bottom: .08em; }
.title__line > span { display: block; transform: translateY(118%); will-change: transform; }
.title em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6fa5 0%, #b07aff 58%, #5ec8ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: clamp(16px, 2.6vh, 24px) auto 0;
  max-width: 34em;
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(24px, 4vh, 36px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 13px 30px 15px;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .1em;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .3s var(--ease);
}
.btn:active { transform: translateY(3px); }
.btn:focus-visible { outline: 3px solid rgba(90, 200, 255, .75); outline-offset: 4px; }

.btn--primary {
  color: #fff;
  text-shadow: 0 1px 2px rgba(180, 40, 100, .35);
  background: linear-gradient(180deg, #ffa6cd 0%, #ff6fa5 52%, #ff5c9b 100%);
  box-shadow: 0 5px 0 0 #e04d86, 0 14px 28px -14px rgba(255, 111, 165, .95),
              inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 0 #e04d86, 0 20px 34px -14px rgba(255, 111, 165, 1), inset 0 2px 0 rgba(255, 255, 255, .6); }
.btn--primary:active { box-shadow: 0 2px 0 0 #e04d86, inset 0 2px 0 rgba(255, 255, 255, .5); }

.btn__sheen {
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-18deg);
  transition: left .75s var(--ease);
}
.btn--primary:hover .btn__sheen { left: 130%; }

.btn--ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .8);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 5px 0 0 rgba(196, 168, 232, .55), 0 12px 24px -16px rgba(150, 110, 200, .9);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--pink);
  box-shadow: 0 7px 0 0 rgba(196, 168, 232, .6), 0 18px 30px -16px rgba(150, 110, 200, 1);
}
.btn--ghost:active { box-shadow: 0 2px 0 0 rgba(196, 168, 232, .5); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin: clamp(34px, 6vh, 54px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.card {
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: var(--glass);
  border: 1.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px -24px rgba(160, 110, 210, .75);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.card__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 13px;
  font-style: normal;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(150, 60, 120, .3);
}
.card__ico--pink   { background: linear-gradient(180deg, #ffb0d5, #ff6fa5); box-shadow: 0 5px 0 -1px #e35f92; }
.card__ico--violet { background: linear-gradient(180deg, #c9a8ff, #a97bff); box-shadow: 0 5px 0 -1px #8b5ee0; }
.card__ico--sky    { background: linear-gradient(180deg, #9de3ff, #5ec8ff); box-shadow: 0 5px 0 -1px #3fa9e0; }

.card h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

.hero__foot {
  position: absolute;
  bottom: clamp(.9rem, 2.6vh, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--dim);
  white-space: nowrap;
}

.replay {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 6;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .82);
  border: 1.5px solid #fff;
  box-shadow: 0 4px 0 0 rgba(196, 168, 232, .5), 0 14px 26px -18px rgba(150, 110, 200, .95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
}
.replay:hover {
  transform: translateY(-2px);
  color: var(--pink);
  box-shadow: 0 6px 0 0 rgba(196, 168, 232, .55), 0 18px 30px -18px rgba(150, 110, 200, 1);
}
.replay:active { transform: translateY(2px); box-shadow: 0 2px 0 0 rgba(196, 168, 232, .5); }

/* ---------- 6. 降级 & 响应式 ---------- */
/* anime.js 不可用 / 用户偏好减少动效：静态呈现 */
.anim-off .ltr__box { transform: none; }
.anim-off .title__line > span { transform: none; }
.anim-off .chip { transform: rotate(-2deg); }
.anim-off .chip,
.anim-off .tagline,
.anim-off .subtag,
.anim-off .boot,
.anim-off .enter-wrap,
.anim-off .hud,
.anim-off .mark__glow,
.anim-off .mark__ring,
.anim-off .mark__star,
.anim-off .mark__star-fill,
.anim-off .mark__dot,
.anim-off .mark__mini { opacity: 1; }
.anim-off .mark__star { stroke-dashoffset: 0; }
.anim-off .boot__spark { opacity: 1; }
.anim-off .enter-wrap { pointer-events: auto; }
.anim-off .skip { display: none; }
.anim-off .ltr__s { display: none; }
.anim-off .sparkle, .anim-off .petal { display: none; }
.anim-off .hero {
  clip-path: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.anim-off.entered .hero { opacity: 1; pointer-events: auto; }
.anim-off .splash { transition: opacity .55s var(--ease); }
.anim-off.entered .splash { opacity: 0; visibility: hidden; pointer-events: none; }
.anim-off .hero__inner > * { opacity: 1; transform: none; }

/* ---------- 帧率表（按 F 开关，用于自测流畅度） ---------- */
.fps {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 11, 26, .82);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.fps.is-on { display: flex; }
.fps b { font-size: 14px; }
.fps .is-ok   { color: #7ef0a8; }
.fps .is-warn { color: #ffd98a; }
.fps .is-bad  { color: #ff8fb0; }

@media (max-width: 720px) {
  .hud--tr, .hud--bl { display: none; }
  .frame { inset: 10px; border-radius: 20px; }
  .cards { grid-template-columns: 1fr; }
  .tagline { letter-spacing: .12em; }
  .hero__foot { position: static; transform: none; margin-top: 36px; text-align: center; }
}

@media (max-width: 420px) {
  .word { font-size: clamp(2.6rem, 15vw, 3.4rem); }
  .chip { letter-spacing: .14em; text-indent: .14em; }
}

@media (max-height: 660px) {
  .mark { width: clamp(84px, 15vmin, 118px); margin-bottom: 12px; }
  .chip { margin-bottom: 14px; }
  .boot { margin-top: 20px; }
  .enter-wrap { margin-top: 20px; }
  .tagline { margin-top: 10px; }
  .subtag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bokeh, .hud__dot { animation: none !important; }
}
