.postbox { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.postbox-object { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: 0; width: 108px; height: 180px; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; cursor: pointer; pointer-events: auto; touch-action: manipulation; transform-origin: 50% 100%; }
/* Align the image's opaque base with the floor without placing the focusable
   button outside the viewport, which makes overflow-hidden ancestors scroll. */
.postbox-model { display: block; width: 100%; height: 100%; transform: translateY(4.333333333%); pointer-events: none; }
.postbox-object:focus-visible { outline: 1px solid #8b3629; outline-offset: 4px; border-radius: 8px; }
.postbox-closeup { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; background: rgb(255 254 250 / 35%); }
.postbox-closeup.postbox-note-returning { pointer-events: none; background: transparent; }
.postbox-note-returning .postbox-close { visibility: hidden; }
.postbox-retained, .postbox-retained .postbox-object { pointer-events: none; cursor: default; }
.postbox-note { position: relative; width: min(292px, calc(100vw - 72px)); padding: 37px 29px 40px; border: 0; color: #39352e; background: #f2ecdd; font: 400 19px/1.6 Georgia, 'Times New Roman', serif; text-align: left; cursor: pointer; touch-action: manipulation; box-shadow: 1px 3px 11px rgb(59 45 25 / 11%); transform: rotate(-2deg); clip-path: polygon(1% 1%, 24% 0, 58% .9%, 98% 0, 99% 24%, 98% 56%, 100% 99%, 60% 98%, 22% 100%, 0 98%, .8% 48%); }
.postbox-note::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .42; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23b3a487' opacity='.16' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.postbox-note::after { content: ''; position: absolute; left: 3%; top: 49%; width: 94%; height: 1px; background: rgb(99 82 50 / 8%); box-shadow: 0 1px 0 rgb(255 255 255 / 20%); pointer-events: none; transform: rotate(.5deg); }
.postbox-note:focus-visible { outline: 2px solid #8b3629; outline-offset: -6px; }
.postbox-close { position: absolute; left: calc(50% + min(146px, (100vw - 72px) / 2) - 8px); top: calc(50% - 136px); width: 44px; height: 44px; border: 0; background: transparent; color: #6f6659; font: 300 22px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; touch-action: manipulation; }
.postbox-close:focus-visible { outline: 1px solid #8b3629; border-radius: 50%; }
.postbox-paper-fallback { width: 150px; height: auto; padding: 18px; background: #f2ecdd; color: #39352e; font: 12px/1.5 Georgia, serif; transform: rotate(-2deg); }
@media (max-width: 600px) { .postbox-object { width: 84px; height: 140px; right: max(8px, env(safe-area-inset-right)); } .postbox-note { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .postbox-note { transform: none; } }
