:root{color-scheme:dark}body{background:#0c0e13;color:#eef2fc}header,.tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;padding:12px}header{background:#151922;border-bottom:1px solid #292f3b;justify-content:space-between;padding:14px 4vw}header b,a{color:#87adff;text-decoration:none}a:hover{color:#fff}button,input,textarea,select{background:#20242e;border:1px solid #353c4c;border-radius:9px;padding:9px 14px;color:inherit;max-width:100%}button:hover,form button{background:#3967e3}.panel,.smallbox,dialog{border:1px solid #292f3b;background:#151922;color:inherit;padding:24px;margin:14px auto;border-radius:16px}.smallbox{max-width:420px;margin:12vh auto}.smallbox input,label,label>*{display:block;width:100%;margin:6px 0 15px}.tools{padding:12px 0}.container{max-width:1060px}#reader{height:calc(100dvh - 54px);display:flex;flex-direction:column}#stage{flex:1;overflow:auto;display:flex;min-height:0}#spread{margin:auto;display:flex;flex:none}#spread.vertical{flex-direction:column;gap:14px}.sheet{position:relative;user-select:none;-webkit-touch-callout:none;flex:none;background:#191c23}.sheet:after{content:"";position:absolute;inset:0}.sheet img{width:100%;display:block;pointer-events:none}#num{width:65px}#slider{width:18vw;accent-color:#6995ff}dialog{max-height:80vh;max-width:90vw;margin:auto}dialog::backdrop{background:#000b}dialog img{width:90px;display:block}dialog button{margin:4px}.quiet header,.quiet .tools>*:not(#hide){display:none}.quiet #reader{height:100dvh}.quiet .tools{padding:0}.quiet #hide{position:fixed;top:10px;right:10px;z-index:2}@media(max-width:740px){.tools{gap:4px;font-size:13px}button,input,select{padding:8px}header{font-size:14px}}@media print{body{display:none}}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:24px}.week div{display:grid;justify-items:center;gap:8px}.week progress{writing-mode:vertical-lr;direction:rtl;height:110px;width:24px;accent-color:#6493ff}.week small{color:#a8b8ce}.panel progress{accent-color:#6493ff}.panel{overflow-wrap:anywhere}.tools a{padding:5px 4px}.container>.tools:first-child{margin-bottom:20px} @media(max-width:500px){.week{gap:2px}.week small{font-size:11px}.week progress{width:16px}.panel{padding:14px}}
.library-head,.book-row{display:flex;align-items:center;gap:20px}.library-head{justify-content:space-between}.book-row img{width:clamp(68px,14vw,110px);max-height:170px;object-fit:contain}.book-info{flex:1;min-width:0}.book-info p{margin:6px 0}.book-info small{color:#adb8cc}.book-info .tools{justify-content:start;padding-bottom:0}.danger{background:#632b39;color:#ffe9ec}.danger:hover{background:#943749}
#notice{text-align:center;color:#ffd490}#spread{align-items:center}.sheet{flex-shrink:0}#stage{touch-action:manipulation}
.sheet canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}canvas{user-select:none;-webkit-touch-callout:none}dialog canvas{display:block;width:90px;height:125px;object-fit:contain;pointer-events:none}.outgoing{position:fixed;z-index:5;pointer-events:none;display:flex;align-items:center;perspective:1400px}.outgoing .sheet{backface-visibility:hidden}.sheet:not(:has([data-ready])){background:#1c212a}#motion .slash{display:none}#motion.off .slash{display:block}#motion[aria-pressed=true]{color:#98bbff}#motion{min-width:40px;min-height:40px;padding:6px}#loading{position:fixed;top:17%;left:50%;transform:translateX(-50%);border-radius:1rem;background:#141a24ed;color:#f2f6ff;padding:6px 14px;z-index:6;pointer-events:none}@media(max-width:540px){#reader>.tools:last-child{display:grid;grid-template-columns:repeat(10,auto);gap:3px;align-items:center;justify-content:center}#reader>.tools:last-child #slider{grid-row:1;grid-column:1/-1;width:90vw}#reader>.tools:last-child button{min-height:36px;padding:6px 8px}#num{width:48px;padding:6px}#reader>.tools:last-child #motion{min-width:34px}}@media print{#reader,.outgoing,dialog,canvas{display:none!important}}

@media(max-width:360px){#reader>.tools:last-child{gap:1px;font-size:12px}#reader>.tools:last-child button{padding:5px}#num{width:40px}}
@media(prefers-reduced-motion:reduce){.outgoing{display:none}}

/* Beranda */
.home{--gold:#ffb789;--line:#2a3546;--muted:#b7c2d1;margin:0;background:radial-gradient(ellipse 48% 480px at 74% 330px,#1d3552,transparent),#0b111d;color:#fff4df;font:16px/1.65 system-ui,sans-serif}
.home *{box-sizing:border-box}
.home .wrap{width:min(1180px,90%);margin:auto}
.home nav,.home footer,.home nav div,.home .brand,.home .links,.home .start{display:flex;align-items:center}
.home nav,.home footer{justify-content:space-between;border-bottom:1px solid var(--line);padding:22px 0}
.home a{color:#e0e6ef;font-size:15px;font-weight:500}
.home a:hover{color:var(--gold)}
.home .brand{gap:10px;color:#fff4df;font:bold 28px Georgia,serif;letter-spacing:-1px}
.home .brand svg,.home em,.home .kicker{color:var(--gold)}
.home nav div{gap:36px}
.home .login{border:1px solid #475469;border-radius:24px;padding:7px 18px}
.home .intro,.home .modes,.home .info{display:grid;align-items:center;grid-template-columns:45% 55%}
.home .intro{padding:52px 0 64px}
.home p{color:var(--muted);margin:0;max-width:46ch}
.home .kicker{display:flex;align-items:center;gap:12px;font-size:13px;letter-spacing:.16em;font-weight:650;text-transform:uppercase}
.home .kicker:before{content:"";width:26px;height:1px;background:currentColor}
.home h1,.home h2{font:normal clamp(58px,6.3vw,88px)/1.02 Georgia,serif;letter-spacing:-.045em;margin:22px 0}
.home h2{font-size:clamp(32px,3.15vw,44px);line-height:1.12;margin:12px 0 16px}
.home .pitch>p:not(.kicker){font-size:18px;max-width:43ch}
.home .links{gap:23px;flex-wrap:wrap;margin-top:32px}
.home .links a:not(.start){text-decoration:underline;text-underline-offset:6px;text-decoration-color:#627186}
.home .start{background:var(--gold);color:#231a1b;padding:14px 21px;border-radius:30px;gap:11px;font-weight:650}
.home .start:hover{background:#ffd2b1;color:#141623}
.home .start svg{width:21px;height:21px;flex:none}
.home .art svg{display:block;width:100%;filter:drop-shadow(0 20px 17px #03061277)}
.home .modes,.home .info{gap:7%;grid-template-columns:39% 54%;padding:60px 0;border-top:1px solid var(--line)}
.home .modes{border:1px solid #304057;background:#121e30;border-radius:24px;padding:42px 4.2%;margin-bottom:56px}
.home fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;position:relative}
.home legend,.home input{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.home label,.home label>*{margin:0;cursor:pointer}
.home label{display:contents}
.home .choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:550;min-height:106px;border-radius:14px;background:#0c1523;border:1px solid #35425a;color:#c3cedd}
.home .choice:hover{border-color:#b6bfcb}
.home input:checked+.choice{border-color:var(--gold);color:var(--gold);background:#302729}
.home input:focus-visible+.choice{outline:3px solid white;outline-offset:3px}
.home .choice i{display:flex;gap:3px;height:32px;overflow:hidden}
.home .choice i:before,.home .choice i:not(.single):after{content:"";border:1.6px solid currentColor;width:20px;min-height:28px;border-radius:3px;background:repeating-linear-gradient(currentColor 0 1px,transparent 1px 5px) center/12px 11px no-repeat}
.home i.scroll{flex-direction:column}
.home i.scroll:before,.home i.scroll:after{min-height:20px}
.home .hint{display:none;grid-column:1/-1;grid-row:2;color:#c4cfdf;min-height:3.3em}
.home input:checked~.hint{display:block}
.home .info{align-items:start}
.home details{border-bottom:1px solid var(--line);padding:16px 0}
.home details:first-child{padding-top:0}
.home summary{cursor:pointer;list-style:none;font-size:18px;font-weight:550;display:flex;justify-content:space-between;gap:16px}
.home summary::-webkit-details-marker{display:none}
.home summary:after{content:"+";color:var(--gold)}
.home details[open] summary:after{content:"−"}
.home details p{margin:10px 0 4px;max-width:62ch}
.home footer{color:var(--muted);border-top:1px solid var(--line);font-size:14px;gap:24px;padding:32px 0}
@media(max-width:940px){
 .home .intro{grid-template-columns:1fr 1fr}
 .home .links{gap:14px}
 .home .modes,.home .info{grid-template-columns:1fr;gap:26px}
 .home p{max-width:60ch}
}
@media(max-width:740px){
 .home nav{flex-wrap:wrap;gap:18px;padding:16px 0}
 .home nav div{order:3;width:100%;gap:10px;justify-content:space-between}
 .home nav a{font-size:14px}
 .home .intro{grid-template-columns:1fr;padding:36px 0 30px;gap:20px}
 .home h1{font-size:clamp(49px,12vw,70px);margin:15px 0}
 .home .pitch>p:not(.kicker){font-size:16px}
 .home .links{margin-top:22px;gap:16px}
 .home .links a{font-size:14px}
 .home .start{padding:12px 16px}
 .home .art{max-width:500px;margin:auto;width:100%}
 .home .modes{padding:26px 5%;margin-bottom:32px}
 .home fieldset{gap:7px}
 .home .choice{font-size:14px;text-align:center;line-height:1.3;padding:10px 6px}
 .home .hint{margin-top:10px;min-height:5em}
 .home .info{padding:36px 0}
 .home footer{align-items:start;flex-direction:column;gap:12px}
}
