/* The PIN wall page's styles (wall.html). */
:root {
  --page: #f2f2f7;
  --field: #ffffff;
  --text: #000000;
  --accent: #007aff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #000000;
    --field: #1c1c1e;
    --text: #ffffff;
    --accent: #0a84ff;
  }
}
:root[data-theme='dark'] {
  --page: #000000;
  --field: #1c1c1e;
  --text: #ffffff;
  --accent: #0a84ff;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: calc(
      var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 22vh
    )
    16px 16px;
}
label {
  font-size: 17px;
  font-weight: 600;
}
input {
  box-sizing: border-box;
  width: 200px;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  caret-color: var(--accent);
  font: inherit;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-align: center;
  outline: none;
}
input:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.wrong {
  animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wrong {
    animation: none;
  }
}
