@property --world{syntax: "<color>"; inherits: true; initial-value: #7B68EE;}@property --world-tint{syntax: "<color>"; inherits: true; initial-value: #EFEDFD;}@property --world-mid{syntax: "<color>"; inherits: true; initial-value: #A99DF4;}@property --world-shade{syntax: "<color>"; inherits: true; initial-value: #443983;}@font-face{font-family:Vazirmatn;src:url(/assets/fonts/Vazirmatn-Regular.ttf) format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url(/assets/fonts/Vazirmatn-Bold.ttf) format("truetype");font-weight:700;font-display:swap}:root{--paper: #f4f0e6;--ink: #23202b;--muted: #655e50;--world: #7B68EE;--world-tint: #EFEDFD;--world-mid: #A99DF4;--world-shade: #443983;font-family:Vazirmatn,Tahoma,Segoe UI,sans-serif;transition:--world .9s ease,--world-tint .9s ease,--world-mid .9s ease,--world-shade .9s ease}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--world-tint);color:var(--ink);overflow:hidden}#app{position:relative;height:100vh;height:100dvh}#stage{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;background:radial-gradient(circle,color-mix(in srgb,var(--world) 22%,transparent) 1.2px,transparent 1.3px) 0 0 / 28px 28px,radial-gradient(1200px 700px at 42% 38%,#ffffff,var(--world-tint))}#shelf{position:absolute;top:20px;right:20px;width:272px;z-index:5;background:linear-gradient(180deg,var(--world-shade),color-mix(in srgb,var(--world-shade) 68%,#000));border-radius:14px;padding:18px 14px 12px;color:#f4f2fa;box-shadow:0 18px 40px #2e2a2447;transition:opacity .5s ease,transform .5s ease}#shelf.dim{opacity:.25;pointer-events:none;transform:translate(10px)}.shelf-title{margin:0 4px 2px;font-size:21px}.shelf-sub{margin:0 4px 12px;font-size:12.5px;color:color-mix(in srgb,var(--world-mid) 65%,#fff)}.shelf-foot{margin:12px 4px 2px;font-size:11px;color:color-mix(in srgb,var(--world-mid) 55%,#fff)}.book-item{display:flex;gap:10px;align-items:stretch;width:100%;background:#fff8e60f;border:1px solid rgba(255,248,230,.12);border-radius:10px;padding:9px 10px;margin-bottom:8px;cursor:pointer;color:inherit;text-align:right;font:inherit;transition:background .2s,transform .2s}.book-item:hover{background:#fff8e621;transform:translateY(-1px)}.book-item.active{background:#ffffff29;outline:2px solid var(--world-mid)}.book-item .spine{flex:0 0 16px;border-radius:3px;border:2px solid}.book-meta{display:flex;flex-direction:column;gap:1px;min-width:0}.book-meta strong{font-size:15px}.book-meta small{font-size:11.5px;color:color-mix(in srgb,var(--world-mid) 65%,#fff)}.book-meta em{font-size:11px;color:#efece6;font-style:normal}#dock{position:absolute;bottom:22px;left:50%;transform:translate(-50%);z-index:5;display:flex;align-items:center;gap:16px;background:#fffdf6eb;border:1px solid #e0d9c6;border-radius:999px;padding:10px 12px 10px 20px;box-shadow:0 12px 30px #2e2a2429;transition:opacity .5s ease}#dock.dim{opacity:.35}#selected-info{display:flex;flex-direction:column}#selected-info strong{font-size:16px}#selected-info span{font-size:12px;color:var(--muted)}#open-btn,#close-btn,#next-btn,#restart-btn{font:inherit;font-weight:700;cursor:pointer;border:0;border-radius:999px;padding:11px 22px;background:var(--world);color:#fff;box-shadow:0 6px 16px color-mix(in srgb,var(--world) 45%,transparent)}#open-btn:disabled{background:#8d867a;box-shadow:none;cursor:default}#close-btn{background:#44424e;box-shadow:none}#next-btn,#restart-btn{background:var(--world-shade);margin-top:12px}#finale{text-align:center;max-width:420px;padding:10px}#finale img{width:180px;height:220px;object-fit:cover;object-position:top;border-radius:16px;box-shadow:0 14px 34px #23202b38}#finale h3{margin:14px 0 6px;font-size:22px}#finale p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.9}#reader{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:26px;opacity:0;transition:opacity .6s ease;background:radial-gradient(900px 600px at 50% 42%,#fffcf440,#3a302047)}#reader.visible{opacity:1}#reader[hidden]{display:none}.spread{display:grid;grid-template-columns:1fr 1fr;width:min(1060px,94vw);min-height:min(600px,82vh);background:#fffdf4;border-radius:8px 18px 18px 8px;box-shadow:0 30px 80px #1e191273,inset 0 0 60px #beaa7829;overflow:hidden}.spread{position:relative}.spread{perspective:2100px}#flip-sheet{position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);transform-origin:right center;transform-style:preserve-3d;z-index:6;pointer-events:none}.sheet-face{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:6px 14px 14px 6px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.sheet-front{background-size:cover;background-position:center;box-shadow:inset 0 0 60px #78643c1f}.sheet-back{transform:rotateY(180deg);background:linear-gradient(260deg,#fffdf6,var(--world-tint));box-shadow:inset 0 0 60px #beaa782e}#flip-shadow{position:absolute;top:0;bottom:0;right:0;width:50%;background:linear-gradient(90deg,#23202b57,#23202b00 70%);z-index:5;pointer-events:none;opacity:0}#fx-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:7;pointer-events:none}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}#sound-btn{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid #e7dfc9;background:var(--world-tint);color:var(--world-shade);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:2px;transition:transform .15s ease,background .3s ease;position:relative}#sound-btn:active{transform:scale(.9)}#sound-btn.playing{background:color-mix(in srgb,var(--world) 26%,#fff)}#sound-btn.muted{opacity:.5;filter:grayscale(1)}#sound-btn .bars{display:none;align-items:flex-end;gap:1.5px;height:12px}#sound-btn.playing .bars{display:flex}#sound-btn .bars i{width:3px;background:var(--world-shade);border-radius:2px;animation:eqBounce .9s ease-in-out infinite}#sound-btn .bars i:nth-child(1){height:7px}#sound-btn .bars i:nth-child(2){height:12px;animation-delay:.25s}#sound-btn .bars i:nth-child(3){height:9px;animation-delay:.5s}@keyframes eqBounce{0%,to{transform:scaleY(.5)}50%{transform:scaleY(1.15)}}.book-star{color:#e9a13b;font-size:15px;margin-inline-start:4px}.finale-star{font-size:44px;color:#e9a13b;text-align:center;animation:starPop .8s cubic-bezier(.2,2.4,.4,1) both .15s;text-shadow:0 4px 18px rgba(233,161,59,.45)}@keyframes starPop{0%{transform:scale(0) rotate(-40deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}#next-book-btn{margin-top:14px}.page-ind{text-align:center;color:var(--muted);font-size:12.5px!important;letter-spacing:.35em;margin-top:14px!important}button{transition:transform .15s ease,box-shadow .2s ease,background .3s ease}button:active{transform:scale(.96)}.feedback{transition:background .4s ease}.feedback:not(.success):not(.miss){animation:hintPulse 2.6s ease-in-out infinite}@keyframes hintPulse{0%,to{box-shadow:0 0 #0000}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--world) 14%,transparent)}}.page{padding:30px 32px}.page-text{border-left:1px solid #e7dfc9;display:flex;flex-direction:column}.page-text .page-ind{margin-top:auto}.chapter{color:var(--world);font-weight:700;font-size:13.5px;margin:0 0 6px}.page-text h2{margin:0 0 14px;font-size:24px;line-height:1.5}.page-text p{line-height:2.1;font-size:17px;margin:0 0 12px}.feedback{background:var(--world-tint);border-radius:10px;padding:10px 14px;font-size:15px!important}.feedback.success{background:color-mix(in srgb,var(--world) 18%,#fff);animation:successPop .5s cubic-bezier(.2,2.2,.4,1)}@keyframes successPop{0%{transform:scale(.94)}to{transform:scale(1)}}.feedback.miss{background:#f6e7e1}.power-wrap{height:14px;background:#ece5d2;border-radius:999px;overflow:hidden}#power-bar{height:100%;width:0%;background:linear-gradient(90deg,var(--world-mid),var(--world));transition:width .05s linear;box-shadow:0 0 10px color-mix(in srgb,var(--world) 55%,transparent)}.power-label{font-size:13.5px!important;color:var(--muted)}#story-ending{background:#eef3e6;border-radius:10px;padding:12px 14px}.page-scene{display:grid;place-items:center;background:linear-gradient(180deg,var(--world-tint),color-mix(in srgb,var(--world-tint) 45%,var(--world-mid)))}.scene-wrap{position:relative;width:100%;max-width:540px;aspect-ratio:1824 / 1376;border-radius:14px;overflow:hidden;box-shadow:0 14px 34px #23202b2e}.scene-wrap>img{width:100%;height:100%;object-fit:cover;display:block}.scene-wrap>img.layer-bg{position:absolute;top:0;right:0;bottom:0;left:0}#bow-scene,#cage-scene,#lift-scene,#hold-scene,#gather-scene{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.rive-canvas{position:absolute;pointer-events:none;z-index:6;display:none}#nock{cursor:grab}#nock:active{cursor:grabbing}.char-card{display:flex;gap:12px;align-items:center;background:var(--world-tint);border-radius:12px;padding:8px 14px 8px 8px;margin-bottom:14px}.char-card img{width:54px;height:66px;object-fit:cover;object-position:top;border-radius:9px}.char-card div{display:flex;flex-direction:column}.char-card strong{font-size:16px}.char-card span{font-size:12px;color:var(--muted)}@media (max-width: 820px){#shelf{width:216px;top:12px;right:12px;padding:12px 10px 8px}#reader{padding:10px}.spread{grid-template-columns:1fr;overflow-y:auto}.page-scene{order:-1}.page-text{border-left:0;border-top:1px solid #e7dfc9}.page{padding:20px 18px}#dock{bottom:12px;width:calc(100vw - 24px);justify-content:space-between}}@media (prefers-reduced-motion: reduce){.feedback:not(.success):not(.miss){animation:none}.finale-star,#sound-btn .bars i,#flight-img.flap,#flight-img.walk,#finale-img{animation:none}}#flight-img.flap{animation:flyBob 2.4s ease-in-out infinite}#flight-img.flap.fast{animation-duration:1.15s}@keyframes flyBob{0%,to{translate:0 0;rotate:-1.2deg}50%{translate:0 -14px;rotate:1.2deg}}#flight-img.walk{animation:walkBob .9s ease-in-out infinite}@keyframes walkBob{0%,to{translate:0 0;rotate:-1deg}50%{translate:0 -7px;rotate:1deg}}#finale-img{animation:finaleFloat 3.2s ease-in-out infinite}@keyframes finaleFloat{0%,to{translate:0 0}50%{translate:0 -9px}}
