@charset "utf-8";

/* ==========================================================================
   JiangWen · 莫奈蓝 × 圣诞夜
   字体：Fredoka（英文/数字）+ 站酷快乐体（中文），离线时回退系统圆润字体
   ========================================================================== */

:root {
  --sky: #b8d7fc;
  --sky-deep: #a6c4e8;
  --mist: #eaf3fb;
  --blue-soft: #c6ddf6;
  --blue-mid: #a6c4e8;
  --blue-deep: #7c9bc4;
  --ink: #3c5169;
  --ink-soft: #5c748f;
  --ink-faint: #8099b4;
  --lav: #d3c9e8;
  --pink: #f7d2dd;
  --white-glass: rgba(255, 255, 255, 0.42);
  --ease: cubic-bezier(0.22, 0.9, 0.26, 1);
  --font: "Fredoka", "ZCOOL KuaiLe", "Yuanti SC", "HarmonyOS Sans SC", "MiSans",
    "Alibaba PuHuiTi Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", system-ui, "Segoe UI", sans-serif;

  /* 圣诞树舞台：941 × 1672 的原图比例（0.5628 / 1.7772） */
  --stage-h: min(100vh, 177.72vw);
  --stage-h: min(100dvh, 177.72vw);
  --stage-w: min(100vw, 56.28vh);
  --stage-w: min(100vw, 56.28dvh);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  position: relative;
  overscroll-behavior: none;
}

img { -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; }

::selection { background: rgba(166, 196, 232, 0.55); }

/* --------------------------------------------------------------- 背景层 */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--mist);
}

.bg--monet { background-image: url("assets/bg-monet-portrait.jpg"); }
.bg--monet::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 50% 0%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 58%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(150, 184, 224, 0.16) 100%);
}

@media (min-aspect-ratio: 4/3) {
  .bg--monet { background-image: url("assets/bg-monet-wide.jpg"); }
}

/* 第二页：同一张背景，虚化一点，让弹窗浮起来 */
.bg--qa { filter: blur(2.5px) saturate(1.04); transform: scale(1.03); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(78% 58% at 50% 42%, rgba(255, 255, 255, 0.22), rgba(146, 180, 220, 0.3));
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* --------------------------------------------------------------- 转场幕布 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(60% 50% at 50% 46%, #f2f8fe 0%, #e2eefb 62%, #d7e5f7 100%);
  opacity: 1;
  transition: opacity 1.05s var(--ease);
  pointer-events: none;
}

body.is-ready .veil { opacity: 0; }

body.is-leaving { cursor: default; }
body.is-leaving .veil { opacity: 1; transition: opacity 0.72s var(--ease); }
body.is-leaving .home,
body.is-leaving .sheet-frame { opacity: 0; transform: scale(0.985); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }

/* ==========================================================================
   第一页 · 主页面
   ========================================================================== */
.home {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 4vh, 46px) 20px clamp(22px, 3.6vh, 40px);
}

.greet {
  margin: 0;
  padding: 0;
  font-size: clamp(18px, 5.4vmin, 33px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #3b5470;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 26px rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 1.15s var(--ease) 0.25s, transform 1.15s var(--ease) 0.25s;
}

.greet .emo {
  display: inline-block;
  margin-left: 0.12em;
  transform: rotate(6deg);
  animation: wink 4.8s var(--ease) infinite;
}

.figure {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 1.4vh, 16px) 0;
}

.girl {
  height: 96%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  filter: drop-shadow(0 24px 46px rgba(96, 124, 163, 0.26));
  transition: opacity 1.5s var(--ease) 0.15s, transform 1.6s var(--ease) 0.15s;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, rgba(0, 0, 0, 0.86) 96%, rgba(0, 0, 0, 0.7) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, rgba(0, 0, 0, 0.86) 96%, rgba(0, 0, 0, 0.7) 100%);
}

.whisper {
  margin: clamp(6px, 1.8vh, 20px) 0 0;
  max-width: min(560px, 92vw);
  font-size: clamp(11.5px, 3vmin, 16.5px);
  line-height: 1.9;
  letter-spacing: 0.14em;
  color: #546d88;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.3s var(--ease) 0.85s, transform 1.3s var(--ease) 0.85s;
}

