/* The four new stalls share a compact, accessible header on narrow screens. */
@media (max-width:480px) {
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #play-view .play-header {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 92px;
  gap:4px;
  width:calc(100% - 16px);
  min-height:54px;
  padding:4px 0;
 }
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #leave-game {
  width:44px;height:44px;min-height:44px;padding:0;
  justify-content:center;gap:0;
 }
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #leave-game>span {display:none}
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #leave-game>svg {width:22px;height:22px;flex:none}
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #play-view .play-heading {min-width:0}
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #play-view .play-heading h1 {
  margin:0;font-size:17px;line-height:1.2;letter-spacing:0;
  white-space:normal;word-break:keep-all;overflow-wrap:anywhere;
 }
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #play-view .play-toolbar {gap:4px}
}

@media (max-width:480px) and (max-height:740px) {
 body:is([data-active-game="packing"],[data-active-game="hoops"],[data-active-game="stack"],[data-active-game="bubble"]) #play-view .canvas-wrap {
  width:min(100%,max(180px,calc((100dvh - 342px - env(safe-area-inset-bottom)) * 1.111111)));
 }
}
