/* Number is baked onto wood; there is no independently drifting text layer. */
#stage.ps6Review .p29Badge{inset:9% auto 9% 5%!important;width:14%!important;height:82%!important;display:flex!important;align-items:center!important;justify-content:center!important}
#stage.ps6Review .p29BadgeArt{position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;height:100%!important;object-fit:contain!important}
#stage.ps6Review .p29Badge i{display:none!important}
#stage.ps6Review .q28Pocket button[data-q28-pastry="badge"]{padding-left:23%!important}

/* Hint belongs to the scene, never to the rotating/draggable sack. */
#stage.ps6Review .c36Scene .ps6FixedPourHint{position:absolute!important;left:32%!important;top:35%!important;right:19%!important;bottom:auto!important;display:block!important;transform:none!important;rotate:none!important;translate:none!important;text-align:center!important;font:calc(var(--u)*1.06)/1.6 QFKai,serif!important;background:#163a2de8!important;color:#f1dfb7!important;padding:calc(var(--u)*.22) calc(var(--u)*.6)!important;pointer-events:none!important;z-index:8!important}

/* Same computed body size across scenes, delivery styles and emphasis spans. */
#stage.ps6Review #dialogue #lineText{font-family:var(--voice-font),QFSimilarKai,serif!important;font-size:calc(var(--u)*1.55)!important;line-height:1.7!important;letter-spacing:.045em!important;font-weight:400!important}
#stage.ps6Review #dialogue #lineText *,#stage.ps6Review #dialogue #lineText .glyph{font-family:inherit!important;font-size:1em!important;line-height:inherit!important;font-weight:inherit!important}
#stage.ps6Review #dialogue #lineText .shout,#stage.ps6Review #dialogue #lineText .whisper{transform:none!important;scale:1!important}
#stage.ps6Review.easyRead #dialogue #lineText{font-family:"Microsoft YaHei",sans-serif!important;font-size:calc(var(--u)*1.75)!important;line-height:1.7!important;font-weight:600!important}

