/* Show Demo (public/demos.js). The button: an indigo outline with a small play triangle, quieter than a primary button,
   louder than Delete. While a demo plays: a letterboard slip under the section bar with a clapperboard edge (a take,
   not the real thing), DEMO in board letters, a plain line, and a letter-white End. Periwinkle points things out. */
.demo-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; background: transparent; color: var(--indigo); border: 1.5px solid var(--indigo); }
.demo-btn i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.demo-btn:active { background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.job .head { flex-wrap: wrap; row-gap: 6px; }
.reply-card .reply-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.demo-slip { position: fixed; z-index: 34; left: 50%; top: calc(var(--tabs-y, env(safe-area-inset-top)) + 8px); width: min(calc(100% - 24px), 420px);
  display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; background: var(--felt); box-shadow: 0 0 0 1px #f5f5f21f, 0 3px 0 #0000004d;
  transform: translate(-50%, -12px); opacity: 0; visibility: hidden; transition: transform .26s cubic-bezier(.2, .9, .3, 1.2), opacity .18s, visibility 0s .26s; }
.demo-slip.in { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .26s cubic-bezier(.2, .9, .3, 1.2), opacity .18s; }
.demo-slip .ds-clap { flex: none; width: 14px; background: repeating-linear-gradient(135deg, #f5f5f2 0 6px, #16151b 6px 12px); }
.demo-slip .ds-board { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 10px 8px 12px; }
.demo-slip .ds-t { display: flex; align-items: baseline; gap: 10px; font-size: 20px; line-height: 1; letter-spacing: .22em; white-space: nowrap; }
.demo-slip .ds-t small { font-size: 12px; letter-spacing: .16em; opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.demo-slip .ds-line { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; text-transform: none; letter-spacing: .01em; text-shadow: none; font-weight: 400; font-size: 14.5px; line-height: 1.3; opacity: .9; }
.demo-slip .ds-end { flex: none; align-self: center; min-width: 64px; min-height: 44px; margin-right: 10px; border: 0; border-radius: 10px; background: var(--letter); color: #1c1b22; font-weight: 700; font-size: 16px; }
.demo-slip .ds-end:active { transform: translateY(1px); }

/* what the demo points at */
.demo-glow { outline: 3px solid #7c8cff; outline-offset: 4px; border-radius: 10px; animation: demo-glow .9s ease-in-out infinite; }
@keyframes demo-glow { 50% { outline-offset: 8px; outline-color: #7c8cff66; } }
.demo-tap { position: fixed; z-index: 60; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #7c8cff; background: #7c8cff33; pointer-events: none; animation: demo-tap .6s ease-out forwards; }
@keyframes demo-tap { from { transform: scale(1.5); opacity: 0; } 35% { transform: scale(.85); opacity: 1; } to { transform: scale(1); opacity: 0; } }

.demo-finger { position: fixed; left: 0; top: 0; z-index: 60; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid #7c8cff; background: #7c8cff33; box-shadow: 0 2px 10px #0004; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .demo-slip, .demo-slip.in { transition: none; }
  .demo-glow { animation: none; }
  .demo-tap { animation: none; opacity: .8; }
}