.cta {
  position: relative;
  margin-top: clamp(14px, 3vh, 34px);
  padding: 9px 26px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  box-shadow: 0 12px 26px -16px rgba(74, 104, 143, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: clamp(11.5px, 2.9vmin, 14.5px);
  letter-spacing: 0.34em;
  color: #435f7e;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.1s var(--ease) 1.5s, transform 1.1s var(--ease) 1.5s, background 0.35s, box-shadow 0.35s;
  animation: breathe 3.6s ease-in-out 2.6s infinite;
}

.cta:hover { background: rgba(255, 255, 255, 0.46); box-shadow: 0 16px 30px -16px rgba(74, 104, 143, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 16px;
  height: 8px;
  margin-left: -8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8'><path d='M1 1.5 L8 6.6 L15 1.5' stroke='%237d99b9' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>") center/contain no-repeat;
  opacity: 0.7;
  animation: arrowBob 3.6s ease-in-out 2.6s infinite;
}

body.is-ready .greet { opacity: 1; transform: none; }
body.is-ready .girl { opacity: 1; transform: none; }
body.is-ready .whisper { opacity: 1; transform: none; }
body.is-ready .cta { opacity: 1; transform: none; }

/* ==========================================================================
   第二页 · QA
   ========================================================================== */
.sheet-frame {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.card {
  position: relative;
  width: min(540px, 92vw);
  padding: clamp(24px, 4.4vh, 42px) clamp(20px, 5.4vw, 40px) clamp(20px, 3.6vh, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(158deg, rgba(246, 251, 255, 0.86) 0%, rgba(208, 228, 248, 0.76) 52%, rgba(231, 241, 252, 0.82) 100%);
  box-shadow:
    0 30px 70px -26px rgba(64, 96, 138, 0.55),
    0 2px 10px rgba(120, 155, 195, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  /* 背景本身已经虚化过了，卡片不再叠一层 backdrop-filter，
     否则 Chrome 会在卡片下沿多画一块浅色方块 */
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 1s var(--ease) 0.1s, transform 1.1s var(--ease) 0.1s;
}

/* 弹窗上角那一抹莫奈的淡紫，跟背景取同一套色 */
.card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 110%;
  background: radial-gradient(circle at 60% 60%, rgba(211, 201, 232, 0.55), rgba(247, 210, 221, 0.22) 55%, transparent 72%);
  pointer-events: none;
}

body.is-ready .card { opacity: 1; transform: none; }

.qa-body {
  position: relative;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease), filter 0.42s var(--ease);
}

.qa-body.is-out { opacity: 0; transform: translateY(-10px); filter: blur(2px); }
.qa-body.is-in { opacity: 1; transform: none; filter: none; }

.q {
  margin: 0;
  font-size: clamp(17px, 4.5vmin, 23px);
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: #35506e;
  text-wrap: balance;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.6vh, 14px);
  margin-top: clamp(16px, 2.8vh, 28px);
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: clamp(11px, 1.9vh, 16px) clamp(13px, 3vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
  color: #37506b;
  font-size: clamp(13.5px, 3.5vmin, 17px);
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.26s, border-color 0.26s, transform 0.26s var(--ease), box-shadow 0.26s;
}

.opt .k {
  flex: 0 0 auto;
  width: 1.65em;
  height: 1.65em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #7590af;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0;
}

.opt:hover:not(:disabled),
.opt:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(70, 104, 145, 0.7);
  outline: none;
}

.opt.is-picked {
  background: rgba(186, 214, 246, 0.82);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.opt:disabled { cursor: default; opacity: 0.55; }
.opt.is-picked:disabled { opacity: 1; }

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: clamp(16px, 2.6vh, 26px);
  transition: opacity 0.4s var(--ease);
}

.dots .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(92, 121, 155, 0.22);
  transition: background 0.45s, box-shadow 0.45s, transform 0.45s var(--ease);
}

.dots .d.on { background: #7fa3cc; box-shadow: 0 0 9px rgba(127, 163, 204, 0.75); transform: scale(1.12); }

/* 昵称步骤 */
.nick-step {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.nick-step.is-active { display: flex; }
.nick-step.is-shown { opacity: 1; transform: none; }

.nick-title {
  margin: 0 0 clamp(16px, 2.8vh, 26px);
  font-size: clamp(15px, 4vmin, 20px);
  letter-spacing: 0.04em;
  color: #36506e;
}

.nick-title .emo { margin-left: 0.1em; display: inline-block; animation: wink 5s var(--ease) infinite; }

.nick-input {
  width: 100%;
  max-width: 340px;
  padding: clamp(11px, 1.9vh, 15px) 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
  color: #35506e;
  font-family: inherit;
  font-size: clamp(14px, 3.6vmin, 17px);
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.nick-input::placeholder { color: #9db0c6; letter-spacing: 0.06em; }
.nick-input:focus { background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }

.nick-hint {
  margin: clamp(12px, 2vh, 18px) 0 0;
  font-size: clamp(10.5px, 2.6vmin, 13px);
  letter-spacing: 0.16em;
  color: #8099b4;
}

/* ==========================================================================
   第三页 · 圣诞树
   ========================================================================== */
.bg--tree {
  background: linear-gradient(
    180deg,
    #b7d7fd 0%,
    #b8d8fd 62%,
    #c3ddfd 78%,
    #dfeafd 90%,
    #eef4fe 95%,
    #f8fbff 100%
  );
}

.stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

body.is-ready .stage { opacity: 1; }

.tree {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2.4%, #000 97.6%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 2.4%, #000 97.6%, transparent 100%);
}

.lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --dot: clamp(5px, 1.95vmin, 11px);
  --dot: clamp(5px, calc(var(--stage-w) * 0.019), 11px);
}

.light {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.62s cubic-bezier(0.18, 1.5, 0.38, 1);
  -webkit-tap-highlight-color: transparent;
}

.light.is-lit { opacity: 1; transform: scale(1); pointer-events: auto; }
.light.is-hit::after { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 22px 8px var(--c); }

.light::after,
.light::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.light::after {
  width: var(--dot);
  height: var(--dot);
  background: radial-gradient(circle at 50% 45%, #ffffff 8%, var(--c) 62%, var(--c) 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35), 0 0 12px 2px var(--c);
  transition: box-shadow 0.3s;
}

.light::before {
  width: calc(var(--dot) * 3.4);
  height: calc(var(--dot) * 3.4);
  background: radial-gradient(circle, var(--c) 0%, transparent 68%);
  opacity: 0.32;
  animation: glowPulse 3.4s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

/* 天空 / 弹幕区 */
.sky {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: min(19vh, calc(var(--stage-h) * 0.19));
  height: min(19dvh, calc(var(--stage-h) * 0.19));
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

.dm {
  position: absolute;
  left: 100%;
  top: 0;
  width: max-content;
  will-change: transform;
  white-space: normal;
  max-width: min(52vw, 340px);
  padding: 0;
  font-size: clamp(11px, 2.9vmin, 15px);
  line-height: 1.42;
  letter-spacing: 0.03em;
  text-align: center;
  color: #41608b;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 12px rgba(255, 255, 255, 0.9);
  opacity: 0.92;
  animation: none;
}

/* 量好宽度、算好时长之后才挂上动画，避免时长中途变化导致相位乱掉 */
.dm.is-run {
  animation: dmFlow var(--dur, 18s) linear var(--delay, 0s) var(--iter, 1) forwards;
}

.dm.is-fresh { animation-name: dmFlow; }

/* 准确率小牌 */
.result {
  position: fixed;
  top: clamp(9px, 1.9vh, 20px);
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 8;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 16px 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 10px 26px -14px rgba(70, 104, 145, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #3a5675;
  font-size: clamp(10.5px, 2.7vmin, 13px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s;
}

body.is-ready .result { opacity: 1; transform: translate(-50%, 0); }

.result .pct { font-size: clamp(14px, 3.6vmin, 18px); color: #33506f; letter-spacing: 0.02em; }
.result .frac { color: #6e88a5; font-size: 0.92em; }
.result .snow { opacity: 0.7; }

/* 底部玻璃输入框 */
.composer {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  transform: translateX(-50%) translateY(14px);
  z-index: 10;
  width: min(460px, 84vw);
  opacity: 0;
  transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s;
}

body.is-ready .composer { opacity: 1; transform: translateX(-50%); }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: clamp(38px, 5.4vh, 46px);
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 14px 32px -16px rgba(66, 100, 142, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.3s, box-shadow 0.3s;
}

.field:focus-within { background: rgba(255, 255, 255, 0.46); box-shadow: 0 16px 34px -16px rgba(66, 100, 142, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.95); }

.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #35506e;
  font-family: inherit;
  font-size: clamp(12px, 3.1vmin, 14.5px);
  letter-spacing: 0.04em;
  outline: none;
}

.field input::placeholder { color: #8098b4; letter-spacing: 0.06em; }

.field .send {
  flex: 0 0 auto;
  color: #7d99b9;
  font-size: 0.9em;
  opacity: 0.75;
  letter-spacing: 0;
}

/* 点亮点出来的昵称气泡 */
.bubble {
  position: absolute;
  z-index: 12;
  padding: 7px 13px 8px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 16px 34px -18px rgba(60, 92, 132, 0.8);
  color: #33506f;
  font-size: clamp(11.5px, 2.9vmin, 14px);
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -128%) scale(0.9);
  transition: opacity 0.34s var(--ease), transform 0.42s var(--ease);
  pointer-events: none;
}

.bubble.is-on { opacity: 1; transform: translate(-50%, -138%) scale(1); pointer-events: auto; }
.bubble .sub { color: #6d87a4; font-size: 0.86em; margin-left: 6px; letter-spacing: 0.02em; }
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  margin-left: -5px;
  background: rgba(255, 255, 255, 0.58);
  border-right: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
}

/* 答案卷 */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
  background: rgba(126, 160, 198, 0.3);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.sheet-mask.is-on { opacity: 1; pointer-events: auto; }

.paper {
  width: min(470px, 92vw);
  max-height: 82vh;
  max-height: 82dvh;
  overflow: auto;
  padding: clamp(20px, 3.4vh, 30px) clamp(18px, 4vw, 26px) clamp(18px, 2.6vh, 24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(249, 252, 255, 0.96) 0%, rgba(219, 236, 251, 0.92) 60%, rgba(237, 245, 253, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 28px 64px -26px rgba(58, 90, 132, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.5s var(--ease);
  scrollbar-width: thin;
}

.sheet-mask.is-on .paper { transform: none; }

.paper-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: clamp(10px, 1.6vh, 16px);
  border-bottom: 1px dashed rgba(108, 140, 178, 0.3);
}

.paper-name { font-size: clamp(15px, 3.9vmin, 20px); color: #31506f; letter-spacing: 0.04em; }
.paper-acc { font-size: clamp(11px, 2.8vmin, 13px); color: #6a86a4; letter-spacing: 0.04em; white-space: nowrap; }

.paper-list { margin: 0; padding: 0; list-style: none; }

.paper-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: clamp(9px, 1.5vh, 13px) 0;
  border-bottom: 1px solid rgba(120, 152, 190, 0.16);
}

.paper-item:last-child { border-bottom: 0; }
.paper-q { font-size: clamp(11.5px, 3vmin, 13.5px); color: #40597a; line-height: 1.55; }
.paper-a { font-size: clamp(11.5px, 3vmin, 13.5px); color: #63809f; text-align: right; white-space: nowrap; }
.paper-a .mark { margin-left: 5px; }
.paper-item .ok .mark { color: #4f9a7c; }
.paper-item .no .mark { color: #d08a94; }
.paper-item .right { grid-column: 1 / -1; font-size: clamp(10.5px, 2.7vmin, 12.5px); color: #8aa1ba; }

.paper-foot {
  margin: clamp(12px, 2vh, 18px) 0 0;
  font-size: clamp(10px, 2.6vmin, 12px);
  color: #8aa1ba;
  text-align: center;
  letter-spacing: 0.06em;
}

.paper-foot b { color: #6a86a4; font-weight: 400; }

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.015); }
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(3px); opacity: 0.95; }
}

@keyframes wink {
  0%, 92%, 100% { transform: rotate(6deg) scale(1); }
  95% { transform: rotate(-8deg) scale(1.12); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

@keyframes dmFlow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100vw)); }
}

/* --------------------------------------------------- 小屏 / 大屏微调 */
@media (max-height: 620px) {
  .greet { font-size: clamp(16px, 4.6vmin, 24px); }
  .whisper { letter-spacing: 0.1em; line-height: 1.7; }
  .card { padding: 18px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  /* 只收掉装饰性动效，弹幕与点亮是这一页的主角，留着 */
  .greet .emo,
  .cta,
  .cta::after { animation: none !important; }
  .light::before { animation: none !important; opacity: 0.3; }
}