/* Full backdrop coverage, with a bounded content area at the old useful scale. */
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board>.m4Content{position:absolute!important;inset:14% 3% 17% 20%!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;transform:none!important;translate:none!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board.ps6HasChoices>.m4Content{bottom:32%!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board[data-x4-type="sealLab"]>.m4Content{inset:0 0 15% 0!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .x4Document{height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.38fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:4%!important;padding:0 0 5%!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .m4OriginalMount.x4Original{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;align-self:stretch!important;display:flex!important;align-items:center!important;justify-content:center!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .m4OriginalMount.x4Original>img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;object-fit:contain!important;transform:none!important;scale:1!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .x4Document>aside{position:relative!important;inset:auto!important;align-self:start!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;display:block!important;margin:3% 0 0!important;padding:0!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .x4DocFinding{bottom:0!important;left:0!important;right:0!important;height:auto!important;min-height:0!important;font-size:calc(var(--u)*1.1)!important;line-height:1.5!important;padding:0!important}

/* One-line captions use one line of space. Playable choices retain their own row. */
#stage.ps6Review.ps6Demo #dialogue{left:2.5%!important;right:2.5%!important;bottom:2%!important;height:var(--ps6-dialogue-height,12.7%)!important;min-height:0!important;padding:calc(var(--u)*1.5) calc(var(--u)*2.3) calc(var(--u)*1.2)!important}
#stage.ps6Review.ps6Demo #dialogue #lineText{margin:0!important;text-align:left!important;padding:0!important;max-height:none!important;overflow:visible!important}
#stage.ps6Review.ps6Demo #dialogue footer{left:calc(var(--u)*2.3)!important;right:calc(var(--u)*2.3)!important;bottom:calc(var(--u)*.35)!important;font-size:calc(var(--u)*.7)!important}
#stage.ps6Review.ps6Demo #readabilityToggle{top:calc(var(--u)*-1.55)!important;right:1%!important}
#stage.ps6Review.ps6Demo #u34DialoguePortrait{width:calc(var(--u)*14)!important;height:calc(var(--u)*15.4)!important;z-index:84!important}
#stage.ps6Review.ps6Demo #u34DialoguePortrait img{max-height:none!important}
#stage.ps6Review.ps6Demo.rv26FullDemo.x4Live #q4Deduction.x4Board .q4Action.y4ClassicAction{left:21%!important;right:3%!important;bottom:15.8%!important;height:auto!important;min-height:0!important;max-height:16%!important;padding:calc(var(--u)*.45) calc(var(--u)*.7)!important}
#stage.ps6Review.ps6Demo #q4Deduction .q4ActionHeader{font-size:calc(var(--u)*.98)!important;line-height:1.45!important;min-height:0!important}
#stage.ps6Review.ps6Demo #q4Deduction .q4Options button{font-size:calc(var(--u)*1.03)!important;line-height:1.45!important;min-height:calc(var(--u)*2.8)!important;padding:calc(var(--u)*.3) calc(var(--u)*.45)!important}

/* Props retain aspect ratio; scene images use cover rather than 100%/100% stretch. */
#stage.ps6Review.ps6Demo #q4Deduction .x4Transit,#stage.ps6Review.ps6Demo #q4Deduction .x4Relief{width:100%!important;height:100%!important;overflow:hidden!important;background:none!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4SceneArt,#stage.ps6Review.ps6Demo #q4Deduction .x4ReliefHouse{background-size:cover!important;background-position:center!important;opacity:0!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4DispatchBox{width:36%!important;height:45%!important;left:23%!important;bottom:8%!important;top:auto!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4OriginSheet{left:7%!important;top:26%!important;width:28%!important;height:40%!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4DispatchRegister{right:3%!important;top:7%!important;width:29%!important;height:72%!important;font-size:calc(var(--u)*1)!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4DispatchRegister strong{font-size:calc(var(--u)*3.2)!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4ReliefReceipt{left:3%!important;top:3%!important;width:35%!important;height:82%!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4ReliefObjects{left:45%!important;right:3%!important;top:19%!important;bottom:10%!important;width:auto!important;height:auto!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4HouseCount{width:100%!important;height:70%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:calc(var(--u)*.7)!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4HouseCount span{width:auto!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;font-size:calc(var(--u)*2.2)!important;display:grid!important;place-items:center!important}
#stage.ps6Review.ps6Demo #q4Deduction .m4PaperPixels{max-width:100%!important;max-height:100%!important}
#stage.ps6Review.ps6Demo #q4Deduction .m4PaperPixels img,#stage.ps6Review.ps6Demo #q4Deduction img.q4Prop{object-fit:contain!important}
#stage.ps6Review.ps6Demo #q4Deduction .x4Caption{bottom:0!important;min-height:0!important;height:auto!important;font-size:calc(var(--u)*1.05)!important;line-height:1.5!important}

#dm6Toolbar{position:absolute;z-index:330;left:36%;top:1%;display:flex;align-items:center;gap:calc(var(--u)*.5);padding:calc(var(--u)*.25) calc(var(--u)*.6);background:#10291ef0;border:1px solid #d5b97a77;color:#f4dfb7;font:calc(var(--u)*.82)/1.5 QFKai,serif;box-shadow:0 2px 8px #0005}
#dm6Toolbar button{font:inherit;padding:.12em .65em;white-space:nowrap}
#dm6Toolbar>span{max-width:calc(var(--u)*26);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dm6Cursor{position:absolute;z-index:320;pointer-events:none;width:calc(var(--u)*1.8);height:calc(var(--u)*1.8);border:2px solid #f3d599;background:#ecd28b22;border-radius:50%;box-shadow:0 0 0 3px #14271c66;transform:translate(-50%,-50%)}
#stage.dm6Active #autoBtn{pointer-events:none;opacity:.5}

#stage.ps6Review #ending{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:5%;padding:5% 6%;background:radial-gradient(ellipse at 18% 30%,#3a4e3933,transparent 58%),linear-gradient(110deg,#081810f5,#12281ff5)!important;color:#f1e4c9}
#stage.ps6Review #ending[hidden]{display:none!important}
#stage.ps6Review #ending .endingBox{width:100%;text-align:left;min-width:0}
#stage.ps6Review #ending .endingBox h2{font-size:calc(var(--u)*3.2);margin:.4em 0;letter-spacing:.16em}
#stage.ps6Review #ending .endingBox blockquote{font-size:calc(var(--u)*1.7);line-height:1.9;margin:1.4em 0;color:#e3c88f}
#stage.ps6Review #ending .endingBox p{font-size:calc(var(--u)*1.02)}
#stage.ps6Review #ending .landingActions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:calc(var(--u)*.7);font-size:calc(var(--u)*.85)}
#stage.ps6Review #ending .landingActions button,#stage.ps6Review #ending .landingActions a{font-size:inherit;padding:.5em .9em;letter-spacing:.1em;margin:0}
#ps6Guestbook{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:calc(var(--u)*1);padding:calc(var(--u)*1.7);background:#f1e6ce;color:#25392f;border:1px solid #bea36a;box-shadow:0 10px 24px #0004}
#ps6Guestbook header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.2em 1em;border-bottom:1px solid #9a805144;padding-bottom:calc(var(--u)*.7)}
#ps6Guestbook header small{font-size:calc(var(--u)*.8);letter-spacing:.25em;color:#987b49;grid-column:1/-1}
#ps6Guestbook h3{margin:0;font:500 calc(var(--u)*2)/1.4 QFKai,serif;letter-spacing:.18em}
#ps6Guestbook [data-gb-status]{font-size:calc(var(--u)*.8);color:#527158}
#ps6Guestbook [data-gb-list]{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:calc(var(--u)*.4)}
#ps6Guestbook article{padding:calc(var(--u)*.7) 0;border-bottom:1px solid #a68d5c33;overflow-wrap:anywhere}
#ps6Guestbook article>b{font-size:calc(var(--u)*1.03);font-weight:500;color:#3b5745}
#ps6Guestbook article time{font-size:calc(var(--u)*.72);color:#8f856e;float:right}
#ps6Guestbook article p{font-size:calc(var(--u)*1.08);line-height:1.6;white-space:pre-wrap;margin:.35em 0 0}
#ps6Guestbook .gb6Empty{font:calc(var(--u)*1.13)/1.8 QFKai,serif;color:#867b62;padding:1.5em .5em}
#ps6Guestbook form{display:grid;gap:calc(var(--u)*.55);margin:0}
#ps6Guestbook label{display:grid;gap:.25em;font-size:calc(var(--u)*.85);color:#76664d}
#ps6Guestbook input,#ps6Guestbook textarea{box-sizing:border-box;width:100%;font:calc(var(--u)*1.02)/1.55 serif;color:#2c4035;background:#fff9eb;border:1px solid #bca97d;padding:calc(var(--u)*.55) calc(var(--u)*.8);border-radius:0;resize:none}
#ps6Guestbook textarea{height:calc(var(--u)*5.8);min-height:0}
#ps6Guestbook .gb6SendRow{display:flex;justify-content:space-between;align-items:center}
#ps6Guestbook [data-gb-count]{font-size:calc(var(--u)*.75);color:#958971}
#ps6Guestbook button{background:#2e5140;color:#f5e6c6;font-size:calc(var(--u)*1);padding:.4em 1em;border:1px solid #a78b56}
#ps6Guestbook [data-gb-error]{font-size:calc(var(--u)*.78);line-height:1.4;min-height:1.4em;margin:0;color:#8e4937}

/* The dock overlaps 10% of its width with the sieve column: keep its caption left of that boundary. */
#stage.ps6Review #q28ProbeDock.q29ProbeDock>span{position:absolute!important;left:auto!important;right:calc(10% + max(8px,calc(var(--u)*.5)))!important;bottom:0!important;width:max-content!important;max-width:none!important;white-space:nowrap!important;transform:none!important}

/* Keep the trier fixed when its caption leaves normal flow. */
#stage.ps6Review #q28ProbeDock.q29ProbeDock>img{position:absolute!important;left:0!important;top:0!important;display:block!important}
/* alignCue anchors 55px above the mouth; leave at least 12px below the whole label at every text size. */
#stage.ps6Review .q29MouthCue{translate:0 min(0px,calc(43px - 100%))!important}
/* Only the reviewed sigh changes: its tail starts just outside the mouth. */
#stage #cast .actor .characterEmote.emote-sigh{animation:ps6SighFromMouth var(--emote-duration,3700ms) ease-out both}
#stage#stage #cast .actor .characterEmote.emote-sigh>img{transform:scaleX(var(--art-flip,1))!important}
@keyframes ps6SighFromMouth{
 0%{opacity:0;transform:translate(var(--sigh-anchor-shift),-50%) scale(.22)}
 20%{opacity:.75;transform:translate(calc(var(--sigh-anchor-shift) + var(--emote-side)*.35em),-50%) scale(.72)}
 65%{opacity:.58;transform:translate(calc(var(--sigh-anchor-shift) + var(--emote-side)*1.45em),-60%) scale(1)}
 100%{opacity:0;transform:translate(calc(var(--sigh-anchor-shift) + var(--emote-side)*2.5em),-80%) scale(1.12)}
}
@media(prefers-reduced-motion:reduce){#stage #cast .actor .characterEmote.emote-sigh{animation:ps6SighStill var(--emote-duration,3700ms) linear both}}
@keyframes ps6SighStill{0%,100%{opacity:0;transform:translate(var(--sigh-anchor-shift),-50%) scale(.72)}10%,85%{opacity:.65;transform:translate(var(--sigh-anchor-shift),-50%) scale(.72)}}
