/* =====================================================================
   Home page only: the whole market scene, moved by a camera
   ===================================================================== */
#world{position:fixed;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;pointer-events:none;z-index:1}
#world .bg{position:absolute;left:0;top:0;width:1920px;height:1080px;user-select:none;-webkit-user-drag:none}
#world iframe.cat{position:absolute}
#world #meows{position:absolute;inset:0;z-index:auto}
.hot{position:absolute;pointer-events:auto}
.stall{border-radius:22px}
.rlayer{position:absolute;inset:0;display:none}
body.home-end #homeLayer{display:block}

/* the opening close-up: a 1920x1080 picture placed on the market at (701,579), 3.99x smaller
   (measured by matching "empty beginning page example.png" against "empty page.png") */
.cu{position:absolute;left:957px;top:463px;width:1920px;height:1080px;transform:scale(.25063);transform-origin:0 0;pointer-events:none}
#closeup img{position:absolute;left:0;top:0;width:1920px;height:1080px;-webkit-user-drag:none;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);mask-composite:intersect}
/* the bubble: same cream and ink as the page panels; pops in from its tail, then floats gently */
#closeupText .bwrap{position:absolute;inset:0;transform-origin:1172px 626px;animation:bubble-in .7s cubic-bezier(.2,1.5,.4,1) .45s both,bubble-float 5s ease-in-out 1.2s infinite}
#closeupText .bubble{position:absolute;left:0;top:0;overflow:visible;filter:drop-shadow(0 14px 18px rgba(60,30,10,.28))}
#closeupText .greet{position:absolute;left:1236px;top:262px;width:520px;height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink)}
#closeupText h1{margin:0;font-size:56px;line-height:1;color:var(--ink);letter-spacing:.03em}
#closeupText .flourish{margin:18px 0 16px}
#closeupText p{margin:0;font-family:var(--display);font-size:25px;line-height:1.3;letter-spacing:.04em;color:#5a3520}
#closeupText p em{font-style:normal;color:#b8282a;text-decoration:underline wavy #d9662a;text-decoration-thickness:2px;text-underline-offset:6px}
@keyframes bubble-in{from{transform:scale(.2);opacity:0}to{transform:none;opacity:1}}
@keyframes bubble-float{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){ #closeupText .bwrap{animation:none} }

/* painted sign lettering */
#signs{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
#signs text{font-family:var(--display);font-weight:400;text-anchor:middle;stroke-linejoin:round;paint-order:stroke;font-synthesis:none}
#signs a{pointer-events:auto}
#signs.off a{pointer-events:none}
/* the sign titles stay put: hovering or pressing only lights them up */
.zs-link .zs-grow{transition:filter .25s ease}
.zs-link:hover .zs-grow,.zs-link.hov .zs-grow,.zs-link:active .zs-grow,.zs-link.press .zs-grow{filter:drop-shadow(0 0 6px rgba(255,250,235,.95)) drop-shadow(0 0 14px rgba(255,236,190,.85))}

#scroller{height:420vh;position:relative;z-index:0}

/* tablets held upright: the close-up is too narrow for the bubble beside Tyler, so it sits above her head
   (a plain rounded card with a tail pointing down, instead of the side bubble drawing) */
@media (orientation:portrait) and (min-width:601px){
  #closeupText .bwrap{transform-origin:958px 390px}
  #closeupText .bubble{display:none}
  #closeupText .greet{left:668px;top:112px;width:580px;height:240px;background:#fdf0dc;border:6px solid #b5835a;border-radius:56px;
    box-shadow:0 14px 18px rgba(60,30,10,.28)}
  #closeupText .greet::after{content:"";position:absolute;left:50%;bottom:-34px;margin-left:-26px;border:26px solid transparent;border-bottom:0;border-top:34px solid #b5835a}
  #closeupText .flourish{margin:10px 0 8px}
}

/* things on the sidewalk tables: grab one and toss it; it falls and bounces to rest on a table (or the sidewalk).
   Toned a touch toward the scene's warm night light, with a soft contact shadow where it touches the surface. */
#tableLayer{position:absolute;inset:0;pointer-events:none}
.tbl-item{position:absolute;left:0;top:0;pointer-events:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform}
.tbl-item img{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-drag:none;
  filter:brightness(.9) saturate(.86) sepia(.08);transition:filter .2s}
body.home-end .tbl-item{pointer-events:auto}
body.home-end .tbl-item:hover img{filter:brightness(.98) saturate(.9) sepia(.08) drop-shadow(0 0 4px rgba(255,236,190,.85))}
.tbl-item.held{pointer-events:none}
.tbl-shadow{position:absolute;left:0;top:0;height:8px;border-radius:50%;pointer-events:none;will-change:transform,opacity;
  background:radial-gradient(closest-side,rgba(30,14,8,.55),rgba(30,14,8,0))}
