
* {
  box-sizing: border-box;
}

html,
body,
input {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  color: #000;
  background: #fff;
}

body {
  min-height: 100vh;
}

main {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 24px 0;
}

p {
  margin: 0;
  font: inherit;
}

.access,
#reveal-root,
.revealed,
.block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.access,
#reveal-root,
.revealed {
  gap: 16px;
}

#reveal-root:empty {
  display: none;
}

.access > p,
.block {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.block {
  gap: 8px;
}

.plain-url {
  overflow-wrap: anywhere;
  user-select: text;
}

.secondary-line {
  margin-top: 0;
}

.answer-form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.code-input,
.word-input {
  height: 32px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  text-align: center;
  appearance: none;
  opacity: 1;
  -webkit-text-fill-color: #000;
}

.code-input {
  width: 28px;
}

.word-input {
  width: 92px;
}

.code-input:disabled,
.word-input:disabled {
  color: #000;
  background: #fff;
  cursor: default;
}

.separator {
  display: block;
  width: 10px;
  text-align: center;
  animation: blink 1s steps(1, end) infinite;
}

.is-shaking {
  animation: shake 180ms ease-in-out;
}

.final-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

@keyframes blink {
  50% {
    visibility: hidden;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .separator,
  .is-shaking {
    animation: none;
  }
}
