:root{color-scheme:dark;--left:55%;--gold:#d8be91;--cream:#f3eadc;--muted:#a9b5c7;--line:#ffffff18;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#111822;color:#eef0f3}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 80% 0,#2b3546,transparent 58%),#111822}button,a,select{font:inherit}button,select{cursor:pointer;color:inherit;background:#ffffff06;border:1px solid #ffffff25;border-radius:7px;padding:8px 12px;touch-action:manipulation}button:hover,select:hover{background:#ffffff10;border-color:#a4b1c2}button:disabled{opacity:.28;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #d8be91;outline-offset:4px}.masthead{height:75px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 25px;border-bottom:1px solid var(--line)}.wordmark{font:400 29px/1.1 Baskerville,Georgia,serif;letter-spacing:-.8px;color:var(--cream)}.wordmark span{margin-left:20px;padding-left:20px;border-left:1px solid #ffffff30;font:13px/1.4 -apple-system,sans-serif;letter-spacing:.1px;color:var(--muted)}.tools{display:flex;align-items:center;gap:9px;font-size:13px}.tools>a{padding:9px 15px;border:1px solid #c6ad7d66;border-radius:7px;color:var(--gold)}#mode-status{color:#b4c8bc;font-size:12px;margin-right:6px}main{min-height:0;flex:1;display:grid;grid-template-columns:minmax(330px,var(--left)) 10px minmax(360px,1fr);padding:16px 17px 0;gap:0}.live-pane{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #ffffff20;border-radius:14px;overflow:hidden;background:#18212e;box-shadow:0 16px 50px #0002}.preview-bar{height:49px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 15px;border-bottom:1px solid #ffffff20}.preview-bar>span{color:#d1c0a0;letter-spacing:1.5px;font-size:11px;white-space:nowrap}.preview-controls{display:flex;align-items:center;gap:5px}.preview-controls button,.preview-controls select{font-size:12px;padding:5px 8px;min-height:30px}.preview-controls select{color:#c6d0dd;border-color:transparent;background:#1f2938}.preview-controls option{background:#1f2938}.preview-controls button{border-color:transparent;background:transparent}.preview-controls button[aria-pressed=true]{background:#ffffff12;border-color:#ffffff26}#stage{flex:1;min-height:0;position:relative;display:flex;justify-content:center;background:#202a37;overflow:hidden}iframe{display:block;border:0;width:100%;height:100%;background:#faf8f4}#stage.phone{padding:10px 0}#stage.phone>iframe{width:390px;max-width:100%;border:5px solid #4e5a68;border-radius:22px}.preview-foot{flex:none;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:5px 13px;color:#9fadc0;border-top:1px solid #ffffff1a;font-size:11px}.preview-foot button{padding:2px 3px;border:0;background:none;font-size:11px;color:#c5b18f}#splitter{display:grid;place-items:center;cursor:col-resize}#splitter i{width:2px;height:32px;border-radius:3px;background:#6f7a89}#splitter:hover i{background:var(--gold);width:3px}.dragging iframe{pointer-events:none}.dragging{user-select:none}.story-pane{min-width:0;min-height:0;overflow:auto;padding:0 clamp(17px,2.2vw,36px) 0 clamp(23px,2.5vw,41px);display:flex;flex-direction:column}#chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding-bottom:20px;border-bottom:1px solid var(--line);flex:none}#chapters button{font-size:11px;line-height:1.25;text-align:left;display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 8px;color:#abb7c7;background:transparent;border-color:#ffffff16}#chapters button span{font-size:10px;color:#77889e}#chapters button.active{background:#f1e5cf;color:#332b21;border-color:#f1e5cf}#chapters button.active span{color:#786244}#chapters button.cloud:not(.active){color:#e4cb9f;border-color:#b798624f;background:#bd97500c}.chapter-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1.8px;color:var(--gold);margin:25px 0 19px}#chapter-number{letter-spacing:.7px;color:#7f90a9}.story{flex:1}h1{font:400 clamp(32px,2.65vw,44px)/1.12 Baskerville,Georgia,"Songti SC",serif;letter-spacing:-.8px;color:var(--cream);max-width:21ch;margin:0 0 18px}#story-lead{color:#cad3df;font-size:clamp(16px,1.32vw,21px);line-height:1.6;margin:0 0 22px;max-width:48ch}.story-point{display:flex;align-items:flex-start;gap:13px;padding:12px 0;border-top:1px solid var(--line);font-size:clamp(14px,1.05vw,17px);line-height:1.5}.story-point b{font-size:16px;color:var(--gold);font-weight:400}.story-point p{margin:0;color:#b9c6d7}#story-example{margin-top:22px;padding:17px 19px;border:1px solid #c6ad7d4d;border-radius:10px;background:linear-gradient(120deg,#d5bd8c14,#d5bd8c02)}#example-label{color:var(--gold);font-size:10px;letter-spacing:1.7px}#example-text{font:400 clamp(18px,1.4vw,23px)/1.35 Baskerville,Georgia,"Songti SC",serif;color:var(--cream);margin:8px 0 13px}#example-action{font-size:12px;padding:7px 11px;border-color:#bca57e77;color:#e7d6ba;background:#ffffff06}#story-note{color:#8295ae;font-size:12px;line-height:1.6;margin:17px 0}.pagination{margin-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 2px;flex:none}.pagination button{background:none;border:0;padding:6px 0;font-size:13px;color:#dbc296}#chapter-caption{font-size:11px;color:#7f91a9}footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#7d90aa;padding:10px 25px;flex:none}footer>div{display:flex;align-items:center;gap:20px}footer button{background:none;border:0;padding:0;font-size:11px;color:inherit}footer a{color:#c7b18c}[hidden]{display:none!important}.story-enter{animation:story-in .2s ease-out}@keyframes story-in{from{opacity:.4;transform:translateY(5px)}}body.present .masthead{height:54px}body.present .wordmark span,body.present footer,body.present .tools #judge-link{display:none}body.present main{padding-top:12px;padding-bottom:12px}body.present .preview-foot{display:none}body.present .story-pane{padding-top:0}.recorded{position:absolute;inset:0;z-index:5;background:#172130;display:flex;flex-direction:column;align-items:center;padding:15px;gap:9px}.recorded p{font-size:12px;color:#dec69c;margin:0}.recorded img{width:100%;min-height:0;flex:1;object-fit:contain}.recorded button{font-size:12px}#offline-cloud{width:100%;overflow:auto;background:#0c1422;padding:24px;color:#b3c0d3}#offline-cloud>span{font-size:11px;color:var(--gold)}#offline-cloud h2{font:27px/1.3 Georgia,serif;color:var(--cream)}#offline-cloud p{font-size:14px}#offline-cloud img{width:100%;border:1px solid #ffffff20}
@media(max-height:810px) and (min-width:981px){.masthead{height:58px}main{padding-top:12px}#chapters{padding-bottom:13px;gap:5px}#chapters button{min-height:32px;font-size:10px;padding:5px}.chapter-meta{margin:16px 0 12px}h1{font-size:33px;margin-bottom:12px}#story-lead{font-size:16px;margin-bottom:13px}.story-point{font-size:14px;padding:9px 0}#story-example{margin-top:15px;padding:12px 15px}#example-text{font-size:20px;margin:6px 0 10px}#story-note{font-size:11px;margin:12px 0}.pagination{margin-top:8px;padding-top:8px}}
@media(max-width:980px){body{height:auto;min-height:100dvh;overflow:auto}.masthead{height:auto;min-height:70px;flex-wrap:wrap;gap:12px;padding:14px 18px}.wordmark span{display:none}.tools{flex-wrap:wrap;font-size:12px}#mode-status{display:none}.tools button,.tools>a{font-size:12px;padding:7px 10px}main{display:flex;flex-direction:column;padding:12px}.live-pane{height:570px;flex:none}#splitter{display:none}.story-pane{padding:24px 9px 0;min-height:680px}#chapters button{font-size:11px;min-height:42px}.chapter-meta{margin-top:24px}h1{font-size:38px}#story-lead{font-size:18px}.story-point{font-size:16px}#example-text{font-size:23px}.pagination{margin-top:20px}footer{padding:14px 18px;flex-wrap:wrap}#key-help{display:none}.preview-bar{padding-inline:10px;gap:7px}.preview-bar>span{font-size:10px;letter-spacing:.8px}.preview-controls{gap:0}.preview-controls button,.preview-controls select{font-size:11px;padding:5px}.preview-foot{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-height:811px) and (max-height:980px) and (min-width:981px){#chapters{padding-bottom:15px}.chapter-meta{margin:18px 0 13px}h1{font-size:35px;margin-bottom:13px}#story-lead{font-size:17px;margin-bottom:15px}.story-point{font-size:15px;padding:10px 0}#story-example{margin-top:16px;padding:13px 16px}#example-text{font-size:21px;margin:7px 0 11px}#story-note{font-size:11px;margin:13px 0}.pagination{padding-top:9px;margin-top:9px}}
