.app {
  width: 100%;
  max-width: 430px;
  overflow: hidden;
}

.numbers {
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 800;
  color: var(--roxo);
  letter-spacing: 0.04em;
  user-select: none;
}

.display {
  background: #0b1b36;
  color: #dff0ff;
  border-radius: 12px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 14px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.key {
  border: 0;
  border-radius: 12px;
  min-height: 58px;
  font-size: 1.25rem;
  font-weight: 700;
  background: #fff;
  color: #5a3d5c;
  box-shadow: 0 5px 14px rgba(181, 123, 238, 0.25);
  transition: transform 0.05s ease, background-color 0.2s ease;
}

.key:active {
  transform: scale(0.98);
  background: var(--rosa-claro);
}

.key-action {
  background: var(--rosa-claro);
  color: var(--roxo);
}

.key-submit {
  background: linear-gradient(90deg, var(--amarelo), var(--rosa));
  color: #5a3d5c;
}

.hint {
  text-align: center;
  color: #6a4a6e;
  font-size: 0.9rem;
}

.star4 { top: 0px; left: 0px; font-size: 2rem; animation-delay: 1.5s; }
