/* Reveal card and the how-to drag card. */
/* reveal: the opened container or assembled note as a large close-up card that can be zoomed */
#reveal { position: fixed; inset: 0; z-index: 24; display: grid; place-items: center; background: rgba(3,5,10,.82); padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.rv-card { width: min(100%, 460px); max-height: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--file); color: var(--file-ink); border-radius: 8px; padding: 12px; box-sizing: border-box; box-shadow: 0 30px 70px rgba(0,0,0,.6); overflow: hidden; }
.rv-zoom { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #111; touch-action: none; cursor: zoom-in; flex: none; }
.rv-zoom.zoomed { cursor: grab; }
.rv-inner { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.rv-inner img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.rv-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rv-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
.rv-tip { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; pointer-events: none; }
.rv-kick { font-family: var(--f-type); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--file-muted); }
.rv-title { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.rv-text { font-family: var(--f-type); font-size: 14.5px; line-height: 1.45; margin: 0; }
.rv-badge { align-self: flex-start; font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; color: #a3291b; border: 2.5px solid #a3291b; padding: 2px 8px; transform: rotate(-3deg); text-transform: uppercase; }
.rv-flat { display: grid; place-items: center; }
/* how-to card: a hand drags one pocket thing onto the other, on a loop */
.dc-stage { position: relative; height: 170px; border-radius: 6px; background: var(--panel-2); overflow: hidden; flex: none; }
.dc-tile { position: absolute; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.dc-tile svg { width: 64px; height: 64px; }
.dc-tile .hand { position: absolute; left: 50%; top: 55%; }
