:root{--page:#f7f8f5;--paper:#fff;--ink:#25342e;--muted:#788179;--line:#dde3db;--primary:#456854;--soft:#eaf0e8;--book:#fffdf7;--book-ink:#3c3830}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:transparent;font:14px/1.7 Inter,'Segoe UI','Microsoft YaHei',sans-serif}body.dark{--page:#141c18;--paper:#202b24;--ink:#e9eee7;--muted:#a5afa7;--line:#354339;--primary:#aac4ad;--soft:#293a2e;--book:#29291f;--book-ink:#e8e4d5}button{font:inherit;cursor:pointer;background:none;color:inherit;border:0}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--primary);outline-offset:3px}button:disabled{opacity:.35;cursor:default}img{display:block;max-width:100%;object-fit:cover}a{color:var(--primary)}.loading,.error{padding:40px;text-align:center;color:var(--muted)}.small-note{font-size:11px;color:var(--muted)}[hidden]{display:none!important}body[data-kind=book],body[data-kind=city],body[data-kind=moon]{height:100vh;overflow:hidden}body[data-kind=book] #fragment,body[data-kind=city] #fragment,body[data-kind=moon] #fragment{height:100%}
/* The swipe's transformed card must never enlarge its iframe scroll area. */
html:has(body[data-kind=swipe]),html:has(body[data-kind=puzzle]){height:100%;overflow:hidden}
body[data-kind=swipe],body[data-kind=puzzle]{height:100svh;overflow:hidden;overscroll-behavior-x:none}
body[data-kind=swipe] #fragment,body[data-kind=puzzle] #fragment{height:100%;overflow:hidden}
body[data-kind=swipe] .swipe-demo{height:100%;overflow:hidden}
body[data-kind=swipe] .swipe-status{flex-shrink:0;min-height:34px;max-width:100%;line-height:1.7}
.puzzle-map{position:relative;width:100%;height:100%;background:var(--page);overflow:hidden;display:flex;flex-direction:column;padding:28px 50px 18px}
.puzzle-art{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.puzzle-art>svg{width:100%;height:100%;filter:drop-shadow(0 10px 14px #25342e10)}
.puzzle-geography path:hover{filter:brightness(1.15)}
.puzzle-signature{flex-shrink:0;text-align:center;padding-top:8px;color:var(--primary);font-size:15px;letter-spacing:2px}
.puzzle-signature small{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);margin-top:5px}
/* The notebook is the content, with no sidebar or management controls. */
.notebook{height:100%;padding:10px 12px;display:flex;flex-direction:column;gap:14px}.spread{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:1fr 1fr;background:var(--book);border:10px solid #e8e4d7;border-radius:8px;box-shadow:0 5px 0 #d0ccbd,0 15px 40px #36312714;color:var(--book-ink);perspective:1500px}.spread:after{content:'';position:absolute;left:calc(50% - 15px);top:0;bottom:0;width:30px;background:linear-gradient(90deg,transparent,#00000017 45%,#fff6 60%,transparent);pointer-events:none}.paper{padding:30px 38px 28px;min-width:0;position:relative;display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin}.running{font:13px/1.5 'Microsoft YaHei',sans-serif;display:flex;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid #a59b7738;color:var(--muted)}.book-date{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:24px 0}.book-date h2{font:500 42px/1.2 Georgia,SimSun,serif;margin:0}.book-date span{font-size:13px;color:var(--muted)}.book-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0}.book-photos img{width:100%;height:157px;border:5px solid white;box-shadow:0 3px 14px #0000000c}.book-photos img:first-child{grid-column:1/-1;height:350px}.book-photo-foot{font-size:12px;color:var(--muted);margin-top:16px}.writing-label{font-size:13px;color:var(--primary);margin:25px 0 10px}.paper h3{font:500 27px/1.5 SimSun,serif;margin:0 0 16px}.diary-text{font:21px/2.1 SimSun,serif;white-space:pre-wrap;margin:0}.diary-state{font-size:12px;color:var(--muted);margin-top:auto;padding-top:20px}.small-moment{border-top:1px solid #a59b7738;padding-top:18px;margin-top:18px}.small-moment img{width:210px;height:110px;border:5px solid white;box-shadow:0 2px 12px #0001}.small-moment span{font-size:12px;color:var(--muted);display:block;margin-bottom:10px}.book-number{font:italic 12px/1 Georgia,serif;display:block;text-align:right;margin-top:18px;color:var(--muted)}.book-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:3px 4px}.book-nav button{padding:9px 16px;border:1px solid var(--line);border-radius:5px;background:var(--paper);font-size:13px;min-height:44px}.book-nav span{font-size:12px;color:var(--muted);text-align:center}.spread.turning .paper:last-of-type{animation:paper-turn .48s ease both;transform-origin:left center}@keyframes paper-turn{0%{transform:rotateY(-12deg);opacity:.25}100%{transform:rotateY(0);opacity:1}}
/* Only the city map: no insight panel, dashboard or application navigation. */
.city-map{height:100%;width:100%;background:var(--page);position:relative;overflow:hidden;border-radius:10px}.city-chart{height:100%;width:100%}.map-controls{position:absolute;right:20px;bottom:20px;display:flex;gap:6px}.map-controls button{width:42px;height:42px;background:var(--paper);border:1px solid var(--line);border-radius:6px;font-size:20px}.map-controls button:last-child{font-size:12px;width:auto;padding:0 12px}.city-legend{position:absolute;bottom:25px;left:25px;display:flex;gap:20px;font-size:12px;color:var(--muted);pointer-events:none}.city-legend i{display:inline-block;width:8px;height:8px;background:var(--primary);border-radius:50%;margin-right:7px}.city-legend span:last-child i{background:var(--soft);border:1px solid var(--line)}
/* Moon phase icons and classification follow the product's actual calculation. */
.moon-panel{height:100%;padding:38px 42px;background:var(--paper);border-radius:12px;overflow:auto;scrollbar-width:thin}.moon-panel header{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:22px}.moon-panel h2{font-size:29px;font-weight:600;margin:0}.moon-panel header p{margin:6px 0 0;color:var(--muted);font-size:13px}.moon-filter{display:flex;gap:5px;flex-wrap:wrap}.moon-filter button{padding:8px 16px;font-size:12px;color:var(--muted);border-radius:5px;min-height:42px}.moon-filter button[aria-pressed=true]{background:var(--soft);color:var(--primary)}.phase-row{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;border-block:1px solid var(--line);padding:23px 0;margin-bottom:25px}.phase-option{min-width:0;padding:10px 3px;border-radius:8px;display:flex;flex-direction:column;align-items:center}.phase-option[aria-pressed=true]{background:var(--soft)}.phase-option svg{width:54px;height:54px;margin-bottom:8px}.phase-option strong{font-size:12px;font-weight:500}.phase-option small{font-size:11px;color:var(--muted)}.moon-photos{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.moon-photo{border-radius:9px;overflow:hidden;background:#101719;position:relative;aspect-ratio:1}.moon-photo img{height:100%;width:100%;object-fit:cover}.moon-photo span{position:absolute;left:0;right:0;bottom:0;padding:35px 12px 10px;font-size:11px;color:white;background:linear-gradient(transparent,#000b)}.moon-empty{padding:60px 20px;text-align:center;color:var(--muted);grid-column:1/-1;font-size:15px}.moon-source{font-size:10px;color:var(--muted);margin:17px 0 0}
/* Ticket data is a read-only excerpt: no passenger names or management controls. */
.ticket-excerpt{padding:25px 28px;background:var(--soft);min-height:100vh}.ticket-tabs{display:flex;gap:8px;align-items:center;margin-bottom:20px}.ticket-tabs button{font-size:11px;padding:8px 15px;min-height:42px;border-radius:5px;color:var(--muted)}.ticket-tabs button[aria-pressed=true]{background:var(--paper);color:var(--primary)}.ticket-card{background:var(--paper);border-radius:9px;padding:20px 23px;margin-bottom:16px;border:1px solid var(--line);position:relative;overflow:hidden}.ticket-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);border-bottom:1px dashed var(--line);padding-bottom:13px}.ticket-route{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:17px 0}.ticket-route strong{font-size:22px;letter-spacing:1px;font-weight:600}.ticket-train{text-align:center;color:var(--primary);font-size:11px;white-space:nowrap}.ticket-train:after{content:'────────→';display:block;letter-spacing:1px;color:var(--muted);font-size:9px}.ticket-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.ticket-source{font-size:10px;color:var(--muted);line-height:1.8}.ticket-empty{padding:30px 20px;color:var(--muted);text-align:center;font-size:12px}
/* Swiping affects only this local sample, with undo and a clear reset state. */
.swipe-demo{padding:14px 25px 18px;height:100vh;display:flex;flex-direction:column;align-items:center;background:var(--soft)}.swipe-top{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:11px;color:var(--muted)}.swipe-top button{font-size:11px;padding:8px 12px;min-height:40px;color:var(--primary)}.swipe-stack{position:relative;flex:1;min-height:0;width:min(76%,280px);display:flex;align-items:center;justify-content:center;perspective:800px}.swipe-stack:before,.swipe-stack:after{content:'';position:absolute;inset:12px 3px 0;border-radius:12px;background:var(--paper);border:1px solid var(--line);transform:rotate(5deg)}.swipe-stack:after{transform:rotate(-4deg)}.swipe-card{z-index:2;position:relative;width:100%;height:100%;max-height:345px;background:var(--paper);padding:7px 7px 30px;border-radius:11px;box-shadow:0 10px 30px #25342e15;touch-action:pan-y;cursor:grab;user-select:none;overflow:hidden}.swipe-card:active{cursor:grabbing}.swipe-card img{height:100%;width:100%;pointer-events:none;user-select:none;-webkit-user-drag:none;border-radius:6px}.swipe-card small{position:absolute;bottom:7px;left:12px;font-size:10px;color:var(--muted)}.swipe-tag{position:absolute;top:20px;left:20px;padding:6px 12px;border:2px solid currentColor;color:var(--primary);font-size:19px;font-weight:700;transform:rotate(-12deg);opacity:0}.swipe-actions{display:flex;gap:16px;align-items:center;justify-content:center;margin-top:17px;flex-shrink:0}.swipe-actions button{min-height:44px;padding:9px 22px;border-radius:99px;background:var(--paper);border:1px solid var(--line);font-size:12px;color:var(--primary)}.swipe-actions button:last-child{background:var(--primary);color:var(--page);border-color:var(--primary)}.swipe-status{min-height:22px;font-size:10px;color:var(--muted);margin:10px 0 0;text-align:center}.swipe-complete{position:absolute;inset:0;background:var(--paper);border-radius:10px;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.swipe-complete h3{font-size:18px}.swipe-complete button{background:var(--primary);color:var(--page);border-radius:6px;padding:10px 17px;font-size:12px}
@media(max-width:700px){.notebook{padding:7px;gap:9px}.spread{grid-template-columns:1fr;border-width:6px;overflow:auto}.spread:after{display:none}.paper{padding:20px;overflow:visible}.paper:last-of-type{border-top:1px solid var(--line)}.running{font-size:10px}.book-date{margin:20px 0}.book-date h2{font-size:31px}.book-date span{font-size:10px}.book-photos img:first-child{height:260px}.book-photos img{height:100px}.diary-text{font-size:17px}.book-nav{gap:8px}.book-nav span{font-size:10px}.book-nav button{padding:7px 11px;font-size:11px}.moon-panel{padding:24px 17px}.moon-panel header{align-items:start;flex-direction:column;gap:10px}.moon-panel h2{font-size:24px}.phase-row{grid-template-columns:repeat(4,1fr);gap:5px;padding:12px 0}.phase-option svg{width:38px;height:38px}.moon-photos{grid-template-columns:repeat(2,1fr);gap:10px}.moon-filter button{min-height:44px}.ticket-excerpt{padding:18px 17px}.ticket-card{padding:18px 17px}.ticket-route strong{font-size:20px}.city-legend{font-size:10px;left:12px;bottom:18px;gap:12px}.map-controls{right:12px;bottom:12px}.map-controls button{width:38px;height:38px}.swipe-demo{padding:10px 20px 14px}.swipe-stack{width:min(80%,260px)}}
@media(prefers-reduced-motion:reduce){.spread.turning .paper:last-of-type{animation:none}*{scroll-behavior:auto!important}}
