.security-art { --art-delay:calc(var(--motion-dialog-enter) + var(--security-art-wait)); --security-art-height:calc(var(--security-art-size) * var(--security-art-scale)); display:grid; place-items:center; height:var(--security-art-height); margin:0 -8px 7px; pointer-events:none; overflow:hidden; background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--theme-gold) 14%,transparent),transparent 68%); }
.security-art svg { display:block; width:100%; height:var(--security-art-height); min-width:0; min-height:0; overflow:visible; }
.security-art-lock { --security-art-height:calc(var(--security-art-lock-size) * var(--security-art-scale)); }
.security-art [data-art-motion] { transform-box:view-box; }
.security-ground { fill:var(--security-metal-dark); opacity:.09; }
.security-gold { fill:var(--security-metal); }
.security-gold-edge { fill:var(--security-metal-shadow); }
.security-spark { stroke:var(--security-metal); stroke-width:2; opacity:0; transform-box:fill-box !important; transform-origin:center; animation:security-spark 650ms calc(var(--art-delay) + var(--spark-delay)) both; }
.security-coin-rim { fill:none; stroke:var(--security-metal-light); stroke-width:.9; }
.security-coin-engraving { fill:none; stroke:var(--security-metal-dark); stroke-width:.9; }
.security-safe-side { fill:var(--security-safe-side); }
.security-safe-frame { fill:var(--security-safe-frame); stroke:var(--security-safe-edge); stroke-width:1.5; }
.security-safe-inset { fill:var(--security-safe-interior); stroke:var(--security-safe-side); stroke-width:3; }
.security-safe-shelf { fill:var(--security-metal-shadow); }
.security-safe-hinge { stroke:var(--security-metal); stroke-width:5; }
.security-safe-door-edge { fill:var(--security-safe-side); }
.security-safe-door-face { fill:var(--security-safe-face); stroke:var(--security-safe-edge); stroke-width:1; }
.security-safe-door-highlight { stroke:var(--color-inverse); stroke-width:1; opacity:.2; }
.security-safe-panel { fill:var(--security-safe-interior); }
.security-safe-key { fill:var(--security-safe-key); transform-box:fill-box !important; transform-origin:center; }
.security-safe-key path { stroke:var(--color-inverse); stroke-width:.7; opacity:.45; }
.security-safe-key-press { animation:security-safe-press 360ms calc(var(--art-delay) + var(--press-delay)) both; }
.security-safe-body { transform-origin:160px 155px; animation:security-safe-shake 4.25s var(--art-delay) both; }
.security-safe-door { transform-origin:108px 92px; transform:matrix(-.38,-.18,0,1,0,0); animation:security-safe-open 4.25s var(--art-delay) both; }
.security-safe-controls { opacity:0; animation:security-safe-controls 4.25s var(--art-delay) both; }
.security-safe-dial { transform-origin:136px 92px; transform:rotate(90deg); animation:security-safe-dial 4.25s var(--art-delay) both; }
.security-safe-dial circle:first-child { fill:var(--security-metal-shadow); stroke:var(--security-metal); stroke-width:1.5; }
.security-safe-dial path { stroke:var(--security-metal-light); stroke-width:3; }
.security-safe-dial circle:last-child { fill:var(--security-metal); }
.security-safe-rivet { fill:var(--security-metal); opacity:.7; }
.security-safe-status { fill:var(--theme-jade); animation:security-safe-status 4.25s var(--art-delay) both; }
.security-safe-coin { transform-box:fill-box !important; transform-origin:center; transform:rotate(var(--coin-turn)); animation:security-safe-fall 900ms calc(var(--art-delay) + var(--fall-delay)) both; }
@keyframes security-spark { 0%,100% { opacity:0; transform:scale(.5); } 35% { opacity:.8; transform:scale(1); } }
@keyframes security-safe-press { 0%,100% { fill:var(--security-safe-key); transform:translateY(0) scale(1); } 45% { fill:var(--security-metal-light); transform:translateY(1.8px) scale(.9); } }
@keyframes security-safe-shake { 0%,11%,20%,23%,31%,34%,43%,45%,54%,100% { transform:rotate(0) translateX(0); } 15%,27%,38%,50% { transform:rotate(-1.2deg) translateX(-.8px); } 17%,29%,40%,52% { transform:rotate(.7deg) translateX(.6px); } }
@keyframes security-safe-dial { 0%,52% { transform:rotate(0); } 66%,100% { transform:rotate(90deg); } }
@keyframes security-safe-open { 0%,65% { transform:matrix(1,0,0,1,0,0); } 92% { transform:matrix(-.42,-.2,0,1,0,0); } 100% { transform:matrix(-.38,-.18,0,1,0,0); } }
@keyframes security-safe-controls { 0%,72% { opacity:1; } 84%,100% { opacity:0; } }
@keyframes security-safe-status { 0%,50% { fill:var(--security-metal); } 59%,100% { fill:var(--theme-jade); } }
@keyframes security-safe-fall {
  0% { opacity:0; transform:translate(var(--fall-x),var(--fall-y)) rotate(-35deg) scale(.8); animation-timing-function:ease-in; }
  12% { opacity:1; }
  40% { transform:translate(var(--fall-arc-x),var(--fall-arc-y)) rotate(30deg); animation-timing-function:ease-in; }
  72% { transform:translate(0,0) rotate(var(--coin-turn)); animation-timing-function:ease-out; }
  86% { transform:translate(0,-5px) rotate(var(--coin-turn)); animation-timing-function:ease-in; }
  100% { opacity:1; transform:translate(0,0) rotate(var(--coin-turn)); }
}
/* The lock, key and shackle share one plane so the key stays in its socket. */
.security-padlock { transform-origin:160px 110px;transform:rotate(-30deg);animation:padlock-pose 3.4s var(--art-delay) both; }
.security-lock-key { transform-origin:160px 169px;transform:scaleX(-1);animation:padlock-key 3.4s var(--art-delay) both; }
.security-lock-shackle { transform:translateY(-16px);animation:padlock-unlock 3.4s var(--art-delay) both; }
.security-lock-sheen { animation:padlock-sheen 3.4s var(--art-delay) both; }
.security-lock-flash { opacity:0;animation:padlock-flash 3.4s var(--art-delay) both; }
@keyframes padlock-pose { 0%,7% { transform:rotate(0); } 28%,55% { transform:rotate(-30deg); } 64% { transform:rotate(-32deg); } 76%,100% { transform:rotate(-30deg); } }
@keyframes padlock-key { 0%,8% { transform:translateY(23px) scaleX(1); } 34%,40% { transform:translateY(0) scaleX(1); } 54% { transform:translateY(0) scaleX(.14); } 67%,100% { transform:translateY(0) scaleX(-1); } }
@keyframes padlock-unlock { 0%,61% { transform:translateY(0); } 76% { transform:translateY(-18px); } 86%,100% { transform:translateY(-16px); } }
@keyframes padlock-sheen { 0%,60%,100% { opacity:.2; } 76% { opacity:.55; } }
@keyframes padlock-flash { 0%,69%,92%,100% { opacity:0; } 78% { opacity:.9; } }
/* Locally drawn scenes keep the same footprint, including the instant SVG fallback. */
.security-art-scene > canvas,.security-art-scene > svg { grid-area:1 / 1; display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.security-art-scene > [hidden] { display:none; }
.earth-language-orbits { stroke:var(--theme-highlight); stroke-width:1; stroke-dasharray:2 7; opacity:.24; }
.security-language-word { transform-box:fill-box !important; transform-origin:center; animation:security-language-drift 4.4s cubic-bezier(.35,0,.25,1) calc(var(--art-delay) + var(--word-index)*90ms) both; }
.security-language-word rect { fill:var(--color-surface); stroke:var(--color-line); stroke-width:1; }
.security-language-word path { stroke:var(--theme-highlight); stroke-width:1.3; opacity:.35; }
.security-language-word text { fill:var(--color-text); font-family:var(--theme-font); font-size:12px; font-weight:650; }
@keyframes security-language-drift { 0% { opacity:0; transform:translate(calc(var(--word-drift)*-1),9px) scale(.68); } 22% { opacity:.65; transform:translate(var(--word-drift),-7px) scale(.9); } 55% { opacity:1; transform:translate(0,3px) scale(1.08); } 80% { opacity:.85; transform:translate(calc(var(--word-drift)*-.35),-2px) scale(.97); } 100% { opacity:1; transform:none; } }
.security-art-scene,.security-art-globe,.security-art-mailbox { background:none; }
.security-art-authenticator { background:radial-gradient(ellipse at center,color-mix(in srgb,var(--theme-accent) 8%,transparent),transparent 70%); }
.security-auth-device { transform-origin:160px 125px; animation:security-auth-arrive 650ms cubic-bezier(.2,.8,.2,1) var(--art-delay) both; }
.security-auth-slot { fill:var(--color-input); stroke:var(--color-line); stroke-width:1; }
.security-auth-focus { fill:none; stroke:var(--theme-accent); stroke-width:1.5; opacity:0; animation:security-auth-focus 390ms ease-out calc(var(--art-delay) + 500ms + var(--digit-index)*190ms) both; }
.security-auth-digit { transform-box:fill-box !important; transform-origin:center; animation:security-auth-type 350ms cubic-bezier(.2,.8,.25,1.3) calc(var(--art-delay) + 550ms + var(--digit-index)*190ms) both; }
.security-auth-digit text { font-family:var(--theme-font); font-size:24px; font-weight:750; font-variant-numeric:tabular-nums; fill:var(--color-accent); }
.security-auth-tick { stroke:var(--theme-accent); stroke-width:2.5; animation:security-auth-type 300ms ease-out calc(var(--art-delay) + 550ms + var(--digit-index)*190ms) both; }
.security-auth-success { transform-origin:0 0; animation:security-auth-success 650ms cubic-bezier(.2,.8,.25,1.2) calc(var(--art-delay) + 1940ms) both; }
.security-auth-check { stroke-dasharray:1; stroke-dashoffset:0; animation:security-auth-check 450ms ease-out calc(var(--art-delay) + 2150ms) both; }
@keyframes security-auth-arrive { from { opacity:0; transform:translateY(7px) rotate(-3deg); } to { opacity:1; transform:none; } }
@keyframes security-auth-focus { 0%,100% { opacity:0; } 30% { opacity:1; } }
@keyframes security-auth-type { from { opacity:0; transform:translateY(5px) scale(.82); } to { opacity:1; transform:none; } }
@keyframes security-auth-success { from { opacity:0; transform:translateY(8px) scale(.65); } to { opacity:1; transform:none; } }
@keyframes security-auth-check { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
.mailbox-letter { opacity:0; transform-origin:160px 29px; animation:mailbox-letter 3.5s var(--art-delay) both; }
.mailbox-lid { transform-origin:159px 68px; animation:mailbox-lid 3.5s var(--art-delay) both; }
.mailbox-notice { transform-box:fill-box !important; transform-origin:center; animation:mailbox-notice 3.5s var(--art-delay) both; }
@keyframes mailbox-letter { 0%,13% { opacity:1;transform:translate(-8px,-3px) rotate(-12deg); } 30% { opacity:1;transform:translate(2px,12px) rotate(7deg); } 57% { opacity:1;transform:translate(-1px,89px) rotate(-4deg); } 65%,100% { opacity:0;transform:translate(0,99px) rotate(0); } }
@keyframes mailbox-lid { 0% { transform:scaleY(1); } 15%,63% { transform:scaleY(-1); } 82% { transform:scaleY(1.06); } 92%,100% { transform:scaleY(1); } }
@keyframes mailbox-notice { 0%,77% { opacity:0;transform:scale(.5); } 90% { opacity:1;transform:scale(1.12); } 100% { opacity:1;transform:scale(1); } }

/* Payment setup/reset share the approved scene and the common dialog lifecycle. */
.security-art-pin-reset { background:none; }
.security-pin-shadow { fill:var(--security-safe-interior); opacity:.12; }
.security-pin-safe { transform-origin:158px 196px; animation:security-pin-tactile 4.16s ease-in-out var(--art-delay) both; }
.security-pin-old-dots { opacity:0; animation:security-pin-clear .455s ease-in calc(var(--art-delay) + .585s) both; }
.security-pin-fragments rect { opacity:0; transform-box:fill-box !important; transform-origin:center; animation:security-pin-fragment 1.105s cubic-bezier(.17,.6,.35,1) calc(var(--art-delay) + .65s + var(--i)*.0325s) both; }
.security-pin-new-dots circle { opacity:1; transform-box:fill-box !important; transform-origin:center; animation:security-pin-dot .312s cubic-bezier(.2,.8,.3,1.4) calc(var(--art-delay) + 1.69s + var(--i)*.143s) both; }
.security-pin-wheel-spin { transform-origin:0 0; transform:rotate(450deg); animation:security-pin-turn 1.755s cubic-bezier(.6,0,.25,1) calc(var(--art-delay) + 1.105s) both; }
.security-pin-glint { opacity:0; animation:security-pin-shine .845s ease-out calc(var(--art-delay) + 2.795s) both; }
.security-pin-complete { opacity:1; transform-origin:0 0; animation:security-pin-confirm .585s cubic-bezier(.2,.8,.25,1.3) calc(var(--art-delay) + 3.12s) both; }
@keyframes security-pin-tactile { 0%,26%,43%,61%,100% { transform:rotate(0); } 31% { transform:rotate(-1.2deg); } 37% { transform:rotate(.7deg); } 68% { transform:translateY(1px); } 73% { transform:translateY(0); } }
@keyframes security-pin-clear { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-3px); } }
@keyframes security-pin-fragment { 0% { opacity:0; transform:translate(0,0) rotate(0) scale(.6); } 18% { opacity:1; } 100% { opacity:0; transform:translate(var(--x),var(--y)) rotate(140deg) scale(.15); } }
@keyframes security-pin-dot { from { opacity:0; transform:scale(.3); } to { opacity:1; transform:scale(1); } }
@keyframes security-pin-turn { from { transform:rotate(0); } 88% { transform:rotate(455deg); } to { transform:rotate(450deg); } }
@keyframes security-pin-shine { 0% { opacity:0; transform:translateX(0); } 20% { opacity:1; } 100% { opacity:0; transform:translateX(190px); } }
@keyframes security-pin-confirm { from { opacity:0; transform:translateY(6px) scale(.8); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(prefers-reduced-motion:reduce) { .security-art [data-art-motion] { animation:none !important; } }
.security-art-phone { background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--theme-gold) 13%,transparent),transparent 68%); }
.security-art-phone [data-art-motion] { transform-box:fill-box; }
.security-phone-body { transform-origin:50% 100%; animation:security-phone-ring-body 3.6s ease-in-out var(--art-delay) both; }
.security-phone-handset { transform-origin:50% 70%; transform:translate(0,-70px) rotate(-18deg) scale(1.38); animation:security-phone-answer 3.6s ease-in-out var(--art-delay) both; }
.security-phone-earpieces { transform-origin:center; animation:security-phone-face 3.6s ease-in-out var(--art-delay) both; }
.security-phone-cord { transform-origin:100% 100%; transform:skewX(6.5deg) scaleY(1.32); animation:security-phone-cord 3.6s ease-in-out var(--art-delay) both; }
.security-phone-ring { transform-origin:center; opacity:0; animation:security-phone-ring-lines 3.6s ease-in-out var(--art-delay) both; }
@keyframes security-phone-ring-body {
  0%,4%,24%,28%,48%,54%,100% { transform:translateX(0) rotate(0); }
  8%,16%,32%,40% { transform:translateX(-1.3px) rotate(-2.3deg); }
  12%,20%,36%,44% { transform:translateX(1.3px) rotate(2.3deg); }
  51% { transform:rotate(-.8deg); }
}
@keyframes security-phone-answer {
  0%,4%,24%,28%,48%,56% { transform:translate(0,0) rotate(0) scale(1); }
  8%,16%,32%,40% { transform:translate(0,-1.8px) rotate(1.4deg) scale(1); }
  12%,20%,36%,44% { transform:translate(0,-.5px) rotate(-1.4deg) scale(1); }
  69% { transform:translate(0,-37px) rotate(-6deg) scale(1.08); }
  85% { transform:translate(0,-75px) rotate(-20deg) scale(1.42); }
  96%,100% { transform:translate(0,-70px) rotate(-18deg) scale(1.38); }
}
@keyframes security-phone-face {
  0%,62% { opacity:0; transform:scaleY(.12); }
  85%,100% { opacity:1; transform:scaleY(1); }
}
@keyframes security-phone-cord {
  0%,56% { transform:skewX(0) scaleY(1); }
  69% { transform:skewX(-1deg) scaleY(1.23); }
  85% { transform:skewX(6.5deg) scaleY(1.34); }
  96%,100% { transform:skewX(6.5deg) scaleY(1.32); }
}
@keyframes security-phone-ring-lines {
  0%,4%,24%,28%,50%,100% { opacity:0; transform:scale(.94); }
  10%,34% { opacity:.7; transform:scale(1); }
  20%,44% { opacity:.25; transform:scale(1.06); }
}
