/* Three clear choices for a room toy: play, move, or put it away. */
html body dialog#modal:has(.rtm-menu){width:min(92vw,420px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 28px)!important;padding:clamp(14px,3.6vw,22px)!important;overflow:auto!important}
html body #modal:has(.rtm-menu) .modal-top{margin:0 0 14px!important;min-height:48px;align-items:center}
html body #modal:has(.rtm-menu) .modal-top h2{padding-right:8px;overflow-wrap:anywhere}
html body #modal .rtm-menu{display:grid;gap:14px;margin:0}
html body #modal .rtm-action{box-sizing:border-box;display:grid;justify-items:center;align-content:center;gap:8px;min-width:0;margin:0;padding:12px;border:2px solid #fff9;border-radius:24px;box-shadow:0 5px 0 #0002;font:800 20px/1.15 "Grandstander",ui-rounded,system-ui,sans-serif;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html body #modal .rtm-action:active{transform:translateY(3px);box-shadow:0 2px 0 #0002}
html body #modal .rtm-action:focus-visible{outline:4px solid #e3ac38;outline-offset:3px}
html body #modal .rtm-squish{width:100%;min-height:clamp(168px,28dvh,216px);background:linear-gradient(#e1f6ed,#bee8d7);color:#285d50}
html body #modal .rtm-toy{position:relative;display:grid;place-items:center;width:180px;height:clamp(110px,19dvh,152px)}
html body #modal .rtm-toy .toy{width:clamp(108px,19dvh,150px)!important;height:clamp(108px,19dvh,150px)!important;max-width:100%;margin:0!important;pointer-events:none}
html body #modal .rtm-press{position:absolute;inset:50% 0 auto;width:180px;height:80px;transform:translateY(-50%);fill:none;stroke:#368c72;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
html body #modal .rtm-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body #modal .rtm-places:has(>:only-child){grid-template-columns:1fr}
html body #modal .rtm-places .rtm-action{min-height:118px}
html body #modal .rtm-places svg{width:62px;height:62px;pointer-events:none}
html body #modal .rtm-move{background:#ece3fb;color:#65488e}
html body #modal .rtm-away{background:#fff0d2;color:#805c2f}
html body #modal .rtm-gift{display:flex;justify-content:center;margin:0}
html body #modal .rtm-gift img{width:28px;height:28px;object-fit:contain}
body:is(.night-time,.rn-night,.calm-mode) #modal .rtm-squish{background:linear-gradient(#355e59,#284841);color:#f0fff8}
body:is(.night-time,.rn-night,.calm-mode) #modal .rtm-press{stroke:#a2e3c9}
body:is(.night-time,.rn-night,.calm-mode) #modal .rtm-move{background:#514373;color:#f2eaff}
body:is(.night-time,.rn-night,.calm-mode) #modal .rtm-away{background:#5d4b39;color:#fff1d4}
@media(max-height:600px){html body #modal .rtm-menu{gap:10px}html body #modal .rtm-squish{min-height:148px}html body #modal .rtm-toy{height:100px}html body #modal .rtm-toy .toy{width:100px!important;height:100px!important}html body #modal .rtm-places .rtm-action{min-height:94px}html body #modal .rtm-places svg{width:48px;height:48px}}
@media(orientation:landscape) and (max-height:600px){html body dialog#modal:has(.rtm-menu){width:min(94vw,660px)!important}html body #modal .rtm-menu{grid-template-columns:1fr 1fr;align-items:stretch}html body #modal .rtm-places{gap:10px}html body #modal .rtm-places .rtm-action{min-height:148px}html body #modal .rtm-gift{display:none}}
/* The transparent shelf rail must not intercept a floor-placement tap above its toys. */
body[data-place=home]:has(.room-placing) #sq-dock,
body[data-place=home]:has(.room-placing) #sq-dock .sq-dock-rail,
body[data-place=home]:has(.room-placing) #sq-dock .sq-dock-head{pointer-events:none!important}
body[data-place=home]:has(.room-placing) #sq-dock button{pointer-events:auto!important}
