
html.portrait #side { z-index: 21; }
html.portrait #syscard { z-index: 22; }
html.portrait #textbox { z-index: 23; }
html.portrait #choices { z-index: 25; }

html.portrait #phone {
  bottom: clamp(140px, calc((100% - var(--stage-h)) * .4), 266px);
  transition: opacity .5s ease, transform .65s cubic-bezier(.2, .8, .2, 1), bottom .3s ease;
}

html.portrait #ui:has(> #choices.on .choice-btn:nth-child(4)) > #phone.on { bottom: clamp(140px, calc((100% - var(--stage-h)) * .5), 336px); }

html.portrait #ui:has(> #choices.on) > #phone.on ~ #textbox { top: 62px; bottom: auto; max-height: calc(var(--stage-h) + 110px); }

html.portrait #ui:has(> #phone.on) > #syscard { top: auto; bottom: 58px; max-height: 42%; overflow: auto; }

html.portrait #side.left-of-phone { height: 22%; }

html.portrait #phone.on ~ #choices { background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .38) 28%, rgba(0, 0, 0, 0) 46%); }

html.portrait #quick { flex-wrap: nowrap; }
html.portrait #quick button { padding: 8px 5px; letter-spacing: .03em; white-space: nowrap; }
