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

/* speech bubbles, the plaza's: white, a 2px ink line, a tail under the speaker (--tail = its x) */
.sg-bub { position: absolute; left: 0; top: 0; max-width: 200px; width: max-content; padding: 7px 11px 8px; border-radius: 14px;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); font: 500 15px/1.3 "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", var(--font, system-ui);
  overflow-wrap: anywhere; visibility: hidden; will-change: transform; }
.sg-bub.in { visibility: visible; }
.sg-bub::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -8px; width: 12px; height: 12px; margin-left: -6px;
  background: inherit; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sg-bub.her { font-weight: 800; }

/* what happened: the letterboard slip the carpet drops, its left edge a strip of Ralph's flannel (dark red, black bands) */
.sg-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; -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; }
.sg-slip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 12px 0 0 12px;
  background: repeating-linear-gradient(0deg, #7e2420 0 7px, #2a1614 7px 12px, #7e2420 12px 17px, #d6a848 17px 18px); }
.sg-slip.in { transform: translate(-50%, 0); visibility: visible; transition: transform .32s cubic-bezier(.2, .9, .3, 1.2); }
.sg-slip .row1 { font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-slip .row2 { text-transform: none; letter-spacing: .04em; font-size: 16px; white-space: normal; }
.sg-slip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

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