/* Cat furniture: each region is a padded area in its own color; js/furniture.js draws a big illustration of the
   region's piece of furniture in its largest open rectangle, above the fabric and below the cats and X marks. */
.cell[data-bed]{background-color:var(--bed);background-repeat:repeat;box-shadow:inset 0 calc(var(--et,0)*3px) 0 rgba(255,255,255,.38),inset calc(var(--el,0)*3px) 0 0 rgba(255,255,255,.22),inset 0 calc(var(--eb,0)*-4px) 0 rgba(0,0,0,.13),inset calc(var(--er,0)*-3px) 0 0 rgba(0,0,0,.08)}
.cell[data-bed]::before{content:"";position:absolute;pointer-events:none;border:0 dashed var(--stitch);
  top:calc(var(--et,0)*6px - 1px);bottom:calc(var(--eb,0)*7px - 1px);left:calc(var(--el,0)*6px - 1px);right:calc(var(--er,0)*6px - 1px);
  border-top-width:calc(var(--et,0)*1.5px);border-bottom-width:calc(var(--eb,0)*1.5px);border-left-width:calc(var(--el,0)*1.5px);border-right-width:calc(var(--er,0)*1.5px);border-radius:inherit}
.cell.cat svg,.cell .x{filter:drop-shadow(0 0 1.5px var(--surface)) drop-shadow(0 0 1.5px var(--surface))}
.cell[data-bed="0"]{--bed:var(--r0)}
.cell[data-bed="1"]{--bed:var(--r1)}
.cell[data-bed="2"]{--bed:var(--r2)}
.cell[data-bed="3"]{--bed:var(--r3)}
.cell[data-bed="4"]{--bed:var(--r4)}
.cell[data-bed="5"]{--bed:var(--r5)}
.cell[data-bed="6"]{--bed:var(--r6)}
.cell[data-bed="7"]{--bed:var(--r7)}
.cell[data-bed="8"]{--bed:var(--r8)}
.cell[data-bed="9"]{--bed:var(--r9)}
.board{position:relative;isolation:isolate}
.cell svg{z-index:2}
.furn{position:absolute;z-index:1;pointer-events:none;overflow:hidden}
.furn svg{position:absolute;inset:6%;width:88%;height:88%;overflow:visible;opacity:.72;filter:drop-shadow(0 2px 0 rgba(0,0,0,.12))}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .furn svg{opacity:.6}}
:root[data-theme="dark"] .furn svg{opacity:.6}

/* each piece of furniture sits in a full-board layer masked to its own area, so it can move without ever showing in another */
.furn-clip{position:absolute;inset:0;z-index:1;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.furn-clip .furn{z-index:auto}
/* once its cat has curled up the furniture slowly shrinks to about 2x2 cells and slides in behind the sleeper (js/furniture.js) */
.furn{transition:left .5s ease,top .5s ease,width .5s ease,height .5s ease}
.furn.nap{transition:left 2s cubic-bezier(.45,0,.25,1) .4s,top 2s cubic-bezier(.45,0,.25,1) .4s,width 2s cubic-bezier(.45,0,.25,1) .4s,height 2s cubic-bezier(.45,0,.25,1) .4s}
@media (prefers-reduced-motion:reduce){.furn,.furn.nap{transition:none}}
