/* nx-kit Tier C · physics (public-site decoration) */
.nx-phys { position: relative; width: 100%; height: 11rem; overflow: hidden; border-radius: var(--radius-lg); color: var(--text); touch-action: pan-y; }
.nx-phys > canvas { position: absolute; inset: 0; display: block; }
.nx-lsph { cursor: pointer; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--purple) 10%, transparent), transparent); }
.nx-sling { touch-action: none; cursor: grab; background: color-mix(in srgb, var(--text) 3%, transparent); }
.nx-ascii { background: #07060b; }
.nx-smudge { cursor: crosshair; }

.nx-meta { position: relative; width: 100%; height: 11rem; overflow: hidden; border-radius: var(--radius-lg); background: #07060b; }
.nx-meta > svg { position: absolute; }
.nx-meta-goo { position: absolute; inset: 0; }
.nx-meta-goo i { position: absolute; left: 0; top: 0; border-radius: 999px; background: radial-gradient(circle at 40% 35%, #f5d0fe, #a78bfa 55%, #6d28d9); box-shadow: 0 0 40px rgba(167, 139, 250, .5); }
.nx-meta-goo i.is-you { background: radial-gradient(circle at 40% 35%, #fff, #67e8f9 50%, #0891b2); }

.nx-coin { display: grid; place-items: center; width: 9rem; height: 9rem; perspective: 600px; cursor: grab; touch-action: none; user-select: none; }
.nx-coin-body { position: relative; width: 7rem; height: 7rem; transform-style: preserve-3d; transition: transform .25s ease-out; }
.nx-coin-body b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 999px; font: 900 2.4rem/1 Inter, system-ui, sans-serif; color: #5b4a1a; background: radial-gradient(circle at 35% 30%, #fff6c8, #e6c35a 45%, #a07a1e 100%); box-shadow: inset 0 0 0 6px #c9a43d, inset 0 0 0 8px #8a6a18, 0 14px 30px rgba(0, 0, 0, .4); backface-visibility: hidden; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.nx-coin-b { transform: rotateY(180deg); }

.nx-dball { display: grid; place-items: center; width: 100%; height: 11rem; }
.nx-dball i { width: 4rem; height: 4rem; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #fff, #c4b5fd 30%, #7c3aed 75%); box-shadow: 0 16px 30px rgba(124, 58, 237, .35); cursor: grab; touch-action: none; transition: width .25s cubic-bezier(.3, 1.4, .5, 1), height .25s cubic-bezier(.3, 1.4, .5, 1); }
.nx-dball i:hover { width: 4.6rem; height: 4.6rem; }
.nx-dball.is-held i { cursor: grabbing; }

.nx-crumple { position: relative; width: 100%; height: 15rem; display: grid; place-items: center; }
.nx-receipt { width: 9.5rem; padding: .8rem .75rem 1rem; background: #fbfaf6; color: #222; font: 600 .68rem/1.5 ui-monospace, monospace; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 94% 100%, 88% calc(100% - 6px), 82% 100%, 76% calc(100% - 6px), 70% 100%, 64% calc(100% - 6px), 58% 100%, 52% calc(100% - 6px), 46% 100%, 40% calc(100% - 6px), 34% 100%, 28% calc(100% - 6px), 22% 100%, 16% calc(100% - 6px), 10% 100%, 4% calc(100% - 6px), 0 100%); transition: transform .5s cubic-bezier(.3, 1.2, .5, 1), border-radius .5s, width .5s, height .5s, clip-path .5s, filter .4s; cursor: pointer; touch-action: none; user-select: none; }
.nx-receipt b { display: block; text-align: center; font-size: .85rem; letter-spacing: .2em; }
.nx-receipt small { display: block; text-align: center; color: #777; }
.nx-receipt div { display: flex; justify-content: space-between; border-bottom: 1px dashed #ccc; }
.nx-receipt .is-total { font-weight: 900; border: 0; }
.nx-receipt.is-pressing { transform: scale(.94) rotate(-2deg); filter: contrast(1.1) brightness(.95); }
.nx-receipt.is-ball { width: 3.6rem; height: 3.6rem; padding: 0; overflow: hidden; border-radius: 999px; clip-path: circle(50%); color: transparent; background: radial-gradient(circle at 30% 30%, #fff, #e8e4da 40%, #bdb6a6), repeating-conic-gradient(from 20deg, rgba(0, 0, 0, .08) 0 12deg, transparent 12deg 34deg); background-blend-mode: multiply; cursor: grab; }
.nx-receipt.is-ball * { visibility: hidden; }
.nx-receipt.is-printing { animation: nx-print .8s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 0; }
@keyframes nx-print { from { clip-path: inset(0 0 100% 0); } }
.nx-bin { position: absolute; right: 1rem; bottom: .6rem; font-size: 2.4rem; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.nx-bin.is-hit { transform: rotate(-8deg) scale(1.1); }
.nx-crumple-hint { position: absolute; left: .5rem; bottom: .3rem; font-size: .68rem; color: var(--muted); font-weight: 700; }

.nx-fall { position: relative; width: 100%; overflow: hidden; }
.nx-fall-text { display: block; }
.kit-stage .nx-fall { height: 12rem; }
.kit-stage .nx-fall-text { font: 800 1.35rem/1.35 Inter, system-ui, sans-serif; padding: 1rem; }
.nx-fall .nx-body { display: inline-block; }
.nx-fall.is-falling .nx-body { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; user-select: none; }
.nx-fall-reset { position: absolute; right: .5rem; top: .4rem; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nx-fall.is-falling .nx-fall-reset { opacity: 1; pointer-events: auto; }

.nx-gtags { position: relative; width: 100%; height: 12rem; overflow: hidden; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--text) 3%, transparent); touch-action: pan-y; }
.nx-gtags .nx-body { --h: 260; position: absolute; left: 0; top: 0; padding: .4rem .8rem; border-radius: 999px; background: hsl(var(--h) 70% 60%); color: #fff; font-weight: 800; font-size: .8rem; white-space: nowrap; cursor: grab; user-select: none; touch-action: none; transform: translateY(-80px); }

.nx-peel { --peel: 28px; position: relative; width: 14rem; height: 10rem; user-select: none; }
.nx-peel-note { position: absolute; inset: 0; display: grid; place-items: end; padding: .8rem; border-radius: 12px; background: repeating-linear-gradient(45deg, #fde68a 0 10px, #fcd34d 10px 20px); color: #78350f; font-weight: 800; font-size: .78rem; text-align: right; }
.nx-peel-page { position: absolute; inset: 0; padding: 1rem; border-radius: 12px; background: #fafaf9; color: #1c1917; clip-path: polygon(0 0, calc(100% - var(--peel)) 0, 100% var(--peel), 100% 100%, 0 100%); }
.nx-peel-page p { margin-top: .4rem; color: #57534e; font-size: .8rem; }
.nx-peel-flap { position: absolute; top: 0; right: 0; width: var(--peel); height: var(--peel); background: linear-gradient(225deg, transparent 50%, #e7e5e4 50%, #d6d3d1); border-radius: 0 0 0 6px; box-shadow: -3px 3px 8px rgba(0, 0, 0, .25); cursor: grab; touch-action: none; }

.nx-gbub { position: relative; width: 100%; height: 11rem; border-radius: var(--radius-lg); background: center / cover; overflow: hidden; cursor: grab; touch-action: none; }
.nx-gbub.is-held { cursor: grabbing; }
.nx-gbub-lens { position: absolute; left: 0; top: 0; width: 5.5rem; height: 5.5rem; border-radius: 999px; background-repeat: no-repeat; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), inset -6px -10px 18px rgba(0, 0, 0, .35), inset 6px 8px 14px rgba(255, 255, 255, .45), 0 12px 24px rgba(0, 0, 0, .35); pointer-events: none; transition: width .25s, height .25s; }
.nx-gbub.is-held .nx-gbub-lens { width: 6.2rem; height: 6.2rem; }

.nx-ink { position: relative; width: 100%; height: 11rem; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.nx-ink-pic { position: absolute; inset: 0; background: center / cover; }
.nx-ink-pic.is-bloom { --x: 50%; --y: 50%; animation: nx-bloom 1.1s cubic-bezier(.2, .8, .2, 1) both; filter: saturate(1.1); }
@keyframes nx-bloom { from { clip-path: circle(0 at var(--x) var(--y)); filter: blur(6px) saturate(1.4); } to { clip-path: circle(150% at var(--x) var(--y)); filter: none; } }
.nx-gbub > img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.nx-gbub[data-peek] { touch-action: pan-y; } /* phones keep scrolling past product pictures */
.nx-gbub[data-peek] .nx-gbub-lens { opacity: 0; transition: opacity .2s, width .2s, height .2s; }
.nx-gbub[data-peek]:hover .nx-gbub-lens, .nx-gbub[data-peek].is-held .nx-gbub-lens { opacity: 1; }
