#game.chapter-reunion #rotate,#game.chapter-reunion .crosshair{display:none}
#reunion-chapter{position:absolute;inset:64px 0 32px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.reunion-heading{padding:4px 5% 0;color:#eadfc7}
.reunion-heading h2{font:400 20px/1.5 var(--ink);letter-spacing:2px;margin:0}
.reunion-heading p{margin:3px 0 0;font-size:16px;line-height:1.5;color:#b9ac90}
.reunion-view{position:relative;min-height:0;overflow:hidden;background:#101511}
#game.chapter-reunion #scene{inset:0}
#game.chapter-reunion #landscape{object-fit:contain;transition:opacity .6s;transform-origin:center}
.reunion-footer{padding:0 5% 5px;max-height:46svh;overflow:auto;display:grid;gap:12px;scrollbar-width:thin}
.reunion-narration{max-width:1000px;margin:auto;text-align:center;color:#e9dfc7}
.reunion-narration small{display:block;font-size:14px;line-height:1.5;color:#b7a481;margin-bottom:5px}
.reunion-narration p{margin:0;font-size:24px;line-height:1.65;letter-spacing:1px;text-wrap:pretty}
.reunion-controls{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
.reunion-controls button{font-size:16px;line-height:1.5;min-height:44px;padding:9px 16px;border:0;border-bottom:1px solid #a88b5d88;background:transparent;color:#e7dac0;letter-spacing:1px}
.reunion-controls button:disabled{opacity:.35}
.reunion-controls button:focus-visible,.reunion-interaction button:focus-visible{outline:2px solid #e5c68a;outline-offset:3px}
.reunion-interaction{position:absolute;inset:0;pointer-events:none;touch-action:none}
.reunion-interaction button{pointer-events:auto;touch-action:none}
.reunion-unfold-image{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;filter:none}
#hotspots .reunion-roll-handle{position:absolute;top:48%;transform:translate(-50%,-50%);width:64px;height:42%;min-height:44px;padding:4px;background:#dfc59844;border:1px solid #b99a6388;border-radius:50%;color:#fff0cd;font-size:16px;writing-mode:vertical-rl;cursor:ew-resize;text-shadow:0 1px 4px #000;box-shadow:0 0 18px #ceac6a33}
.reunion-map-progress{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);background:#171c16bd;color:#eadcbd;padding:6px 15px;font-size:16px;white-space:nowrap;margin:0}
#game.chapter-reunion:has(.stage-routePuzzle) #landscape{filter:none}
.reunion-atlas{position:absolute;left:0;top:0;width:1000px;height:600px;transform-origin:0 0;pointer-events:none;mix-blend-mode:multiply;color:#463422}
.reunion-atlas-caption{position:absolute;left:4%;top:1%;margin:0;font:26px/1.5 var(--hand);letter-spacing:3px;color:#563821;opacity:.85}
.reunion-route-svg{position:absolute;width:100%;height:100%;overflow:visible}
.reunion-map-legend{position:absolute;bottom:3%;left:8%;display:flex;gap:22px;font:21px/1.5 var(--hand);color:#503823;opacity:.85}
.reunion-map-legend span:before{content:'';display:inline-block;width:26px;border-bottom:2px solid var(--route-color);margin-right:9px;vertical-align:middle}
#hotspots .reunion-map-node{position:absolute;transform:translate(-50%,-50%);background:transparent;color:#3f2b1b;border:0;padding:12px 18px;min-width:44px;min-height:44px;border-radius:0;font:28px/1.4 var(--hand);white-space:nowrap;text-shadow:none;letter-spacing:1px}
#hotspots .reunion-map-node:before{content:'';position:absolute;left:0;top:calc(50% - 5px);width:10px;height:10px;border-radius:50%;border:2px solid #6b3b24;background:transparent}
#hotspots .reunion-map-node:after{content:'';position:absolute;inset:0;border:2px solid transparent;border-radius:47% 53% 49% 51%;transform:rotate(-7deg)}
#hotspots .reunion-map-node.visited{color:#7c3025;background:transparent}
#hotspots .reunion-map-node.visited:before{background:#7c3025;border-color:#7c3025}
#hotspots .reunion-map-node.visited:after{border-color:#823b2ba0}
.route-line{opacity:.24;transition:opacity .5s;stroke-linejoin:round}.route-line.lit{opacity:.88;stroke-width:2.6;stroke-dasharray:none}
.reunion-node-list{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.reunion-node-list button.visited{color:#e2bd78;border-color:#d2b77d}
.reunion-node-list button.visited:before{content:'✓ ';color:#d0b677}
.reunion-sources{width:100%;display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:16px;line-height:1.6}
.reunion-sources a{color:#d6bc87}
.reunion-timeline{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;width:100%}
.reunion-timeline p{font-size:16px;line-height:1.6;margin:0;color:#d1b784;border-bottom:1px solid #b2986755;padding-bottom:4px}
#hotspots .reunion-hand-target{position:absolute;left:44%;top:66%;width:17%;height:19%;min-width:44px;min-height:44px;border:1px solid #ecd5a477;border-radius:50%;color:transparent;background:#d7bf8020;box-shadow:0 0 20px #e7bc5a22;cursor:pointer}
#game.chapter-reunion:has(.gripped) #landscape{scale:1.012;transition:scale .6s}
@keyframes reunion-approach{from{scale:1}to{scale:1.018}}
#game.chapter-reunion:has(.slow-approach) #landscape{animation:reunion-approach 5s ease-out both}
.reunion-book{position:absolute;left:0;top:0;width:840px;height:500px;transform-origin:0 0;pointer-events:none;--leaf-texture:linear-gradient(#d1b78e,#bea17a)}
.reunion-flip-engine{width:840px;height:500px;pointer-events:none}
.reunion-leaf{width:420px;height:500px;background-image:linear-gradient(120deg,#f0d8ae11,#4c321216),var(--leaf-texture);background-size:100% 100%;color:#402e1b;overflow:hidden;box-sizing:border-box}
.reunion-leaf.left{box-shadow:inset -16px 0 24px #3b25122b}
.reunion-leaf.right{box-shadow:inset 12px 0 22px #49301522}
.reunion-leaf-ink{padding:50px 28px;font:34px/1.9 var(--hand);letter-spacing:1px;color:#46301f;opacity:.9}
.reunion-leaf-ink p{font:inherit;margin:0 0 20px;white-space:nowrap}
.reunion-leaf.left .reunion-leaf-ink p:first-child{font-size:29px;margin-bottom:46px}
.reunion-leaf.right .reunion-leaf-ink{padding-top:75px}
.reunion-hand-foreground{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5}
.reunion-hand-foreground.left{clip-path:polygon(0% 56%,25% 56%,30% 61%,35% 62%,36% 66%,34% 74%,31% 81%,29% 100%,0% 100%)}
.reunion-hand-foreground.right{clip-path:polygon(74% 62%,80% 62%,86% 73%,100% 78%,100% 100%,65% 100%,66% 79%,68% 70%)}
#hotspots .reunion-page-corner{position:absolute;left:73%;top:82%;width:7%;height:7%;min-width:38px;min-height:32px;background:transparent;border:0;color:#67462899;font:14px/1.4 var(--hand);z-index:6;cursor:grab}
.reunion-interaction.page-light:after{content:'';position:absolute;inset:0;background:#fff1d1;animation:reunion-light .35s both;pointer-events:none}
@keyframes reunion-light{from{opacity:0}to{opacity:.7}}
@media(orientation:portrait){#reunion-chapter{inset:60px 0 32px;gap:10px}.reunion-heading h2{font-size:18px}.reunion-heading p{font-size:16px}.reunion-narration p{font-size:20px;line-height:1.6}.reunion-footer{padding:0 5% 5px;max-height:48svh}.reunion-controls{gap:8px}.reunion-controls button{padding:8px 10px}.reunion-atlas-caption{font-size:12px}.reunion-map-legend{font-size:12px;gap:4px 10px;bottom:3%}#hotspots .reunion-map-node{font-size:13px;min-height:40px;padding:4px 6px}.reunion-node-list{gap:5px}.reunion-timeline{gap:4px}.reunion-timeline p{font-size:16px}#hotspots .reunion-roll-handle{font-size:13px;width:44px}.reunion-map-progress{font-size:14px}}
@media(orientation:landscape) and (max-height:550px){#reunion-chapter{inset:45px 0 28px;gap:6px}.reunion-heading{display:flex;gap:16px;align-items:baseline}.reunion-heading h2{font-size:16px}.reunion-heading p{font-size:16px}.reunion-narration p{font-size:19px;line-height:1.4}.reunion-narration small{font-size:12px}.reunion-footer{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1fr);gap:15px;max-height:40svh}.reunion-controls{gap:4px 10px}.reunion-controls button{min-height:38px;padding:5px 8px;font-size:16px}.reunion-atlas-caption{font-size:12px}.reunion-map-legend{font-size:12px;bottom:2%}#hotspots .reunion-map-node{font-size:14px;min-height:36px}.reunion-node-list{gap:4px}.reunion-node-list button{font-size:14px}.reunion-timeline p{font-size:14px}}
@media(prefers-reduced-motion:reduce){#game.chapter-reunion #landscape,.reunion-interaction *{animation:none!important;transition:none!important}}

/* Paper-space type sizes remain fixed while the photographed plane scales. */
.reunion-atlas .reunion-atlas-caption{font-size:26px}
.reunion-atlas .reunion-map-legend{font-size:21px;bottom:3%}
#hotspots .reunion-atlas .reunion-map-node{font-size:28px;min-height:44px;padding:12px 18px;background:transparent}
.reunion-footer .reunion-narration p{font-size:20px}
@media(prefers-reduced-motion:reduce){.reunion-book *{transition:none!important}}

/* Let the photographed paper carry the resting page texture and lighting. */
.reunion-leaf{background-image:none;background-color:transparent}
.reunion-leaf.left,.reunion-leaf.right{box-shadow:none}
.reunion-book.is-turning .reunion-leaf{background-image:linear-gradient(120deg,#f0d8ae11,#4c321216),var(--leaf-texture)}
.reunion-book.is-turning .reunion-leaf.left{box-shadow:inset -12px 0 18px #3b25122b}
.reunion-book.is-turning .reunion-leaf.right{box-shadow:inset 10px 0 18px #49301522}
.reunion-leaf-ink{padding:48px 32px;font-size:32px;line-height:1.85;opacity:.96}
.reunion-leaf.right .reunion-leaf-ink{padding:55px 34px}
.reunion-atlas-caption{max-width:85%}
.reunion-route-svg .route-line{stroke-dasharray:5 5;opacity:.42}
.reunion-route-svg .route-line.lit{stroke-dasharray:none;opacity:.9}
#hotspots .reunion-map-node:after{inset:5px 2px;border-width:1px}
/* Readable map: screen-aligned numbered marks, with dates in full-size controls. */
.reunion-atlas{left:12%;top:19%;width:76%;height:65%;transform:none;mix-blend-mode:normal}
.reunion-atlas .reunion-atlas-caption{display:none}
.reunion-atlas .reunion-map-legend{display:none}
.reunion-route-svg{filter:drop-shadow(0 1px 1px #f6d6a3)}
.reunion-route-svg .route-line{stroke-width:5;opacity:.65;stroke-dasharray:8 7}
.reunion-route-svg .route-line.lit{stroke-width:6;opacity:1}
#hotspots.image-map .reunion-atlas .reunion-map-node{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:2px solid #4a3020;border-radius:50%;background:#f4dfb7;color:#352317;font:700 20px/1 sans-serif;box-shadow:0 2px 6px #24150655;text-shadow:none;letter-spacing:0}
#hotspots .reunion-atlas .reunion-map-node:before,#hotspots .reunion-atlas .reunion-map-node:after{display:none}
#hotspots.image-map .reunion-atlas .reunion-map-node.visited{background:#7a3028;color:#fff4d8;border-color:#fff0ce}
#hotspots.image-map .reunion-atlas .reunion-map-node.expected{box-shadow:0 0 0 5px #fce3a777,0 2px 6px #24150655}
.reunion-node-list{width:min(980px,100%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.reunion-node-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;padding:12px 16px;border:1px solid #a88b5d66;background:#e8d2a309;border-radius:3px;letter-spacing:0}
.reunion-node-list button strong{font-size:18px;font-weight:500;line-height:1.5}
.reunion-node-list button span{font-size:16px;color:#c6b99b;line-height:1.5}
.reunion-node-list button.expected{border-color:#e8ca87;background:#e8d2a31a}
.reunion-node-list button.visited{background:#bda47714}
.reunion-node-list button.visited:before{display:none}
.reunion-footer .reunion-narration p{font-size:clamp(20px,2vw,26px);line-height:1.65;color:#f6ecd7}
.reunion-heading p{color:#d9c9aa}
.reunion-hold{position:relative;isolation:isolate;overflow:hidden;min-width:240px;touch-action:none;user-select:none;-webkit-user-select:none}
.reunion-controls .reunion-hold{border:1px solid #c1a16c;background:#bfa16b12;padding:13px 26px;font-size:18px}
.reunion-hold:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--progress,0%);background:#d3b57633;z-index:-1}
.reunion-hold.holding{color:#fff1cd;border-color:#f4d899;background:#bfa16b24}
.reunion-hold-hint{width:100%;margin:0;text-align:center;color:#d5c6a6;font-size:16px;line-height:1.5}
#hotspots.image-map .reunion-roll-handle{top:20%;height:64%;width:46px;min-width:46px;transform:translateX(-50%) rotate(2deg);padding:0;border:0;border-radius:45% 35% 30% 38% / 4% 3% 4% 3%;background:transparent;box-shadow:none;cursor:grab;writing-mode:initial;touch-action:none}
#hotspots.image-map .reunion-roll-handle:active{cursor:grabbing}
.reunion-roll-paper{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#52321d,#b18b56 16%,#e4c28c 40%,#c69e65 65%,#80592f 90%,#442a19);box-shadow:-8px 2px 13px #26160755,5px 3px 9px #26160766,inset 0 0 4px #40231188;pointer-events:none}
.reunion-roll-paper:after{content:'';position:absolute;inset:0;border-radius:inherit;background:repeating-linear-gradient(177deg,transparent 0 9px,#4c2e1914 10px,transparent 12px);opacity:.7}
.reunion-unfold-image{will-change:clip-path,opacity}
@media(orientation:portrait){
 .reunion-node-list{grid-template-columns:1fr;gap:6px}
 .reunion-node-list button{padding:8px 12px;flex-direction:row;justify-content:space-between;align-items:center;gap:8px}
 .reunion-node-list button strong{font-size:16px}
 .reunion-node-list button span{font-size:14px;white-space:nowrap}
 .reunion-footer{max-height:50svh;gap:8px}
 #hotspots.image-map .reunion-atlas .reunion-map-node{width:28px;height:28px;min-width:28px;min-height:28px;font-size:16px}
 #hotspots.image-map .reunion-roll-handle{width:28px;min-width:28px}
 .reunion-controls .reunion-hold{min-width:220px}
}
@media(orientation:landscape) and (max-height:550px){.reunion-node-list button{padding:6px 8px}.reunion-node-list button strong{font-size:16px}.reunion-node-list button span{font-size:14px}.reunion-hold-hint{font-size:14px}.reunion-controls .reunion-hold{padding:9px 18px}}
/* The two supplied photographs have different viewpoints: blend them continuously
   instead of sweeping a hard seam across the room or drawing a floating cylinder. */
.reunion-unfold-image{clip-path:none;transform-origin:50% 70%;will-change:opacity,transform}
#hotspots.image-map .reunion-roll-handle{top:63%;height:60px;width:124px;min-width:100px;transform:translate(-50%,-50%);background:#251b11a6;color:#fff1d2;border:1px solid #e3c28a88;border-radius:30px;font:16px/1.5 sans-serif;text-shadow:0 1px 3px #000;box-shadow:0 2px 8px #0003}
.reunion-route-key{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;width:100%;font-size:16px;line-height:1.5;color:#e2d5b9}
.reunion-route-key span:before{content:'';display:inline-block;width:28px;border-bottom:4px solid var(--route-color);margin-right:7px;vertical-align:middle}
.reunion-route-svg .route-line{opacity:.85;stroke-width:7}
.reunion-route-svg .route-line.lit{opacity:1;stroke-width:8}
@media(orientation:portrait){#hotspots.image-map .reunion-roll-handle{width:102px;min-width:102px;height:44px;font-size:14px}.reunion-route-key{font-size:14px;gap:5px 10px}}
/* Place names are ink on the map, with no numbered interface badges. */
#hotspots.image-map .reunion-atlas .reunion-map-node,
#hotspots.image-map .reunion-atlas .reunion-map-node.visited,
#hotspots.image-map .reunion-atlas .reunion-map-node.expected{width:44px;height:44px;min-width:44px;min-height:44px;background:none;border:0;border-radius:0;box-shadow:none;color:#382319;overflow:visible;mix-blend-mode:multiply}
#hotspots.image-map .reunion-atlas .reunion-map-node:before{display:block;content:'';position:absolute;left:18px;top:18px;width:8px;height:8px;box-sizing:border-box;background:#d9b783;border:2px solid #50301f;border-radius:50%}
#hotspots.image-map .reunion-atlas .reunion-map-node span{position:absolute;font:400 clamp(26px,3.1vw,42px)/1.2 var(--hand);letter-spacing:3px;white-space:nowrap;text-shadow:0 1px 1px #f3d9abcc,-1px -1px 1px #f3d9ab99;transition:color .3s;pointer-events:none}
#hotspots.image-map .reunion-atlas .map-place-shaanbei span{left:28px;top:-13px;transform:rotate(-5deg)}
#hotspots.image-map .reunion-atlas .map-place-huining span{right:30px;top:17px;transform:rotate(-4deg)}
#hotspots.image-map .reunion-atlas .map-place-jiangtai span{left:50%;bottom:32px;transform:translateX(-50%) rotate(-4deg)}
#hotspots.image-map .reunion-atlas .reunion-map-node.visited span{color:#7c2a20;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
#hotspots.image-map .reunion-atlas .reunion-map-node.visited:before{background:#7c2a20;border-color:#7c2a20}
.reunion-node-list button,.reunion-node-list button.expected,.reunion-node-list button.visited{background:transparent;border:0;border-bottom:1px solid #a88b5d55;border-radius:0;padding:8px 12px}
.reunion-node-list button.expected{border-bottom-color:#e8ca87}
.reunion-node-list button strong{font-family:var(--hand);font-size:21px}
#hotspots.image-map .reunion-hand-target{border:0;background:transparent;box-shadow:none;border-radius:0;color:transparent;cursor:grab}
#hotspots.image-map .reunion-hand-target:after{content:'';position:absolute;inset:15%;border:1px solid #ead4aa77;border-radius:50%;opacity:calc(.2 + var(--grip,0)*.5);transform:scale(calc(1 - var(--grip,0)*.25));pointer-events:none}
#hotspots.image-map .reunion-hand-target.holding{cursor:grabbing}
@media(orientation:portrait){#hotspots.image-map .reunion-atlas .reunion-map-node span{font-size:24px;letter-spacing:1px}.reunion-node-list button strong{font-size:18px}#hotspots.image-map .reunion-atlas .map-place-shaanbei span{left:22px}#hotspots.image-map .reunion-atlas .map-place-jiangtai span{bottom:28px}}
/* Three quiet place names become the timeline through direct selection. */
#hotspots.image-map .reunion-atlas .reunion-map-node .reunion-place-label{font-size:clamp(22px,2.2vw,30px);letter-spacing:2px;pointer-events:auto;cursor:pointer;transition:scale .35s ease,color .35s ease;scale:1;transform-origin:center;min-width:48px;padding:4px}
#hotspots.image-map .reunion-atlas .reunion-map-node .reunion-place-label strong{font:inherit;font-weight:400;display:block}
#hotspots.image-map .reunion-atlas .reunion-map-node .reunion-place-label time{display:block;font:400 14px/1.6 var(--hand);letter-spacing:0;white-space:nowrap;margin-top:3px;color:#663c28;animation:reunion-date-in .35s ease both}
#hotspots.image-map .reunion-atlas .reunion-map-node.visited .reunion-place-label{text-decoration:none;scale:1.06}
#hotspots.image-map .reunion-atlas .reunion-map-node.selected .reunion-place-label{scale:1.16;color:#7c2a20}
#hotspots.image-map .reunion-atlas .map-place-shaanbei .reunion-place-label{left:25px;top:-22px}
#hotspots.image-map .reunion-atlas .map-place-huining .reunion-place-label{right:31px;top:13px}
#hotspots.image-map .reunion-atlas .map-place-jiangtai .reunion-place-label{bottom:34px}
.reunion-event-line{stroke-dasharray:var(--route-length);stroke-dashoffset:var(--route-length);opacity:0;transition:stroke-dashoffset 1.1s ease,opacity .2s;filter:drop-shadow(0 1px 1px #f2d8ab) drop-shadow(0 0 1px #24160d)}
.reunion-event-line.revealed{stroke-dashoffset:0;opacity:.9}
@keyframes reunion-date-in{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@media(orientation:portrait){#hotspots.image-map .reunion-atlas .reunion-map-node .reunion-place-label{font-size:22px;letter-spacing:1px}#hotspots.image-map .reunion-atlas .reunion-map-node .reunion-place-label time{font-size:12px}}
@media(prefers-reduced-motion:reduce){.reunion-event-line{transition:none}.reunion-place-label time{animation:none!important}}
/* A paper curl confined to the photographed book, without a second book frame. */
.reunion-diary-spread{position:absolute;inset:0;display:flex}
.reunion-diary-ink{width:420px;height:500px;padding:50px 32px;color:#46301f;font:32px/1.85 var(--hand);letter-spacing:1px}
.reunion-diary-ink p{font:inherit;margin:0 0 22px;white-space:nowrap}
.reunion-curl-canvas{position:absolute;inset:0;width:840px;height:500px;pointer-events:none}
#hotspots .reunion-page-corner{color:#5b3c24;font-family:var(--hand);font-size:14px;left:71%;top:81%;width:10%;height:8%;cursor:grab}
#hotspots .reunion-page-corner:active{cursor:grabbing}

/* The final diary is one still spread; writing stays in the clear upper paper. */
.reunion-final-book .reunion-diary-ink{padding:32px 32px;font-size:32px;line-height:1.6}
.reunion-final-book .reunion-diary-ink p{margin:0 0 18px}
.reunion-final-book .reunion-diary-ink.left p:first-child{font-size:26px;margin-bottom:27px}
.reunion-final-book .reunion-diary-ink.right{padding-top:35px;font-size:38px}
/* Darker, larger diary ink in the upper clear area of each photographed page. */
.reunion-final-book .reunion-diary-ink{padding:18px 24px;color:#25170e;font-size:40px;line-height:1.45;letter-spacing:0;font-weight:600;text-shadow:0 1px 0 #e8d0a277}
.reunion-final-book .reunion-diary-ink p{margin:0 0 13px}
.reunion-final-book .reunion-diary-ink.left p:first-child{font-size:34px;margin-bottom:18px}
.reunion-final-book .reunion-diary-ink.right{padding-top:20px;font-size:46px;line-height:1.5}
@media(orientation:portrait){#game.chapter-reunion:has(.stage-diary) #scene{transform:scale(1.55);transform-origin:53% 65%}}
@media(orientation:portrait){
 #game.chapter-reunion:has(.stage-diary) #scene{transform:none}
 #game.chapter-reunion:has(.stage-diary) #landscape{transform:scale(1.35);transform-origin:center}
 #game.chapter-reunion:has(.stage-diary) #hotspots.image-map{transform:translate(-50%,-50%) scale(1.35);transform-origin:center}
}
