*{margin:0;padding:0;box-sizing:border-box}body{height:100vh;background:#0b0b0e;font-family:Georgia,Times New Roman,serif;color:#e6e6e6;display:flex;justify-content:center;align-items:center}#root{width:100%;height:100vh;display:flex;justify-content:center;align-items:center}.game-loading{display:flex;align-items:center;justify-content:center;height:100vh;font-size:16px;opacity:.6}.game-container{width:720px;height:90vh;background:#0a0a0ed9;box-shadow:0 0 60px #000c;position:relative;overflow:hidden;padding:24px 32px;display:flex;flex-direction:column}.game-bg-layer{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,#ffffff0d,#000000e6);pointer-events:none;z-index:0}.game-ui-layer{position:relative;z-index:1;display:flex;flex-direction:column;height:100%}.game-header{border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:12px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.header-left{display:flex;flex-direction:column;gap:4px}.game-title{font-size:20px;letter-spacing:2px;opacity:.85}.chapter-title{font-size:14px;opacity:.6}.settings-button{background:transparent;border:1px solid rgba(255,255,255,.2);color:#fff9;padding:6px 12px;font-size:12px;font-family:inherit;cursor:pointer;transition:all .2s ease;border-radius:4px;display:flex;align-items:center;gap:8px}.settings-button:hover{background:#ffffff14;border-color:#fff6;color:#ffffffe6}.settings-button.selected{background:#ffffff14;border-color:#fff9;color:#ffffffe6}.button-shortcut{flex-shrink:0;min-width:18px;height:18px;padding:0 4px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:3px;font-size:10px;font-weight:500;opacity:.5}.settings-button:hover .button-shortcut{background:#fff3;opacity:.8}.settings-button.selected .button-shortcut{background:#fff3;opacity:.9}.game-main{flex:1;display:flex;flex-direction:column;min-height:0;transition:opacity .3s ease}.game-main.fade-out{opacity:0}.game-main.fade-in{opacity:1}.chapter-title{transition:opacity .3s ease}.chapter-title.fade-out{opacity:0}.story-text{font-size:16px;line-height:1.8;white-space:pre-line;margin-bottom:24px;flex:1;overflow-y:auto;min-height:0;padding-right:8px}.story-text::-webkit-scrollbar{width:6px}.story-text::-webkit-scrollbar-track{background:#ffffff08;border-radius:3px}.story-text::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.story-text::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.story-text{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) rgba(255,255,255,.03)}.story-title{font-size:18px;color:#ffffffe6;margin-bottom:16px;letter-spacing:1px}.story-content{opacity:.85;cursor:text}.story-content.typing{cursor:pointer}.cursor{animation:blink .8s infinite;margin-left:2px}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.choice-list{display:flex;flex-direction:column;gap:12px;opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}.choice-list.visible{opacity:1;transform:translateY(0)}.choice-button{background:transparent;border:1px solid rgba(255,255,255,.3);color:#e6e6e6;padding:10px 14px;text-align:left;cursor:pointer;transition:all .2s ease;font-family:inherit;font-size:15px;opacity:0;animation:fadeInUp .4s ease forwards;display:flex;align-items:center;gap:12px}.choice-button.selected{border-color:#fff9;background:#ffffff14}.choice-shortcut{flex-shrink:0;min-width:40px;height:20px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:4px;font-size:11px;font-weight:500;opacity:.5;padding:0 6px}.choice-button.selected .choice-shortcut{background:#fff3;opacity:.9}.choice-text{flex:1}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.choice-button:hover{background:#ffffff14;border-color:#fff9}.choice-button:active{background:#ffffff1f}.game-footer{margin-top:16px;display:flex;justify-content:flex-end;align-items:center;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}.footer-items{display:flex;gap:12px;align-items:center}.footer-item{font-size:12px;opacity:.7;display:flex;align-items:center;gap:4px;cursor:help}.footer-empty{font-size:12px;opacity:.3;font-style:italic}.ending-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000eb;display:flex;justify-content:center;align-items:center;z-index:5}.ending-box{max-width:520px;text-align:center}.ending-title{margin-bottom:16px;letter-spacing:1px;opacity:.9}.ending-name{font-size:14px;opacity:.6;margin-bottom:8px;font-style:italic}.ending-text{line-height:1.8;margin-bottom:24px;opacity:.85}.restart-button{border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;padding:8px 16px;cursor:pointer;font-family:inherit;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:12px;margin:0 auto}.restart-button-text{flex:1}.restart-button-shortcut{flex-shrink:0;min-width:50px;height:22px;display:flex;align-items:center;justify-content:center;background:#ffffff26;border-radius:4px;font-size:12px;font-weight:500;opacity:.7;padding:0 8px}.restart-button:hover .restart-button-shortcut{background:#ffffff40;opacity:1}.restart-button:hover{background:#ffffff1a;border-color:#fff9}.restart-button.selected{background:#ffffff26;border-color:#ffffffb3;color:#fffffff2}.restart-button.selected .restart-button-shortcut{background:#ffffff4d;opacity:1}@media(max-width:768px){body{font-size:14px}.game-container{width:100%;height:100vh;padding:16px 20px;border-radius:0}.game-header{padding-bottom:10px;margin-bottom:12px}.game-title{font-size:18px;letter-spacing:1px}.chapter-title{font-size:13px}.story-text{font-size:15px}.choice-list{gap:10px}.choice-button{padding:12px 16px;font-size:14px}.choice-shortcut,.restart-button-shortcut{display:none}.ending-box{padding:0 20px}.ending-title{font-size:18px}.ending-text{font-size:14px}.game-footer{font-size:11px}.settings-button{padding:5px 10px;font-size:11px}.button-shortcut{display:none}.footer-items{gap:8px}.footer-item{font-size:11px}}@media(max-width:480px){.game-container{padding:12px 16px}.game-title{font-size:16px}.story-text{font-size:14px;line-height:1.7;margin-bottom:20px}.choice-button{padding:10px 14px;font-size:13px}.choice-shortcut,.restart-button-shortcut{display:none}.settings-button{padding:4px 8px;font-size:10px}.button-shortcut{display:none}.footer-items{gap:6px}.footer-item{font-size:10px;gap:3px}}.cover-screen{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;z-index:10}.cover-content{text-align:center;max-width:500px}.cover-title{font-size:42px;letter-spacing:6px;margin-bottom:12px;opacity:.95;text-shadow:0 0 30px rgba(255,255,255,.3)}.cover-subtitle{font-size:15px;opacity:.65;margin-bottom:24px;letter-spacing:1px}.cover-description{font-size:14px;line-height:1.8;opacity:.5;margin-bottom:40px;white-space:pre-line}.cover-buttons{display:flex;flex-direction:column;gap:14px;align-items:center}.cover-button{min-width:180px;padding:12px 24px;background:transparent;border:1px solid rgba(255,255,255,.3);color:#e6e6e6;font-family:inherit;font-size:15px;cursor:pointer;transition:all .3s ease;letter-spacing:1px;display:flex;align-items:center;justify-content:space-between;gap:8px}.cover-button.selected{border-color:#fff9;background:#ffffff14}.cover-button:hover{background:#ffffff14;border-color:#fff9}.cover-button.primary{border-color:#ffffff80;background:#ffffff0d}.cover-button.primary:hover{background:#ffffff1f;border-color:#fffc}.cover-footer{margin-top:50px;font-size:12px;opacity:.3;font-style:italic}.story-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:16px 0;max-width:900px;width:100%}.story-card{position:relative;background:#ffffff0a;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:12px 14px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:6px}.story-card:hover{background:#ffffff0f;border-color:#ffffff4d}.story-card.selected{background:#ffffff1a;border-color:#ffffff80;box-shadow:0 0 20px #ffffff1a}.story-card-header{display:flex;align-items:baseline;gap:8px}.story-title{font-size:20px;font-weight:600;margin:0;color:#fffffff2;letter-spacing:.5px}.story-subtitle{font-size:13px;margin:0;color:#fff9}.story-description{font-size:14px;line-height:1.4;margin:0;color:#ffffffa6;flex-grow:1}.story-card .story-footer{display:flex;justify-content:space-between;align-items:center;margin-top:4px;padding-top:4px;border-top:1px solid rgba(255,255,255,.15)}.story-info{display:flex;align-items:center;gap:8px}.story-version{font-size:10px;color:#ffffff59;font-weight:500}.story-progress,.story-playtime{font-size:11px;color:#ffffff80;font-weight:500}.story-shortcut{min-width:22px;height:20px;padding:0 6px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:3px;font-size:11px;font-weight:500;color:#ffffffb3}.story-card.selected .story-shortcut{background:#fff3;border-color:#fff6;color:#fff}.chapter-cover{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000f2;display:flex;justify-content:center;align-items:center;z-index:8;opacity:0;transition:opacity .5s ease;pointer-events:none}.chapter-cover.visible{opacity:1;pointer-events:auto}.chapter-cover-content{text-align:center;max-width:450px}.chapter-number{font-size:13px;letter-spacing:4px;opacity:.5;margin-bottom:12px;text-transform:uppercase}.chapter-cover-title{font-size:32px;letter-spacing:3px;margin-bottom:12px;opacity:.9;text-shadow:0 0 20px rgba(255,255,255,.2)}.chapter-cover-subtitle{font-size:14px;opacity:.5;letter-spacing:1px;margin-bottom:32px}.chapter-proceed-button{margin-top:24px;min-width:160px;padding:12px 24px;background:transparent;border:1px solid rgba(255,255,255,.3);color:#e6e6e6;font-family:inherit;font-size:14px;cursor:not-allowed;transition:all .3s ease;letter-spacing:2px;opacity:.4;display:flex;align-items:center;gap:12px}.chapter-proceed-button.enabled{cursor:pointer;opacity:1;border-color:#ffffff80;background:#ffffff0d}.chapter-proceed-button.enabled:hover{background:#ffffff1f;border-color:#fffc}.chapter-proceed-button.enabled.selected{background:#ffffff1f;border-color:#fffc;box-shadow:0 0 20px #ffffff4d}.chapter-button-text{flex:1}.chapter-button-shortcut{flex-shrink:0;min-width:40px;height:20px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:4px;font-size:11px;font-weight:500;opacity:.5;padding:0 6px}.chapter-proceed-button.enabled .chapter-button-shortcut{background:#fff3;opacity:.9}.chapter-proceed-button.enabled.selected .chapter-button-shortcut{background:#ffffff4d;opacity:1}@media(max-width:768px){.cover-content{max-width:90%}.story-grid{grid-template-columns:1fr;gap:16px}.cover-title{font-size:36px;letter-spacing:4px}.cover-subtitle{font-size:14px}.cover-description{font-size:13px}.cover-button{min-width:160px;padding:11px 20px;font-size:14px}.chapter-cover-title{font-size:28px;letter-spacing:2px}.chapter-number{font-size:12px;letter-spacing:3px}.chapter-proceed-button{min-width:140px;padding:11px 20px;font-size:13px}.chapter-button-shortcut{display:none}}@media(max-width:480px){.cover-title{font-size:28px;letter-spacing:3px}.cover-subtitle{font-size:13px}.cover-description{font-size:12px;margin-bottom:32px}.cover-buttons{gap:12px}.cover-button{min-width:140px;padding:10px 18px;font-size:13px}.cover-footer{margin-top:40px;font-size:11px}.chapter-cover-title{font-size:24px;letter-spacing:2px}.chapter-cover-subtitle{font-size:13px}.chapter-proceed-button{min-width:130px;padding:10px 18px;font-size:12px}.chapter-button-shortcut{display:none}}.settings-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000e6;display:flex;justify-content:center;align-items:center;z-index:20;animation:fadeIn .3s ease}.settings-panel{width:100%;height:100%;display:flex;flex-direction:column}.settings-content::-webkit-scrollbar{width:8px}.settings-content::-webkit-scrollbar-track{background:#ffffff0d;border-radius:4px}.settings-content::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px;transition:background .2s ease}.settings-content::-webkit-scrollbar-thumb:hover{background:#ffffff59}.settings-content{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) rgba(255,255,255,.05)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.story-list{display:flex;flex-direction:column;gap:16px;margin-top:32px}.story-card{display:flex;gap:20px;padding:20px 24px;background:#ffffff08;border:1px solid rgba(255,255,255,.15);border-radius:8px;cursor:pointer;transition:all .3s ease;text-align:left;min-width:480px}.story-card:hover{background:#ffffff0f;border-color:#fff6}.story-card.selected{background:#ffffff14;border-color:#fff9;box-shadow:0 0 30px #ffffff1a}.story-card-number{flex-shrink:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff14;border-radius:50%;font-size:20px;font-weight:700;opacity:.6;transition:all .3s ease}.story-card.selected .story-card-number{background:#ffffff26;opacity:1}.story-card-content{flex:1}.story-card-title{font-size:22px;letter-spacing:2px;margin-bottom:6px;opacity:.95}.story-card-subtitle{font-size:13px;opacity:.6;margin-bottom:10px;letter-spacing:1px}.story-card-description{font-size:13px;line-height:1.6;opacity:.5}@media(max-width:768px){.story-card{min-width:400px;padding:16px 20px;gap:16px}.story-card-number{width:40px;height:40px;font-size:18px}.story-card-title{font-size:20px;letter-spacing:1px}.story-card-subtitle,.story-card-description{font-size:12px}}@media(max-width:480px){.story-list{gap:12px;margin-top:24px}.story-card{min-width:300px;padding:14px 16px;gap:12px}.story-card-number{width:36px;height:36px;font-size:16px}.story-card-title{font-size:18px}.story-card-subtitle,.story-card-description{font-size:11px}}
