.playground-walk { background:#fff; }
.playground-room { position:relative; padding:40px 0 72px; }
.playground-architecture { display:none; }
.playground-heading { position:relative; text-align:center; color:#171717; }
.playground-heading h2 { margin:0; font-size:clamp(2rem,5vw,4.25rem); letter-spacing:-.07em; line-height:1; }
.playground-heading p { margin:12px 0 0; font-size:.875rem; color:#565656; }
.playground-room .demo-list { border:0; padding:40px 0 0; }
.playground-room .demo-image { width:100%; padding:0; text-align:left; }
.playground-room .demo-copy h3 { font-size:clamp(1.4rem,3vw,2.5rem); }


.is-spatial .playground-room {
  position:relative;
  height:calc(100dvh - 82px);
  overflow:clip;
  padding:0;
  isolation:isolate;
  background:#fff;
}
.is-spatial .playground-architecture {
  display:block;
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 47%,#fff 4%,transparent 65%),
    conic-gradient(from 57deg at 50% 47%,#f6f6f5 0deg,#fafafa 67deg,#f1f1ef 68deg,#fff 69deg,#fafaf9 179deg,#eaeae8 180deg,#f8f8f7 181deg,#f6f6f5 250deg,#fff 251deg,#fcfcfc 359deg,#f6f6f5);
}
.is-spatial .playground-heading {
  position:absolute;
  inset:22px 0 auto;
  z-index:2;
  pointer-events:none;
}
.is-spatial .demo-list {
  position:absolute;
  inset:0;
  width:100%;
  margin:0;
  padding:0;
  perspective:900px;
  perspective-origin:50% 48%;
}
.is-spatial .demo-entry {
  position:absolute;
  left:50%;
  top:46%;
  width:clamp(142px,27vw,390px);
  display:block;
  margin:0;
  transform:translate3d(calc(-50% + var(--work-x, 0px)),-50%,var(--work-z, -900px)) rotateY(var(--work-angle, 0deg));
  opacity:var(--work-opacity, 0);
}
.is-spatial .demo-entry[data-passed] { visibility:hidden; }
.is-spatial .demo-image {
  aspect-ratio:1.23;
  height:auto;
  min-height:0;
  border-radius:4px;
  box-shadow:0 7px 18px #25231d26, 0 1px 4px #25231d24;
}
.is-spatial .bark-demo-thumbnail { min-height:0; }
.is-spatial .demo-copy { display:block; margin-top:12px; }
.is-spatial .demo-copy .demo-meta { display:none; }
.is-spatial .demo-copy h3 { margin:0; font-size:clamp(.85rem,1.55vw,1.35rem); letter-spacing:-.035em; line-height:1.15; }
.is-spatial .demo-copy > p:last-child { display:none; }

.playground-dialog {
  border:0;
  padding:0;
  width:min(880px,calc(100% - 36px));
  max-width:none;
  max-height:calc(100dvh - 40px);
  overflow:auto;
  background:#fff;
  color:#171717;
  border-radius:18px;
  box-shadow:0 24px 90px #312d2926;
}
.playground-dialog::backdrop {
  background:rgba(252,252,251,.68);
  backdrop-filter:blur(20px);
}
.playground-work { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); position:relative; }
.playground-work-image .demo-image { width:100%; height:100%; min-height:0; min-width:0; min-block-size:320px; border-radius:0; box-shadow:none; pointer-events:none; }
.playground-work-image .bark-demo-thumbnail { min-height:0; }
.playground-work-image .playground-wildfire-poster { position:absolute; inset:0; object-fit:cover; }
.playground-work-copy { align-self:center; padding:55px clamp(24px,4vw,52px) 44px; }
.playground-work-copy h2 { margin:10px 0 16px; font-size:clamp(1.6rem,3vw,2.65rem); line-height:1.07; letter-spacing:-.05em; }
.playground-work-meta { font-size:.8125rem; color:#5c5c5c; }
.playground-work-description { line-height:1.55; color:#464646; }
.playground-work-link { display:inline-flex; gap:8px; margin-top:16px; color:#171717; text-underline-offset:4px; }
.playground-close { position:absolute; top:8px; right:9px; z-index:2; width:44px; height:44px; border:0; background:#fff; color:#161616; border-radius:50%; font:28px/1 system-ui; cursor:pointer; }
html.playground-preview-open { overflow:hidden; }
@media (max-width:600px) {
  .is-spatial .playground-heading { inset-block-start:15px; }
  .is-spatial .demo-image :is(.bark-demo-label,.xr-demo-cover-title,.wildfire-demo-label) { display:none; }
  .playground-work { grid-template-columns:1fr; }
  .playground-work-image .demo-image { min-block-size:0; aspect-ratio:1.55; }
  .playground-work-copy { padding:22px 24px 30px; }
}
@media (max-width:760px) {
  .is-spatial .playground-room { height:calc(100dvh - 105px); }
}
html:has(.demos-view.active .is-spatial) { overflow:hidden; overscroll-behavior:none; }
body:has(.demos-view.active) { overflow-x:clip; }
.is-spatial .playground-architecture {
  filter:blur(2px);
}
.is-spatial .playground-architecture::after {
  content:"";
  position:absolute;
  inset:0;
  clip-path:polygon(50% 47%,100% 0,100% 95.75%);
  background:linear-gradient(103deg,#fff 48%,#f7f7f6 78%,#efefed);
}
.is-spatial .playground-architecture::before {
  content:"";
  position:absolute;
  inset:0;
  clip-path:polygon(50% 47%,0 0,0 95.75%);
  background:linear-gradient(257deg,#fff 48%,#f8f8f7 78%,#f0f0ee);
}

.playground-work-link[hidden] { display:none; }
.desktop-pet-cover {
  background:#a99d89 url('assets/bobo-desktop-backdrop.webp') center / cover no-repeat;
}
.desktop-pet-cover video {
  display:block;
  position:absolute;
  inset:4%;
  width:92%;
  height:92%;
  object-fit:contain;
}
