/* The orange carpet (public/carpet.js): a three.js scene of his own 3D Mii and a rolled-up 70s orange shag rug on one
   transparent canvas over everything, like Elsa's jet. Lets every tap through but the slip. */
.cpt-layer { position: fixed; inset: 0; z-index: 6000; pointer-events: none; overflow: hidden; contain: strict; transition: opacity .6s; }
.cpt-layer.out { opacity: 0; }
.cpt-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* what happened: the letterboard slip the jet and the poop drop, its left edge a strip of the rug: shag orange with a
   cream fringe */
.cpt-slip { position: fixed; z-index: 6002; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(calc(100% - 24px), 380px);
  display: flex; flex-direction: column; gap: 6px; padding: 13px 16px 12px 24px; border: 0; border-radius: 12px; text-align: left;
  box-shadow: 0 0 0 1px #f5f5f21f, 0 3px 0 #0000004d, inset 6px 0 0 #e2661b; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, calc(-100% - 20px - env(safe-area-inset-top))); visibility: hidden;
  transition: transform .22s ease-in, visibility 0s .22s; }
.cpt-slip::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; border-left: 3px dotted #f3e6c8; }
.cpt-slip.in { transform: translate(-50%, 0); visibility: visible; transition: transform .32s cubic-bezier(.2, .9, .3, 1.2); }
.cpt-slip .row1 { font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpt-slip .row2 { text-transform: none; letter-spacing: .04em; font-size: 16px; white-space: normal; }
.cpt-slip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cpt-slip, .cpt-slip.in, .cpt-layer { transition: none; }
}
