/* (Spossity removes shadows globally with !important; the boxes' outlines and glow are kept on purpose.) */
/* Six code boxes: drop in 70 ms apart, the current box is outlined, a complete code glows. */
.sp-code { position: relative; display: grid; gap: 8px; margin-top: 6px; }
.sp-code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 46px)); gap: 8px; }
html body .sp-code-boxes span {
  display: grid; place-items: center; height: 52px; border-radius: 14px; font-family: inherit; font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--pop-ink, #0b285b); background: var(--pop-field, rgba(255,255,255,.72)); box-shadow: inset 0 0 0 1px var(--pop-line, rgba(23,22,58,.1)) !important;
  transition: box-shadow .2s var(--sp-ease-out), transform var(--sp-dur-snappy) var(--sp-ease-snappy), background-color .2s var(--sp-ease-out);
}
.sp-code-in .sp-code-boxes span { animation: sp-code-drop var(--sp-dur-snappy) var(--sp-ease-snappy) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes sp-code-drop { from { opacity: 0; transform: translateY(-14px) scale(.92); } }
html body .sp-code-boxes span.filled { box-shadow: inset 0 0 0 1.5px rgba(123,77,255,.45) !important; }
html body .sp-code-boxes span.current { box-shadow: inset 0 0 0 2px rgba(123,77,255,.8) !important; }
html body .sp-code.complete .sp-code-boxes span { box-shadow: inset 0 0 0 1.5px rgba(91,140,255,.9), 0 0 14px rgba(91,140,255,.45) !important; animation: sp-code-glow .5s ease both; animation-delay: calc(var(--i) * 40ms); }
@keyframes sp-code-glow { 40% { transform: scale(1.06); } }
/* The real field sits over the boxes, invisible, so typing, pasting and autofill all work normally. */
.sp-code[data-mode="boxes"] > input { position: absolute; top: 0; left: 0; width: 100%; height: 52px; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.sp-code[data-mode="plain"] .sp-code-boxes { display: none; }
.sp-code-switch { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #7b4dff; cursor: pointer; }
html[data-theme="dark"] .sp-code-switch { color: #b9a0ff; }
html[data-theme="dark"] .sp-code-boxes span { color: #f5f8ff; }
@media (prefers-reduced-motion: reduce) { .sp-code-in .sp-code-boxes span, .sp-code.complete .sp-code-boxes span { animation: none; } }
