/* Fit every screen: laptops with short windows, check-in and sit panels with room to breathe */
#app.ci-on #stageUI{overflow:visible}
@media (min-width:821px){
  #app.ci-on #crateStage{display:none}
  #app.ci-on #stageUI{bottom:calc(40px + env(safe-area-inset-bottom));top:80px;justify-content:center}
  #app.ci-on #checkin,#app.ci-on #sitSetup{max-height:none}
}
@media (min-width:821px) and (max-height:820px){
  #stageUI{top:62px;bottom:calc(250px + env(safe-area-inset-bottom));width:min(600px,50vw);gap:12px}
  #app.ci-on #stageUI{bottom:calc(30px + env(safe-area-inset-bottom));top:70px}
  .say{font-size:clamp(22px,2.5vw,32px);min-height:2.3em}
  .need{padding:9px 6px}.need small{display:none}
  #needs{gap:8px}
  #actions{gap:8px}
  .cta{padding:10px 16px;font-size:11px}
  #crateStage{height:176px;bottom:calc(66px + env(safe-area-inset-bottom))}
  #sleeves .sleeve{flex:0 0 104px;height:104px;margin-bottom:22px}
  #sleeves .sleeve .sdisc{left:20px;top:5px;width:92px;height:92px}
  #sleeves .sleeve.playing .sdisc{transform:translateX(64px)}
  .divcard{height:118px;width:70px}
  .divcard b{font-size:15px}
}
@media (min-width:821px) and (max-height:660px){
  #stageUI{bottom:calc(228px + env(safe-area-inset-bottom));gap:8px}
  .say{font-size:22px;min-height:2.1em}
  #crateStage{height:154px}
  #sleeves .sleeve{flex-basis:88px;height:88px}
  #sleeves .sleeve .sdisc{width:78px;height:78px;left:16px}
  #sleeves .sleeve.playing .sdisc{transform:translateX(54px)}
  .divcard{height:100px;width:60px}
  .cta{padding:8px 13px}
  .need{padding:7px 4px;font-size:11px}
}
/* my cards and journal never overflow the window */
.thecard{width:min(320px,80vw);aspect-ratio:auto;height:min(400px,52vh);padding:20px 22px}
.pg{min-height:min(360px,56vh)}
#jrText{min-height:min(200px,28vh)}
#sipCard,#homeCard,#jrBook{overflow:auto}
.sipin,.homein{margin:auto}
@media (max-height:620px){
  .thecard h3{font-size:21px}.thecard p{font-size:13px}
  .cup{transform:scale(.8);margin-bottom:-10px}
  .pg{padding:18px 20px}.pg h4{font-size:19px;margin:6px 0 8px}
}
@media (min-width:821px) and (max-height:820px){.say{font-size:clamp(18px,1.9vw,24px);line-height:1.25;min-height:4.6em}}
.ribbon{left:auto;right:42px}
@media (max-width:700px){.ribbon{right:26px}}
@media (max-width:520px){
  #top{padding-left:12px;padding-right:8px}
  #top .brand{font-size:10px;max-width:52px;line-height:1.25;letter-spacing:.12em}
  #top nav{gap:4px}
  #top nav button{padding:8px 8px;font-size:9px;letter-spacing:.08em}
  #libBtn .pm{display:none}
}
