/* Squishy Town Halloween room (room-halloween.js): witch hat, bunting, a bat, orange and purple lights. October only. */
.rh-spot{position:absolute;margin:0;padding:0;border:0;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button.rh-spot{cursor:pointer}
body.room-edit-open .rh-spot{pointer-events:none}
.rh-spot img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;pointer-events:none;-webkit-user-drag:none}
.rh-hat{z-index:3;rotate:-8deg;transform-origin:50% 90%}
.rh-hat.rh-spin{animation:rh-spin .8s cubic-bezier(.3,1.4,.5,1)}
@keyframes rh-spin{0%{translate:0 0}40%{translate:0 -30%;rotate:200deg}100%{translate:0 0;rotate:352deg}}
.rh-bunting{z-index:2;pointer-events:none}
.rh-bunting svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 1px #0002)}
body.rn-dark .rh-bunting{opacity:.5}
/* the bat flies inside the window glass (round top), never takes taps */
.rh-sky{z-index:3;pointer-events:none;overflow:hidden;border-radius:50% 50% 2% 2% / 24% 24% 1% 1%}
.rh-bat{position:absolute;top:var(--y,25%);left:0;width:34%;aspect-ratio:64/40;animation:rh-fly 3.1s ease-in-out forwards}
.rh-bat svg{display:block;width:100%;height:100%;overflow:visible;scale:var(--dir,1) 1;animation:rh-bob .5s ease-in-out infinite alternate}
.rh-wing{transform-box:fill-box;animation:rh-flap .18s ease-in-out infinite alternate}
.rh-wing.l{transform-origin:100% 60%}.rh-wing.r{transform-origin:0 60%}
@keyframes rh-flap{to{transform:scaleY(.35)}}
@keyframes rh-bob{to{translate:0 18%}}
@keyframes rh-fly{0%{left:calc(50% - 50% * var(--dir) - 17% - 20% * var(--dir))}100%{left:calc(50% + 50% * var(--dir) - 17% + 20% * var(--dir))}}
/* orange and purple fairy lights this month */
body.rh-on .pl-bulb{background:radial-gradient(circle,#fff1d8 0,#ffae4dcc 30%,#ff9a3c00 70%)}
body.rh-on .pl-bulb:nth-child(even){background:radial-gradient(circle,#f3e6ff 0,#b98cf0cc 30%,#9b6bd600 70%)}

@media (prefers-reduced-motion:reduce){.rh-hat{animation:none!important}}
