/* Santa's coat stand by the door (coatstand.js, 30 Nov) */
.coatstand{position:absolute;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent;transform-origin:50% 100%}
.coatstand img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(6px 10px 10px rgba(0,0,0,.5));pointer-events:none;transition:opacity .35s}
.coatstand .cs-anim{position:absolute;inset:0;background:url(room/coat-anim.webp) 0 0/700% 100% no-repeat;filter:drop-shadow(6px 10px 10px rgba(0,0,0,.5));pointer-events:none}
.coatstand:hover .cs-anim{filter:drop-shadow(6px 10px 10px rgba(0,0,0,.5)) drop-shadow(0 0 8px rgba(255,215,140,.45))}
.coatstand.open{animation:csWobble .6s ease-out}
@keyframes csWobble{30%{transform:rotate(1.2deg)}60%{transform:rotate(-.8deg)}}
.coatstand:focus-visible{outline:2px solid #f6dc9a;outline-offset:2px}
body.place-hang .coatstand,body.place-floor .coatstand,body.place-stove .coatstand,body.dragging .coatstand{pointer-events:none}
.fy-layer{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:6}   /* 1 Dec: the fairy flies in front of the door, the bell, the coat stand and the tree */
.fairy{position:absolute;left:0;top:0;z-index:2}
.fairy img{filter:drop-shadow(0 0 7px rgba(255,230,160,.9))}
.fairy .fy-bob{width:100%;height:100%;animation:fyBob .32s ease-in-out infinite alternate}   /* a little lift on every wing beat */
.fairy img{display:block;width:100%;height:100%;object-fit:contain;animation:fyBeat .16s ease-in-out infinite alternate}
@keyframes fyBob{from{transform:translateY(-3%)}to{transform:translateY(3%)}}
@keyframes fyBeat{to{transform:scaleX(.96) scaleY(1.02)}}
.fy-spark{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;background:#fff7cf;box-shadow:0 0 6px 2px rgba(255,220,130,.85);animation:fySpark 1s ease-out forwards}
.fy-spark.big{width:7px;height:7px;animation-duration:1.1s}
@keyframes fySpark{to{transform:translate(var(--dx,0),var(--dy,10px)) scale(.15);opacity:0}}
@media (prefers-reduced-motion:reduce){ .coatstand.open{animation:none} .fairy .fy-bob,.fairy img{animation:none} }

/* the lantern can be moved (lantern.js) */
html.lamphover #pad,html.lamphover .room{cursor:grab}
html.lampdrag,html.lampdrag *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
.bookcase .bclamp.lifting{z-index:6;transition:none}
.bookcase .bclamp.lifting img{filter:drop-shadow(0 12px 10px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(255,200,120,.6));transform:translateY(-4px) scale(1.06)}
.bookcase .bclamp.moved{z-index:4}

/* the "Locked" tag on the door (roomfx.js) */
.doornote{position:absolute;z-index:30;transform:translate(-50%,-50%) scale(.6);padding:5px 12px;border-radius:99px;pointer-events:none;opacity:0;white-space:nowrap;
  background:rgba(251,245,232,.95);color:#2a1d14;font:700 13px Manrope,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.45);transition:opacity .25s,transform .3s cubic-bezier(.3,1.5,.5,1)}
.doornote.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
@media (max-width:480px){ .doornote{font-size:11px;padding:4px 9px} }

/* 1 Dec 13:10: the front door tag has two lines – "Locked" and, smaller, "Find the key – or there will be no Christmas" */
.doornote b,.doornote small{display:block;text-align:center}
.doornote b{font:700 13px/1.25 Manrope,sans-serif}
.doornote small{font:600 10.5px/1.3 Manrope,sans-serif;opacity:.78;margin-top:1px;letter-spacing:.01em}
.doornote:has(small){border-radius:12px;padding:5px 12px 6px}
@media (max-width:480px){ .doornote b{font-size:11.5px} .doornote small{font-size:9.5px} }
