/* 1.6 — Переплёт памяти: paper, woven cloth, engraved brass */
:root{--f-paper:#d8ceba;--f-paper-dark:#c8c1ad;--f-ink:#354239;--f-muted:#aab49f;--f-brass:#d0b986;--f-cloth:#29362d;--radius:5px}
button,input,textarea,.btn,.modal{border-radius:5px}.btn{min-height:46px;transition:transform .18s,background .2s,box-shadow .2s}.btn:active{transform:translateY(1px) scale(.98)}button:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:2px solid #d8bd83;outline-offset:4px}.btn:disabled{cursor:default;opacity:.48}.f-heading{align-items:center}.f-heading h1{font-size:clamp(32px,3.7vw,49px)}.f-heading .btn{font-size:11px}.f-heading+.f-outline{margin-top:4px}
.f-counter{display:flex;gap:9px;align-items:center;color:var(--f-brass)}.f-counter strong{font:48px/.9 Cormorant,Georgia,serif}.f-counter span{font-size:11px;white-space:nowrap}.f-counter small{display:block;margin-top:4px;color:var(--f-muted);font-size:9px}.f-collection-caption{display:flex;justify-content:space-between;align-items:center;border-block:1px solid var(--line);padding:13px 0;margin-bottom:17px;gap:20px;color:var(--f-muted);font-size:10px}.f-collection-caption>span:last-child{display:flex;gap:6px;align-items:center}
.f-item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.f-item{position:relative;padding:11px 12px;text-align:left;min-width:0;background:linear-gradient(145deg,#334135,#242f28);border:1px solid #b9bfa52c;box-shadow:inset 0 0 0 4px #19251b29;overflow:hidden;animation:f-lift .3s both;animation-delay:calc(var(--order)*18ms);touch-action:pan-y}.f-item:before,.f-item-stage:before{content:'';position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(0deg,transparent 0 3px,#d7d1ad04 3px 4px),repeating-linear-gradient(90deg,transparent 0 3px,#00000009 3px 4px);opacity:.7}.f-item:hover{border-color:#d1b98680;background:linear-gradient(145deg,#3b493b,#2b382e)}.f-item-top{position:relative;display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#9aaa90;height:18px}.f-item-top svg{width:14px}.f-new{background:#cbb789;color:#26342a;font-size:7px;letter-spacing:.1em;padding:3px 5px;border-radius:2px}.f-item-art{height:132px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse at center,#baba9040,transparent 68%);margin:0 -5px 5px}.f-item-art img{width:100%;height:100%;object-fit:contain;padding:8px;transform:scale(var(--item-scale,1));filter:drop-shadow(0 11px 10px #0d150d77);transition:transform .3s}.f-item:hover .f-item-art img{transform:translateY(-3px) scale(var(--item-scale,1))}.f-item-caption{border-top:1px solid #b7be9d26;padding-top:10px;position:relative}.f-item-caption>span{color:#a5b39c;font-size:8px}.f-item-caption h3{font:23px/1.05 Cormorant,Georgia,serif;margin:6px 0 9px;color:#e6e0c9;min-height:48px}.f-item-caption small{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#afbb9e}.f-item-caption svg{width:14px}.f-rare .f-item-caption>span:after{content:' ◆';color:#d7b875;font-size:7px}.f-unknown{margin-top:22px;border-top:1px solid var(--line);padding-top:8px}.f-unknown summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:14px 0;font-size:12px;color:#b2bda5}.f-unknown summary span{margin-left:auto;font-size:10px}.f-unknown summary:after{content:'+';font-size:21px}.f-unknown[open] summary:after{content:'−'}.f-unknown-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.f-unknown-grid>div{display:grid;place-items:center;min-height:108px;border:1px dashed #bac7a22b;background:#27352a66;border-radius:4px;color:#85957d}.f-hidden-object svg{width:34px;height:34px;opacity:.4}.f-unknown-grid small{font-size:8px}.f-unknown>p{font-size:10px;color:#98a58d;padding-top:10px}
.f-resume{display:flex;align-items:center;gap:15px;width:100%;text-align:left;background:#354231;border:1px solid #b3b99245;position:relative;padding:17px 20px;margin-bottom:24px;color:#e0d6b5}.f-bookmark{align-self:stretch;display:grid;place-items:center;width:35px;background:#b8a375;color:#283a30;clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%)}.f-resume>div{flex:1}.f-resume small,.f-resume strong,.f-resume>div>span{display:block}.f-resume small{font-size:9px;color:#bac4a5}.f-resume strong{font:25px Cormorant,Georgia,serif;margin:4px 0}.f-resume>div>span{font-size:8px;color:#a9b797}.f-journal-chapter{margin-bottom:17px}.f-journal-chapter>summary{display:flex;align-items:center;gap:13px;padding:14px 0;list-style:none;cursor:pointer;border-bottom:1px solid var(--line)}summary::-webkit-details-marker{display:none}.f-chapter-index{font:28px Cormorant,Georgia,serif;width:37px;color:#bea878}.f-journal-chapter>summary>div{flex:1}.f-journal-chapter>summary small{font-size:8px;color:#98a58d}.f-journal-chapter h2{font:29px Cormorant,Georgia,serif;margin:3px 0}.f-small-seal{width:40px;height:40px}.f-entry-list{display:grid;gap:13px;padding-top:14px}.f-entry{background:linear-gradient(125deg,#d9d0bd,#c8c3ad);color:var(--f-ink);border:1px solid #e0d4b445;box-shadow:0 8px 25px #090d0710;border-radius:4px;overflow:hidden}.f-entry-head{display:flex;position:relative}.f-entry-open{display:flex;gap:16px;text-align:left;padding:17px 16px 12px;flex:1;min-width:0;color:inherit}.f-entry-open>img{width:73px;height:73px;object-fit:cover;border-radius:3px;filter:saturate(.8)}.f-entry-open>span{align-self:center}.f-entry-open small{font-size:8px;color:#63705a}.f-entry-open h3{font:29px/1.06 Cormorant,Georgia,serif;margin:6px 0}.f-pin{width:45px;align-self:flex-start;min-height:51px;margin-right:9px;border-radius:0;color:#6e785e}.f-pin[aria-pressed=true]{background:#536a51;color:#e5d5a9;clip-path:polygon(0 0,100% 0,100% 100%,50% 86%,0 100%)}.f-pin svg{width:17px}.f-entry-content{margin:0 17px 17px 105px}.f-entry-choice{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.55;padding:5px 0 12px}.f-entry-choice svg{flex-shrink:0;color:#6e795e;margin-top:2px}.f-entry-item{display:flex;align-items:center;text-align:left;width:100%;border-block:1px solid #71816a30;padding:9px 0;gap:12px;color:var(--f-ink)}.f-entry-item>img{width:47px;height:47px;object-fit:contain;filter:drop-shadow(0 3px 4px #31433235)}.f-entry-item>span{flex:1}.f-entry-item small,.f-entry-item strong{display:block}.f-entry-item small{font-size:8px;color:#6f7c63}.f-entry-item strong{font-size:11px;margin:5px 0}.f-entry-actions{display:flex;gap:9px;margin-top:13px;flex-wrap:wrap}.f-entry .btn.secondary{border-color:#6c7f623a;color:#43533e;background:transparent;min-height:38px;font-size:10px;padding:9px 13px}.f-note{margin-top:15px;border-left:2px solid #899478;padding:1px 0 1px 13px}.f-note>span{display:flex;align-items:center;gap:7px;font-size:8px;color:#748166}.f-note p{font:19px/1.4 Cormorant,Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.f-personal-notes{background:var(--f-paper);color:var(--f-ink);padding:21px;margin-top:17px;border-radius:4px}.f-personal-notes>.eyebrow{color:#6d785c}.f-discovery-entry{display:flex;gap:17px;align-items:center;text-align:left;padding:17px;background:#29372b;width:100%;margin-bottom:12px;border:1px solid var(--line)}.f-discovery-entry>img{width:68px;height:68px;object-fit:contain}.f-discovery-entry>span{flex:1}.f-discovery-entry small,.f-discovery-entry strong{display:block}.f-discovery-entry small{font-size:8px;color:#a3b291}.f-discovery-entry strong{font:24px Cormorant,Georgia,serif;margin-top:5px}.f-discovery-entry p{font-size:11px;line-height:1.6;color:#b7c2a9;margin-bottom:0}.f-empty{text-align:center;padding:65px 20px;color:#a6b49a}.f-empty>svg{width:42px;height:42px;color:#c6b17e}.f-empty h2{font:32px Cormorant,Georgia,serif}.f-empty p{font-size:12px;line-height:1.6}.f-empty>.btn{margin-top:15px}
.f-chapters{padding:30px 35px 40px;max-width:1300px;margin:auto}.f-chapters-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:38px}.f-chapters-top>.btn{font-size:10px;min-height:38px;padding:9px 14px}.f-chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.f-chapter-card{position:relative;background:#26362b;border:1px solid #bbc49f2e;overflow:hidden;text-align:left;min-width:0;transition:transform .25s,border-color .25s;color:#e4dcc4}.f-chapter-card:hover{transform:translateY(-4px);border-color:#d5bb8477}.f-cover{position:relative;height:190px;overflow:hidden}.f-cover>img:first-child{width:100%;height:100%;object-fit:cover;transition:transform .6s}.f-chapter-card:hover .f-cover>img:first-child{transform:scale(1.045)}.f-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#16251abb,transparent 75%);pointer-events:none}.f-cover-number{position:absolute;top:15px;left:18px;z-index:1;font:28px Cormorant,Georgia,serif;color:#eee0b9;text-shadow:0 2px 5px #0008}.f-cloth-bookmark{position:absolute;z-index:2;top:0;right:19px;width:25px;height:62px;background:repeating-linear-gradient(90deg,transparent 0 2px,#e3cb9630 2px 3px),#b39c69;clip-path:polygon(0 0,100% 0,100% 100%,50% 79%,0 100%);filter:drop-shadow(0 2px 3px #0005)}.f-cover-seal{position:absolute;z-index:2;width:66px;height:66px;right:15px;bottom:12px;filter:drop-shadow(0 4px 5px #0007)}.f-date-stamp{position:absolute;z-index:2;bottom:15px;left:18px;border:1px solid #d6cfaa9c;padding:6px 11px;font-size:9px;letter-spacing:.13em;transform:rotate(-7deg);color:#e0d8b7;background:#24392c44}.f-date-stamp small{display:block;font-size:7px;letter-spacing:.04em;text-align:center;margin-top:3px}.f-chapter-copy{padding:19px 18px 0}.f-chapter-copy>small{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#a9b59c}.f-chapter-copy h2{font:31px/1.05 Cormorant,Georgia,serif;margin:8px 0}.f-chapter-copy>p{font-size:11px;line-height:1.6;color:#b5bea6;min-height:35px}.f-chapter-bottom{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:15px 0;font-size:11px;color:#dcc693;margin-top:17px}.f-chapter-bottom>span:first-child{flex:1}.f-dots{display:flex;gap:4px}.f-dots i{width:4px;height:4px;background:#a8b29840}.f-dots i.done{background:#ccbc8c}.f-chapter-card.sealed .f-cover>img:first-child{filter:saturate(.65)}.modal.campaign-modal{max-width:1140px}.modal.chapter-detail-modal{max-width:780px;padding:0;background:#d4ccb8;color:#364435;overflow:hidden}.f-chapter-detail{display:grid;grid-template-columns:43% 1fr;min-height:450px}.f-detail-cover{position:relative;min-height:310px}.f-detail-cover img{width:100%;height:100%;object-fit:cover;position:absolute}.f-detail-cover>span{position:absolute;bottom:30px;left:30px;font:60px Cormorant,Georgia,serif;color:#dfd1ab}.f-detail-copy{padding:50px 29px 30px}.f-detail-copy>.eyebrow{color:#738166}.f-detail-copy h2{font:42px/1 Cormorant,Georgia,serif;margin:13px 0}.f-detail-copy>p{font-size:13px;line-height:1.7}.f-chapter-facts{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0;font-size:8px;color:#627357}.f-chapter-facts span{border:1px solid #68775a35;padding:6px}.f-detail-copy .f-chapter-intro{font:20px/1.5 Cormorant,Georgia,serif;margin-bottom:25px}.f-detail-copy .btn{width:100%;margin-top:8px}.f-detail-copy .btn.secondary{color:#3e5139;border-color:#71826666}.f-outline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:23px}.f-outline>button{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);padding:12px;background:#27372a77;min-width:0}.f-outline>button.current{border-color:#b5b3886b;background:#334232}.f-outline>button>svg:first-child{width:29px;height:29px;flex-shrink:0;color:#8e9e81}.f-outline>button>img{width:42px;height:42px;object-fit:cover;border-radius:3px}.f-outline>button>span{flex:1;min-width:0}.f-outline small{font-size:7px;color:#a1ae92;display:block}.f-outline strong{font-size:10px;line-height:1.5;display:block;margin-top:5px;font-weight:500;color:#c8d1b8}.f-outline>button>.small{width:13px}.f-finished-banner{display:flex;align-items:center;gap:15px;width:100%;padding:14px 18px;border:1px solid #b6ad7059;margin-bottom:20px;background:#43503840;text-align:left}.f-finished-banner>img{width:48px;height:48px}.f-finished-banner>span{flex:1;font-size:9px;color:#bfc0a3}.f-finished-banner strong{display:block;font:24px Cormorant,Georgia,serif;color:#d6ca9e;margin-top:5px}.modal.completion-modal{max-width:660px;background:radial-gradient(ellipse at top,#43533d,#1b2b21 65%)}.f-summary{text-align:center;padding:35px}.f-summary-seal{width:95px;height:95px;margin:0 auto 19px;display:block;animation:f-stamp .55s both}.f-summary>.eyebrow{font-size:8px}.f-summary>h2{font:44px Cormorant,Georgia,serif;color:#e4d7b3;margin:11px 0}.f-summary>p{font:21px/1.45 Cormorant,Georgia,serif;color:#b4c1a5;margin:10px 0 25px}.f-summary-entries{display:grid;gap:8px;text-align:left}.f-summary-entries>div{display:flex;align-items:center;gap:8px;background:#a8b3830b;border:1px solid var(--line);padding:10px}.f-summary-entries>div>button:first-child{display:flex;gap:12px;align-items:center;text-align:left;flex:1;min-width:0}.f-summary-entries img{width:56px;height:56px;object-fit:cover;border-radius:3px}.f-summary-entries strong{font:23px Cormorant,Georgia,serif;color:#e2d7b9;display:block}.f-summary-entries small{display:block;font-size:9px;color:#a8b89a;line-height:1.5;margin-top:4px}.f-summary-item{flex-shrink:0}.f-summary-item img{object-fit:contain;width:47px;height:47px}.f-summary-bonus{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;color:#c8bd91;margin-top:19px}.f-summary-actions{display:flex;gap:10px;margin-top:26px}.f-summary-actions .btn{flex:1}
/* Item cabinet: controls stay outside the orbit gesture area */
.modal.item-modal{max-width:950px;width:100%;max-height:91dvh;overflow:hidden;padding:0;background:#d1c8b3}.f-item-detail{display:grid;grid-template-columns:1.08fr 1fr;height:min(710px,89dvh);min-height:390px}.f-item-stage{position:relative;background:radial-gradient(ellipse at 45% 35%,#73816c77,transparent 62%),linear-gradient(145deg,#344438,#1c2d23);min-width:0;display:flex;flex-direction:column;overflow:hidden}.f-stage-label{font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:#aab99c;position:absolute;top:25px;left:24px;z-index:2}.f-item-stage .item-view{width:100%;height:auto;min-height:0;flex:1;position:relative;background:transparent;isolation:isolate}.f-item-stage .item-view>img{width:100%;height:100%;object-fit:contain;padding:55px 45px 25px;filter:drop-shadow(0 18px 17px #0c1b1260)}.f-view-tools{display:flex;justify-content:center;gap:5px;position:relative;z-index:3;padding:11px 12px;background:#0c1b1655;border-top:1px solid #c3c9a214}.f-view-tools button{min-height:41px;min-width:42px;font-size:10px;color:#b4c2a7;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 11px;border:1px solid transparent}.f-view-tools button.active{background:#bec39c22;border-color:#c5bc8644;color:#ecdfb4}.f-light-switch{display:flex;justify-content:center;position:relative;z-index:3;gap:7px;padding:0 14px 14px;background:#0c1b1655}.f-light-switch button{display:flex;align-items:center;gap:6px;min-height:35px;font-size:9px;color:#aab8a0;padding:7px 11px}.f-light-switch button.active{color:#e0c487;background:#d7c39410}.f-item-sheet{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;background:linear-gradient(135deg,#dcd3be,#cbc5ae);color:#354638}.f-sheet-handle{display:none}.f-item-sheet-scroll{overflow:auto;padding:48px 27px 22px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6d7a5d55 transparent}.f-item-sheet .eyebrow{font-size:8px;color:#71805f}.f-item-sheet h2{font:39px/1.01 Cormorant,Georgia,serif;margin:13px 0 16px;color:#304537}.f-item-description{font-size:12px;line-height:1.8;margin-bottom:18px}.f-item-action>.btn{width:100%;min-height:49px;font-size:11px;gap:10px}.f-item-action>.btn[aria-pressed=true]{background:#596f48;color:#f0e4c2;box-shadow:inset 0 0 0 1px #bcc38b55}.f-detail-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.f-detail-buttons>button{display:flex;align-items:center;gap:7px;border:1px solid #73836340;min-height:44px;text-align:left;padding:9px;font-size:9px;line-height:1.3;color:#4b5e40}.f-detail-buttons>button>span{display:grid;place-items:center;border:1px solid #89947366;border-radius:50%;min-width:18px;height:18px;font-size:8px}.f-detail-buttons>button>.icon{width:13px;min-width:13px;margin-left:auto}.f-detail-buttons>button[aria-pressed=true]{background:#7e92652c;border-color:#73836388}.f-focus-copy,.f-discovery-copy{border-left:2px solid #8c996d;padding:12px 13px;margin:13px 0;background:#acb38b29}.f-focus-copy>strong{font-size:11px}.f-focus-copy p,.f-discovery-copy p{font:19px/1.45 Cormorant,Georgia,serif;margin:6px 0}.f-discovery-copy small{font-size:8px;color:#6d7b5f}.f-origin{border-top:1px solid #65745435;margin-top:20px;padding-top:18px}.f-origin>strong{display:block;font-size:11px;margin-top:7px}.f-origin blockquote{border-left:0;padding:0;font:19px/1.4 Cormorant,Georgia,serif;color:#6d765b;margin:15px 0}.f-origin .btn.secondary{color:#4b5d41;border-color:#7c8a6655;font-size:10px;width:100%}.f-sibling-strip{display:flex;gap:7px;overflow-x:auto;margin-top:23px;padding-bottom:7px;scroll-snap-type:x proximity;scrollbar-width:thin}.f-sibling-strip>button{flex:0 0 54px;height:59px;border:1px solid #8a957e30;background:#78876a16;scroll-snap-align:start;padding:4px}.f-sibling-strip>button.active{border-color:#617649;background:#72855932}.f-sibling-strip img{width:100%;height:100%;object-fit:contain}.f-model-hotspot{position:absolute;left:0;top:0;z-index:4;width:31px;height:31px;min-height:31px;border-radius:50%;display:grid;place-items:center;background:#d8c18dea;color:#34492c;border:1px solid #f4e5b4;box-shadow:0 0 0 5px #cab98325,0 3px 12px #0004;font-size:11px;font-weight:700;pointer-events:auto}.f-model-hotspot[hidden]{display:none}.f-quick{text-align:center;padding:42px 28px 28px}.f-quick>img{width:200px;height:190px;object-fit:contain;margin:10px auto;display:block;filter:drop-shadow(0 12px 14px #0005)}.f-quick h2{font:36px Cormorant,Georgia,serif;color:#e6daba;margin:10px 0}.f-quick p{font-size:12px;line-height:1.8;color:#b5c0a7}.f-quick>.btn{margin-top:12px;width:100%}
/* A small, deliberate reward ceremony */
.modal.memory-modal{max-width:650px;background:#1c2d22;overflow:auto}.f-reward{position:relative;padding:27px 31px 25px;text-align:center;overflow:hidden;background:radial-gradient(ellipse at 50% 26%,#8a95663b,transparent 65%)}.f-reward-top{display:flex;align-items:center;justify-content:space-between;gap:13px;padding-right:33px}.f-reward-top>.eyebrow{font-size:8px;letter-spacing:.12em;text-align:left;color:#c0c6a2}.f-reward-bag{width:37px;height:37px;display:grid;place-items:center;border:1px solid #d1bd844c;background:#cabc8514;border-radius:5px;color:#d3c18e}.f-reveal-stage{height:265px;position:relative;margin:2px auto 0;max-width:400px}.f-reward-model{position:relative;width:100%;height:100%;z-index:1;animation:f-reveal .85s both}.f-reward-model>img{width:100%;height:100%;object-fit:contain;padding:18px 50px 30px;filter:drop-shadow(0 20px 17px #020b0666)}.f-reveal-orbit{position:absolute;inset:32px 15% 28px;border:1px solid #c2b97f2b;border-radius:50%;transform:rotate(-22deg);animation:f-orbit .8s both}.f-reveal-orbit:before{content:'';position:absolute;inset:11px;border:1px dashed #c5b77e22;border-radius:50%}.f-reveal-caption{position:absolute;bottom:0;left:0;right:0;z-index:2;color:#a3b18e;font-size:8px;letter-spacing:.12em}.f-reward-copy{animation:f-lift .4s .2s both}.f-reward h2{font:43px/1.04 Cormorant,Georgia,serif;margin:16px 0;color:#e6d9b3}.f-reward-copy>p{font:21px/1.45 Cormorant,Georgia,serif;color:#b6c4a3;max-width:490px;margin:0 auto}.f-reward-stats{display:flex;justify-content:center;gap:38px;border-block:1px solid var(--line);padding:15px 0;margin:22px 0 18px}.f-reward-stats>span{font:26px Cormorant,Georgia,serif;color:#d2c18e}.f-reward-stats small{display:block;font:8px Manrope,sans-serif;color:#9bac89;margin-top:4px}.f-reward #reward-actions{display:flex;gap:9px}.f-reward #reward-actions>.btn{flex:1;font-size:10px;padding-inline:13px;gap:6px}.f-reward-extra{margin-top:15px;display:flex;justify-content:center}.f-reward-extra>span{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #aeba8730;padding:7px 15px;background:#b3b9850a}.f-reward-extra img{width:44px;height:44px;object-fit:contain}.f-reward-extra small{font-size:8px;color:#acb89a;display:block}.f-reward-extra strong{font-size:11px;color:#d6c99f;display:block;margin-top:5px}.f-reward-copy>.f-reward-foot{font:9px/1.5 Manrope,sans-serif;color:#8fa581;margin-top:17px}.f-reward-receipt{font-size:10px;line-height:1.6;color:#c0cca9;margin-top:16px;display:flex;align-items:center;justify-content:center;gap:7px}.f-reward-receipt[hidden]{display:none}.f-reward-fly{position:fixed;width:90px;height:90px;object-fit:contain;pointer-events:none;z-index:20000;filter:drop-shadow(0 4px 9px #0e170777)}.f-reward.collected .f-reward-bag{background:#839d4c4a;border-color:#cad4a199;animation:f-bag .3s}.f-reward.collected .f-reveal-stage{opacity:.65;transition:opacity .3s}
.f-reader .r-reader-scroll{touch-action:pan-y}.f-reader .r-leaf{will-change:transform}.f-reader .r-reader-art{cursor:zoom-in}.f-reader .r-reader-art small{display:flex;gap:6px;align-items:center;font-size:8px;color:#c0c7a5;margin-top:14px}.f-reader .r-reader-art small svg{width:12px}.f-reader .r-reader-tools button[aria-pressed=true]{color:#344a32;background:#9dba8a44}.f-reader.r-night .r-reader-tools button[aria-pressed=true]{color:#ded3b5}.f-choices{display:grid;gap:10px;margin:20px 0 13px}.f-choices>button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid #6779514b;background:#a3ad8514;padding:15px;color:#3c5237;transition:background .2s,border-color .2s,transform .2s;min-height:73px}.f-choice-symbol{width:31px;height:31px;flex-shrink:0;display:grid;place-items:center;color:#7c8c62}.f-choices>button>span:nth-child(2){font:21px/1.23 Cormorant,Georgia,serif;flex:1}.f-choices>button>i{width:20px;height:20px;border:1px solid #7a88664a;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.f-choices>button.selected{background:#728d5c24;border-color:#657f51a6;box-shadow:inset 3px 0 #829564}.f-choices>button.selected>i{background:#5c774b;border-color:#5c774b;color:#eee2be}.f-choices>button:disabled{opacity:1;cursor:default}.f-choice-hint{font-size:10px;line-height:1.6;color:#758465;margin:9px 0}.r-night .f-choices>button{color:#d3d8b9;border-color:#a4b18742;background:#b7b78808}.r-night .f-choices>button.selected{background:#aabc8c18;border-color:#a6b78477}.r-night .f-choice-symbol,.r-night .f-choice-hint{color:#a4b38d}.f-scene-overlay{position:absolute;inset:0;z-index:12;background:#112119f7;display:flex;flex-direction:column;padding:65px 20px 20px;overflow:auto}.f-scene-overlay>.icon-btn{position:absolute;top:16px;right:17px}.f-scene-overlay>div{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;touch-action:pan-x pan-y pinch-zoom}.f-scene-overlay img{width:100%;height:100%;object-fit:contain;transition:width .25s,height .25s;cursor:zoom-in}.f-scene-overlay.zoomed img{width:180%;height:auto;max-width:none;cursor:zoom-out}.f-scene-overlay small{text-align:center;color:#9dad90;font-size:9px;padding-top:13px}.f-scene-overlay+.r-reader{visibility:hidden}
/* Intro polish: ink contour, shallow perspective and a passing brass reflection */
.v-game-title{perspective:900px}.v-game-title h1 span{transform-origin:50% 100%}.v-sigil:after{content:'';position:absolute;inset:-12%;background:linear-gradient(110deg,transparent 35%,#ffe9aa55 48%,transparent 60%);mix-blend-mode:screen;transform:translateX(-140%);animation:f-sigil-glint 1.5s 5.5s both;pointer-events:none}.v-maker{position:relative}.v-maker:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 36%,#f5e5c41c 48%,transparent 60%);animation:f-sigil-glint 1.3s .9s both;pointer-events:none}.v-title-sub i{animation:f-line-grow .7s 5.7s both;transform-origin:center}.d-traces{gap:13px}.d-trace{border-radius:5px;min-height:270px}.d-trace-copy{padding:18px}.d-trace-copy h2{font-size:28px}.d-trace-copy p{font-size:11px;line-height:1.6}.d-opening,.d-route-card,.d-paper,.d-note,.d-map-panel,.d-passport{border-radius:5px}.d-current-chapter{border-radius:5px}.modal-backdrop{background:#08130ec9;backdrop-filter:blur(9px)}
@keyframes f-lift{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes f-reveal{from{opacity:0;transform:translateY(23px) scale(.84);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}@keyframes f-orbit{from{opacity:0;transform:rotate(-40deg) scale(.8)}to{opacity:1;transform:rotate(-22deg)}}@keyframes f-stamp{from{opacity:0;transform:scale(1.35) rotate(-13deg)}to{opacity:1;transform:scale(1) rotate(-5deg)}}@keyframes f-bag{50%{transform:scale(1.17) rotate(-7deg)}}@keyframes f-sigil-glint{from{transform:translateX(-140%);opacity:0}30%{opacity:1}to{transform:translateX(140%);opacity:0}}@keyframes f-line-grow{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}
@media(min-width:1400px){.f-item-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.f-item-art{height:147px}}
@media(max-width:1000px){.f-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.f-cover{height:160px}.f-chapter-copy{padding:15px 14px 0}.f-chapter-copy h2{font-size:28px}.f-chapter-grid{gap:11px}.f-outline>button{padding:10px;gap:7px}.f-outline>button>img{width:35px;height:35px}.f-outline strong{font-size:9px}}
@media(max-width:760px){.f-heading{gap:11px}.f-heading h1{font-size:34px}.f-heading .btn{font-size:9px;padding:9px 11px;min-height:41px;white-space:nowrap}.f-counter strong{font-size:39px}.f-counter span{font-size:9px}.f-collection-caption{font-size:9px;line-height:1.6;gap:11px}.f-item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.f-item{padding:9px}.f-item-art{height:113px}.f-item-caption h3{font-size:21px;min-height:43px}.f-item-caption>span{font-size:7px}.f-item-caption small{font-size:8px}.f-unknown-grid{grid-template-columns:repeat(4,1fr)}.f-entry-open{padding:14px 13px 10px;gap:12px}.f-entry-open>img{width:58px;height:62px}.f-entry-open h3{font-size:25px}.f-entry-content{margin:0 14px 16px 84px}.f-entry-open small{font-size:7px;line-height:1.6;display:block}.f-entry-choice{font-size:11px}.f-pin{width:36px;min-height:46px;margin-right:7px}.f-chapters{padding:27px 21px 30px}.f-chapters-top{margin-bottom:27px}.f-chapter-grid{grid-template-columns:1fr;gap:13px}.f-chapter-card{display:grid;grid-template-columns:42% 1fr;min-height:180px}.f-cover{height:100%;min-height:180px}.f-chapter-copy{padding:17px 16px 0}.f-chapter-copy>p{font-size:10px;min-height:32px;margin-top:9px}.f-chapter-copy h2{font-size:29px}.f-chapter-bottom{margin-top:12px;padding-block:12px;font-size:10px}.f-cover-number{top:13px;left:13px;font-size:24px}.f-cloth-bookmark{right:12px;width:20px;height:47px}.f-cover-seal{width:52px;height:52px;bottom:11px;right:10px}.f-date-stamp{bottom:13px;left:12px;font-size:8px;padding:5px 8px}.f-date-stamp small{font-size:6px}.f-chapter-detail{grid-template-columns:1fr}.f-detail-cover{height:205px;min-height:205px}.f-detail-cover>span{left:25px;bottom:14px;font-size:47px}.f-detail-copy{padding:23px}.f-detail-copy h2{font-size:37px}.f-detail-copy .f-chapter-intro{font-size:20px;margin-bottom:15px}.modal.chapter-detail-modal{overflow:auto;max-height:93dvh}.f-outline{gap:6px;margin-bottom:18px}.f-outline>button{display:flex;flex-direction:column;align-items:flex-start;padding:10px 8px;gap:8px;min-height:96px;position:relative}.f-outline>button>img,.f-outline>button>svg:first-child{width:26px;height:26px}.f-outline>button>span{flex:0}.f-outline small{font-size:6px}.f-outline strong{font-size:9px;line-height:1.3;margin-top:4px}.f-outline>button>.small:last-child{position:absolute;right:6px;top:7px;width:11px}.f-summary{padding:34px 20px 25px}.f-summary>h2{font-size:37px}.f-summary-entries strong{font-size:22px}.f-summary-entries small{font-size:8px}.f-summary-entries img{width:43px;height:50px}.f-summary-actions .btn{font-size:10px;padding-inline:10px}.modal-backdrop:has(.item-modal){padding:0}.modal.item-modal{height:100dvh;max-height:100dvh;border:none;border-radius:0;width:100%}.f-item-detail{display:flex;flex-direction:column;height:100%;min-height:0}.f-item-stage{height:45%;flex-shrink:0;padding-top:env(safe-area-inset-top);transition:height .28s}.f-stage-label{top:max(23px,env(safe-area-inset-top));left:20px;font-size:7px}.f-item-stage .item-view{height:calc(100% - 81px);flex:1}.f-item-stage .item-view>img{padding:33px 70px 7px}.f-view-tools{padding:4px 13px;gap:8px}.f-view-tools button{min-height:37px;padding:7px 12px}.f-light-switch{padding:0 10px 5px;gap:7px}.f-light-switch button{min-height:31px;font-size:8px}.f-item-sheet{flex:1;min-height:0;z-index:2;box-shadow:0 -8px 24px #0b160d25}.f-sheet-handle{display:flex;align-items:center;justify-content:center;min-height:25px;width:100%;touch-action:none;cursor:ns-resize}.f-sheet-handle>i{display:block;width:33px;height:3px;border-radius:2px;background:#8b987961}.f-item-sheet-scroll{padding:9px 23px max(25px,env(safe-area-inset-bottom))}.f-item-sheet h2{font-size:34px;margin:8px 0 12px}.f-item-description{font-size:11px;line-height:1.7;margin-bottom:14px}.f-item-action>.btn{min-height:47px}.f-item-detail.sheet-expanded .f-item-stage{height:25%}.f-item-detail.sheet-expanded .f-stage-label{display:none}.f-item-detail.sheet-expanded .f-light-switch{display:none}.f-item-detail.sheet-expanded .f-item-stage .item-view{min-height:50px}.f-item-detail.sheet-expanded .f-view-tools{padding-block:1px}.f-detail-buttons{gap:8px}.f-reward{padding:25px 20px 22px}.f-reveal-stage{height:235px}.f-reward h2{font-size:36px}.f-reward-copy>p{font-size:20px}.f-reward-stats{margin-block:18px 15px;gap:29px}.f-reward #reward-actions{flex-direction:column}.f-reward #reward-actions>.btn{min-height:46px;font-size:11px}.f-reader .r-reader-art small{display:none}.f-reader .r-reader-tools{margin-inline:19px}.f-reader .r-reader-tools .row{gap:1px}.f-reader .r-reader-tools button{min-width:32px;padding-inline:5px}.f-reader .r-book-title{font-size:8px;gap:6px}.f-reader .r-reader-actions .btn{padding-inline:12px;font-size:10px}.f-choices>button{padding:13px 11px;min-height:70px;gap:9px}.f-choices>button>span:nth-child(2){font-size:21px}.f-choice-symbol{width:26px}.f-choice-symbol svg{width:22px}.d-trace{min-height:255px}.d-trace-copy h2{font-size:27px}.d-trace-copy{padding:17px}.d-trace-copy p{font-size:10px}}
@media(max-width:470px){.f-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.f-item-art{height:129px}.f-item-caption h3{font-size:23px;min-height:45px}.f-item-caption small{font-size:9px}.f-unknown-grid{grid-template-columns:repeat(3,1fr)}.f-entry-content{margin-left:15px}.f-chapter-card{grid-template-columns:40% 1fr}.f-cover{min-height:191px}.f-chapter-copy{padding-inline:12px}.f-chapter-copy>small{font-size:7px}.f-chapter-copy h2{font-size:27px}.f-dots{gap:3px}.f-summary-entries>div{padding:9px}.f-summary-entries>div>button:first-child{gap:10px}.f-summary-item img{width:38px}.f-reward-top>.eyebrow{font-size:7px;max-width:220px}.f-reveal-stage{height:215px}}
@media(max-height:680px) and (max-width:760px){.f-reveal-stage{height:175px}.f-reward h2{font-size:31px;margin-top:12px}.f-reward-copy>p{font-size:18px}.f-reward-stats{padding:10px 0;margin:13px 0}.f-reward{padding-top:20px}.f-reward-copy>.f-reward-foot{font-size:8px;margin-top:12px}.f-item-stage{height:43%}.f-reader .r-reader-tools{min-height:42px}.f-choice-hint{font-size:9px}}
.reduce-motion .f-item,.reduce-motion .f-reward-model,.reduce-motion .f-reward-copy,.reduce-motion .f-reveal-orbit,.reduce-motion .f-summary-seal,.reduce-motion .f-reward-bag,.reduce-motion .v-sigil:after,.reduce-motion .v-maker:after,.reduce-motion .v-title-sub i{animation:none!important}.reduce-motion .f-item-detail *,.reduce-motion .f-item img,.reduce-motion .f-chapter-card,.reduce-motion .f-chapter-card img,.reduce-motion .f-choices>button{transition:none!important}.reduce-motion .f-reader .r-leaf{will-change:auto}
@media(prefers-reduced-motion:reduce){.f-item,.f-reward-model,.f-reward-copy,.f-reveal-orbit,.f-summary-seal,.f-reward-bag,.v-sigil:after,.v-maker:after,.v-title-sub i{animation:none!important}.f-item-detail *,.f-item img,.f-chapter-card,.f-chapter-card img,.f-choices>button{transition:none!important}}
