* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(110, 93, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0e1017 0%, #16181f 100%);
  color: #ffffff;
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 32px 24px 40px;
  border-radius: 28px;
  background: rgba(25, 27, 34, 0.92);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.avatar {
  width: 138px;
  height: 138px;
  border-radius: 28px;
  object-fit: cover;
  background: #23262f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.title {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hidden {
  display: none;
}

.lock {
  font-size: 68px;
  line-height: 1;
}

.locked-text {
  margin: 0;
  color: #9ea3b3;
  font-size: 18px;
  line-height: 1.35;
  max-width: 290px;
}

.hint {
  margin: 0;
  color: #8f95a3;
  font-size: 15px;
  line-height: 1.4;
}

.error-title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
}

.main-btn,
.ghost-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.main-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.main-btn {
  min-width: 270px;
  padding: 18px 28px;
  border-radius: 20px;
  background: linear-gradient(90deg, #6970ff 0%, #b05cff 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(116, 92, 255, 0.35);
}

.ghost-btn {
  background: transparent;
  color: #c8ccda;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: #8f78ff;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 28px 18px 36px;
    border-radius: 24px;
  }

  .title {
    font-size: 22px;
  }

  .main-btn {
    width: 100%;
    min-width: 0;
  }
}