  * { margin: 0; padding: 0; box-sizing: border-box; user-select: none; -webkit-user-select: none; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #070a18;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
  #app { position: fixed; inset: 0; }

  /* 首次启动页：暖白纸张、晨空与樱花，按真实资源完成量更新进度。 */
  .bootLoading { --boot-progress: 0%; --boot-runner-progress: 0%; position: absolute; z-index: 100; inset: 0; overflow: hidden; isolation: isolate;
    display: grid; grid-template-rows: auto 1fr auto; align-items: center; min-width: 560px; min-height: 560px;
    color: #684c5d; background:
      radial-gradient(circle at 72% 12%, rgba(255,255,255,.94), transparent 24%),
      radial-gradient(ellipse at 14% 92%, rgba(255,184,208,.54), transparent 38%),
      radial-gradient(ellipse at 94% 58%, rgba(230,198,250,.42), transparent 38%),
      repeating-linear-gradient(0deg, rgba(122,78,103,.018) 0 1px, transparent 1px 4px),
      linear-gradient(135deg, #fff8f3 0%, #fffaf0 42%, #edf3ff 76%, #f6dcf3 100%);
    opacity: 1; visibility: visible; transition: opacity .62s ease, visibility .62s ease; }
  .bootLoading::before { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 11% 12%, rgba(255,255,255,.95) 0 2px, transparent 2.6px),
      radial-gradient(circle at 29% 7%, rgba(226,173,193,.65) 0 2px, transparent 2.8px),
      radial-gradient(circle at 67% 13%, rgba(255,255,255,.9) 0 2px, transparent 2.8px),
      radial-gradient(circle at 88% 21%, rgba(205,168,208,.58) 0 1.5px, transparent 2.3px),
      linear-gradient(111deg, transparent 0 11%, rgba(208,157,174,.11) 11.1% 11.22%, transparent 11.34% 100%),
      linear-gradient(69deg, transparent 0 24%, rgba(208,157,174,.09) 24.1% 24.22%, transparent 24.34% 100%),
      radial-gradient(ellipse at 50% 117%, rgba(247,185,198,.24), transparent 48%);
    opacity: .9; }
  .bootLoading::after { content: ""; position: absolute; z-index: 20; inset: 0; pointer-events: none;
    border: 4px solid rgba(255,255,255,.42); box-shadow: inset 0 0 95px rgba(150,104,130,.07); }
  .bootLoading.bootLeaving { opacity: 0; visibility: hidden; pointer-events: none; }
  .bootSky { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .62;
    background:
      radial-gradient(circle at 10% 18%, rgba(183,130,159,.68) 0 1px, transparent 1.6px),
      radial-gradient(circle at 20% 30%, rgba(183,130,159,.42) 0 1px, transparent 1.5px),
      radial-gradient(circle at 83% 17%, rgba(132,159,183,.46) 0 1px, transparent 1.6px),
      radial-gradient(circle at 91% 35%, rgba(183,130,159,.46) 0 1px, transparent 1.6px),
      radial-gradient(circle at 76% 78%, rgba(132,159,183,.38) 0 1px, transparent 1.5px),
      radial-gradient(circle at 16% 74%, rgba(183,130,159,.38) 0 1px, transparent 1.5px);
    background-size: 184px 142px, 257px 198px, 214px 177px, 301px 231px, 277px 203px, 326px 259px; }
  .bootSky::before, .bootSky::after { content: ""; position: absolute; border-radius: 50%; opacity: .42;
    background: repeating-radial-gradient(circle, transparent 0 48px, rgba(170,124,158,.25) 49px 50px); }
  .bootSky::before { left: -42vw; bottom: -58vw; width: 82vw; height: 82vw; transform: rotate(18deg); }
  .bootSky::after { right: -35vw; top: -54vw; width: 78vw; height: 78vw; transform: rotate(-16deg); }
  .bootBrand { position: absolute; z-index: 5; left: clamp(48px, 4.8vw, 82px); top: clamp(42px, 7vh, 82px); text-align: left; }
  .bootBrand strong { display: block; color: #ad6078; font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: clamp(44px, 4vw, 66px); font-weight: 500; letter-spacing: .12em;
    text-shadow: 0 3px 18px rgba(187,99,127,.14); }
  .bootBrand strong::after { content: "✦"; display: inline-block; margin-left: 8px; color: #d8ad83; font-size: .42em; vertical-align: middle; }
  .bootBrand span { display: block; margin-top: 7px; color: rgba(149,108,127,.68);
    font-family: Georgia, "Times New Roman", serif; font-size: 11px; font-weight: 700; letter-spacing: .48em; }
  .bootBrand span::before, .bootBrand span::after { content: "✦"; color: #d8ad83; font-size: 8px; }
  .bootBrand span::before { margin-right: 8px; }
  .bootBrand span::after { margin-left: 4px; }
  .bootPanel { grid-row: 2; z-index: 5; align-self: center; justify-self: center; width: min(1180px, 96vw); margin-top: clamp(42px, 8vh, 94px); text-align: center; }
  .bootRule { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(700px, 58vw); margin: 0 auto 24px; }
  .bootRule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(188,133,137,.55)); }
  .bootRule i:last-child { transform: scaleX(-1); }
  .bootRule span { color: #d99aac; font-size: 22px; filter: drop-shadow(0 2px 4px rgba(172,94,124,.16)); }
  .bootStatus { color: #775266; font-family: "Songti SC", "STSong", serif; font-size: clamp(24px, 2.3vw, 36px);
    letter-spacing: .14em; text-indent: .14em; text-shadow: 0 2px 12px rgba(171,107,132,.11); }
  .bootPercent { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 24px; color: #a7587b;
    font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 5vw, 76px); font-style: italic; line-height: 1; letter-spacing: .02em;
    text-shadow: 0 5px 22px rgba(175,88,128,.13); }
  .bootPercent::before, .bootPercent::after { content: "✦"; color: #d6a87c; font-size: .42em; font-style: normal; }
  .bootProgressScene { position: relative; width: min(1180px, calc(100vw - 36px)); height: 190px; margin: -2px auto 0; }
  .bootProgressTrack { position: absolute; inset: 0 154px; }
  .bootProgress { position: absolute; left: 0; right: 0; bottom: 28px; height: 54px; overflow: visible;
    border: 2px solid rgba(183,137,113,.78); border-radius: 999px;
    background: rgba(255,252,248,.82); box-shadow: 0 8px 24px rgba(137,84,106,.1), inset 0 0 0 4px rgba(255,255,255,.58), inset 0 2px 8px rgba(144,88,110,.1); }
  .bootProgress::before { content: ""; position: absolute; inset: 6px; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(239,225,237,.34)); }
  .bootFill { position: absolute; left: 7px; top: 7px; bottom: 7px; width: max(0px, calc(var(--boot-progress) - 14px)); min-width: 0;
    border-radius: 999px; background:
      radial-gradient(circle at 10% 50%, rgba(255,255,255,.94) 0 1px, transparent 2px) 0 0 / 44px 22px,
      radial-gradient(circle at 72% 35%, rgba(255,255,255,.72) 0 1.2px, transparent 2.2px) 0 0 / 68px 28px,
      linear-gradient(90deg, #f08bb2, #e7a3d7 48%, #bda8e7 100%);
    box-shadow: inset 0 1px 7px rgba(255,255,255,.72), 0 0 14px rgba(201,105,138,.24); transition: width .34s cubic-bezier(.22,.74,.28,1); }
  .bootFill::after { content: ""; position: absolute; inset: 2px 5px 58% 5px; border-radius: inherit; background: rgba(255,255,255,.28); }
  .bootFill span { position: absolute; right: -22px; top: 50%; width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle, #fffdf8 0 19%, #ffd5df 20% 34%, rgba(255,255,255,.96) 35% 43%, transparent 44%),
      conic-gradient(from 10deg, #f8aac0, #fff2ef, #e998b7, #fff6f0, #f8aac0);
    filter: drop-shadow(0 3px 7px rgba(139,65,91,.3)); transform: translateY(-50%) rotate(12deg); }
  .bootFill span::after { content: "✿"; position: absolute; inset: 0; display: grid; place-items: center; color: #d9779a; font-size: 25px; transform: rotate(-12deg); }
  .bootChibi { position: absolute; z-index: 3; width: 112px; height: 112px;
    background-repeat: no-repeat; background-size: 400% 100%; background-position: 0 0;
    image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 7px 5px rgba(100,68,86,.16)); transform: translateX(-50%); }
  .bootChibiChinatsu { left: 38px; bottom: 0; background-image: url("assets/ui/loading/chibi_chinatsu_strip_v3.png?v=20260902-strip");
    animation: bootChinatsuFrames 2.4s steps(1,end) infinite; }
  .bootChibiHinata { z-index: 4; left: calc(var(--boot-runner-progress) - 3px); bottom: 80px; background-image: url("assets/ui/loading/chibi_hinata_strip_v6.png?v=20260902-alternate-arms-v6");
    animation: bootHinataFrames .72s steps(1,end) infinite;
    transition: left .34s cubic-bezier(.22,.74,.28,1); }
  .bootChibiYukino { left: calc(100% - 38px); bottom: 0; background-image: url("assets/ui/loading/chibi_yukino_strip_v5.png?v=20260902-yukino-v5");
    animation: bootYukinoFrames 3.2s steps(1,end) infinite; }
  .bootMilestones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(760px, calc(100vw - 280px)); min-width: 300px; margin: 8px auto 0; }
  .bootMilestones::before { content: ""; position: absolute; z-index: -1; left: 15%; right: 15%; top: 22px; border-top: 2px dotted rgba(183,123,132,.42); }
  .bootMilestones span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: rgba(126,91,108,.46);
    transition: color .25s ease, transform .25s ease; }
  .bootMilestones span::before { content: "✿"; position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 44px;
    color: #d78ba0; background: radial-gradient(circle, rgba(255,250,244,.94), rgba(255,250,244,.72) 54%, transparent 56%);
    font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(137,84,106,.1)); }
  .bootMilestones span:nth-child(2)::before { content: "▤"; color: #bd8b83; font-size: 34px; }
  .bootMilestones span:nth-child(3)::before { content: "✦"; color: #c49b68; font-size: 38px; }
  .bootMilestones i { display: none; }
  .bootMilestones span.done { color: #9f566f; transform: translateY(-1px); }
  .bootMilestones span.done::before { filter: drop-shadow(0 3px 7px rgba(196,94,130,.24)); }
  .bootMilestones strong { margin-top: 3px; font-family: "Songti SC", "STSong", serif; font-size: 18px; font-weight: 500; letter-spacing: .15em; }
  .bootMilestones small { display: none; }
  .bootDetail { min-height: 16px; margin-top: 14px; color: rgba(116,87,101,.48); font-size: 10px; letter-spacing: .14em; }
  .bootFooter { display: none;
    color: rgba(135,102,118,.45); font-family: Georgia, "Times New Roman", serif; font-size: 7px; letter-spacing: .25em; }
  .bootFooter i { flex: 1; height: 1px; background: rgba(164,120,139,.18); }
  .bootPetals { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
  .bootPetals span { position: absolute; left: var(--x); top: -12vh; width: var(--size); height: calc(var(--size) * .72);
    border-radius: 80% 12% 78% 28%; opacity: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,169,188,.88) 53%, rgba(213,116,150,.72));
    box-shadow: inset 1px 1px rgba(255,255,255,.64), 0 3px 8px rgba(162,89,119,.13);
    transform-origin: 72% 72%; animation: bootPetalFall var(--duration) linear var(--delay) infinite; }
  @keyframes bootPetalFall {
    0% { opacity: 0; transform: translate3d(0,-8vh,0) rotate(0deg) rotateX(20deg); }
    9% { opacity: .82; }
    47% { transform: translate3d(calc(var(--drift) * .45),48vh,0) rotate(calc(var(--turn) * .44)) rotateX(145deg); }
    72% { opacity: .72; }
    100% { opacity: 0; transform: translate3d(var(--drift),119vh,0) rotate(var(--turn)) rotateX(310deg); }
  }
  @keyframes bootChinatsuFrames {
    0% { background-position: 0 0; }
    25% { background-position: 33.333333% 0; }
    50% { background-position: 66.666667% 0; }
    75%, 100% { background-position: 100% 0; }
  }
  @keyframes bootHinataFrames {
    0% { background-position: 0 0; }
    25% { background-position: 33.333333% 0; }
    50% { background-position: 66.666667% 0; }
    75%, 100% { background-position: 100% 0; }
  }
  @keyframes bootYukinoFrames {
    0% { background-position: 0 0; }
    25% { background-position: 33.333333% 0; }
    50% { background-position: 66.666667% 0; }
    75%, 100% { background-position: 100% 0; }
  }
  .titleCover.bootPending .titleHeroStage, .titleCover.bootPending .titleContent, .titleCover.bootPending .titleFooter { animation: none !important; opacity: 0; }

  @media (prefers-reduced-motion: reduce) {
    .bootPetals span { animation: none; opacity: .34; top: var(--x); transform: rotate(22deg); }
    .bootChibi, .bootChibiHinata { animation: none; transition: none; background-position: 0 0; }
    .bootFill { transition: none; }
  }

  #stage { position: absolute; inset: 0; overflow: hidden; }
  #bgGrad { position: absolute; inset: 0; transition: background 1s; }
  #bgGrad[data-missing-asset]::after { content: attr(data-missing-asset); position: absolute; left: 50%; top: 44%;
    transform: translate(-50%,-50%); padding: 10px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px;
    color: rgba(255,255,255,.72); background: rgba(16,17,31,.34); font-size: 12px; letter-spacing: 1px; }
  #bgImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
  #petals { position: absolute; inset: 0; opacity: 1; transition: opacity .28s ease; }
  #petals.scenePetalsOff { opacity: 0; }
  #chara { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    height: 100vh; width: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.38)); }

  #hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex;
    justify-content: space-between; align-items: center; z-index: 5; pointer-events: none; }
  #chapterRibbon { position: relative; min-width: 245px; height: 72px; display: flex; align-items: center;
    gap: 11px; padding: 8px 28px 8px 22px; color: #fff6f2;
    background: linear-gradient(100deg, rgba(205,89,109,.95), rgba(240,137,124,.88) 72%, rgba(240,137,124,0));
    clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
    filter: drop-shadow(0 4px 10px rgba(65,21,32,.28)); text-shadow: 0 2px 4px rgba(95,32,45,.46); }
  #chapterRibbon::after { content: ""; position: absolute; left: 12px; right: 28px; bottom: 7px; height: 1px;
    background: linear-gradient(90deg, rgba(255,237,222,.2), rgba(255,237,222,.72), transparent); }
  .chapterMark { font-family: Georgia, serif; font-size: 29px; color: #ffd5cf; }
  .chapterCopy { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
  .chapterCopy strong { display: flex; align-items: baseline; gap: 10px; font-family: Georgia, "Times New Roman", serif;
    font-size: 21px; letter-spacing: 2px; }
  #weekdayText { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 11px; letter-spacing: 2px; }
  #weatherText { color: #ffe4dd; font-size: 10px; letter-spacing: 2px; margin-top: 6px; }
  #affBox { display: flex; flex-direction: column; gap: 2px; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 14px; }
  #affBox[hidden] { display: none; }
  #affBox .label { color: #ffd9ec; font-size: 11px; letter-spacing: 1px; }
  #hearts { font-size: 15px; letter-spacing: 1px; }
  #hearts .on { color: #ff5f8f; text-shadow: 0 0 8px rgba(255,95,143,.8); }
  #hearts .off { color: rgba(255,255,255,.22); }
  .affRow { display: flex; align-items: center; gap: 5px; font-size: 12px; }
  .affRow .an { color: #ffd9ec; min-width: 30px; font-size: 11px; }
  .affRow .ah { font-size: 12px; letter-spacing: 1px; }
  /* 参考传统视觉小说：整宽玫瑰色文本层、左下说话人头像与底部操作栏。 */
  #dialogWrap { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(190px, 27vh, 286px);
    z-index: 10; display: flex; align-items: flex-start; transition: transform .24s ease, opacity .2s ease;
    background:
      linear-gradient(180deg, rgba(116,45,67,.05), rgba(115,42,65,.76) 17%, rgba(185,91,110,.90) 72%, rgba(91,35,57,.96)),
      radial-gradient(circle at 12px 12px, rgba(255,222,215,.13) 1px, transparent 1.5px);
    background-size: auto, 24px 24px; border-top: 1px solid rgba(255,229,218,.58);
    box-shadow: 0 -12px 34px rgba(58,19,40,.18), inset 0 1px rgba(255,255,255,.18); }
  #dialogWrap::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(96,35,58,.32), transparent 22%, transparent 80%, rgba(96,35,58,.23)); }
  #dialogContent { position: relative; z-index: 2; flex: 1; width: auto; height: 100%;
    margin-left: clamp(300px, 25vw, 520px); margin-right: 5vw; padding: 22px 10px 48px; }
  #speakerPortrait { position: absolute; z-index: 3; left: clamp(18px, 5vw, 110px); bottom: 0;
    width: clamp(150px, 19vw, 310px); height: clamp(180px, 31vh, 350px); overflow: hidden;
    opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .25s; pointer-events: none; }
  #speakerPortrait.visible { opacity: 1; transform: translateY(0); }
  #speakerPortraitImg { width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
    filter: drop-shadow(0 5px 10px rgba(62,21,40,.34)); }
  #nameTag { display: inline-block; color: #fffaf5; font-size: clamp(17px, 1.42vw, 24px); font-weight: 800;
    letter-spacing: 2px; padding: 0 4px 4px; visibility: hidden;
    text-shadow: -1px -1px 0 #5b2942, 1px -1px 0 #5b2942, -1px 1px 0 #5b2942, 1px 1px 0 #5b2942, 0 3px 6px rgba(53,15,34,.52); }
  #dialogBox { position: relative; height: calc(100% - 30px); padding: 1px 32px 16px 5px; overflow: hidden;
    color: #fffaf5; font-size: clamp(18px, 1.5vw, 25px); font-weight: 650; line-height: 1.62; cursor: pointer;
    text-shadow: -1px -1px 0 rgba(75,29,52,.95), 1px -1px 0 rgba(75,29,52,.95), -1px 1px 0 rgba(75,29,52,.95), 1px 1px 0 rgba(75,29,52,.95), 0 3px 7px rgba(54,16,35,.55); }
  #dialogText { white-space: pre-wrap; }
  #dialogText .cursor { display: inline-block; width: 8px; height: 16px; background: #ff8fb0;
    vertical-align: -2px; margin-left: 2px; animation: blink .7s steps(2) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  #advHint { position: absolute; right: 6px; bottom: 8px; text-align: right; font-size: 10px;
    color: rgba(255,244,237,.66); letter-spacing: 1px; text-shadow: 0 1px 3px rgba(60,20,40,.6); }

  #vnControls { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max-content;
    max-width: 100%; height: 44px; display: flex; align-items: stretch; justify-content: center; gap: 1px; }
  .vnCtrl { min-width: 54px; padding: 3px 8px 4px; border: 0; border-top: 1px solid rgba(255,226,211,.18);
    color: #f5bcae; background: rgba(73,26,49,.16); cursor: pointer; font-family: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    transition: color .14s, background .14s, transform .1s; }
  .vnCtrl:hover, .vnCtrl.active { color: #fff1e5; background: rgba(255,189,165,.16); }
  .vnCtrl:active { transform: translateY(1px); }
  .vnCtrl:disabled { opacity: .35; cursor: not-allowed; }
  .ctrlIcon { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 17px; }
  .ctrlLabel { font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
  #showDialogBtn { display: none; position: absolute; right: 18px; bottom: 16px; z-index: 11;
    border: 1px solid rgba(255,235,226,.48); border-radius: 18px; padding: 7px 15px;
    color: #fff3ed; background: rgba(105,42,66,.72); backdrop-filter: blur(5px); cursor: pointer; font-family: inherit; }
  #app.dialog-hidden #dialogWrap { transform: translateY(103%); opacity: 0; pointer-events: none; }
  #app.dialog-hidden #showDialogBtn { display: block; }

  /* 分支选项延续标题页的暖白纸张、玫瑰色强调与衬线编号，并融入游戏内的玻璃质感。 */
  #choices { position: absolute; left: 50%; top: calc((100% - clamp(190px, 27vh, 286px)) / 2 + 30px); bottom: auto;
    transform: translate(-50%, -50%);
    width: min(660px, 90vw); display: flex; flex-direction: column; gap: 10px; z-index: 12;
    counter-reset: story-choice; isolation: isolate; }
  #choices:has(.choiceBtn)::after { content: ""; position: absolute; z-index: -1; inset: -22px -30px -20px;
    background: radial-gradient(ellipse at center, rgba(48,20,42,.36), rgba(48,20,42,0) 72%);
    filter: blur(7px); pointer-events: none; }
  #choicePrompt { position: relative; min-height: 38px; display: flex; align-items: center;
    padding: 7px 42px 8px 96px; color: #fff9f4; text-align: left; font-size: 15px; font-weight: 700;
    line-height: 1.45; letter-spacing: .8px; text-shadow: 0 2px 8px rgba(51,17,39,.8); }
  #choicePrompt::before { content: "CHOICE"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    padding-right: 12px; border-right: 1px solid rgba(255,218,213,.6); color: #ffd0ca;
    font-family: Georgia, "Times New Roman", serif; font-size: 10px; font-weight: 400; letter-spacing: 2px; }
  #choicePrompt::after { content: "✦"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #ffd0ca; font-size: 12px; text-shadow: 0 0 10px rgba(255,208,202,.7); }
  .choiceBtn { position: relative; min-height: 54px; counter-increment: story-choice; overflow: hidden;
    padding: 13px 54px 13px 70px; border: 1px solid rgba(255,244,239,.8); border-radius: 6px;
    color: #4c3142; background: linear-gradient(100deg, rgba(255,251,247,.96), rgba(250,237,238,.9));
    box-shadow: 0 6px 20px rgba(53,20,42,.3), inset 0 1px rgba(255,255,255,.78);
    backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); cursor: pointer; text-align: left;
    font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.55; letter-spacing: .15px;
    opacity: 0; animation: choiceReveal .32s cubic-bezier(.2,.75,.25,1) forwards;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
  .choiceBtn:nth-of-type(2) { animation-delay: .045s; }
  .choiceBtn:nth-of-type(3) { animation-delay: .09s; }
  .choiceBtn:nth-of-type(4) { animation-delay: .135s; }
  .choiceBtn::before { content: counter(story-choice, decimal-leading-zero); position: absolute; left: 18px; top: 50%;
    width: 35px; transform: translateY(-50%); border-right: 1px solid rgba(154,79,101,.27);
    color: #ad536e; font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 400; letter-spacing: 1px; }
  .choiceBtn::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translate(-4px,-50%);
    color: #a94e69; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400;
    transition: transform .18s ease, color .18s ease; }
  .choiceBtn:hover, .choiceBtn:focus-visible { transform: translateY(-2px); color: #6d3048;
    border-color: rgba(196,98,122,.76); outline: none;
    background: linear-gradient(100deg, rgba(255,253,249,.99), rgba(255,226,232,.95));
    box-shadow: 0 10px 28px rgba(67,24,48,.38), inset 3px 0 #bd5c76, inset 0 1px rgba(255,255,255,.9); }
  .choiceBtn:hover::after, .choiceBtn:focus-visible::after { color: #87354f; transform: translate(0,-50%); }
  .choiceBtn:active { transform: translateY(0) scale(.993); box-shadow: 0 4px 13px rgba(53,20,42,.3), inset 3px 0 #bd5c76; }
  .dangerChoiceWarning { position: relative; padding: 10px 14px 10px 42px; border: 1px solid rgba(255,143,143,.72); border-radius: 5px;
    color: #fff0ed; background: linear-gradient(90deg, rgba(88,22,39,.92), rgba(69,18,38,.8));
    text-align: left; font-size: 13px; line-height: 1.45; letter-spacing: .5px;
    box-shadow: 0 6px 20px rgba(48,0,12,.36); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
  .dangerChoiceWarning::after { content: ""; position: absolute; left: 30px; top: 8px; bottom: 8px; width: 1px;
    background: rgba(255,201,195,.38); }
  .choiceBtn.dangerous { border-color: rgba(210,74,88,.82); color: #681f31;
    background: linear-gradient(100deg, rgba(255,242,239,.98), rgba(255,218,220,.94)); }
  .choiceBtn.dangerous::before, .choiceBtn.dangerous::after { color: #bd334d; }
  .choiceBtn.dangerous:hover, .choiceBtn.dangerous:focus-visible { color: #72182c; border-color: rgba(221,66,83,.9);
    background: linear-gradient(100deg, #fff5f0, #ffd6d9);
    box-shadow: 0 10px 28px rgba(124,14,32,.4), inset 3px 0 #d63e57, inset 0 1px rgba(255,255,255,.88); }
  @keyframes choiceReveal {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .choiceBtn { opacity: 1; animation: none; transition: none; }
    .choiceBtn::after { transition: none; }
  }

  /* 行动菜单 / 手机 / 邀约 覆盖层 */
  .menuOverlay { position: absolute; inset: 0; z-index: 16; display: none; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; background: rgba(6,10,24,.6); backdrop-filter: blur(2px); }
  .menuOverlay.show { display: flex; }
  .menuOverlay h2 { color: #ffd9ec; font-size: 22px; letter-spacing: 3px; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
  .menuGrid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 640px; }
  .menuBtn { width: 220px; padding: 14px 16px; border: 1px solid rgba(255,220,140,.3); border-radius: 14px;
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-align: left; font-family: inherit;
    display: flex; flex-direction: column; gap: 4px; transition: transform .1s, background .15s; }
  .menuBtn:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
  .menuBtn .t { font-size: 15px; font-weight: bold; color: #fff2d0; }
  .menuBtn .d { font-size: 12px; color: #b9b2c8; }
  .menuBtn .lock { font-size: 11px; color: #ff9db9; }
  .menuBtn .hprev { width: 110px; height: 150px; object-fit: contain; margin: -4px auto 2px;
    border-radius: 8px; background: rgba(255,255,255,.05); }
  .menuBtn:disabled { opacity: .4; cursor: not-allowed; }
  .backBtn { padding: 9px 22px; border: none; border-radius: 20px; cursor: pointer; font-family: inherit;
    font-size: 13px; color: #fff; background: rgba(255,255,255,.15); }

  /* 对话历史 */
  #historyOverlay { z-index: 17; background: rgba(34,15,29,.72); backdrop-filter: blur(7px); }
  #historyPanel { width: min(760px, 92vw); height: min(650px, 82vh); display: flex; flex-direction: column;
    overflow: hidden; border: 1px solid rgba(255,222,211,.36); border-radius: 12px;
    background: linear-gradient(160deg, rgba(105,44,68,.97), rgba(46,23,43,.98));
    box-shadow: 0 22px 70px rgba(13,5,14,.58); }
  .historyHead { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid rgba(255,230,219,.15); }
  .historyHead h2 { flex: 1; margin: 0; text-align: left; font-family: Georgia, serif; font-size: 19px; color: #ffe8dd; }
  #historyClose { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #ffe8dd;
    background: rgba(255,255,255,.1); font-size: 21px; cursor: pointer; }
  #historyList { flex: 1; overflow-y: auto; padding: 10px 22px 26px; user-select: text; -webkit-user-select: text; }
  .historyItem { padding: 13px 5px 15px; border-bottom: 1px solid rgba(255,231,222,.1); }
  .historyWho { margin-bottom: 5px; color: #ffc9bd; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
  .historyText { color: #fff7f1; font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
  .historyEmpty { color: rgba(255,243,235,.62); text-align: center; padding-top: 90px; }

  /* 手机界面 */
  #phone { width: min(340px, 92vw); height: min(560px, 78vh); background: linear-gradient(#141a33,#0e1226);
    border-radius: 26px; border: 1px solid rgba(255,255,255,.18); padding: 14px; display: flex;
    flex-direction: column; gap: 10px; box-shadow: 0 14px 44px rgba(0,0,0,.6), inset 0 0 0 3px #000; }
  #phone .ph-top { text-align: center; color: #9db9ff; font-size: 13px; letter-spacing: 1px; }
  .ph-appbar { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 8px; }
  .ph-back { background: none; border: none; color: #9db9ff; font-size: 20px; cursor: pointer; padding: 0 4px; }
  .ph-btn { background: rgba(255,255,255,.14); border: none; color: #fff; border-radius: 8px; padding: 5px 10px;
    cursor: pointer; font-size: 12px; margin-left: auto; font-family: inherit; }

  /* 主页 APP 图标 */
  #phoneHome { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  /* 手机内的各个 APP 视图：纵向 flex 布局，占满机身 */
  #phoneChatApp, #phoneFeedApp, #phoneCalApp { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .appGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px 8px; }
  .app { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 12px 4px; border-radius: 16px; transition: background .15s; }
  .app:hover { background: rgba(255,255,255,.08); }
  .app .ic { font-size: 34px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
  .app .nm { font-size: 13px; color: #e6ecff; }
  .ph-hint { margin-top: auto; text-align: center; color: #8f98b8; font-size: 12px; line-height: 1.5; }

  #phoneChatLog { flex: 1; min-height: 0; overflow-y: auto; background: #0b0f1e; border-radius: 12px;
    padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  #contactList { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
  .contact { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06);
    border: none; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: #fff;
    font-size: 14px; font-family: inherit; text-align: left; }
  .contact:hover { background: rgba(255,255,255,.13); }
  .contact .cavatar { width: 44px; height: 58px; object-fit: contain; border-radius: 8px;
    background: rgba(255,255,255,.08); }
  .contact .cn { flex: 1; font-weight: bold; color: #ffeef4; }
  .contact .clv { color: #ff5f8f; font-size: 12px; }
  .phmsg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
  .phmsg.me { align-self: flex-end; background: #3a5f8c; color: #fff; border-bottom-right-radius: 4px; }
  .phmsg.her { align-self: flex-start; background: rgba(255,143,176,.2); color: #ffeef4; border-bottom-left-radius: 4px; }
  #phoneInputRow { display: flex; gap: 8px; }
  #phoneInput { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.94); font-size: 14px; font-family: inherit; color: #222; }
  #phoneInput:focus { outline: 2px solid #ff8fb0; }
  .phbtn { padding: 0 14px; border: none; border-radius: 10px; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: bold; color: #fff; background: linear-gradient(#ff8fb0,#ff5f8f); }
  .phbtn.alt { background: rgba(255,255,255,.15); }

  /* 朋友圈 / 日历列表 */
  #feedList, #calList { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
  .feedItem { background: rgba(255,255,255,.06); border-radius: 12px; padding: 11px 13px; text-align: left; }
  .feedItem .nm { font-size: 13px; color: #9db9ff; font-weight: bold; }
  .feedItem .tx { font-size: 13px; color: #e6ecff; margin-top: 4px; line-height: 1.55; }
  .feedItem .tm { font-size: 10px; color: #6a7494; margin-top: 4px; }
  .calItem { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 13px; text-align: left;
    font-size: 13px; color: #e6ecff; display: flex; align-items: center; gap: 8px; }
  .calItem .d { color: #9db9ff; font-weight: bold; min-width: 46px; }

  /* 邀约成功率条 */
  #inviteChance { font-size: 12px; color: #9db9ff; text-align: center; }

  /* CG 全屏 */
  #cgOverlay { position: absolute; inset: 0; z-index: 30; background: #000; display: flex;
    align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden;
    pointer-events: none; transition: opacity .62s ease, visibility 0s linear .62s; }
  #cgOverlay.show { opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .62s ease, visibility 0s linear 0s; }
  #cgOverlay.live { z-index: 9; }
  #cgOverlay.live #cgHint { display: none; }
  #cgOverlay.transitioning { cursor: wait; }
  #app.cg-transitioning #dialogWrap,
  #app.cg-transitioning #choices,
  #app.cg-transitioning #showDialogBtn { pointer-events: none; }
  #dialogWrap.cg-dialog-paused { opacity: 0; pointer-events: none; }
  #cgOverlay.loading, #cgOverlay.missing {
    background: radial-gradient(circle at 50% 42%, #51485f, #211d31 58%, #100e1a); }
  #cgOverlay.loading::before, #cgOverlay.missing::before { position: absolute; left: 50%; top: 48%;
    transform: translate(-50%,-50%); color: rgba(255,244,248,.82); font-family: "Songti SC", "STSong", serif;
    font-size: clamp(15px, 1.5vw, 24px); letter-spacing: 3px; text-align: center; }
  #cgOverlay.loading::before { content: "正在读取记忆…"; }
  #cgOverlay.missing::before { content: attr(data-missing-title); }
  #cgImg { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s; }
  #cgOverlay.loading #cgImg, #cgOverlay.missing #cgImg { opacity: 0; }
  #cgHint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: #fff; background: rgba(0,0,0,.5); padding: 6px 18px; border-radius: 20px; font-size: 13px; }

  /* 覆盖层（标题/结局/设置/画廊） */
  .cover { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 15px; text-align: center; color: #fff;
    background: rgba(8,8,20,.84); backdrop-filter: blur(4px); }
  .cover.hidden { display: none; }
  .cover h1 { font-size: 46px; letter-spacing: 8px; text-shadow: 0 0 30px rgba(255,143,176,.6); }
  .cover h2 { font-size: 26px; letter-spacing: 3px; color: #ffd9ec; }
  .chapterCompleteEyebrow { color: #ff9fbd; font-size: 12px; font-weight: 800; letter-spacing: 5px; }
  #chapterTransition { position: absolute; inset: 0; z-index: 24; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; pointer-events: none; color: #fff;
    background: radial-gradient(circle at 50% 46%, rgba(74,42,75,.94), rgba(9,8,22,.98) 68%);
    opacity: 0; visibility: hidden; transition: opacity .48s ease, visibility 0s linear .48s; }
  #chapterTransition.hidden { display: none; }
  #chapterTransition.show { opacity: 1; visibility: visible; transition: opacity .48s ease; }
  #chapterTransition.leaving { opacity: 0; }
  .chapterTransitionEyebrow { color: #f5b1c8; font-size: 11px; font-weight: 800; letter-spacing: 6px;
    opacity: 0; transform: translateY(8px); }
  .chapterTransitionNumber { color: #fff; font-family: Georgia, serif; font-size: 17px; letter-spacing: 7px;
    opacity: 0; transform: translateY(8px); }
  #chapterTransition h2 { margin: 2px 0; color: #ffe3ee; font-family: Georgia, "Noto Serif SC", serif;
    font-size: clamp(25px, 4vw, 40px); font-weight: 500; letter-spacing: 5px; text-shadow: 0 3px 22px rgba(255,128,174,.28);
    opacity: 0; transform: translateY(10px); }
  .chapterTransitionRule { width: min(310px, 54vw); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,191,214,.72), transparent);
    opacity: 0; transform: scaleX(.55); }
  #chapterTransition.show .chapterTransitionEyebrow,
  #chapterTransition.show .chapterTransitionNumber,
  #chapterTransition.show h2 { animation: chapterTitleIn .65s .18s ease forwards; }
  #chapterTransition.show .chapterTransitionNumber { animation-delay: .28s; }
  #chapterTransition.show h2 { animation-delay: .36s; }
  #chapterTransition.show .chapterTransitionRule { animation: chapterRuleIn .7s .12s ease forwards; }
  @keyframes chapterTitleIn { to { opacity: 1; transform: translateY(0); } }
  @keyframes chapterRuleIn { to { opacity: 1; transform: scaleX(1); } }
  @media (prefers-reduced-motion: reduce) {
    #cgOverlay { transition-duration: .12s; }
    #chapterTransition { transition-duration: .15s; }
    #chapterTransition.show .chapterTransitionEyebrow,
    #chapterTransition.show .chapterTransitionNumber,
    #chapterTransition.show h2,
    #chapterTransition.show .chapterTransitionRule { animation-duration: .01ms; animation-delay: 0s; }
  }
  .cover .sub { font-size: 13px; color: #c9c2d8; max-width: 440px; line-height: 1.7; }
  .cover .endmsg { font-size: 15px; color: #f4f0ec; max-width: 470px; line-height: 1.9; white-space: pre-wrap; }
  .mbtn { padding: 12px 36px; border: none; border-radius: 28px; cursor: pointer; font-family: inherit;
    font-size: 15px; font-weight: bold; color: #fff; letter-spacing: 2px;
    background: linear-gradient(#ff8fb0, #ff5f8f); box-shadow: 0 6px 22px rgba(255,95,143,.45); }
  .mbtn.ghost { background: rgba(255,255,255,.12); box-shadow: none; }
  .mbtn:active { transform: scale(.97); }

  /* 标题页：清晨樱花与三女主群像。所有菜单按钮保留原 ID，只重做视觉层。 */
  #menu.titleCover { isolation: isolate; display: block; overflow: hidden; padding: 0; text-align: left;
    background: #f8e9ec; backdrop-filter: none; color: #392b43; }
  #menu.titleCover.hidden { display: none; }
  #menu.titleCover::before { content: ""; position: absolute; z-index: -5; inset: 0; background: #f8e9ec; }
  #menu.titleCover::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255,252,248,.98) 0%, rgba(255,249,247,.94) 28%, rgba(255,244,244,.58) 48%, rgba(82,47,77,.06) 71%, rgba(45,28,57,.15) 100%),
      linear-gradient(0deg, rgba(44,27,54,.52) 0%, rgba(44,27,54,0) 24%),
      radial-gradient(circle at 73% 22%, rgba(255,255,255,.22), transparent 34%); }

  .titleHeroStage { position: absolute; z-index: -4; inset: 0; display: flex; align-items: center; justify-content: flex-end;
    overflow: hidden; pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, #000 0 44%, rgba(0,0,0,.72) 58%, transparent 74%);
    mask-image: radial-gradient(circle, #000 0 44%, rgba(0,0,0,.72) 58%, transparent 74%);
    -webkit-mask-position: 82% 50%; mask-position: 82% 50%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    transform: translateZ(0); will-change: opacity, -webkit-mask-size, mask-size; }
  .titleHeroImage { width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: right center; filter: saturate(.9) brightness(1.015); transform: none; }
  .titleCover.titleEntering .titleHeroStage { animation: titleHeroReveal 1.7s cubic-bezier(.2,.72,.24,1) both; }
  @keyframes titleHeroReveal {
    0% { opacity: 0; -webkit-mask-size: 1% 1%; mask-size: 1% 1%; }
    38% { opacity: .48; }
    100% { opacity: 1; -webkit-mask-size: 300% 300%; mask-size: 300% 300%; }
  }

  .titlePetals { position: absolute; z-index: 1; inset: -12vh -5vw 0; overflow: hidden; pointer-events: none; }
  .titlePetals span { --size: 12px; --duration: 11s; --delay: -2s; --drift: 80px; --petal-opacity: .72;
    position: absolute; top: -12vh; left: var(--left); width: var(--size); aspect-ratio: 1.55;
    border-radius: 82% 12% 82% 12%; opacity: 0;
    background: linear-gradient(135deg, rgba(255,252,255,.96), rgba(255,190,216,.92) 64%, rgba(226,137,177,.88));
    box-shadow: 0 1px 7px rgba(162,77,121,.18);
    animation: titlePetalFall var(--duration) linear var(--delay) infinite; }
  .titlePetals span::after { content: ""; position: absolute; left: 15%; top: 46%; width: 72%; height: 1px;
    background: rgba(184,104,143,.32); transform: rotate(-32deg); transform-origin: left center; }
  .titlePetals span:nth-child(1) { --left: 3%; --size: 10px; --duration: 12.8s; --delay: -8.4s; --drift: 92px; --petal-opacity: .62; }
  .titlePetals span:nth-child(2) { --left: 9%; --size: 15px; --duration: 10.6s; --delay: -2.1s; --drift: 54px; --petal-opacity: .78; }
  .titlePetals span:nth-child(3) { --left: 16%; --size: 8px; --duration: 14.2s; --delay: -11.7s; --drift: 118px; --petal-opacity: .54; }
  .titlePetals span:nth-child(4) { --left: 23%; --size: 13px; --duration: 11.9s; --delay: -5.6s; --drift: 70px; --petal-opacity: .68; }
  .titlePetals span:nth-child(5) { --left: 31%; --size: 9px; --duration: 13.4s; --delay: -1.4s; --drift: 105px; --petal-opacity: .58; }
  .titlePetals span:nth-child(6) { --left: 38%; --size: 17px; --duration: 10.9s; --delay: -9.2s; --drift: 62px; --petal-opacity: .8; }
  .titlePetals span:nth-child(7) { --left: 44%; --size: 11px; --duration: 12.2s; --delay: -4.5s; --drift: 132px; --petal-opacity: .64; }
  .titlePetals span:nth-child(8) { --left: 50%; --size: 7px; --duration: 15.1s; --delay: -12.8s; --drift: 84px; --petal-opacity: .5; }
  .titlePetals span:nth-child(9) { --left: 57%; --size: 14px; --duration: 11.3s; --delay: -7.3s; --drift: 48px; --petal-opacity: .74; }
  .titlePetals span:nth-child(10) { --left: 63%; --size: 10px; --duration: 13.7s; --delay: -3.6s; --drift: 116px; --petal-opacity: .6; }
  .titlePetals span:nth-child(11) { --left: 69%; --size: 16px; --duration: 10.4s; --delay: -6.8s; --drift: 76px; --petal-opacity: .82; }
  .titlePetals span:nth-child(12) { --left: 74%; --size: 8px; --duration: 14.8s; --delay: -10.1s; --drift: 138px; --petal-opacity: .52; }
  .titlePetals span:nth-child(13) { --left: 79%; --size: 12px; --duration: 12.5s; --delay: -.9s; --drift: 58px; --petal-opacity: .7; }
  .titlePetals span:nth-child(14) { --left: 84%; --size: 18px; --duration: 10.8s; --delay: -8.9s; --drift: 96px; --petal-opacity: .84; }
  .titlePetals span:nth-child(15) { --left: 89%; --size: 9px; --duration: 13.1s; --delay: -5.2s; --drift: 124px; --petal-opacity: .56; }
  .titlePetals span:nth-child(16) { --left: 93%; --size: 13px; --duration: 11.6s; --delay: -2.8s; --drift: 66px; --petal-opacity: .72; }
  .titlePetals span:nth-child(17) { --left: 97%; --size: 7px; --duration: 14.5s; --delay: -7.9s; --drift: 108px; --petal-opacity: .48; }
  .titlePetals span:nth-child(18) { --left: 53%; --size: 19px; --duration: 12.1s; --delay: -10.8s; --drift: 88px; --petal-opacity: .78; }
  @keyframes titlePetalFall {
    0% { opacity: 0; transform: translate3d(0,-10vh,0) rotate(0deg); }
    8% { opacity: var(--petal-opacity); }
    30% { transform: translate3d(18px,28vh,0) rotate(125deg); }
    58% { transform: translate3d(-12px,62vh,0) rotate(275deg); }
    86% { opacity: var(--petal-opacity); }
    100% { opacity: 0; transform: translate3d(var(--drift),124vh,0) rotate(510deg); }
  }

  .titleContent { position: relative; z-index: 2; width: min(1520px, 100%); height: 100%; margin: 0 auto;
    padding: clamp(48px, 7.5vh, 92px) clamp(38px, 6vw, 100px) clamp(62px, 8vh, 86px); }
  .titleBrand { width: min(520px, 39vw); }
  .titleEyebrow { display: flex; align-items: center; gap: 11px; color: #a26078; font-family: Georgia, "Times New Roman", serif;
    font-size: 10px; font-weight: 700; letter-spacing: 3.2px; white-space: nowrap; }
  .titleEyebrow::before { content: ""; width: 31px; height: 1px; background: #bd708b; }
  #menu.titleCover h1 { margin: clamp(12px, 2vh, 24px) 0 0; color: #3e2c46;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: clamp(56px, 6.3vw, 96px); font-weight: 600; line-height: .91; letter-spacing: clamp(7px, .7vw, 13px);
    text-shadow: 0 3px 0 rgba(255,255,255,.82), 0 12px 32px rgba(108,62,88,.17); }
  #menu.titleCover h1 span { display: block; }
  #menu.titleCover h1 span:last-child { margin-left: clamp(35px, 4vw, 66px); color: #a9516f; }
  .titleEnglish { margin: 15px 0 0 clamp(38px, 4.4vw, 70px); color: rgba(67,45,73,.57);
    font-family: Georgia, "Times New Roman", serif; font-size: clamp(9px, .75vw, 12px); letter-spacing: 3.8px; }
  .titleRule { display: flex; align-items: center; gap: 10px; width: min(330px, 90%); margin: 18px 0 17px; color: #cf7994; }
  .titleRule i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(181,103,128,.7), transparent); }
  .titleRule i:last-child { background: linear-gradient(90deg, transparent, rgba(181,103,128,.7)); }
  .titleRule span { font-size: 14px; }
  .titleTagline { color: rgba(59,42,67,.74); font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(13px, 1.05vw, 16px); line-height: 1.85; letter-spacing: 1.5px; }
  .titleHeroines { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 16px; }
  .titleHeroines > span { display: inline-flex; align-items: baseline; gap: 6px; padding-left: 9px;
    border-left: 2px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
  .titleHeroines small { font-family: Georgia, serif; font-size: 7px; font-weight: 400; letter-spacing: 1px; opacity: .64; }
  .titleHeroines .chinatsu { color: #ac4d6e; }
  .titleHeroines .hinata { color: #b86f33; }
  .titleHeroines .yukino { color: #6d648e; }

  .titleMenu { position: absolute; left: clamp(38px, 6vw, 100px); bottom: clamp(58px, 8vh, 86px); width: min(490px, 38vw); }
  .titleMainActions { display: grid; grid-template-columns: 1.12fr .88fr; gap: 9px; }
  #menu .titleAction { position: relative; min-width: 0; height: 62px; display: flex; align-items: center; gap: 12px;
    padding: 8px 17px; border: 1px solid rgba(255,255,255,.66); border-radius: 4px; text-align: left;
    color: #fff; background: linear-gradient(112deg, rgba(153,67,99,.97), rgba(204,100,125,.92));
    box-shadow: 0 11px 25px rgba(100,45,70,.22), inset 0 1px rgba(255,255,255,.28);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; overflow: hidden; }
  #menu .titleAction::after { content: ""; position: absolute; inset: -100% auto -100% -35%; width: 27%;
    background: rgba(255,255,255,.24); transform: rotate(18deg); transition: left .38s ease; }
  #menu .titleAction:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 15px 32px rgba(100,45,70,.28); }
  #menu .titleAction:hover::after { left: 112%; }
  #menu .titleAction.continue { color: #4e354c; border-color: rgba(123,74,102,.22);
    background: rgba(255,250,247,.78); box-shadow: 0 9px 24px rgba(85,52,75,.12), inset 0 1px rgba(255,255,255,.8);
    backdrop-filter: blur(10px); }
  #menu .titleAction.loadGame { grid-column: 1 / -1; height: 48px; }
  #menu .titleAction:disabled { opacity: .46; filter: grayscale(.25); cursor: not-allowed; box-shadow: none; }
  #menu .titleAction:disabled:hover { transform: none; filter: grayscale(.25); }
  .actionMark { align-self: stretch; display: flex; align-items: center; padding-right: 11px;
    border-right: 1px solid currentColor; font-family: Georgia, serif; font-size: 10px; letter-spacing: 1px; opacity: .57; }
  .actionCopy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
  .actionCopy strong { font-size: 15px; letter-spacing: 2px; white-space: nowrap; }
  .actionCopy small { font-family: Georgia, serif; font-size: 7px; font-weight: 400; letter-spacing: 2px; opacity: .65; }
  .actionArrow { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
  .titleUtility { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid rgba(112,68,96,.2); }
  #menu .utilityAction { min-width: 0; height: 35px; display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 0 5px; border: 0; border-radius: 2px; color: rgba(64,44,68,.72); background: rgba(255,252,249,.5);
    box-shadow: none; font-size: 10px; font-weight: 500; letter-spacing: .5px; transition: color .15s, background .15s; }
  #menu .utilityAction span { color: #a65773; font-family: Georgia, serif; font-size: 13px; }
  #menu .utilityAction:hover { color: #8e3e5c; background: rgba(255,255,255,.88); }
  .titleFooter { position: absolute; z-index: 3; left: clamp(38px, 6vw, 100px); right: clamp(38px, 4vw, 70px); bottom: 18px;
    display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: 8px; letter-spacing: 1.2px;
    text-shadow: 0 1px 5px rgba(46,25,51,.6); }
  .titleFooter i { width: 18px; height: 1px; background: rgba(255,255,255,.38); }

  @media (prefers-reduced-motion: reduce) {
    .titleCover.titleEntering .titleHeroStage { animation: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }
    .titlePetals { display: none; }
    #menu .titleAction::after { display: none; }
  }
  /* 标题子页面：沿用主菜单的春日纸张质感、樱花色与编辑式排版。 */
  .menuPage.cover { isolation: isolate; display: block; overflow: hidden; padding: 0; color: #463544;
    text-align: left; background: #f8eeee; backdrop-filter: none; }
  .menuPage.cover.hidden { display: none; }
  .menuPage::before { content: ""; position: absolute; z-index: -4; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255,252,249,.99), rgba(255,248,246,.94) 48%, rgba(244,224,230,.82)),
      radial-gradient(circle at 82% 12%, rgba(255,255,255,.78), transparent 28%); }
  .menuPage::after { content: ""; position: absolute; z-index: 5; inset: 0; pointer-events: none;
    box-shadow: inset 18px 0 28px -30px rgba(75,41,62,.34); }
  .menuPageBackdrop { position: absolute; z-index: -3; inset: 0; pointer-events: none;
    background: url("assets/bg/bg_title_v2.png") right center / cover no-repeat; opacity: .11;
    filter: saturate(.72) sepia(.08); mix-blend-mode: multiply; }
  .menuPagePetals { position: absolute; z-index: 8; inset: 0; overflow: hidden; pointer-events: none; perspective: 900px; }
  .menuPagePetals img { position: absolute; right: -4vw; bottom: -7vh; width: clamp(180px, 22vw, 340px); height: auto;
    opacity: .72; transform: translate3d(0,0,0) rotateZ(176deg) rotateX(4deg) rotateY(0deg) scale(1); backface-visibility: hidden;
    transform-origin: 48% 54%; transform-style: preserve-3d;
    filter: drop-shadow(-12px -9px 20px rgba(118,55,84,.2)); contain: layout paint; will-change: transform, opacity; }

  .menuPageHeader { position: relative; z-index: 2; height: clamp(92px, 13vh, 126px); display: grid;
    grid-template-columns: minmax(110px,1fr) auto minmax(110px,1fr); align-items: center;
    padding: 0 clamp(28px, 5.3vw, 86px); border-bottom: 1px solid rgba(125,79,101,.16); }
  .pageBack { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-width: 92px; padding: 10px 0;
    border: 0; color: #765267; background: transparent; cursor: pointer; font-family: inherit; }
  .pageBack span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(131,77,104,.25);
    border-radius: 50%; background: rgba(255,253,250,.56); box-shadow: 0 4px 14px rgba(103,56,80,.08);
    font-family: Georgia, serif; font-size: 17px; transition: transform .2s, color .2s, background .2s; }
  .pageBack small { font-family: Georgia, serif; font-size: 9px; letter-spacing: 2px; }
  .pageBack:hover span { color: #fff; background: #a9516f; transform: translateX(-3px); }
  .menuPageHeading { text-align: center; }
  .menuPageEyebrow { display: block; margin-bottom: 7px; color: #aa6d82; font-family: Georgia, serif;
    font-size: 8px; font-weight: 700; letter-spacing: 3px; }
  .menuPage.cover .menuPageHeading h2 { color: #443142; font-family: "Songti SC", "STSong", serif;
    font-size: clamp(27px, 3vw, 40px); font-weight: 600; letter-spacing: 8px; text-shadow: 0 2px rgba(255,255,255,.8); }
  .menuPageBrand { justify-self: end; display: flex; align-items: center; gap: 8px; color: rgba(73,47,68,.68);
    font-family: "Songti SC", "STSong", serif; font-size: 12px; letter-spacing: 2px; }
  .menuPageBrand span { color: #bf738d; }

  .menuPageMain { position: relative; z-index: 2; width: min(1420px, 100%); height: calc(100% - clamp(92px, 13vh, 126px) - 42px);
    margin: 0 auto; padding: clamp(24px, 4vh, 48px) clamp(28px, 5.3vw, 86px) 24px; }
  .menuPageFooter { position: absolute; z-index: 2; left: clamp(28px, 5.3vw, 86px); right: clamp(28px, 5.3vw, 86px); bottom: 17px;
    display: flex; align-items: center; justify-content: center; gap: 13px; color: rgba(88,58,78,.52);
    font-size: 8px; letter-spacing: 1.5px; }
  .menuPageFooter i { width: 26px; height: 1px; background: rgba(158,91,117,.28); }
  .pageSectionNumber { display: block; color: rgba(164,88,116,.2); font-family: Georgia, serif;
    font-size: clamp(54px, 7vw, 92px); line-height: .8; }
  .pageKicker { margin-top: 22px; color: #ae6a82; font-family: Georgia, serif; font-size: 9px;
    font-weight: 700; letter-spacing: 3px; }

  .galleryPageMain { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(560px, 2.25fr); gap: clamp(30px, 5vw, 80px); }
  .gallerySummary { padding: clamp(8px, 2vh, 24px) 0 0; }
  .gallerySummary h3, .settingsIntro h3 { margin-top: 13px; color: #4b3545; font-family: "Songti SC", "STSong", serif;
    font-size: clamp(25px, 2.6vw, 39px); font-weight: 500; line-height: 1.48; letter-spacing: 3px; }
  .gallerySummaryCopy, .settingsIntro > p:last-of-type { max-width: 330px; margin-top: 18px; color: rgba(76,54,71,.68);
    font-size: 12px; line-height: 1.9; letter-spacing: .5px; }
  .galleryProgress { display: grid; grid-template-columns: auto 1fr; align-items: baseline; width: min(260px,100%);
    margin-top: clamp(24px, 4vh, 44px); padding: 17px 0 14px; border-top: 1px solid rgba(136,81,105,.19);
    border-bottom: 1px solid rgba(136,81,105,.19); }
  .galleryProgress strong { color: #a64f6d; font-family: Georgia, serif; font-size: 36px; font-weight: 400; }
  .galleryProgress > span { color: rgba(89,55,76,.46); font-family: Georgia, serif; font-size: 16px; }
  .galleryProgress small { grid-column: 1 / -1; margin-top: 4px; color: rgba(95,62,81,.5); font-family: Georgia, serif;
    font-size: 7px; letter-spacing: 2.5px; }
  .galleryLegend { display: flex; gap: 10px; align-items: flex-start; margin-top: 17px; max-width: 260px;
    color: rgba(87,60,78,.5); font-family: "Songti SC", serif; font-size: 10px; line-height: 1.65; }
  .galleryLegend i { flex: 0 0 18px; height: 1px; margin-top: 8px; background: #bd708b; }
  .galleryShelf { min-width: 0; display: flex; flex-direction: column; padding: 4px 0 8px; overflow: hidden; }
  .galleryShelfHead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
    padding: 0 3px 10px; border-bottom: 1px solid rgba(128,78,102,.14); }
  .galleryShelfHead span { color: #8f546a; font-family: Georgia, serif; font-size: 9px; font-weight: 700; letter-spacing: 3px; }
  .galleryShelfHead small { color: rgba(91,60,78,.52); font-size: 9px; letter-spacing: 1px; }
  .galleryTabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 13px; }
  .galleryTab { border: 1px solid rgba(132,79,104,.2); border-radius: 18px; padding: 7px 14px;
    color: rgba(84,51,70,.65); background: rgba(255,255,255,.46); font: inherit; font-size: 10px; letter-spacing: 1px; cursor: pointer; }
  .galleryTab.active { color: #fff; border-color: #a95d79; background: #a95d79; }
  .galleryGrid { display: grid; grid-template-columns: repeat(4, minmax(138px, 1fr)); gap: 12px;
    padding: 2px 8px 22px 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(171,93,120,.34) transparent; }
  .galleryCard { --hero-color: #a9516f; position: relative; min-height: 142px; overflow: hidden;
    border: 1px solid rgba(122,73,98,.15); border-radius: 3px; background: rgba(255,252,249,.72);
    box-shadow: 0 9px 25px rgba(96,56,79,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    padding: 0; text-align: left; font: inherit; cursor: pointer; }
  .galleryCard::before { content: ""; position: absolute; inset: 0; opacity: .55;
    background: radial-gradient(circle at 92% 0, color-mix(in srgb, var(--hero-color) 22%, transparent), transparent 46%); }
  .galleryCard::after { content: ""; position: absolute; left: 11px; top: 11px; bottom: 11px; width: 2px; background: var(--hero-color); opacity: .65; }
  .galleryCard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hero-color) 38%, transparent);
    box-shadow: 0 16px 34px rgba(99,53,77,.15); }
  .galleryCard.heroine-hinata { --hero-color: #bd793f; }
  .galleryCard.heroine-yukino { --hero-color: #776b9b; }
  .galleryCard.gallery-badEnd { --hero-color: #9a293d; }
  .galleryCard.locked { --hero-color: #9d8995; background: rgba(247,241,239,.58); box-shadow: none; }
  .galleryCard:disabled { cursor: default; }
  .galleryCardThumb { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover;
    object-position: center; opacity: 0; transform: scale(1.025); transition: opacity .24s ease, transform .35s ease; }
  .galleryCard.hasThumb .galleryCardThumb { opacity: .82; }
  .galleryCard.hasThumb:hover .galleryCardThumb { transform: scale(1.065); }
  .galleryCard.hasThumb .galleryCardInner { background: linear-gradient(180deg, rgba(50,28,42,.1), rgba(50,28,42,0) 42%, rgba(255,252,249,.94) 78%); }
  .galleryCard.hasThumb .galleryCardTop { color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(48,24,39,.72); }
  .galleryCard.hasThumb .galleryCardSymbol { opacity: 0; }
  .galleryCard.assetMissing { background: repeating-linear-gradient(135deg, rgba(248,241,241,.78) 0 9px, rgba(238,228,232,.72) 9px 18px); }
  .galleryCard.assetMissing .galleryCardSymbol::before { content: "图片待交付"; font-family: "PingFang SC", sans-serif;
    font-size: 10px; letter-spacing: 2px; opacity: .58; }
  .galleryCard.assetMissing .galleryCardState { color: #8b6c7d; }
  .galleryCardInner { position: relative; z-index: 1; height: 100%; min-height: 142px; display: flex; flex-direction: column;
    padding: 14px 15px 13px 24px; }
  .galleryCardTop { display: flex; justify-content: space-between; color: rgba(75,48,67,.38); font-family: Georgia, serif;
    font-size: 7px; letter-spacing: 1.5px; }
  .galleryCardSymbol { flex: 1; display: grid; place-items: center; color: var(--hero-color); font-family: Georgia, serif;
    font-size: 33px; opacity: .82; filter: drop-shadow(0 4px 8px rgba(100,53,75,.1)); }
  .galleryCard.locked .galleryCardSymbol { font-size: 23px; opacity: .34; filter: none; }
  .galleryCardMeta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
  .galleryCardName strong { display: block; color: #513849; font-family: "Songti SC", serif; font-size: 12px; letter-spacing: 1px; }
  .galleryCardName small { display: block; margin-top: 3px; color: rgba(79,52,70,.48); font-family: Georgia, serif;
    font-size: 7px; letter-spacing: 1.3px; }
  .galleryCardState { color: var(--hero-color); font-size: 8px; letter-spacing: 1px; }
  .galleryEmpty { grid-column: 1 / -1; padding: 44px 20px; border: 1px dashed rgba(125,78,100,.24);
    color: rgba(87,58,75,.55); text-align: center; font-size: 12px; letter-spacing: 1px; }

  .savePageMain { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(620px, 2.45fr); gap: clamp(30px, 5vw, 76px); }
  .saveSummary { padding: clamp(8px, 2vh, 24px) 0 0; }
  .saveSummary h3 { margin-top: 13px; color: #4b3545; font-family: "Songti SC", "STSong", serif;
    font-size: clamp(25px, 2.6vw, 39px); font-weight: 500; line-height: 1.48; letter-spacing: 3px; }
  .saveSummary > p:not(.pageKicker) { max-width: 330px; margin-top: 18px; color: rgba(76,54,71,.68);
    font-size: 12px; line-height: 1.9; letter-spacing: .5px; }
  .saveLegend { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; max-width: 270px;
    color: rgba(87,60,78,.5); font-family: "Songti SC", serif; font-size: 10px; line-height: 1.7; }
  .saveLegend i { flex: 0 0 18px; height: 1px; margin-top: 8px; background: #bd708b; }
  .saveShelf { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 2px 0 4px; }
  .saveShelfHead { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px;
    padding: 0 3px 11px; border-bottom: 1px solid rgba(128,78,102,.14); }
  .saveShelfHead span { color: #9d5971; font-family: Georgia, serif; font-size: 8px; font-weight: 700; letter-spacing: 2.6px; }
  .saveShelfHead h3 { margin-top: 3px; color: #4b3545; font-family: "Songti SC", serif; font-size: 18px; font-weight: 500; letter-spacing: 3px; }
  .saveShelfHead > small { color: rgba(87,56,75,.52); font-family: Georgia, serif; font-size: 11px; letter-spacing: 1.5px; }
  .saveSlots { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(178px, 1fr));
    grid-template-rows: repeat(var(--save-grid-rows, 2), minmax(0, 1fr)); gap: 12px; padding: 2px; overflow: hidden; }
  .saveSlot { position: relative; min-width: 0; height: 100%; border: 1px solid rgba(125,74,99,.16); border-radius: 4px;
    background: rgba(255,252,249,.78); box-shadow: 0 10px 27px rgba(96,56,79,.09); overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s; }
  .saveSlot:hover { transform: translateY(-3px); border-color: rgba(169,81,111,.34); box-shadow: 0 15px 31px rgba(96,56,79,.14); }
  .saveSlotMain { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto 40px;
    padding: 0; border: 0; color: inherit; background: transparent;
    text-align: left; font: inherit; cursor: pointer; }
  .saveSlotMain:disabled { cursor: default; }
  .savePreview { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #e8dadd; }
  .savePreview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(46,27,44,.48)); pointer-events: none; }
  .savePreview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .32s ease; }
  .saveSlot:hover .savePreview img { transform: scale(1.045); }
  .saveSlotBadge { position: absolute; z-index: 1; left: 9px; bottom: 7px; color: #fff8f4; font-size: 8px;
    font-weight: 700; letter-spacing: 1.3px; text-shadow: 0 1px 5px rgba(38,20,35,.8); }
  .savePreviewEmpty { display: grid; place-items: center; align-content: center; gap: 4px; color: rgba(145,78,103,.45);
    background: repeating-linear-gradient(135deg, rgba(251,245,243,.94) 0 10px, rgba(242,232,234,.9) 10px 20px); }
  .savePreviewEmpty::after { display: none; }
  .savePreviewEmpty > span { font-family: Georgia, serif; font-size: 31px; font-weight: 300; line-height: 1; }
  .savePreviewEmpty small { font-family: Georgia, serif; font-size: 7px; letter-spacing: 1.8px; }
  .saveSlotMeta { min-width: 0; min-height: 45px; box-sizing: border-box; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px; padding: 9px 11px 6px; }
  .saveSlotMeta > div { min-width: 0; }
  .saveSlotMeta strong { display: block; overflow: hidden; color: #503747; font-family: "Songti SC", serif;
    font-size: 11px; letter-spacing: .8px; white-space: nowrap; text-overflow: ellipsis; }
  .saveSlotMeta span, .saveSlotMeta time { display: block; margin-top: 3px; color: rgba(79,52,70,.49); font-size: 7px; white-space: nowrap; }
  .saveSlotMeta time { margin-top: 1px; font-family: Georgia, serif; }
  .saveSlotLine { min-height: 0; display: -webkit-box; overflow: hidden; margin: 0; padding: 4px 11px 7px; color: rgba(72,49,65,.62);
    font-size: 9px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .saveDelete { position: absolute; z-index: 3; top: 7px; right: 7px; min-width: 48px; height: 25px; display: flex; align-items: center;
    justify-content: center; gap: 3px; padding: 0 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 14px;
    color: rgba(255,255,255,.9); background: rgba(68,37,58,.58); backdrop-filter: blur(6px); cursor: pointer;
    font: inherit; font-size: 8px; opacity: .72; transition: opacity .18s, background .18s; }
  .saveDelete span { font-size: 14px; line-height: 1; }
  .saveDelete:hover { opacity: 1; background: rgba(145,55,83,.88); }
  .saveSlot.empty { box-shadow: none; }
  .saveSlot.empty .saveSlotMain { grid-template-rows: minmax(0, 1fr) 45px; }
  .saveSlot.empty .saveSlotMeta { display: block; padding-bottom: 6px; }
  .saveSlot.empty .saveSlotMeta span { margin-top: 5px; }
  .savePagination { flex: 0 0 42px; display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; gap: 12px;
    margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(128,78,102,.14); }
  .savePageArrow { height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0;
    color: #8f546a; background: transparent; cursor: pointer; font-family: Georgia, serif; transition: color .18s, transform .18s; }
  .savePageArrow small { font-size: 8px; letter-spacing: 2px; }
  .savePageArrow span { font-size: 16px; }
  .savePageArrow:hover:not(:disabled) { color: #b24f71; transform: translateX(-2px); }
  #savePageNext:hover:not(:disabled) { transform: translateX(2px); }
  .savePageArrow:disabled { opacity: .28; cursor: default; }
  .savePageNumbers { display: flex; align-items: center; justify-content: center; gap: 9px; }
  .savePageNumbers::before, .savePageNumbers::after { content: ""; width: 38px; height: 1px; background: rgba(157,89,113,.2); }
  .savePageNumbers button { width: 31px; height: 31px; border: 1px solid rgba(139,79,103,.2); border-radius: 50%;
    color: rgba(81,54,72,.55); background: rgba(255,255,255,.42); cursor: pointer; font-family: Georgia, serif; font-size: 9px;
    transition: color .18s, border-color .18s, background .18s, transform .18s; }
  .savePageNumbers button:hover { color: #a64f6d; border-color: rgba(166,79,109,.48); transform: translateY(-1px); }
  .savePageNumbers button.active { color: #fff; border-color: #a95d79; background: #a95d79; box-shadow: 0 5px 14px rgba(130,62,90,.2); }

  .saveConfirmOverlay { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; padding: 32px; }
  .saveConfirmOverlay.hidden { display: none; }
  .saveConfirmBackdrop { position: absolute; inset: 0; background: rgba(48,30,45,.45); backdrop-filter: blur(7px); animation: saveConfirmFade .18s ease both; }
  .saveConfirmDialog { position: relative; width: min(470px, calc(100vw - 64px)); padding: 36px 42px 32px; overflow: hidden;
    border: 1px solid rgba(139,78,104,.28); border-radius: 5px; color: #4d3546; text-align: center;
    background: linear-gradient(145deg, rgba(255,253,250,.98), rgba(249,235,238,.98));
    box-shadow: 0 30px 80px rgba(57,29,47,.3), inset 0 1px rgba(255,255,255,.9); animation: saveConfirmIn .24s cubic-bezier(.2,.78,.24,1) both; }
  .saveConfirmDialog::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(171,95,121,.12); pointer-events: none; }
  .saveConfirmDialog::after { content: ""; position: absolute; right: -60px; bottom: -82px; width: 210px; height: 210px;
    border-radius: 48% 52% 58% 42%; background: radial-gradient(circle, rgba(218,132,155,.17), transparent 68%); pointer-events: none; }
  .saveConfirmMark { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid rgba(166,83,113,.22);
    border-radius: 50%; color: #b65d7b; background: rgba(255,255,255,.54); font-size: 16px; }
  .saveConfirmEyebrow { color: #ae6a82; font-family: Georgia, serif; font-size: 8px; font-weight: 700; letter-spacing: 3px; }
  .saveConfirmDialog h3 { margin-top: 8px; color: #4b3545; font-family: "Songti SC", "STSong", serif; font-size: 25px;
    font-weight: 500; letter-spacing: 4px; }
  .saveConfirmMessage { max-width: 350px; min-height: 48px; margin: 15px auto 0; color: rgba(75,52,68,.68); font-size: 12px; line-height: 1.9; }
  .saveConfirmRule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; color: rgba(147,78,104,.45);
    font-family: Georgia, serif; font-size: 7px; letter-spacing: 2px; }
  .saveConfirmRule i { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, rgba(165,88,116,.35)); }
  .saveConfirmRule i:last-child { background: linear-gradient(90deg, rgba(165,88,116,.35), transparent); }
  .saveConfirmActions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .saveConfirmButton { height: 43px; border: 1px solid rgba(143,78,104,.2); border-radius: 3px; cursor: pointer; font: inherit;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; transition: transform .18s, box-shadow .18s, background .18s; }
  .saveConfirmButton:hover { transform: translateY(-2px); }
  .saveConfirmButton:focus-visible { outline: 2px solid rgba(166,79,109,.46); outline-offset: 2px; }
  .saveConfirmButton.secondary { color: #765267; background: rgba(255,255,255,.58); }
  .saveConfirmButton.primary { color: #fff; border-color: transparent; background: linear-gradient(112deg, #9e4f6c, #c86982);
    box-shadow: 0 9px 22px rgba(126,59,88,.2); }
  .saveConfirmButton.danger { background: linear-gradient(112deg, #7f344a, #b64c65); box-shadow: 0 9px 22px rgba(105,38,59,.24); }
  @keyframes saveConfirmFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes saveConfirmIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

  @media (min-width: 1600px) and (min-height: 1200px) {
    .savePageMain { align-items: center; }
    .saveSummary { align-self: center; }
    .saveShelf { width: 100%; height: min(1120px, 100%); align-self: center; }
  }

  .settingsPageMain { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(530px, 1.65fr); gap: clamp(34px, 7vw, 110px); align-items: center; }
  .settingsIntro { align-self: stretch; padding-top: clamp(8px, 2vh, 24px); }
  .settingsMotif { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-top: clamp(20px, 4vh, 44px);
    border: 1px solid rgba(166,91,119,.17); border-radius: 50%; color: rgba(155,76,107,.58); font-family: "Songti SC", serif; font-size: 40px; }
  .settingsMotif::before, .settingsMotif::after { content: ""; position: absolute; width: 190px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,92,120,.3), transparent); transform: rotate(45deg); }
  .settingsMotif::after { transform: rotate(-45deg); }
  .settingsMotif i { position: absolute; width: 11px; height: 11px; border-radius: 90% 10% 80% 20%; background: #cc8199; }
  .settingsMotif i:nth-child(2) { top: 9px; right: 30px; }
  .settingsMotif i:nth-child(3) { left: 8px; bottom: 42px; transform: rotate(80deg); }
  .settingsMotif i:nth-child(4) { right: 8px; bottom: 33px; transform: rotate(-45deg); }
  .settingsPanel { width: 100%; max-width: 720px; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(127,75,101,.17);
    border-radius: 4px; background: rgba(255,253,250,.76); box-shadow: 0 22px 55px rgba(103,59,82,.11); backdrop-filter: blur(12px); }
  .settingsPanelHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(132,78,103,.14); }
  .settingsPanelHead span { color: #a46179; font-family: Georgia, serif; font-size: 7px; font-weight: 700; letter-spacing: 2.5px; }
  .settingsPanelHead h3 { margin-top: 4px; color: #4b3545; font-family: "Songti SC", serif; font-size: 22px; font-weight: 500; letter-spacing: 3px; }
  .settingsPanelHead > small { color: rgba(83,56,74,.48); font-size: 9px; }
  .setform { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; text-align: left; }
  .settingRow { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 5px 10px; padding: 13px 14px 12px;
    border: 1px solid rgba(132,79,103,.12); border-radius: 3px; background: rgba(252,247,245,.72); transition: border-color .2s, background .2s; }
  .settingRow:focus-within { border-color: rgba(174,85,117,.38); background: #fffdfb; }
  .settingIcon { grid-row: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    color: #a75572; background: rgba(180,92,123,.09); font-family: "Songti SC", serif; font-size: 12px; }
  .settingCopy { min-width: 0; }
  .settingCopy label { display: block; color: #533b4b; font-size: 12px; font-weight: 700; letter-spacing: .7px; }
  .settingCopy small { display: block; margin-top: 2px; color: rgba(80,54,71,.45); font-size: 8px; white-space: nowrap; }
  .settingRow output { min-width: 48px; color: #a4516d; font-family: Georgia, serif; font-size: 11px; text-align: right; }
  .settingRow input[type="range"] { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: 7px; padding: 0; border: 0;
    border-radius: 999px; accent-color: #b65f7d; cursor: pointer; }
  .settingsActions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
  .pageButton { min-width: 132px; height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    border: 1px solid rgba(142,79,105,.2); border-radius: 3px; cursor: pointer; font-family: inherit;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; transition: transform .18s, box-shadow .18s, background .18s; }
  .pageButton.primary { color: #fff; border-color: transparent; background: linear-gradient(112deg, #9e4f6c, #c86982);
    box-shadow: 0 9px 22px rgba(126,59,88,.2); }
  .pageButton.secondary { color: #765267; background: rgba(255,255,255,.5); }
  .pageButton:hover { transform: translateY(-2px); }

  #menu.subpageLeaving, #menu.subpageReturning { pointer-events: none; }
  #menu.subpageLeaving .titleContent, #menu.subpageLeaving .titleFooter { animation: titleContentFadeOut .2s ease both; }
  #menu.subpageReturning .titleContent, #menu.subpageReturning .titleFooter { animation: titleContentFadeIn .3s .07s ease both; }
  .menuPage.pageEntering { animation: menuPageSurfaceIn .28s ease both; }
  .menuPage.pageLeaving { pointer-events: none; animation: menuPageSurfaceOut .42s ease both; }
  .menuPage.pageEntering .pageBack, .menuPage.pageEntering .menuPageEyebrow,
  .menuPage.pageEntering .menuPageHeading h2, .menuPage.pageEntering .menuPageBrand,
  .menuPage.pageEntering .pageSectionNumber, .menuPage.pageEntering .pageKicker,
  .menuPage.pageEntering .gallerySummary h3, .menuPage.pageEntering .gallerySummaryCopy,
  .menuPage.pageEntering .galleryProgress, .menuPage.pageEntering .galleryLegend,
  .menuPage.pageEntering .galleryShelfHead, .menuPage.pageEntering .galleryCard,
  .menuPage.pageEntering .saveSummary h3, .menuPage.pageEntering .saveSummary > p,
  .menuPage.pageEntering .saveLegend, .menuPage.pageEntering .saveShelfHead, .menuPage.pageEntering .saveSlot,
  .menuPage.pageEntering .savePagination,
  .menuPage.pageEntering .settingsIntro h3, .menuPage.pageEntering .settingsIntro > p:last-of-type,
  .menuPage.pageEntering .settingsMotif, .menuPage.pageEntering .settingsPanelHead > div,
  .menuPage.pageEntering .settingsPanelHead > small, .menuPage.pageEntering .settingRow,
  .menuPage.pageEntering .settingsActions .pageButton, .menuPage.pageEntering .menuPageFooter {
    animation: menuStaggerIn .44s var(--stagger-delay, .1s) cubic-bezier(.2,.72,.25,1) both; }
  .menuPage.pageEntering .pageBack { --stagger-delay: .07s; --stagger-x: -8px; --stagger-y: 0px; }
  .menuPage.pageEntering .menuPageEyebrow { --stagger-delay: .11s; --stagger-y: -6px; }
  .menuPage.pageEntering .menuPageHeading h2 { --stagger-delay: .16s; --stagger-y: -7px; }
  .menuPage.pageEntering .menuPageBrand { --stagger-delay: .21s; --stagger-x: 8px; --stagger-y: 0px; }
  .menuPage.pageEntering .pageSectionNumber { --stagger-delay: .17s; }
  .menuPage.pageEntering .pageKicker { --stagger-delay: .22s; }
  .menuPage.pageEntering .gallerySummary h3, .menuPage.pageEntering .settingsIntro h3 { --stagger-delay: .28s; }
  .menuPage.pageEntering .gallerySummaryCopy, .menuPage.pageEntering .settingsIntro > p:last-of-type { --stagger-delay: .34s; }
  .menuPage.pageEntering .galleryProgress { --stagger-delay: .4s; }
  .menuPage.pageEntering .galleryLegend { --stagger-delay: .46s; }
  .menuPage.pageEntering .galleryShelfHead { --stagger-delay: .3s; --stagger-x: 7px; --stagger-y: 0px; }
  .menuPage.pageEntering .galleryCard { --stagger-delay: calc(.38s + var(--card-index) * 35ms); }
  .menuPage.pageEntering .saveSummary h3 { --stagger-delay: .28s; }
  .menuPage.pageEntering .saveSummary > p { --stagger-delay: .34s; }
  .menuPage.pageEntering .saveLegend { --stagger-delay: .4s; }
  .menuPage.pageEntering .saveShelfHead { --stagger-delay: .3s; --stagger-x: 7px; --stagger-y: 0px; }
  .menuPage.pageEntering .saveSlot { --stagger-delay: calc(.36s + var(--slot-index) * 32ms); }
  .menuPage.pageEntering .savePagination { --stagger-delay: .57s; }
  .menuPage.pageEntering .settingsMotif { --stagger-delay: .41s; }
  .menuPage.pageEntering .settingsPanelHead > div { --stagger-delay: .3s; --stagger-x: 7px; --stagger-y: 0px; }
  .menuPage.pageEntering .settingsPanelHead > small { --stagger-delay: .35s; --stagger-x: 7px; --stagger-y: 0px; }
  .menuPage.pageEntering .settingRow:nth-child(1) { --stagger-delay: .4s; }
  .menuPage.pageEntering .settingRow:nth-child(2) { --stagger-delay: .47s; }
  .menuPage.pageEntering .settingRow:nth-child(3) { --stagger-delay: .54s; }
  .menuPage.pageEntering .settingRow:nth-child(4) { --stagger-delay: .61s; }
  .menuPage.pageEntering .settingsActions .pageButton:nth-child(1) { --stagger-delay: .68s; }
  .menuPage.pageEntering .settingsActions .pageButton:nth-child(2) { --stagger-delay: .74s; }
  .menuPage.pageEntering .menuPageFooter { --stagger-delay: .82s; }
  .menuPage.pageEntering .menuPagePetals img { animation: transitionPetalCamera 1.75s linear both; }
  .menuPage.pageLeaving .menuPagePetals img { animation: none; }
  @keyframes titleContentFadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-7px); } }
  @keyframes titleContentFadeIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes menuPageSurfaceIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes menuPageSurfaceOut { from { opacity: 1; } to { opacity: 0; } }
  @keyframes menuStaggerIn {
    from { opacity: 0; transform: translate3d(var(--stagger-x, 0px), var(--stagger-y, 8px), 0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
  }
  @keyframes transitionPetalCamera {
    0% { opacity: 0; transform: translate3d(-92vw,-91vh,-480px) rotateZ(-28deg) rotateX(76deg) rotateY(-24deg) scale(.08); }
    14% { opacity: .62; }
    31% { opacity: .82; transform: translate3d(-63.5vw,-62.8vh,-331px) rotateZ(35deg) rotateX(54deg) rotateY(95deg) scale(.365); }
    56% { opacity: .88; transform: translate3d(-40.5vw,-40vh,-211px) rotateZ(86deg) rotateX(36deg) rotateY(191deg) scale(.595); }
    78% { opacity: .82; transform: translate3d(-20.2vw,-20vh,-106px) rotateZ(131deg) rotateX(20deg) rotateY(276deg) scale(.798); }
    93% { opacity: .74; transform: translate3d(-6.4vw,-6.4vh,-34px) rotateZ(162deg) rotateX(9deg) rotateY(333deg) scale(.936); }
    100% { opacity: .72; transform: translate3d(0,0,0) rotateZ(176deg) rotateX(4deg) rotateY(360deg) scale(1); }
  }

  @media (prefers-reduced-motion: reduce) {
    #menu.subpageLeaving .titleContent, #menu.subpageLeaving .titleFooter,
    #menu.subpageReturning .titleContent, #menu.subpageReturning .titleFooter,
    .menuPage.pageEntering, .menuPage.pageLeaving,
    .menuPage.pageEntering .menuPageHeader > *, .menuPage.pageEntering .menuPageMain *,
    .menuPage.pageEntering .menuPageFooter { animation-duration: .01ms !important; animation-delay: 0s !important; }
    .menuPagePetals img, .menuPage.pageEntering .menuPagePetals img,
    .menuPage.pageLeaving .menuPagePetals img { animation: none; }
  }
  #floatTip { position: absolute; z-index: 8; font-size: 15px; font-weight: bold; pointer-events: none;
    color: #ff5f8f; text-shadow: 0 0 8px rgba(255,95,143,.7); opacity: 0; transition: all 1s; }

  /* 加载界面：延续章节过场的夜色、标题页的樱花色与编辑式排版。 */
  #loading { z-index: 26; isolation: isolate; overflow: hidden; padding: 0; gap: 0;
    background:
      radial-gradient(circle at 50% 38%, rgba(111,62,101,.72), rgba(31,21,48,.92) 42%, rgba(8,8,21,.985) 76%),
      #0b0a1b; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  #loading::before { content: ""; position: absolute; z-index: -2; inset: -18px; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(16,12,30,.9), rgba(40,23,48,.48) 50%, rgba(16,12,30,.9)),
      url("assets/bg/bg_title_v2.png") center 44% / cover no-repeat;
    opacity: .2; filter: saturate(.62) blur(2px); transform: scale(1.035); }
  #loading::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 16% 20%, rgba(255,235,239,.72) 0 1px, transparent 1.7px),
      radial-gradient(circle at 80% 28%, rgba(255,209,226,.55) 0 1px, transparent 1.8px),
      radial-gradient(circle at 28% 73%, rgba(255,255,255,.42) 0 1px, transparent 1.8px),
      radial-gradient(circle at 72% 78%, rgba(255,214,229,.48) 0 1px, transparent 1.7px),
      linear-gradient(180deg, transparent 70%, rgba(13,9,25,.42));
    background-size: 230px 190px, 310px 260px, 270px 230px, 360px 300px, auto; opacity: .62; }
  .loadbox { position: relative; width: min(560px, 88vw); min-height: 430px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 44px 54px 38px;
    border-top: 1px solid rgba(255,205,221,.34); border-bottom: 1px solid rgba(255,205,221,.24);
    background: linear-gradient(115deg, rgba(42,25,52,.28), rgba(93,48,76,.16) 50%, rgba(31,23,48,.22));
    box-shadow: 0 32px 90px rgba(5,3,14,.3); animation: loadingSurfaceIn .5s ease both; }
  .loadbox::before, .loadbox::after { content: ""; position: absolute; top: -1px; bottom: -1px; width: 34px;
    border-top: 1px solid rgba(255,205,221,.55); border-bottom: 1px solid rgba(255,205,221,.42); pointer-events: none; }
  .loadbox::before { left: 0; border-left: 1px solid rgba(255,205,221,.22); }
  .loadbox::after { right: 0; border-right: 1px solid rgba(255,205,221,.22); }
  .loadEyebrow { color: #eeb0c4; font-family: Georgia, "Times New Roman", serif; font-size: 9px;
    font-weight: 700; letter-spacing: 5px; line-height: 1; }
  .loadEmblem { position: relative; width: 94px; height: 94px; margin: 23px 0 20px; display: grid; place-items: center; }
  .loadOrbit { position: absolute; border: 1px solid rgba(245,174,199,.32); border-radius: 50%; }
  .loadOrbitOuter { inset: 3px; border-left-color: rgba(255,222,232,.82); border-right-color: rgba(255,222,232,.12);
    animation: loadOrbitSpin 4.6s linear infinite; }
  .loadOrbitInner { inset: 20px; border-top-color: rgba(255,231,220,.76); border-bottom-color: rgba(255,231,220,.12);
    animation: loadOrbitSpin 3.2s linear infinite reverse; }
  .loadStar { color: #ffe1e8; font-family: Georgia, serif; font-size: 27px; line-height: 1;
    text-shadow: 0 0 9px rgba(255,165,200,.72), 0 0 25px rgba(255,130,181,.48); animation: loadStarPulse 1.8s ease-in-out infinite; }
  .loadSpark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffd4df;
    box-shadow: 0 0 8px rgba(255,176,204,.9); }
  .loadSparkOne { left: 7px; top: 30px; }
  .loadSparkTwo { right: 13px; bottom: 19px; width: 3px; height: 3px; }
  .loadSparkThree { right: 8px; top: 13px; width: 2px; height: 2px; opacity: .65; }
  .loadCopy { text-align: center; }
  .loadContext { min-height: 18px; margin-bottom: 8px; color: rgba(255,231,235,.68); font-family: "Songti SC", "STSong", serif;
    font-size: 11px; letter-spacing: 2px; }
  .loadtitle { color: #fff2f2; font-family: "Songti SC", "STSong", serif; font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 500; letter-spacing: 4px; text-shadow: 0 3px 20px rgba(255,133,176,.26); }
  .loadDetail { margin-top: 9px; color: rgba(239,220,228,.58); font-size: 11px; letter-spacing: 1px; }
  .loadbar { position: relative; width: min(360px, 100%); height: 2px; margin-top: 27px; overflow: visible;
    background: linear-gradient(90deg, transparent, rgba(255,195,216,.22) 10%, rgba(255,195,216,.32) 90%, transparent); }
  #loadFill { position: absolute; top: 0; left: 0; height: 100%; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,204,219,.62), #fff4ef);
    filter: drop-shadow(0 0 5px rgba(255,139,181,.78)); animation: loadingIndeterminate 1.55s cubic-bezier(.45,0,.55,1) infinite; }
  #loadFill span { position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; border-radius: 50%;
    background: #fff8f2; box-shadow: 0 0 8px #ffa7c3, 0 0 15px rgba(255,139,181,.7); transform: translateY(-50%); }
  .loadProgressCaption { width: min(360px, 100%); display: flex; align-items: center; gap: 9px; margin-top: 10px;
    color: rgba(236,202,216,.46); font-family: Georgia, "Times New Roman", serif; font-size: 7px; letter-spacing: 2.5px; }
  .loadProgressCaption i { flex: 1; height: 1px; background: rgba(239,180,201,.12); }
  .loadTipWrap { min-height: 48px; max-width: 440px; display: flex; align-items: flex-start; gap: 11px; margin-top: 23px;
    padding-top: 15px; border-top: 1px solid rgba(241,193,210,.12); text-align: left; }
  .loadTipMark { flex: 0 0 auto; margin-top: 3px; color: rgba(246,175,201,.72); font-size: 9px;
    text-shadow: 0 0 8px rgba(255,137,180,.45); }
  .loadtip { min-height: 36px; color: rgba(238,225,231,.62); font-family: "Songti SC", "STSong", serif;
    font-size: 11px; line-height: 1.75; letter-spacing: .4px; text-align: left; }
  #loading.isGenerating .loadEmblem { filter: hue-rotate(22deg); }
  @keyframes loadingSurfaceIn {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes loadingIndeterminate {
    from { transform: translateX(-105%); opacity: .28; }
    24%, 76% { opacity: 1; }
    to { transform: translateX(335%); opacity: .28; }
  }
  @keyframes loadOrbitSpin { to { transform: rotate(360deg); } }
  @keyframes loadStarPulse { 50% { opacity: .72; transform: scale(.86); } }
  @media (prefers-reduced-motion: reduce) {
    .loadbox { animation: none; }
    .loadOrbitOuter, .loadOrbitInner, .loadStar { animation-duration: 8s; }
    #loadFill { animation-duration: 3.2s; }
  }

  /* ============ 手机适配 ============ */
  html, body { height: 100%; }
  #app { width: 100%; }
  /* 刘海屏安全区 */
  #hud { padding-top: env(safe-area-inset-top, 0px); }
  #dialogWrap { padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* 动态视口高度，避免移动端地址栏遮挡 */
  #chara { height: 100vh; height: 100dvh; }
  #phone { height: min(560px, 82vh); height: min(560px, 82dvh); }
  #petals { width: 100%; height: 100%; }

  @media (max-width: 520px) {
    #chara { height: 72vh; height: 72dvh; }
    #chapterRibbon { min-width: 205px; height: 55px; padding: 6px 19px 6px 12px; gap: 6px; }
    .chapterMark { font-size: 20px; }
    .chapterCopy strong { font-size: 15px; letter-spacing: 1px; }
    #weekdayText { font-size: 9px; letter-spacing: 1px; }
    #weatherText { font-size: 8px; letter-spacing: 1px; margin-top: 4px; }
    #affBox { transform: scale(.82); transform-origin: top right; }
    #dialogWrap { height: 188px; }
    #dialogContent { width: 94vw; flex: none; margin: 0 auto; padding: 15px 8px 44px; }
    #speakerPortrait { display: none; }
    #dialogBox { font-size: 15px; line-height: 1.65; padding: 0 8px; height: calc(100% - 23px); }
    #nameTag { font-size: 14px; padding: 0 2px 3px; }
    #advHint { font-size: 10px; }
    #hud { top: 6px; left: 8px; right: 8px; }
    #affBox { padding: 4px 10px; font-size: 11px; }
    #hearts { font-size: 13px; }
    #choices { top: auto; bottom: 202px; transform: translateX(-50%); width: 94vw; gap: 7px; }
    #choices:has(.choiceBtn)::after { inset: -12px -8px -10px; }
    #choicePrompt { min-height: 32px; padding: 4px 28px 5px 71px; font-size: 13px; line-height: 1.35; }
    #choicePrompt::before { left: 6px; padding-right: 8px; font-size: 8px; letter-spacing: 1.5px; }
    #choicePrompt::after { right: 7px; font-size: 10px; }
    .choiceBtn { min-height: 48px; padding: 10px 42px 10px 57px; border-radius: 5px; font-size: 13px; line-height: 1.45; }
    .choiceBtn::before { left: 13px; width: 31px; font-size: 10px; }
    .choiceBtn::after { right: 14px; font-size: 17px; }
    .dangerChoiceWarning { padding: 8px 10px 8px 38px; font-size: 11px; }
    #vnControls { width: 100vw; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    #vnControls::-webkit-scrollbar { display: none; }
    .vnCtrl { flex: 0 0 51px; min-width: 51px; padding-inline: 5px; }
    .menuOverlay { gap: 10px; padding: 10px; }
    .menuOverlay h2 { font-size: 19px; }
    .menuGrid { gap: 9px; width: 100%; }
    .menuBtn { width: 100%; max-width: 340px; padding: 12px 14px; min-height: 48px; }
    #phone { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: none; box-shadow: none; }
    #phoneMenu { padding: 0; }
    .appGrid { gap: 10px; padding: 12px 4px; }
    .app .ic { font-size: 30px; }
    .app .nm { font-size: 12px; }
    #phoneChatLog { min-height: 120px; }
    #phoneInput, .phbtn, .ph-btn { font-size: 14px; min-height: 42px; }
    .cover { gap: 12px; padding: 14px; overflow-y: auto; }
    .cover h1 { font-size: 34px; letter-spacing: 5px; }
    .cover h2 { font-size: 22px; }
    .cover .sub { font-size: 12px; }
    .mbtn { padding: 11px 28px; font-size: 14px; min-height: 44px; }
    #cgHint { bottom: 18px; }

    .menuPage.cover { padding: 0; overflow: hidden; }
    .menuPage::after { border-width: 5px; }
    .menuPageHeader { height: 78px; grid-template-columns: 54px 1fr 54px; padding: 0 15px; }
    .pageBack { position: absolute; z-index: 3; left: 15px; top: 12px; min-width: 44px; }
    .pageBack span { width: 34px; height: 34px; border-color: rgba(122,68,95,.34); background: rgba(255,253,250,.82);
      box-shadow: 0 5px 16px rgba(103,56,80,.13); }
    .pageBack small, .menuPageBrand { display: none; }
    .menuPageHeading { grid-column: 2; }
    .menuPageEyebrow { font-size: 6px; letter-spacing: 1.8px; margin-bottom: 4px; }
    .menuPage.cover .menuPageHeading h2 { font-size: 25px; letter-spacing: 5px; }
    .menuPageMain { height: calc(100% - 112px); padding: 16px 15px 10px; overflow-y: auto; }
    .menuPageFooter { left: 15px; right: 15px; bottom: 10px; font-size: 7px; }
    .menuPageFooter span:nth-of-type(2), .menuPageFooter i { display: none; }
    .galleryPageMain { display: block; }
    .gallerySummary { display: grid; grid-template-columns: auto 1fr auto; gap: 0 13px; align-items: end; padding: 0 2px 15px; }
    .pageSectionNumber { grid-row: 1 / 3; font-size: 52px; }
    .pageKicker { align-self: end; margin: 0 0 3px; font-size: 6px; letter-spacing: 1.8px; }
    .gallerySummary h3 { align-self: start; margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: 1.5px; }
    .gallerySummaryCopy, .galleryLegend { display: none; }
    .galleryProgress { grid-row: 1 / 3; grid-column: 3; width: auto; min-width: 82px; margin: 0; padding: 7px 0; }
    .galleryProgress strong { font-size: 26px; }
    .galleryProgress small { font-size: 5px; letter-spacing: 1px; }
    .galleryShelf { overflow: visible; }
    .galleryShelfHead { margin-bottom: 10px; }
    .galleryGrid { grid-template-columns: repeat(2, minmax(128px, 1fr)); gap: 9px; overflow: visible; padding-right: 2px; }
    .galleryCard, .galleryCardInner { min-height: 130px; }
    .savePageMain { display: block; }
    .saveSummary { display: none; }
    .saveShelf { min-height: 100%; overflow: visible; }
    .saveShelfHead { margin-bottom: 10px; }
    .saveSlots { grid-template-columns: repeat(2, minmax(136px, 1fr)); gap: 9px; overflow: visible; padding-right: 2px; }
    .saveSlotMeta { padding: 8px 9px 0; }
    .saveSlotLine { margin: 6px 9px 0; font-size: 8px; }
    .saveDelete { min-width: 27px; padding: 0 6px; }
    .saveDelete:not(:hover) { font-size: 0; }
    .saveDelete span { font-size: 14px; }
    .settingsPageMain { display: block; }
    .settingsIntro { display: none; }
    .settingsPanel { max-width: none; padding: 17px 14px; box-shadow: 0 14px 34px rgba(103,59,82,.1); }
    .settingsPanelHead { margin-bottom: 12px; padding-bottom: 12px; }
    .settingsPanelHead h3 { font-size: 18px; }
    .settingsPanelHead > small { display: none; }
    .setform { grid-template-columns: 1fr; gap: 8px; }
    .settingRow { padding: 11px 12px 10px; }
    .settingCopy small { white-space: normal; }
    .settingsActions { position: sticky; bottom: -10px; padding-top: 10px; background: linear-gradient(transparent, rgba(255,253,250,.98) 35%); }
    .pageButton { flex: 1; min-width: 0; }

    #menu.titleCover { padding: 0; overflow: hidden; }
    #menu.titleCover::after { background:
      linear-gradient(180deg, rgba(255,250,247,.96) 0%, rgba(255,247,246,.86) 36%, rgba(255,247,246,.34) 53%, rgba(65,39,64,.16) 72%, rgba(43,26,50,.72) 100%),
      linear-gradient(90deg, rgba(255,252,249,.9), rgba(255,249,247,.28)); }
    .titleHeroStage { inset: 0; }
    .titleHeroImage { object-position: right center; filter: saturate(.84) brightness(1.035); }
    .titleContent { padding: max(28px, env(safe-area-inset-top, 0px)) 20px 58px; }
    .titleBrand { width: 100%; }
    .titleEyebrow { font-size: 7px; letter-spacing: 2.1px; }
    .titleEyebrow::before { width: 20px; }
    #menu.titleCover h1 { margin-top: 10px; font-size: clamp(47px, 15vw, 61px); line-height: .92; letter-spacing: 6px; }
    #menu.titleCover h1 span:last-child { margin-left: 29px; }
    .titleEnglish { margin: 9px 0 0 31px; font-size: 7px; letter-spacing: 2px; }
    .titleRule { width: 235px; margin: 11px 0 10px; }
    .titleTagline { font-size: 11px; line-height: 1.65; letter-spacing: .7px; }
    .titleHeroines { gap: 5px 8px; margin-top: 10px; max-width: 310px; }
    .titleHeroines > span { padding-left: 6px; font-size: 8px; }
    .titleHeroines small { display: none; }
    .titleMenu { left: 16px; right: 16px; bottom: max(52px, calc(env(safe-area-inset-bottom, 0px) + 44px)); width: auto; }
    .titleMainActions { grid-template-columns: 1fr; gap: 6px; }
    #menu .titleAction { height: 51px; padding: 6px 14px; backdrop-filter: blur(12px); }
    #menu .titleAction.loadGame { height: 44px; }
    #menu .titleAction.continue { background: rgba(255,250,247,.87); }
    .actionCopy strong { font-size: 13px; }
    .titleUtility { grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 6px; padding-top: 6px; }
    #menu .utilityAction { min-height: 34px; height: 34px; font-size: 10px; background: rgba(255,252,249,.78); }
    .titleFooter { left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); justify-content: center;
      color: rgba(255,255,255,.76); font-size: 7px; }
    .titleFooter span:nth-of-type(n+2), .titleFooter i { display: none; }
  }
  @media (min-width: 521px) and (max-width: 900px) {
    #speakerPortrait { left: 10px; width: 170px; }
    #dialogContent { margin-left: 180px; margin-right: 3vw; }
    .galleryPageMain { grid-template-columns: 190px 1fr; gap: 30px; }
    .galleryGrid { grid-template-columns: repeat(3, minmax(132px, 1fr)); }
    .savePageMain { grid-template-columns: 180px 1fr; gap: 30px; }
    .saveSlots { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .settingsPageMain { grid-template-columns: 190px 1fr; gap: 32px; }
    .settingsIntro h3, .gallerySummary h3 { font-size: 27px; }
    .setform { grid-template-columns: 1fr; }
  }
  @media (max-height: 480px) {
    /* 横屏小高度：角色缩小、对话框更紧凑 */
    #chara { height: 94vh; height: 94dvh; }
    #dialogWrap { height: 150px; }
    #dialogContent { padding-top: 8px; }
    #speakerPortrait { height: 190px; width: 145px; }
    #dialogBox { font-size: 14px; line-height: 1.5; }
    #choices { top: auto; bottom: 160px; transform: translateX(-50%); }
    #phone { height: 92vh; height: 92dvh; }

    .titleContent { padding-top: 22px; }
    .titleEyebrow, .titleTagline, .titleHeroines, .titleFooter { display: none; }
    #menu.titleCover h1 { margin-top: 0; font-size: clamp(44px, 9vw, 68px); }
    .titleEnglish { margin-top: 7px; }
    .titleRule { margin-block: 8px; }
    .titleMenu { bottom: 20px; width: min(470px, 51vw); }
    #menu .titleAction { height: 49px; }
    #menu .utilityAction { height: 29px; min-height: 29px; }
    .titleHeroImage { object-position: right center; }

    .menuPageHeader { height: 66px; }
    .menuPageMain { height: calc(100% - 66px); padding-top: 12px; padding-bottom: 12px; }
    .menuPageFooter { display: none; }
    .galleryPageMain { grid-template-columns: 180px 1fr; gap: 20px; }
    .gallerySummary { display: block; padding-top: 0; }
    .gallerySummary .pageSectionNumber { font-size: 48px; }
    .gallerySummary .pageKicker { margin-top: 10px; }
    .gallerySummary h3 { margin-top: 7px; font-size: 19px; line-height: 1.3; }
    .gallerySummaryCopy, .galleryLegend { display: none; }
    .galleryProgress { margin-top: 12px; padding: 8px 0; }
    .galleryGrid { grid-template-columns: repeat(4, minmax(115px, 1fr)); }
    .galleryCard, .galleryCardInner { min-height: 112px; }
    .galleryCardSymbol { font-size: 24px; }
    .saveSummary { display: none; }
    .savePageMain { display: block; }
    .saveShelf { max-width: 1020px; height: 100%; margin: 0 auto; }
    .saveShelfHead { margin-bottom: 8px; padding-bottom: 7px; }
    .saveSlots { grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 8px; }
    .saveSlotLine { display: none; }
    .saveSlotMain { padding-bottom: 7px; }
    .settingsIntro { display: none; }
    .settingsPageMain { display: block; }
    .settingsPanel { max-width: 920px; margin: 0 auto; padding: 14px 18px; }
    .settingsPanelHead { margin-bottom: 10px; padding-bottom: 8px; }
    .settingsPanelHead h3 { font-size: 17px; }
    .setform { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .settingRow { padding-block: 8px; }
    .settingsActions { margin-top: 9px; }
    .pageButton { height: 36px; }
  }
