/* The postman and his letters. Works on the town (world.css) and on plain pages (pages.css). */
#postoffice{position:fixed;left:12px;bottom:56px;z-index:60;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font:15px/1.45 "Atkinson Hyperlegible",system-ui,sans-serif;max-width:calc(100vw - 24px)}
#postoffice button{font:700 14px "Atkinson Hyperlegible",system-ui,sans-serif;cursor:pointer;color:#12332c;background:#fffdf8;border:2px solid #12332c;border-radius:0;padding:6px 12px;margin:0;width:auto;box-shadow:3px 3px 0 rgba(0,0,0,.25)}
#postoffice .count{display:inline-block;margin-left:8px;min-width:20px;text-align:center;background:#c93f1a;color:#fff;padding:0 4px}
#postoffice .letters{width:min(360px,calc(100vw - 24px));max-height:60vh;overflow:auto;background:#fffdf8;color:#12332c;border:3px solid #12332c;box-shadow:6px 6px 0 rgba(0,0,0,.3);padding:12px}
#postoffice .letters-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#postoffice .letter{border-top:2px solid #bfdccb;padding:8px 0;overflow-wrap:anywhere}
#postoffice .letter a,#postoffice .letters a{color:#a33414}
#postoffice .small{font-size:13px;color:#466456;margin:4px 0}
#postoffice code{background:#fff3cf;padding:2px 4px;overflow-wrap:anywhere}
#postoffice input{font:700 17px ui-monospace,Consolas,monospace;width:150px;padding:6px 8px;border:2px solid #12332c;border-radius:0;background:#fff;color:#12332c;text-transform:uppercase;margin:0}
#postoffice .pair{display:flex;gap:8px;flex-wrap:wrap}
#postoffice .postman{display:flex;align-items:flex-end;gap:8px;background:none;border:0;box-shadow:none;padding:0;animation:walk-in 1.6s ease-out}
#postoffice .bubble{background:#fff3cf;border:3px solid #12332c;padding:8px 12px;font-weight:700;order:2;margin-bottom:26px}
#postoffice .carrier{position:relative;display:block;width:34px;height:56px}
#postoffice .carrier i{position:absolute;display:block}
#postoffice .cap{left:5px;top:0;width:24px;height:9px;background:#0a6f94}
#postoffice .face{left:8px;top:9px;width:18px;height:14px;background:#f1c27d}
#postoffice .coat{left:5px;top:23px;width:24px;height:21px;background:#c93f1a}
#postoffice .bag{left:22px;top:30px;width:14px;height:12px;background:#8a5a33}
#postoffice .legs{left:8px;top:44px;width:18px;height:12px;background:linear-gradient(90deg,#243447 0 7px,transparent 7px 11px,#243447 11px)}
@keyframes walk-in{from{transform:translateX(-260px)}to{transform:translateX(0)}}
:root[data-plain] #postoffice .carrier{display:none}
:root[data-plain] #postoffice .bubble{margin:0}
@media (prefers-reduced-motion:reduce){#postoffice .postman{animation:none}}
#postoffice .crew{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff3cf;color:#12332c;border:3px solid #12332c;padding:8px 12px}
#postoffice .crew a{color:#a33414;font-weight:700}
