:root{--paper:#f8f7f3;--ink:#191919;--muted:#73716d;--line:#c9c6be;--read-size:20px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #777;outline-offset:4px}[hidden]{display:none!important}button{background:transparent;border:0}img{display:block;max-width:100%}.home{display:grid;grid-template-columns:54% 46%;min-height:100svh}.cover{position:relative;overflow:hidden;background:#171717;border-right:2px solid #191919;min-height:650px}.cover>img{width:100%;height:100%;object-fit:cover;object-position:50% 24%;position:absolute;filter:grayscale(1)}.cover:after{content:"";position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}.cover-caption{position:absolute;bottom:30px;left:35px;right:35px;z-index:1;color:white;font-size:13px;display:flex;justify-content:space-between;letter-spacing:.15em}.home-paper{padding:48px clamp(30px,5vw,90px) 24px;display:flex;flex-direction:column;justify-content:center;background-image:radial-gradient(#00000010 .55px,transparent .55px);background-size:5px 5px}.edition{font-size:11px;letter-spacing:.08em;display:flex;justify-content:space-between;border-top:1px solid #191919;padding-top:13px;line-height:1.7}.edition span{font-size:10px;flex-shrink:0;margin-left:10px}h1{font-family:"Songti SC","STSong",serif;font-size:clamp(76px,8.8vw,136px);font-weight:500;letter-spacing:.16em;margin:38px 0 0;line-height:1.05}.title-rule{display:block;width:43px;height:3px;background:#191919;margin:24px 0}.tagline{font-size:19px;letter-spacing:.13em;margin:0 0 25px}.intro{color:#66635e;line-height:2;font-size:13px;margin:0 0 38px}.role-label{font-size:12px;letter-spacing:.12em;margin:0 0 13px}.role-grid{display:grid;gap:12px}.role-card{display:flex;align-items:center;text-align:left;border:1px solid #292929;background:#faf9f7;padding:10px 14px;gap:17px;transition:background .15s,transform .15s}.role-card:hover{background:white;transform:translateX(3px);box-shadow:-3px 3px 0 #191919}.portrait{display:block;width:64px;height:72px;background-size:300% 300%;background-position:50% 100%;background-repeat:no-repeat;flex-shrink:0;filter:grayscale(1)}.portrait.lisa{background-image:url('assets/lisa-sheet.png')}.portrait.rose{background-image:url('assets/rose-sheet.png')}.role-copy{display:grid;gap:7px}.role-copy strong{font-size:18px;font-weight:500}.role-copy small{font-size:12px;color:#75716b}.role-arrow{margin-left:auto;font-size:22px}.continue-home{border:1px solid #191919;background:#191919;color:white;padding:14px 18px;display:flex;justify-content:space-between;margin-top:14px;font-size:13px}.home-links{display:flex;gap:26px;margin:25px 0 42px}.home-links button{font-size:12px;padding:0 0 5px;border-bottom:1px solid #8a877f}.home-paper footer{font-size:10px;color:#817d75;border-top:1px solid #ccc8be;padding-top:15px;display:flex;justify-content:space-between;gap:10px;line-height:1.8}.game{height:100svh;display:flex;flex-direction:column}.game-bar{height:64px;min-height:64px;display:flex;align-items:center;gap:25px;padding:0 30px;border-bottom:2px solid #191919}.wordmark{font-family:"Songti SC",serif;font-size:27px;letter-spacing:.12em;padding:0;white-space:nowrap}.wordmark span{font-family:system-ui;font-size:20px;margin-left:16px;color:#aaa}#viewpoint{font-size:12px;color:#726e66}.game-bar nav{display:flex;gap:23px;margin-left:auto}.game-bar nav button{font-size:12px;padding:7px 0}.scene{position:relative;flex:1;min-height:0;overflow:hidden;background:#222}.scene-image{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;filter:grayscale(1);transition:opacity .25s}.scene-shade{position:absolute;inset:0;background:linear-gradient(#0005,transparent 28%,transparent 62%,#0005);pointer-events:none}.scene-heading{position:absolute;top:26px;left:36px;color:white;text-shadow:0 1px 5px #0008}.scene-heading>span{font-size:10px;letter-spacing:.18em}.scene-heading h2{font-family:"Songti SC",serif;font-size:28px;font-weight:500;letter-spacing:.14em;margin:9px 0}.scene-heading p{font-size:11px;letter-spacing:.07em;margin:0}.dialogue{position:absolute;bottom:28px;left:6%;width:88%;max-width:1100px;background:var(--paper);border:2px solid #191919;box-shadow:6px 6px 0 #0008;padding:18px 26px 16px}.dialogue-heading{display:flex;gap:12px;align-items:center;min-height:24px}.dialogue-heading .portrait{width:38px;height:42px;border:1px solid #aaa}.dialogue-heading strong{font-size:13px;font-weight:600;letter-spacing:.08em}#beat-counter{margin-left:auto;color:#979188;font-size:10px;letter-spacing:.08em}.dialogue-text{font-family:"Songti SC","STSong",serif;font-size:var(--read-size);line-height:1.85;margin:8px 0 3px;white-space:pre-line;min-height:65px}.dialogue-text p{margin:0}.next{display:block;margin:3px 0 0 auto;font-size:12px;padding:7px 0 0 18px;color:#656057;letter-spacing:.1em}.next span{font-size:20px;margin-left:20px;color:#191919}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}.choices:empty{display:none}.choice{display:flex;gap:9px;align-items:flex-start;text-align:left;border:1px solid #aaa69d;background:#fff;padding:12px;font-size:12px;line-height:1.65;transition:box-shadow .15s,border .15s}.choice:hover{border-color:#191919;box-shadow:2px 2px 0 #191919}.choice .num{font-size:10px;border:1px solid #aaa;width:17px;height:17px;display:grid;place-items:center;flex-shrink:0;margin-top:2px}.game-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:31px;padding:0 30px;font-size:10px;color:#8a857b}.game-foot button{font-size:10px}.phone{position:absolute;width:340px;max-height:46%;right:7%;top:65px;border:2px solid #191919;background:#f8f7f3;box-shadow:7px 7px 0 #0007;overflow:hidden;display:flex;flex-direction:column}.phone-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;padding:13px 15px;border-bottom:1px solid #bbb}.phone-top strong{font-size:12px}.phone-thread{padding:15px;overflow-y:auto;display:grid;gap:12px}.message{max-width:87%;font-size:12px;line-height:1.8}.message small{display:block;font-size:9px;color:#8c867c;margin-bottom:3px}.message>div{border:1px solid #aaa;background:white;padding:8px 11px}.message.self{margin-left:auto}.message.self>div{background:#e6e3dd}.ending{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#f8f7f3ee;padding:30px}.ending .end-paper{max-width:600px;border:1px solid #191919;padding:44px;background:#faf9f6;box-shadow:7px 7px 0 #191919}.end-kicker{font-size:10px;letter-spacing:.2em}.ending h2{font-family:"Songti SC",serif;font-size:39px;font-weight:500;margin:18px 0;letter-spacing:.1em}.ending p{font-family:"Songti SC",serif;font-size:16px;line-height:2}.ending .end-actions{display:flex;gap:15px;justify-content:center;margin-top:25px}.end-actions button{border:1px solid #191919;padding:10px 16px;font-size:12px}.end-actions button:first-child{background:#191919;color:white}dialog{width:min(840px,92vw);max-height:87svh;background:var(--paper);color:var(--ink);border:2px solid #191919;padding:0;box-shadow:9px 9px 0 #0005}dialog::backdrop{background:#1119;backdrop-filter:blur(3px)}.panel-top{position:sticky;top:0;z-index:2;background:var(--paper);display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid #aaa}.panel-top h2{font-family:"Songti SC",serif;font-size:25px;font-weight:500;margin:0;letter-spacing:.1em}.panel-top button{font-size:25px;padding:0 4px}#panel-content{padding:24px}.panel-note{font-size:12px;color:#777;line-height:1.9;margin:0 0 20px}.memory-grid,.art-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.memory-card,.art-card{border:1px solid #aaa;text-align:left;padding:0;background:#fff}.memory-card img,.art-card img{width:100%;aspect-ratio:16/9;object-fit:cover;filter:grayscale(1)}.memory-card div,.art-card p{padding:13px;margin:0}.memory-card small{font-size:10px;color:#777}.memory-card h3{font-size:14px;font-weight:500;margin:5px 0 0}.memory-detail img{width:100%;max-height:300px;object-fit:cover;filter:grayscale(1)}.memory-detail h3{font-family:"Songti SC",serif;font-size:26px;font-weight:500}.memory-detail p{font-family:"Songti SC",serif;font-size:17px;line-height:2}.back-link{border-bottom:1px solid #aaa;font-size:12px;padding:0 0 4px;margin-bottom:17px}.journal-row{border-bottom:1px solid #d5d1c8;padding:14px 0}.journal-row small{font-size:10px;color:#999}.journal-row strong{display:block;font-size:12px;margin:5px 0}.journal-row p{font-family:"Songti SC",serif;font-size:16px;line-height:1.8;margin:0;white-space:pre-line}.save-card{padding:20px;border:1px solid #aaa;margin-bottom:15px}.save-card h3{font-weight:500;font-size:16px;margin:0 0 7px}.save-card p{font-size:12px;line-height:1.9;color:#777}.save-buttons{display:flex;gap:10px;flex-wrap:wrap}.save-buttons button,.save-buttons label{border:1px solid #191919;padding:9px 13px;font-size:12px;cursor:pointer}.save-buttons .dark{background:#191919;color:white}.save-buttons .danger{color:#8a2d2d;border-color:#8a2d2d}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 0;border-bottom:1px solid #ccc;font-size:14px}.settings-row select{border:1px solid #999;padding:6px;background:white}.toast{position:fixed;bottom:42px;left:50%;transform:translateX(-50%);z-index:20;background:#191919;color:white;padding:11px 18px;font-size:12px;max-width:90vw;text-align:center}.fade-in{animation:appear .3s ease}@keyframes appear{from{opacity:.35}to{opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1500px){.dialogue{left:50%;transform:translateX(-50%)}}@media(max-width:1000px){.home{grid-template-columns:48% 52%}.home-paper{padding:30px}.edition{font-size:10px}.intro{margin-bottom:25px}.home-links{margin-bottom:25px}.dialogue{left:4%;width:92%;padding:16px 20px}.choices{gap:8px}.choice{font-size:11px;padding:10px}.scene-heading{left:25px}.phone{top:80px;width:310px;right:5%}}@media(max-width:700px){.home{display:block}.cover{height:36svh;min-height:260px;border-right:0;border-bottom:2px solid #191919}.cover>img{object-position:50% 17%}.cover-caption{bottom:16px;left:22px;right:22px;font-size:10px}.home-paper{padding:24px 23px;min-height:64svh}.edition{font-size:9px}h1{font-size:78px;margin-top:23px}.title-rule{margin:13px 0;width:35px}.tagline{font-size:16px;margin-bottom:15px}.intro{font-size:12px;line-height:1.9;margin-bottom:22px}.role-grid{grid-template-columns:1fr 1fr;gap:10px}.role-card{padding:12px 8px;gap:8px;align-items:flex-start;position:relative}.role-card .portrait{width:44px;height:55px}.role-copy strong{font-size:15px}.role-copy small{font-size:10px;line-height:1.7;max-width:76px}.role-arrow{display:none}.home-links{gap:25px;margin:22px 0}.home-paper footer{font-size:9px}.game-bar{height:53px;min-height:53px;padding:0 15px;gap:11px}.wordmark{font-size:23px}.wordmark span{margin-left:7px;font-size:14px}#viewpoint{font-size:10px}.game-bar nav{gap:14px}.game-bar nav button{font-size:11px}.scene-heading{top:20px;left:21px}.scene-heading h2{font-size:25px}.scene-heading p{font-size:10px}.dialogue{bottom:17px;left:4%;width:92%;padding:14px 16px 12px;box-shadow:4px 4px 0 #0008}.dialogue-text{font-size:calc(var(--read-size) - 2px);line-height:1.75;min-height:70px}.dialogue-heading .portrait{width:33px;height:38px}.dialogue-heading strong{font-size:12px}.choices{grid-template-columns:1fr;gap:7px;margin-top:10px}.choice{padding:8px 11px;font-size:12px}.game-foot{padding:0 15px;gap:8px;min-height:29px}.game-foot>span:last-child{display:none}.phone{right:6%;top:107px;width:270px;max-height:34%}.phone-thread{padding:10px}.message{font-size:11px}.phone-top{padding:10px}.ending{padding:20px}.ending .end-paper{padding:30px 22px}.ending h2{font-size:31px}.ending p{font-size:15px}.ending .end-actions{flex-wrap:wrap}.panel-top{padding:16px 20px}#panel-content{padding:20px}.memory-grid,.art-grid{gap:11px}.memory-card div,.art-card p{padding:10px}.memory-card h3{font-size:12px}.art-card p{font-size:11px}.settings-row{font-size:13px}}@media(max-height:650px) and (min-width:701px){.home-paper{padding-top:20px;padding-bottom:15px}h1{margin-top:20px;font-size:84px}.intro{margin-bottom:20px}.role-card .portrait{height:50px;width:45px}.home-links{margin:18px 0}.cover{min-height:100svh}.dialogue{bottom:15px}.scene-heading{top:15px}.phone{max-height:38%}}
/* 完整剧情版：日期、回忆标记、关系阶段与章节目录。 */
h1{font-family:Baskerville,"Times New Roman","Songti SC",serif;letter-spacing:.03em;font-style:italic;font-size:clamp(86px,9vw,138px)}
.wordmark{font-family:Baskerville,"Times New Roman",serif;font-style:italic;letter-spacing:.03em}
.scene-heading{max-width:calc(100% - 70px)}
.scene-mode{display:inline-block;margin-left:12px;padding:3px 7px;border:1px solid #ffffff8f;background:#1116;font-size:9px;letter-spacing:.08em}
.scene-heading p{line-height:1.8}
.scene-heading .relationship{font-size:10px;margin-top:6px;color:#f0eee8;letter-spacing:.08em}
.timeline-note{font-size:12px;line-height:2;padding:13px 16px;border:1px solid #bdb8ad;margin-bottom:20px}
.chapter-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.chapter-card{display:flex;gap:12px;align-items:center;border:1px solid #ccc7bc;padding:13px 12px;text-align:left;background:#fff}
.chapter-card.current{border-color:#191919;box-shadow:2px 2px 0 #191919}
.chapter-card:disabled{opacity:.65}
.chapter-index{font-family:Baskerville,serif;font-size:26px;color:#8b867c}
.chapter-card strong{display:block;font-size:13px;font-weight:500}
.chapter-card small{display:block;font-size:9px;color:#817b70;margin-top:5px;line-height:1.7}
.chapter-state{margin-left:auto;font-size:9px;white-space:nowrap;color:#777}
@media(max-width:700px){h1{font-size:83px}.game-bar nav{gap:10px}.game-bar{gap:9px}.wordmark{font-size:24px}.scene-heading{max-width:calc(100% - 42px)}.scene-mode{margin-left:9px}.chapter-list{grid-template-columns:1fr}.home-links{gap:23px}.dialogue{max-height:57%;overflow-y:auto}.phone{max-height:30%}}
