:root{--ink:#18241f;--paper:#ede4c8;--gold:#b38a3c;--jade:#567d68;--red:#8c3b31}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#101814;color:#243229;font-family:"Noto Serif SC","Songti SC",SimSun,serif}.game{position:relative;width:100%;height:100%;min-height:560px;isolation:isolate;background:#aab0a5}.game:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(circle at 50% 45%,transparent 35%,rgba(8,17,13,.38) 110%),repeating-linear-gradient(90deg,rgba(60,48,25,.03) 0 1px,transparent 1px 5px);mix-blend-mode:multiply}.game.is-restored:after{opacity:.45}#world{width:100%;height:100%;display:block;filter:saturate(.22) contrast(.94);transition:filter 1.8s ease}.is-restored #world{filter:saturate(1) contrast(1)}.topbar{position:absolute;z-index:3;left:24px;right:24px;top:18px;display:flex;align-items:flex-start;gap:16px;pointer-events:none}.brand,.cultivation,.quest-panel{background:linear-gradient(135deg,rgba(239,231,205,.94),rgba(215,203,169,.88));border:1px solid rgba(77,64,37,.5);box-shadow:0 8px 30px rgba(10,20,15,.2)}.brand{padding:10px 18px 9px;border-radius:2px}.brand span{font-size:20px;letter-spacing:.18em}.brand small,.cultivation small,.quest-panel small{display:block;color:#6e6249;letter-spacing:.12em}.cultivation{margin-left:auto;padding:8px 14px;width:170px}.spirit{height:5px;background:#9d947d;margin:5px 0}.spirit i{display:block;height:100%;width:100%;background:#678d6d}.round-btn{pointer-events:auto;border:1px solid #756647;background:#e6dcc0;color:#493e2a;border-radius:50%;width:38px;height:38px;font-family:inherit}.quest-panel{position:absolute;z-index:3;top:104px;right:24px;width:min(300px,35vw);padding:18px 20px}.quest-panel h2{font-size:17px;margin:5px 0 7px}.quest-panel p{font-size:13px;line-height:1.65;margin:0;color:#4b5146}.runes{display:flex;gap:8px;margin-top:13px}.runes span{width:34px;height:38px;border:1px solid #9c8b67;display:grid;place-items:center;color:#968b74;background:rgba(255,255,255,.22);font-size:20px}.runes span.found{color:#342e22;border-color:#b48a3a;background:#efe2b5;box-shadow:0 0 16px rgba(204,157,53,.55)}.amo{position:absolute;z-index:3;left:26px;bottom:28px;max-width:340px;padding:12px 18px 12px 54px;background:rgba(19,29,24,.86);color:#eee5c9;border-left:3px solid #ad8a48}.amo:before{content:"墨";position:absolute;left:10px;top:10px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dbcda8;color:#26372e}.amo b{font-size:12px;color:#c8a866}.amo p{margin:3px 0 0;font-size:13px}.controls{display:none;position:absolute;z-index:4;left:20px;bottom:22px;width:132px;height:132px}.controls button{position:absolute;width:44px;height:44px;border:1px solid rgba(239,227,194,.6);background:rgba(21,34,27,.72);color:#efe4c5;border-radius:50%;font-size:15px}.controls [data-dir=up]{left:44px}.controls [data-dir=left]{top:44px}.controls [data-dir=down]{left:44px;top:88px}.controls [data-dir=right]{left:88px;top:44px}.action-btn{display:none;position:absolute;z-index:4;right:24px;bottom:38px;width:72px;height:72px;border-radius:50%;border:2px solid #d2bd81;background:rgba(125,49,39,.88);color:#fff5d7;font-family:inherit;font-size:16px}.overlay{position:absolute;z-index:10;inset:0;display:grid;place-items:center;padding:24px;background:rgba(11,19,15,.65);opacity:0;visibility:hidden;transition:.35s}.overlay.visible{opacity:1;visibility:visible}.opening{background:radial-gradient(circle at 55% 35%,rgba(119,137,117,.35),rgba(10,18,14,.92)),linear-gradient(rgba(20,30,24,.7),rgba(10,16,12,.9))}.opening-card,.ending-card{max-width:590px;text-align:center;color:#e7dec5}.opening-card h1{font-size:clamp(40px,7vw,78px);font-weight:400;letter-spacing:.16em;margin:12px 0 22px}.opening-card p,.ending-card p{line-height:1.9}.opening-card blockquote,.ending-card blockquote{font-size:18px;color:#d8c392;margin:24px auto;line-height:1.8}.eyebrow{font-size:12px!important;letter-spacing:.35em;color:#bfa15d!important;text-transform:uppercase}.seal-btn{border:1px solid #c5a45d;background:#873c32;color:#f9edcb;font-family:inherit;font-size:17px;letter-spacing:.18em;padding:13px 28px;cursor:pointer;box-shadow:inset 0 0 0 3px #873c32, inset 0 0 0 4px rgba(242,210,138,.55)}.opening-card>small{display:block;margin-top:15px;color:#a69f8e}.scroll-paper{background:linear-gradient(110deg,#e9dfbf,#f5edcf 55%,#d8caa3);color:#2d332b}.challenge-card,.trial-card{position:relative;width:min(560px,94vw);padding:30px;text-align:center;border:1px solid #917c50;box-shadow:0 20px 60px rgba(0,0,0,.45)}.close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:26px;color:#61563e}.spirit-glyph{font-size:86px;line-height:1.2;color:#2a3d32;text-shadow:0 0 25px #d8b862}.challenge-card h2,.trial-card h2{font-weight:500;margin:5px 0 8px}.choices,.trial-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin:22px 0}.choices button,.trial-choices button{width:78px;height:84px;border:1px solid #8d7b54;background:rgba(255,252,235,.72);font:42px "Noto Serif SC",serif;color:#29352d;cursor:pointer;transition:.2s}.choices button:hover,.trial-choices button:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(60,45,20,.18)}.speak{border:0;border-bottom:1px solid #876b34;background:none;color:#6c5122;font-family:inherit;padding:8px 4px}.feedback{min-height:24px;color:#853a32}.answer-slots{display:flex;justify-content:center;gap:10px;margin:24px 0}.answer-slots span{width:58px;height:66px;border-bottom:2px solid #806c47;display:grid;place-items:center;font-size:34px}.ending{background:radial-gradient(circle,rgba(61,94,69,.86),rgba(8,18,13,.94))}.ending-card{max-width:650px}.ending-card h2{font-size:clamp(44px,8vw,80px);font-weight:400;letter-spacing:.28em;margin:10px 0}.chapter-stats{display:flex;justify-content:center;gap:36px;margin:24px}.chapter-stats span{font-size:13px}.chapter-stats b{display:block;font-size:28px;color:#d9bb72}@media(max-width:760px),(pointer:coarse){.topbar{left:12px;right:12px;top:10px}.brand{padding:8px 10px}.brand span{font-size:16px}.brand small{display:none}.cultivation{display:none}.quest-panel{top:70px;right:12px;width:230px;padding:12px}.quest-panel h2{font-size:14px}.quest-panel p{display:none}.amo{left:164px;right:16px;bottom:20px;padding:9px 12px;max-width:none}.amo:before,.amo b{display:none}.controls,.action-btn{display:block}.quest-panel .runes{margin-top:7px}.runes span{width:29px;height:32px}.round-btn{width:34px;height:34px}.opening-card h1{font-size:42px}.opening-card p{font-size:14px}.opening-card blockquote{font-size:15px}.challenge-card{padding:24px 16px}.choices button{width:66px;height:70px;font-size:34px}}
