@media (orientation:landscape){
  #toasts{top:calc(var(--st) + 6px);width:min(46%,420px)}
  #act{top:50%;transform:translateY(-50%);gap:2px}
  #pop .grid{grid-template-columns:1fr 1fr 1fr}#pop .cb{min-height:40px;font-size:13px}
  #dialog{width:min(560px,calc(100% - var(--sl) - var(--sr) - 160px))}
}
@media (max-height:500px){
  :root{--hb:44px;--hb-big:54px}
  .hb{min-width:50px;min-height:50px}
  #money{height:40px}.pill{height:32px;font-size:15px}.pill .ico{width:26px;height:26px}
  #goal{max-width:290px}#goalGo{min-height:38px}#goalTx b{-webkit-line-clamp:1}

  #dialog{min-height:64px}#dialog .face{width:56px;height:56px}#dialog p{font-size:14.5px}
  .pv,.k-shop .pv,.k-gift .pv{width:96px;height:120px}
  .polaroid{width:96px}
  #pHead h2{font-size:20px}
  #joy{width:108px;height:108px;margin:-54px 0 0 -54px}
}
@media (max-width:359px){.pill .ico{width:24px;height:24px}.pill{font-size:14px}.pv{width:96px;height:130px}.keys{grid-template-columns:repeat(3,1fr)}.k-puzzle .slot{width:32px;height:32px}.sym{width:26px;height:26px}.stats{grid-template-columns:repeat(2,1fr)}.polaroid{width:96px}}
@media (max-width:380px) and (orientation:portrait){:root{--hb:48px;--hb-big:62px}#money{padding:0 6px 0 4px}}
@media (prefers-reduced-motion:reduce){#tray,#tray .hb,#bMenu .ico{transition:none}#goal.alert,#goalMini.alert .ico,.pill.bump,.toast,.fly,#panel,#pop,#scrim{animation:none}.fly{opacity:1}}
