/* ==========================================================================
   Ank OTP · DS-012 · TheLayoutLoft Parts Line
   Part styles only — all selectors prefixed .ak- . Drop-in safe.
   ========================================================================== */

.ak { display: inline-block; position: relative; }
.ak-row { display: flex; gap: 10px; align-items: center; }

.ak-cell {
  position: relative; width: 44px; height: 52px;
  border-radius: 10px;
  background: #12161F;
  border: 1px solid #2A3142;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ak-cell::after { /* the underline */
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 7px;
  height: 2px; border-radius: 2px; background: #3A4152;
  transform: scaleX(.6); transform-origin: center;
  transition: transform .18s, background .18s;
}
.ak-cell.ak-filled::after { transform: scaleX(1); background: #6D64F0; }
.ak-cell:focus-within { border-color: #8B84EA;
  box-shadow: 0 0 0 3px rgba(139,132,234,.22); }

.ak-inp {
  width: 100%; height: 100%; padding: 0; border: none; outline: none;
  background: transparent; text-align: center;
  font: 700 20px/1 ui-monospace, monospace; color: #F5F1E8;
  caret-color: #F59E0B;
}
.ak-inp:disabled { opacity: .75; cursor: default; }

.ak-sep { color: #3A4152; font-weight: 700; }

/* busy — underlines breathe while verify runs */
.ak-busy .ak-cell.ak-filled::after {
  animation: ak-pulse 1s ease-in-out infinite;
}
@keyframes ak-pulse { 50% { opacity: .35; } }

/* verified — gold seal */
.ak-verified .ak-cell {
  border-color: #D9A514; box-shadow: 0 0 14px rgba(217,165,20,.25);
}
.ak-verified .ak-cell::after { background: #F59E0B; }

/* failed — brief red flash before wipe */
.ak-bad .ak-cell { border-color: #C0392B; }
.ak-bad .ak-inp { color: #E08A80; }

.ak-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ak-cell, .ak-cell::after { transition: none; }
  .ak-busy .ak-cell.ak-filled::after { animation: none; opacity: .6; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
