#street-mailbox {
  position: absolute;
  z-index: 686;
  transform: translate(-50%,-100%) scale(var(--wheel-scale,1));
  transform-origin: center bottom;
  width: 74px;
  height: 90px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
}
#street-mailbox canvas { width: 74px; height: 90px; image-rendering: pixelated; }
#street-mailbox span {
  position: absolute;
  left: 50%;
  bottom: 97%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border: 1px solid #66523f;
  border-radius: 3px;
  background: #fff2d1;
  color: #443a32;
  font: bold 11px/1.15 system-ui, sans-serif;
  white-space: nowrap;
}
#street-mailbox:focus-visible { outline: 3px solid #145749; outline-offset: 3px; }
.camera-in #street-mailbox, .shopping #street-mailbox { visibility: hidden; }
#city-mail {
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 2px solid #52463d;
  border-radius: 10px;
  background: #fff5de;
  color: #2c403a;
  box-shadow: 5px 6px 0 #253a363d;
}
#city-mail::backdrop { background: #24362f66; }
#city-mail form { padding: 20px; border-top: 5px solid #dc9a47; }
#city-mail .mail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
#city-mail h2 { margin: 0; color: #3a4137; font: 700 26px/1.05 Georgia, serif; }
#city-mail button, #city-mail select, #city-mail textarea { font: inherit; }
#city-mail .mail-close {
  width: 32px; height: 32px; border: 1px solid #aa9c82; border-radius: 6px;
  background: #fff9ec; color: inherit; font-size: 21px; cursor: pointer;
}
#city-mail label { display: block; margin: 12px 0 5px; font-weight: 700; }
#city-mail select, #city-mail textarea {
  display: block; width: 100%; padding: 8px; border: 1px solid #8b8e77; border-radius: 5px;
  color: #243c37; background: #fffdf5;
}
#city-mail textarea { resize: vertical; min-height: 75px; }
#city-mail .mail-footnote { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; }
#city-mail small { color: #4d5b53; font: 12px/1.35 system-ui, sans-serif; }
#city-mail-count { white-space: nowrap; }
#city-mail .mail-status { margin: 14px 0 0; font-weight: 600; }
#city-mail .mail-status:empty, #city-mail .mail-actions:has([hidden]) { display:none; }
#city-mail .mail-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
#city-mail button[type=submit] { border: 0; border-radius: 5px; background: #345c4e; color: white; font-weight: 700; padding: 9px 15px; cursor:pointer; }
#city-mail button:disabled { opacity:.65; cursor:wait; }
