.stamp-stage,.stamp-stage *,.stamp-stage *:before,.stamp-stage *:after{box-sizing:border-box}.stamp-stage{position:relative;height:min(72vh,640px);overflow:hidden;background:var(--paper-bg, #f6f2ea);color:#1c1b19;border-radius:12px}.stamp-stage button{font:inherit}.stamp-field{position:absolute;inset:0}.stamp-card{position:absolute;appearance:none;border:0;background:transparent;padding:0;margin:0;cursor:pointer;transform-origin:center center;touch-action:manipulation}.stamp-card:focus-visible{outline:2px solid #1a1a1a;outline-offset:6px;border-radius:4px}.stamp-perspective{width:100%;height:100%;perspective:900px;perspective-origin:50% 50%}.stamp-tilt{width:100%;height:100%;transform-style:preserve-3d;will-change:transform}.stamp-card.is-focused .stamp-tilt{translate:0 0 18px}.stamp-float{position:relative;width:100%;height:100%;transform-style:preserve-3d}.stamp-shadow{position:absolute;inset:8% 6% 4%;border-radius:8px;background:radial-gradient(ellipse at center,rgba(30,24,16,.22) 0%,rgba(30,24,16,.08) 55%,transparent 72%);filter:blur(10px);transform:translateY(8px) scale(.96);pointer-events:none;z-index:0;transition:filter .3s ease,opacity .3s ease,transform .3s ease}.stamp-shadow.deep{filter:blur(18px);opacity:.95;transform:translateY(14px) scale(.98)}.stamp-img,.stamp-canvas,.stamp-placeholder{position:relative;z-index:1;display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none}.stamp-shader-layer{position:absolute;inset:0;z-index:2;pointer-events:none}.stamp-shader-layer .stamp-canvas{position:absolute;inset:0;width:100%!important;height:100%!important}.stamp-placeholder{background:#ebe6dc;border-radius:4px}.stamp-pill{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%);z-index:3;white-space:nowrap;padding:.28rem .65rem;border-radius:999px;background:#1a1a1a;color:#f7f4ef;font-family:IBM Plex Sans,system-ui,sans-serif;font-size:.62rem;font-weight:500;letter-spacing:.08em;line-height:1;pointer-events:none;box-shadow:0 4px 14px #0000002e}.lightbox{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#f6f2ea8f;cursor:zoom-out}.lightbox-perspective{display:grid;place-items:center;perspective:1100px;perspective-origin:50% 45%}.lightbox-stamp{position:relative;cursor:default;transform-style:preserve-3d;will-change:transform;filter:drop-shadow(0 24px 48px rgba(0,0,0,.34))}.lightbox-static-face{position:relative;z-index:1;display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}.lightbox-shader-face{position:absolute;inset:0;z-index:2;pointer-events:none}.lightbox-shader-face canvas{width:100%!important;height:auto!important}.lightbox-info{position:absolute;left:50%;top:calc(50% + min(17vh,12rem));transform:translate(-50%);width:max-content;max-width:60vw;display:grid;gap:.45rem;justify-items:center;text-align:center;font-family:IBM Plex Sans,system-ui,sans-serif;pointer-events:auto;z-index:3}.lightbox-desc{margin:0;font-size:.92rem;line-height:1.5;color:#1c1b19b8;max-width:34ch}.lightbox-link{display:inline-block;padding:.42rem .9rem;border-radius:999px;background:#1a1a1a;color:#f7f4ef;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.66rem;letter-spacing:.1em;text-decoration:none;transition:background .2s ease,transform .2s ease}.lightbox-link:hover{background:#33312e;transform:translateY(-1px)}.lightbox-hint{position:absolute;bottom:clamp(1.25rem,4vh,2.5rem);left:0;right:0;margin:0;text-align:center;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.68rem;letter-spacing:.16em;color:#1c1b197a;pointer-events:none}.debug-fab{position:fixed;top:12px;right:12px;z-index:200;padding:.5rem .8rem;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#141414db;color:#e8e6e0;font-family:IBM Plex Sans,system-ui,sans-serif;font-size:.72rem;cursor:pointer;backdrop-filter:blur(14px)}.debug-panel{position:fixed;top:12px;right:12px;z-index:200;width:min(350px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#141414e6;color:#e8e6e0;font-family:IBM Plex Sans,system-ui,sans-serif;font-size:12px;backdrop-filter:blur(16px);box-shadow:0 16px 48px #00000052;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}.debug-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px}.debug-head h3{margin:0;font-size:13px;font-weight:600;letter-spacing:.04em}.debug-head p{margin:4px 0 0;color:#e8e6e07a;font-size:10px;line-height:1.45}.debug-icon{flex:0 0 auto;appearance:none;border:0;background:transparent;color:inherit;font-size:18px;line-height:1;cursor:pointer;opacity:.65;padding:0 2px}.debug-icon:hover{opacity:1}.debug-preview{padding:10px;border:1px solid rgba(255,205,122,.18);border-radius:8px;background:#ffc5670e}.debug-check{display:flex;align-items:flex-start;gap:9px;cursor:pointer}.debug-check input{margin:2px 0 0;accent-color:#e1b764}.debug-check span{display:grid;gap:2px}.debug-check strong,.debug-control-head strong{font-size:11px;font-weight:500}.debug-check small,.debug-control small,.debug-group summary small{color:#e8e6e075;font-size:9.5px;line-height:1.45}.debug-group{margin-top:10px;border-top:1px solid rgba(255,255,255,.11)}.debug-group summary{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;padding:10px 1px 7px;cursor:pointer;list-style:none}.debug-group summary::-webkit-details-marker{display:none}.debug-group summary:after{grid-column:2;grid-row:1 / span 2;content:"+";color:#e8e6e085;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:13px}.debug-group[open] summary:after{content:"−"}.debug-group summary>span{font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}.debug-group summary>small{grid-column:1}.debug-group-body{display:grid;gap:5px;padding-bottom:4px}.debug-control{display:grid;gap:3px;padding:7px 8px;border-radius:6px;background:#ffffff09}.debug-control.is-disabled{opacity:.42}.debug-control-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.debug-control-head em{flex:0 0 auto;color:#e5c98e;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:10px;font-style:normal;font-variant-numeric:tabular-nums}.debug-control input[type=range]{width:100%;height:14px;margin:2px 0 0;accent-color:#d6b36a}.debug-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.debug-actions button{appearance:none;padding:7px;font:inherit;font-size:10px;background:#ffffff14;color:inherit;border:1px solid rgba(255,255,255,.16);border-radius:6px;cursor:pointer}.debug-actions button:hover{background:#ffffff26}@media(prefers-reduced-motion:reduce){.stamp-shadow{transition:none}.stamp-card.is-focused .stamp-tilt{translate:none}}
